app.90fd41f8.js 3.4 MB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e){},"0088":function(t,e,a){},"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="M663.2 447.2c84 10.4 153.6-60.8 142.4-144-7.2-57.6-52.8-103.2-109.6-110.4-84-10.4-154.4 60-143.2 144 7.2 57.6 53.6 103.2 110.4 110.4z m-326.4 0c84 10.4 153.6-60.8 142.4-144-7.2-57.6-53.6-103.2-110.4-110.4-84-10.4-154.4 60-143.2 144 8 57.6 53.6 103.2 111.2 110.4zM348 512c-94.4 0-284 48.8-284 145.6V816c0 8.8 7.2 16 16 16h536c8.8 0 16-7.2 16-16V657.6C632 560.8 442.4 512 348 512z m322.4 0c-12 0-25.6 0.8-40 2.4 48 34.4 81.6 81.6 81.6 143.2V816c0 8.8 7.2 16 16 16h216c8.8 0 16-7.2 16-16V657.6C960 560.8 767.2 512 670.4 512z" p-id="219373" /></symbol>'});l.a.add(n);e["default"]=n},"01ae":function(t,e,a){},"028b":function(t,e,a){"use strict";a("3f4d")},"0384":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.tab1.table.getdataListParm.parammaps.groupsname,callback:function(e){t.$set(t.tab1.table.getdataListParm.parammaps,"groupsname",e)},expression:"tab1.table.getdataListParm.parammaps.groupsname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"状态",clearable:""},model:{value:t.tab1.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab1.table.getdataListParm.parammaps,"enable",e)},expression:"tab1.table.getdataListParm.parammaps.enable"}},t._l(t.stateList,(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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e()],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab1.table.listLoading,expression:"tab1.table.listLoading"}],key:t.tab1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab1.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.tab1.table.pageNum-1)*t.tab1.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"集团ID","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.groupscode))]):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",placeholder:"1-32字符"},model:{value:e.row.groupscode,callback:function(a){t.$set(e.row,"groupscode",a)},expression:"scope.row.groupscode"}}):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.groupsname))]):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",placeholder:"1-32字符"},model:{value:e.row.groupsname,callback:function(a){t.$set(e.row,"groupsname",a)},expression:"scope.row.groupsname"}}):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.emp))]):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",placeholder:"1-32字符"},model:{value:e.row.emp,callback:function(a){t.$set(e.row,"emp",a)},expression:"scope.row.emp"}}):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.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":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.user))]):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",placeholder:"1-32字符"},model:{value:e.row.user,callback:function(a){t.$set(e.row,"user",a)},expression:"scope.row.user"}}):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},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.note))]):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",placeholder:"1-255字符"},model:{value:e.row.note,callback:function(a){t.$set(e.row,"note",a)},expression:"scope.row.note"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","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("a",{staticClass:"correcting",on:{click:function(e){return t.handlePageConfiguration(i)}}},[t._v("页面配置")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-folder-checked",disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate?a("a",{staticClass:"correcting",on:{click:function(e){return t.handleRelation(i)}}},[t._v("关联")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-folder-checked",disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tab1.table.total>=0,expression:"tab1.table.total>=0"}],attrs:{total:t.tab1.table.total,page:t.tab1.table.getdataListParm.offset,limit:t.tab1.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.tab1.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.tab1.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.tab1.pageConfiguration.dialogStatus],visible:t.tab1.pageConfiguration.dialogFormVisible,"close-on-click-modal":!1,width:"25%"},on:{"update:visible":function(e){return t.$set(t.tab1.pageConfiguration,"dialogFormVisible",e)}}},[a("div",{staticStyle:{height:"400px","overflow-y":"auto"}},[a("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:t.tab1.pageConfiguration.listLoading,expression:"tab1.pageConfiguration.listLoading"}],ref:"tree",attrs:{"show-checkbox":"","node-key":"id","default-expand-all":!0,data:t.tab1.pageConfiguration.data,props:t.tab1.pageConfiguration.defaultProps,"default-checked-keys":t.tab1.pageConfiguration.defaultCheckedKeys},on:{"check-change":t.handelCheckChange}})],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.tab1.pageConfiguration.dialogFormVisible=!1,t.getList()}}},[t._v("取消")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.pageConfigurationData()}}},[t._v("确认")])],1)]),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.tab1.relation.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.tab1.relation,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.tab1.relation.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",[a("el-form",{ref:"relationTemp",staticStyle:{width:"100%"},attrs:{rules:t.rules,"label-position":"right",model:t.tab1.relation.temp,"label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"集团名称:",prop:"groupsname"}},[a("el-input",{ref:"groupsname",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"集团名称",type:"text"},model:{value:t.tab1.relation.temp.groupsname,callback:function(e){t.$set(t.tab1.relation.temp,"groupsname",e)},expression:"tab1.relation.temp.groupsname"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"关联:",prop:"radio"}},[a("el-radio-group",{model:{value:t.tab1.relation.radio,callback:function(e){t.$set(t.tab1.relation,"radio",e)},expression:"tab1.relation.radio"}},[a("el-radio-button",{attrs:{label:"集团"}}),a("el-radio-button",{attrs:{label:"牧场"}})],1)],1)],1)],1),"集团"==t.tab1.relation.radio?a("div",{staticClass:"group"},[a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"选择关联集团:"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":t.groupSearch,placeholder:"选择关联集团"},on:{select:t.handleGroupSelect},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",{staticClass:"addr"},[t._v(" 集团:"+t._s(i.groupsname))])]}}],null,!1,182681583),model:{value:t.tab1.relation.group.groupsname,callback:function(e){t.$set(t.tab1.relation.group,"groupsname",e)},expression:"tab1.relation.group.groupsname"}})],1)],1)],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab1.relation.group.table.listLoading,expression:"tab1.relation.group.table.listLoading"}],key:t.tab1.relation.group.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab1.relation.group.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"}}),a("el-table-column",{attrs:{label:"集团ID","min-width":"130px",align:"center",prop:"groupscode"}}),a("el-table-column",{attrs:{label:"集团名称","min-width":"130px",align:"center",prop:"groupsname"}}),a("el-table-column",{attrs:{label:"管理员用户名","min-width":"130px",align:"center",prop:"user"}}),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"}})]}}],null,!1,3068089907)}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center",prop:"note"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"50","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:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleGroupDelete(i)}}})]}}],null,!1,2546625808)})],1)],1)],1):t._e(),"牧场"==t.tab1.relation.radio?a("div",{staticClass:"pasture"},[a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"选择关联牧场:"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":t.pastureSearch,placeholder:"选择关联牧场"},on:{select:t.handlePastureSelect},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",{staticClass:"addr"},[t._v(" 牧场:"+t._s(i.pasturename))])]}}],null,!1,2501078510),model:{value:t.tab1.relation.pasture.pastureName,callback:function(e){t.$set(t.tab1.relation.pasture,"pastureName",e)},expression:"tab1.relation.pasture.pastureName"}})],1)],1)],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab1.relation.pasture.table.listLoading,expression:"tab1.relation.pasture.table.listLoading"}],key:t.tab1.relation.pasture.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab1.relation.pasture.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"}}),a("el-table-column",{attrs:{label:"牧场ID","min-width":"130px",align:"center",prop:"pasturecode"}}),a("el-table-column",{attrs:{label:"牧场名称","min-width":"130px",align:"center",prop:"pasturename"}}),a("el-table-column",{attrs:{label:"管理员用户名","min-width":"130px",align:"center",prop:"user"}}),a("el-table-column",{attrs:{label:"权限归属","min-width":"130px",align:"center",prop:"groupsname"}}),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"}})]}}],null,!1,3068089907)}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center",prop:"note"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"50","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:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handlePastureDelete(i)}}})]}}],null,!1,384687483)})],1)],1)],1):t._e()],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.tab1.relation.dialogFormVisible=!1,t.getList()}}},[t._v("取消")]),"relation"===t.tab1.relation.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.relationData()}}},[t._v("确认")]):t._e()],1)],2)],1)},s=[],r=(a("ac1f"),a("00b4"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("a434"),a("d81d"),a("a630"),a("3ca3"),a("d3b7"),a("6062"),a("ddb0"),a("7db0"),a("2934")),l=(a("a78e"),a("ed08"),a("61f7"),a("5c96"),a("333d")),n={name:"OperationManagement",components:{Pagination:l["a"]},data:function(){return{requestParams:[{name:"getGroupsAllList",offset:0,pagecount:0,parammaps:{}}],dialogFull:!1,isRoleEdit:[],stateList:[{id:1,name:"启用"},{id:0,name:"禁止"}],tab1:{table:{getdataListParm:{name:"getGroupsAllList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{groupsname:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},pageConfiguration:{dialogFormVisible:!1,dialogStatus:"",temp:{},listLoading:!0,getdataListParm:{name:"getMenuandButtonlistJT"},parentType:[],defaultProps:{children:"children",label:"name"},defaultCheckedKeys:[],arrList:[]},relation:{dialogFormVisible:!1,dialogStatus:"",radio:"集团",temp:{},group:{requestParam:{name:"getGroupsAllListV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{groupsname:""}},searchList:[],table:{tableKey:1,list:[],total:0,listLoading:!1,getdataListParm:{name:"groupsrelationlistJT",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{groupsname:""}}}},pasture:{requestParam:{name:"groupsrelationlistMCAll",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:""}},searchList:[],table:{tableKey:2,list:[],total:0,listLoading:!1,getdataListParm:{name:"groupsrelationlistMC",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:""}}}}}},requestParam:{},rules:{},isokDisable:!1,textMap:{pageConfiguration:"页面配置",relation:"关联"},rowStyle:{maxHeight:"30px",height:"30px"},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.tab1.table.listLoading=!0,Object(r["c"])(this.tab1.table.getdataListParm).then((function(e){if(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.tab1.table.list=e.data.list,t.tab1.table.pageNum=e.data.pageNum,t.tab1.table.pageSize=e.data.pageSize,t.tab1.table.total=e.data.total}else t.tab1.table.list=[];setTimeout((function(){t.tab1.table.listLoading=!1}),100)}))},handleSearch:function(){this.tab1.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.tab1.table.getdataListParm.parammaps.groupsname="",this.tab1.table.getdataListParm.parammaps.enable="",this.tab1.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){for(var t=0;t<this.tab1.table.list.length;t++)if(1==this.tab1.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.tab1.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,groupscode:"",groupsname:"",emp:"",phone:"",user:"",note:""})},createData:function(t){var e=this;if(""==t.groupscode&&""==t.groupsname&&""==t.user)return this.$message({type:"error",message:"集团ID/集团名称/管理员用户名不能为空",duration:2e3}),!1;if(""==t.groupsname&&""==t.user)return this.$message({type:"error",message:"集团名称/管理员用户名不能为空",duration:2e3}),!1;if(""==t.groupscode)return this.$message({type:"error",message:"集团ID不能为空",duration:2e3}),!1;if(""==t.groupsname)return this.$message({type:"error",message:"集团名称不能为空",duration:2e3}),!1;if(""==t.user)return this.$message({type:"error",message:"管理员用户名不能为空",duration:2e3}),!1;if(void 0!==t.phone&&""!==t.phone){var a=/^\d{11}$/;if(!a.test(t.phone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkuser",type:"v",parammaps:{user:t.user}},this.requestParam.data[1]={name:"insertGroups",type:"e",parammaps:{groupsname:t.groupsname,groupscode:t.groupscode,emp:t.emp,phone:t.phone,enable:t.enable,note:t.note,user:t.user}},this.requestParam.data[2]={name:"createNewPasture",type:"e",parammaps:{user:t.user,pastureid:"@insertGroups.LastInsertId",type:"1"}},Object(r["b"])(this.requestParam).then((function(t){if("fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("column 'id'");a.test(t.data)?e.$notify({title:"保存失败",message:"集团已存在,不可重复生成",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}}))},createCancel:function(t){for(var e=0;e<this.tab1.table.list.length;e++){if(t.myId===this.tab1.table.list[e].myId)var a=this.tab1.table.list.indexOf(this.tab1.table.list[e]);if(a>-1)return void this.tab1.table.list.splice(a,1)}},handleUpdate:function(t){for(var e=0;e<this.tab1.table.list.length;e++)if(1==this.tab1.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(""==t.pasturecode&&""==t.pasturename&&""==t.user)return this.$message({type:"error",message:"牧场ID/牧场名称/管理员用户名不能为空",duration:2e3}),!1;if(""==t.pasturename&&""==t.user)return this.$message({type:"error",message:"牧场名称/管理员用户名不能为空",duration:2e3}),!1;if(""==t.pasturecode)return this.$message({type:"error",message:"牧场ID不能为空",duration:2e3}),!1;if(""==t.pasturename)return this.$message({type:"error",message:"牧场名称不能为空",duration:2e3}),!1;if(""==t.user)return this.$message({type:"error",message:"管理员用户名不能为空",duration:2e3}),!1;if(void 0!==t.phone&&""!==t.phone){var a=/^\d{11}$/;if(!a.test(t.phone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateGroups",type:"e",parammaps:{id:t.id,groupsname:t.groupsname,groupscode:t.groupscode,emp:t.emp,phone:t.phone,enable:t.enable,note:t.note,user:t.user}},this.requestParam.data[1]={name:"updateUserName",type:"e",parammaps:{id:t.id,userold:t.userold,user:t.user}},Object(r["b"])(this.requestParam).then((function(t){if("fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("column 'id'");a.test(t.data)?e.$notify({title:"保存失败",message:"集团已存在,不可重复生成",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handlePageConfiguration:function(t){this.tab1.pageConfiguration.temp=Object.assign({},t),this.tab1.pageConfiguration.dialogStatus="pageConfiguration",this.tab1.pageConfiguration.dialogFormVisible=!0,this.getPageConfigurationList()},getPageConfigurationList:function(){var t=this;this.tab1.pageConfiguration.getdataListParm.parammaps={},this.tab1.pageConfiguration.getdataListParm.parammaps.pastureid=this.tab1.pageConfiguration.temp.pastureid,this.tab1.pageConfiguration.getdataListParm.parammaps.id=this.tab1.pageConfiguration.temp.id,this.tab1.pageConfiguration.listLoading=!0,Object(r["c"])(this.tab1.pageConfiguration.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)parseFloat(e.data.list[a].seebutton)>0&&-1!==e.data.list[a].pid&&t.tab1.pageConfiguration.defaultCheckedKeys.push(String(e.data.list[a].menu_id)),parseFloat(e.data.list[a].seebutton)>0&&t.tab1.pageConfiguration.arrList.push(String(e.data.list[a].menu_id));t.tab1.pageConfiguration.data=Object(r["q"])(e.data.list,"id","pid","children")}else t.tab1.pageConfiguration.data=[];setTimeout((function(){t.tab1.pageConfiguration.listLoading=!1}),1e3)}))},handelCheckChange:function(t){var e=this;this.tab1.pageConfiguration.defaultCheckedKeys=this.$refs.tree.getCheckedKeys();for(var a=this.$refs.tree.getCheckedKeys(),i=a.map((function(t){var a=e.$refs.tree.getNode(t),i={};return i.pid=a.parent.key,i.value=a.key,i})),s=i.map((function(t){return t})),r=[],l=0;l<s.length;l++)void 0!==s[l].pid?r.push(s[l].pid,s[l].value):r.push(s[l].value);this.tab1.pageConfiguration.arrList=this.unique(r)},unique:function(t){return Array.from(new Set(t))},pageConfigurationData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deletemenuPastureJT",type:"e",parammaps:{id:this.tab1.pageConfiguration.temp.id}};for(var e=[],a=0;a<this.tab1.pageConfiguration.arrList.length;a++)e.push({id:this.tab1.pageConfiguration.arrList[a]});this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"insertRolepastureJT",type:"e",parammaps:{menuid:"@insertSpotList.id",id:this.tab1.pageConfiguration.temp.id}},Object(r["b"])(this.requestParam).then((function(e){"fail"!==e.msg?(t.tab1.pageConfiguration.dialogFormVisible=!1,t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},handleRelation:function(t){this.tab1.relation.temp=Object.assign({},t),this.dialogFull=!1,this.tab1.relation.dialogStatus="relation",this.tab1.relation.dialogFormVisible=!0,this.tab1.relation.radio="集团",this.getGrouplist(),this.getPasturelist()},getGrouplist:function(){var t=this;this.tab1.relation.group.table.listLoading=!0,this.tab1.relation.group.table.getdataListParm.parammaps.id=this.tab1.relation.temp.id,Object(r["c"])(this.tab1.relation.group.table.getdataListParm).then((function(e){null!==e.data.list?t.tab1.relation.group.table.list=e.data.list:t.tab1.relation.group.table.list=[],setTimeout((function(){t.tab1.relation.group.table.listLoading=!1}),100)}))},getPasturelist:function(){var t=this;this.tab1.relation.pasture.table.listLoading=!0,this.tab1.relation.pasture.table.getdataListParm.parammaps.id=this.tab1.relation.temp.id,Object(r["c"])(this.tab1.relation.pasture.table.getdataListParm).then((function(e){null!==e.data.list?t.tab1.relation.pasture.table.list=e.data.list:t.tab1.relation.pasture.table.list=[],setTimeout((function(){t.tab1.relation.pasture.table.listLoading=!1}),100)}))},groupSearch:function(t,e){var a=this;this.tab1.relation.group.requestParam.parammaps.groupsname=t,this.tab1.relation.group.requestParam.parammaps.id=this.tab1.relation.temp.id,Object(r["c"])(this.tab1.relation.group.requestParam).then((function(t){null!==t.data.list?(a.tab1.relation.group.searchList=t.data.list,e(a.tab1.relation.group.searchList)):e([])}))},handleGroupSelect:function(t){this.tab1.relation.group.table.list.length>0&&this.tab1.relation.group.table.list.find((function(e){return e.id===t.id}))?this.$message({type:"warning",message:"集团不可重复添加"}):this.tab1.relation.group.table.list.push(t)},handleGroupDelete:function(t){for(var e=0;e<this.tab1.relation.group.table.list.length;e++){if(this.tab1.relation.group.table.list[e].id==t.id)var a=this.tab1.relation.group.table.list.indexOf(this.tab1.relation.group.table.list[e]);if(a>-1)return void this.tab1.relation.group.table.list.splice(a,1)}},pastureSearch:function(t,e){var a=this;this.tab1.relation.pasture.requestParam.parammaps.pastureName=t,Object(r["c"])(this.tab1.relation.pasture.requestParam).then((function(t){null!==t.data.list?(a.tab1.relation.pasture.searchList=t.data.list,e(a.tab1.relation.pasture.searchList)):e([])}))},handlePastureSelect:function(t){this.tab1.relation.pasture.table.list.length>0&&this.tab1.relation.pasture.table.list.find((function(e){return e.id===t.id}))?this.$message({type:"warning",message:"集团不可重复添加"}):this.tab1.relation.pasture.table.list.push(t)},handlePastureDelete:function(t){for(var e=0;e<this.tab1.relation.pasture.table.list.length;e++){if(this.tab1.relation.pasture.table.list[e].id==t.id)var a=this.tab1.relation.pasture.table.list.indexOf(this.tab1.relation.pasture.table.list[e]);if(a>-1)return void this.tab1.relation.pasture.table.list.splice(a,1)}},relationData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deletegroupsPasture",type:"e",parammaps:{id:this.tab1.relation.temp.id}},this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:this.tab1.relation.group.table.list}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"insertgroupsPasture",type:"e",parammaps:{rid:"@insertSpotList.id",id:this.tab1.relation.temp.id,type:"1"}},this.requestParam.data[2]={name:"insertSpotList2",resultmaps:{list:this.tab1.relation.pasture.table.list}},this.requestParam.data[2].children=[],this.requestParam.data[2].children[0]={name:"insertgroupsPasture",type:"e",parammaps:{rid:"@insertSpotList2.id",id:this.tab1.relation.temp.id,type:"0"}},Object(r["b"])(this.requestParam).then((function(e){"fail"!==e.msg?(t.tab1.relation.dialogFormVisible=!1,t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}},o=n,c=(a("4102"),a("2877")),d=Object(c["a"])(o,i,s,!1,null,"322265bc",null);e["default"]=d.exports},"0477":function(t,e,a){"use strict";a("cd25")},"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",{ref:"appContainer",staticClass:"app-container"},[a("div",{ref:"myContainer",staticClass:"myContainer"},[a("div",{ref:"template",staticClass:"template"},[t._m(0),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.source,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"source",e)},expression:"table.getdataListParm.parammaps.source"}},t._l(t.sourceList,(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",placeholder:"请点击选择搜索条件"},model:{value:t.table.getdataListParm.parammaps.all,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"all",e)},expression:"table.getdataListParm.parammaps.all"}}),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:{clearable:""},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"},attrs:{clearable:""},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("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"downminCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniPrimary",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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v("生效")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v("禁用")]):t._e(),a("el-upload",{staticStyle:{float:"right","margin-right":"15px"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"export",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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"},on:{click:t.handleRecipeRecord}},[t._v("配方记录")])],1),a("div",{ref:"table",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,height:t.myheight},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"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"90px",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:"98%",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","string"===typeof a?a.trim():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.tcode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"98%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},disabled:"",maxlength:"32"},model:{value:e.row.tcode,callback:function(a){t.$set(e.row,"tcode","string"===typeof a?a.trim():a)},expression:"scope.row.tcode"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"配方颜色","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-color-picker",{staticStyle:{"vertical-align":"middle"},attrs:{size:"mini",predefine:t.predefineColors,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":"130px",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":"130px",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":"90px",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":"90px",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":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.version))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"90px",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:"150","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&&0==t.ispastureuse?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-tickets"},on:{click:function(e){return t.handleRowRecipeRecord(i)}}}):t._e(),i.NoEdit&&t.isRoleEdit&&0==t.ispastureuse?a("span",{staticClass:"centerSpan",attrs:{icon:"el-icon-data-line"}},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e(),i.NoEdit&&t.isRoleEdit&&0==t.ispastureuse?a("span",{staticClass:"centerSpan",attrs:{icon:"el-icon-data-line"}},[t._v("|")]):t._e(),i.NoEdit&&t.isRoleEdit&&0==t.ispastureuse?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-data-line"},on:{click:function(e){return t.handleFormulationEvaluation(i)}}}):t._e()]}}])})],1)],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","margin-bottom":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()]),t.isDetail?a("div",{ref:"detail",staticClass:"detail"},[t._m(1),a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate2}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete2}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-takeaway-box"},on:{click:t.handleSyntheticPremix}},[t._v("合成预混料")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{float:"left","margin-left":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),a("div",{ref:"selectInput2",staticClass:"filter-item selectInput",staticStyle:{margin:"0 10px"}},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"},model:{value:t.table2.getdataListParm.parammaps.all,callback:function(e){t.$set(t.table2.getdataListParm.parammaps,"all",e)},expression:"table2.getdataListParm.parammaps.all"}}),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"},[a("li",[a("a",{staticStyle:{width:"130px"}},[t._v("饲料名称")]),a("el-select",{staticStyle:{width:"190px"},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:"190px"},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:"190px"},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:"190px"},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:"190px"},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:"190px"},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:"downminCancel",on:{click:function(e){t.arrowUp2=!1,t.arrowDown2=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniPrimary",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("重置")]),a("el-button",{staticClass:"hide",on:{click:t.handleCloseTable2}},[t._v("隐藏")]),t.isEnlarge?a("el-button",{staticClass:"hide2",on:{click:t.handleEnlarge}},[t._v("放大")]):a("el-button",{staticClass:"hide2",on:{click:t.handleNarrow}},[t._v("缩小")])],1),t.isEnlarge?a("div",{staticClass:"table2"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table2.listLoading,expression:"table2.listLoading"}],key:t.table2.tableKey,ref:"table2",staticClass:"elTable",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":"","max-height":220,"summary-method":t.getSummaries},on:{"selection-change":t.handleSelectionChange2,"cell-dblclick":t.celldblclick}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"饲料组","min-width":"120px",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":"120px",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",width:"120px",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.001",type:"number"},model:{value:e.row.fweight,callback:function(a){t.$set(e.row,"fweight",a)},expression:"scope.row.fweight"}}):t._e()]}}],null,!1,2653308835)}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"80px",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":"80px",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":"70px",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:"120","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData2(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel2(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate2(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete2(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData2(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel2(i)}}}):t._e(),parseInt(i.preftid)>0&&0==i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),parseInt(i.preftid)>0&&0==i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-connection"},on:{click:function(e){return t.handleSplitPremix(i)}}}):t._e()]}}],null,!1,383669164)})],1)],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,ref:"mytable2",staticClass:"elTable",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":"","max-height":t.enlargeHeight,"summary-method":t.getSummaries},on:{"selection-change":t.handleSelectionChange2,"cell-dblclick":t.celldblclick}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"饲料组","min-width":"120px",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":"120px",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",width:"120px",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":"80px",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":"80px",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":"70px",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:"120","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData2(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel2(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate2(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete2(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData2(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel2(i)}}}):t._e(),parseInt(i.preftid)>0&&0==i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),parseInt(i.preftid)>0&&0==i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-connection"},on:{click:function(e){return t.handleSplitPremix(i)}}}):t._e()]}}],null,!1,383669164)})],1)],1)]):t._e()]),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.template.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"dialogMinHeight",staticStyle:{"overflow-y":"auto","margin-bottom":"0px","overflow-x":"hidden"}},[a("div",{ref:"templateDialog",staticClass:"templateDialog"},[a("div",{staticClass:"recipeTemplate"},[a("p",[t._v("配方模板表")])]),a("div",{staticClass:"operation1"},[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"}})],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:{"margin-left":"10px",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:"downminCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniPrimary",on:{click:t.handleDialogSearch}},[t._v("搜索")])],1)])]):t._e()],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:t.handleDialogSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},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,height:t.myheight2,"cell-style":t.cellStyle},on:{"row-click":t.tableRowClickDialog}},["RecipeRecord"==t.template.dialogStatus?a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}):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":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tcode))])]}}])}),a("el-table-column",{attrs:{label:"配方颜色","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-color-picker",{staticStyle:{"vertical-align":"middle"},attrs:{size:"mini",predefine:t.predefineColors},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":"110px",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":"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":"90px",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":"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.version))])]}}])}),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.versiontime))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"90px",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",{ref:"detailDialog2",staticClass:"detailDialog",staticStyle:{"margin-top":"30px",height:"200px","overflow-y":"auto","overflow-x":"hidden"},attrs:{id:"detailDialog2"}},[a("div",{staticClass:"recipeTemplate"},[a("p",[t._v("配方详情表")])]),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"},[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:"downminCancel",on:{click:function(e){t.arrowUp2=!1,t.arrowDown2=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniPrimary",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("重置")]),a("el-button",{staticClass:"hide",on:{click:t.handleDialogCloseTable2}},[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:{id:"templateTable2","element-loading-text":"给我一点时间",data:t.template.table2.list,border:"",fit:"","highlight-current-row":"","summary-method":t.getTemplateTable2Summaries,"show-summary":"","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)",prop:"fweight","min-width":"200px",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",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.template.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.detail.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",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:{"vertical-align":"middle"},attrs:{size:"mini",predefine:t.predefineColors,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",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.detail.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.syntheticPremixData()}}},[t._v("确认")])],1)])],2),a("el-dialog",{attrs:{title:t.textMap[t.historyRecord.dialogStatus],"destroy-on-close":!0,visible:t.historyRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.historyRecord,"dialogFormVisible",e)}}},[a("div",{staticClass:"historyRecord"},[a("keep-alive",[a(t.historyRecord.myComponent,{ref:"historyRecord",tag:"component"})],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.historyRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)]),a("el-dialog",{attrs:{title:t.textMap[t.rowRecipeRecord.dialogStatus],"destroy-on-close":!0,visible:t.rowRecipeRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.rowRecipeRecord,"dialogFormVisible",e)}}},[a("div",{staticClass:"rowRecipeRecord"},[a("div",{staticClass:"search"},[a("el-date-picker",{ref:"inputDatetime",staticClass:"filter-item inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.rowRecipeRecord.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.rowRecipeRecord.getdataListParm.parammaps,"inputDatetime",e)},expression:"rowRecipeRecord.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleRowRecipeRecordSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.rowRecipeRecord.listLoading,expression:"rowRecipeRecord.listLoading"}],key:t.rowRecipeRecord.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.rowRecipeRecord.list,border:"","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.rowRecipeRecord.pageNum-1)*t.rowRecipeRecord.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"修改时间",width:"100px",align:"center",prop:"datetime1"}}),a("el-table-column",{attrs:{label:"饲料名称(单位:kg)","min-width":"800px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.arrList,(function(e){return a("div",{key:e.name,staticClass:"list-group-item2 item",staticStyle:{width:"150px",float:"left",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",margin:"5px 5px",padding:"0",height:"30px"}},["red"==e.change?a("el-tooltip",{attrs:{placement:"top","open-delay":1e3}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.name)+"( "+t._s(e.weight)+" / "+t._s(e.Eweight)+" )")]),a("span",{staticStyle:{display:"block",height:"30px","line-height":"30px"},style:{color:e.change}},[t._v(" "+t._s(e.name)+"( "+t._s(e.weight)+" / "+t._s(e.Eweight)+" ) ")])]):a("el-tooltip",{attrs:{placement:"top","open-delay":1e3}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.name)+"( "+t._s(e.weight)+")")]),a("span",{staticStyle:{display:"block",height:"30px","line-height":"30px"},style:{color:e.change}},[t._v(" "+t._s(e.name)+"( "+t._s(e.weight)+") ")])])],1)}))}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.rowRecipeRecord.total>=0,expression:"rowRecipeRecord.total>=0"}],attrs:{total:t.rowRecipeRecord.total,page:t.rowRecipeRecord.getdataListParm.offset,limit:t.rowRecipeRecord.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.rowRecipeRecord.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.rowRecipeRecord.getdataListParm,"pagecount",e)},pagination:function(e){return t.getRowRecipeRecordList()}}})],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.rowRecipeRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"recipeTemplate"},[a("p",[t._v("配方模板表")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"recipeTemplate"},[a("p",[t._v("配方详情表")])])}],r=(a("d3b7"),a("159b"),a("d81d"),a("a9e3"),a("b680"),a("7039"),a("fb6a"),a("7db0"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("b0c0"),a("a434"),a("4e82"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("2934")),l=a("aa47"),n=a("5c96"),o=a("a78e"),c=a.n(o),d=a("ed08"),p=a("bc3a"),m=a.n(p),u=a("5f87"),h=a("333d"),b={name:"RecipeTemplate",components:{Pagination:h["a"]},data:function(){return{dialogFull:!1,predefineColors:["#E57373","#F06292","#BA68C8","#9575CD","#7986CB","#64B5F6","#4FC3F7","#4DD0E1","#4DB6AC","#81C784","#AED581","#DCE775","#FFF176","#FFD54F","#FFB74D","#FF8A65","#A1887F","#E0E0E0","#90A4AE"],isRoleEdit:[],myheight:document.documentElement.clientHeight-265,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"}],arrowDown:!0,arrowUp:!1,ispastureuse:c.a.get("ispastureuse"),table:{getdataListParm:{name:"getFTList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),tname:"",ccid:"",ccname:"",fttypeid:"",fttype:"",remark:"",enable:"",source:""}},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:{getDryweightParm:{name:"getFTdryweight",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",ftid:""}},dryweight:"",getdataListParm:{name:"getFTdetailList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),fname:"",feedgroup:"",fweight:"",autosecondname:"",islockcount:"",sort:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{},updateList:{}},isDetailDialog:!1,template:{dialogFormVisible:!1,dialogStatus:"",table:{getdataListParm:{name:"getFTListDate",page:1,offset:1,pagecount:"",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")}}},isOrder:!0,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:"合成预混料",historyRecord:"历史记录",detail:"饲料详情",rowRecipeRecordTxt:"配方修改记录"},requestParam:{},requestParam2:{},download:{getdataListParm:{name:"getFTList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),tname:"",ccid:"",ccname:"",fttypeid:"",fttype:"",remark:"",enable:""}},list:[]},historyRecord:{dialogStatus:"",dialogFormVisible:!1},isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},dropState:!1,myheight2:0,height:0,rowRecipeRecord:{dialogStatus:"",dialogFormVisible:!1,getdataListParm:{name:"getFitHistory1",name1:"getFitHistory2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",pastureid:"",fitid:""}},tableKey:0,total:0,listLoading:!0,list:[]},isEnlarge:!0,enlargeHeight:document.documentElement.clientHeight-85-165+50,getTcodeParm:{name:"getTcode",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",fttypeid:""}},sourceList:[{id:"0",name:"自定义"},{id:"1",name:"集团下发未调整"},{id:"2",name:"集团下发有调整"},{id:"3",name:"导入"}]}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkfttype,checkbigcowclass,checkFeed,insertFTUpload,insertFTdetailUpload",importParams:"配方名称,牲畜类别,配方类型,备注,饲料组,饲料名称,重量(kg),搅拌延时(min),是否锁定牛头数比例",sheetname:"Sheet1",pastureid:c.a.get("pastureid"),dateParams:"",requiredParams:"配方名称,牲畜类别,配方类型,饲料名称,重量(kg),搅拌延时(min),是否锁定牛头数比例",numParams:"重量(kg),搅拌延时(min)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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.getButtons(),this.getDownList(),this.getIsLockCount()},methods:{getButtons:function(){var t="FormulationEvaluation",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getSummaries:function(t){var e=this,a=t.columns,i=t.data,s=[];return a.forEach((function(t,a){if(0!==a){if(void 0!==t.property){var r=i.map((function(e){return Number(e[t.property])}));r.every((function(t){return isNaN(t)}))?s[a]="":(s[a]=r.reduce((function(t,e){var a=Number(e);return isNaN(a)?t:t+e}),0),s[a]=s[a].toFixed(3)+"(干物质量:"+e.table2.dryweight+")")}}else s[a]="合计"})),s},getDryWeight:function(){var t=this;Object(r["c"])(this.table2.getDryweightParm).then((function(e){void 0!==e.data.list[0].dryweight?t.table2.dryweight=e.data.list[0].dryweight:t.table2.dryweight=""}))},getTemplateTable2Summaries:function(t){var e=this,a=t.columns,i=t.data,s=[];return a.forEach((function(t,a){if(0!==a){var r=i.map((function(e){return Number(e[t.property])}));r.every((function(t){return isNaN(t)}))?s[a]="":(s[a]=r.reduce((function(t,e){var a=Number(e);return isNaN(a)?t:t+e}),0),s[a]+="(干物质量:"+e.template.table2.getdataListParm.parammaps.dryweight+")")}else s[a]="合计"})),s},getDownList:function(){var t=this;Object(r["d"])(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["c"])(this.table.getdataListParm).then((function(e){if(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=[],t.isDetail=!1;setTimeout((function(){t.table.listLoading=!1}),100)}))},getList3:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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=[],t.isDetail=!1;setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){var t=this;this.table.getdataListParm.offset=1,this.getList(),this.table.getdataListParm.parammaps.all="";var e={};e.tname=this.table.getdataListParm.parammaps.tname,e.remark=this.table.getdataListParm.parammaps.remark,Object.getOwnPropertyNames(e).forEach((function(a){""!==e[a]&&(t.table.getdataListParm.parammaps.all+=e[a]+"/")})),"/"==this.table.getdataListParm.parammaps.all.charAt(this.table.getdataListParm.parammaps.all.length-1)&&(this.table.getdataListParm.parammaps.all=this.table.getdataListParm.parammaps.all.slice(0,this.table.getdataListParm.parammaps.all.length-1)),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){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.table.getdataListParm.parammaps.all="",this.getList()},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,tname:"",tcode:"",tcolor:"#ccc",ccid:"",ccname:"",fttype:"",fttypeid:"",source:"自定义",remark:""}),this.table.temp=this.table.list[0],this.getTcodeList()},getTcodeList:function(){var t=this;this.getTcodeParm.parammaps.pastureid=c.a.get("pastureid"),Object(r["c"])(this.getTcodeParm).then((function(e){null!==e.data.list?t.table.temp.tcode=e.data.list[0].tcode:t.table.temp.tcode=""}))},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(this.table.temp.tname=t.tname,this.table.temp.tcode=t.tcode,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.tcode))return this.$message({type:"error",message:"配方编码不可输入特殊字符",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam2.name="checkNumber",this.requestParam2.parammaps={},this.requestParam2.parammaps.number=this.table.temp.tcode,Object(r["c"])(this.requestParam2).then((function(t){"输入非法字符"!==t.data.list[0].vmsg?e.saveCreateData():e.$notify({type:"error",message:"配方编码不可输入特殊字符",duration:2e3})}))},saveCreateData:function(){var t=this;this.requestParam.name="insertFT",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(e){if("fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList();else{var a=new RegExp("Duplicate entry :feedtemplet.tCode");a.test(e.data)?t.$notify({type:"error",message:"配方编码不可重复,请重新录入",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))},createCancel:function(t){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,void 0!==t.ccname&&(t.ccid=String(t.ccid)),this.table.temp.ccname=t.ccname,t.fttypeid=String(t.fttypeid),this.table.temp.fttype=t.fttype},updateData:function(t){var e=this;if(this.table.temp.tname=t.tname,this.table.temp.tcode=t.tcode,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.tcode))return this.$message({type:"error",message:"配方编码不可输入特殊字符",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam2.name="checkNumber",this.requestParam2.parammaps={},this.requestParam2.parammaps.number=this.table.temp.tcode,Object(r["c"])(this.requestParam2).then((function(t){"输入非法字符"!==t.data.list[0].vmsg?e.saveUpdateData():e.$notify({type:"error",message:"配方编码不可输入特殊字符",duration:2e3})}))},saveUpdateData:function(){var t=this;this.requestParam.name="updateFT",this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(e){if("fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList();else{var a=new RegExp("Duplicate entry :feedtemplet.tCode");a.test(e.data)?t.$notify({type:"error",message:"配方编码不可重复,请重新录入",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;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){"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.getList(),e.isDetail=!1)}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(t){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择配方",duration:2e3}):n["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:"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){"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(){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){"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(){this.template.dialogStatus="RecipeRecord",this.dialogFull=!1,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,this.myheight2=document.documentElement.clientHeight-85-265},getDateList:function(){var t=this;Object(r["c"])(this.template.getdataDateParm).then((function(e){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["c"])(this.template.table.getdataListParm).then((function(e){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=[],t.template.table2.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){this.isDetailDialog=!0,this.template.table2.getdataListParm.parammaps.date=this.template.table.getdataListParm.parammaps.date,this.template.table2.getdataListParm.parammaps.version=t.version,this.template.table2.getdataListParm.parammaps.ftid=t.id,this.template.table2.getdataListParm.parammaps.dryweight=t.dryweight,this.myheight2=document.documentElement.clientHeight-85-265-185,this.getDialogList(),this.getDownList()},getDialogList:function(){var t=this;this.template.table2.listLoading=!0,Object(r["c"])(this.template.table2.getdataListParm).then((function(e){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(){document.querySelector("#detailDialog2").scrollIntoView()})),setTimeout((function(){t.template.table2.listLoading=!1}),100)}))},handleDialogSearch2:function(){this.arrowDown2=!0,this.arrowUp2=!1,this.template.table2.getdataListParm.offset=1,this.getDialogList2()},handleDialogRefresh2:function(){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["c"])(this.template.table2.getdataListParm).then((function(e){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)}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/配方计划/配方模板导入模板.xlsx";m()({method:"GET",url:i,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="配方模板导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.name="downloadFTList",this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)0==t.data.list[a].islockcount?e.$set(t.data.list[a],"islockcount","否"):e.$set(t.data.list[a],"islockcount","是"),0==t.data.list[a].enable?e.$set(t.data.list[a],"enable","否"):e.$set(t.data.list[a],"enable","是");e.download.list=t.data.list}else e.download.list=[];var i=[{tHeader:["配方名称","配方编码","牲畜类别","配方类型","来源","备注","是否启用","饲料组","饲料名称","重量(kg)","搅拌延时(min)","是否锁定牛头数比例","顺序"],filterVal:["tname","tcode","ccname","fttype","source","remark","enable","feedgroup","fname","fweight","autosecond","islockcount","sort"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(d["c"])(i,"配方模板",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;if(this.getList(),"ok"===t.msg)this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["配方名称","牲畜类别","配方类型","备注","饲料组","饲料名称","重量(kg)","搅拌延时(min)","是否锁定牛头数比例","错误信息"],r=["配方名称","牲畜类别","配方类型","备注","饲料组","饲料名称","重量(kg)","搅拌延时(min)","是否锁定牛头数比例","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"配方模板导入报错信息",autoWidth:!0,bookType:"xlsx"})})));else{var s=new RegExp("Duplicate entry :feedtemplet_tname");if(s.test(t.data))return this.$notify({type:"error",message:"配方名称不可重复,请重新录入",duration:2e3}),!1;this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})}},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(d["d"])(e[t]):e[t]}))}))},changeDate:function(){this.getTemplateDialogList()},handleApplication:function(){var t=this;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){for(var i=0;i<this.table.list.length;i++)if(1==this.table.list[i].Edit)return!1;0==this.isOrder?this.$message({type:"error",message:"请保存或取消当前更改顺序操作",duration:2e3}):"操作"!==e.label&&(this.isDetail=!0,this.table2.getdataListParm.parammaps.ftid=t.id,this.table2.getdataListParm.parammaps.fttypeid=t.fttypeid,this.table2.getdataListParm.parammaps.dryweight=t.dryweight,"预混配方"==t.fttype?this.requestParams[2].parammaps.type="1":this.requestParams[2].parammaps.type="",this.myheight=document.documentElement.clientHeight-85-265-185,this.getList2(),this.getDownList())},handleCloseTable2:function(){this.isDetail=!1,this.myheight="",this.isEnlarge=!0},handleDialogCloseTable2:function(){this.isDetailDialog=!1,this.myheight2=document.documentElement.clientHeight-85-265},getIsLockCount:function(){var t=this;Object(r["c"])(this.lockCount.getdataListParm).then((function(e){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["c"])(this.table2.getdataListParm).then((function(e){if(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.getDryweightParm.parammaps=t.table2.getdataListParm.parammaps,t.getDryWeight(),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)}))},rowDrop:function(){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&&1!=e.isOrder||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),void 0===e.table2.list[a-1]){for(var r=0;r<e.table2.list.length;r++)e.table2.list[r].sort=parseInt(e.table2.list[r].sort)+1;s.sort=0,s.feedgroup=s.fname}else if(s.sort==e.table2.list[a-1].sort)s.sort=e.table2.list[a-1].sort;else if(void 0==e.table2.list[a+1])s.sort=parseInt(e.table2.list[a-1].sort)+1,s.feedgroup=s.fname;else if(s.sort==e.table2.list[a+1].sort)s.sort,e.table2.list[a+1].sort;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;else if(void 0!==e.table2.list[a-1].sort&&void 0!==e.table2.list[a+1].sort){if(parseInt(e.table2.list[a-1].sort)+1==e.table2.list[a+1].sort)for(var l=a;l<e.table2.list.length;l++)e.table2.list[l].sort=parseInt(e.table2.list[l].sort)+1;s.sort=parseInt(e.table2.list[a-1].sort)+1,s.feedgroup=s.fname}}})},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},saveChangeOrder:function(){var t=this;this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:this.table2.list}},this.requestParam.data[0].children=[],this.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"])(this.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.getList2(),t.getList3(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.getList2(),this.isOrder=!0},handleSearch2:function(){var t=this;this.arrowDown2=!0,this.arrowUp2=!1,this.table2.getdataListParm.offset=1,this.table2.getdataListParm.parammaps.all="";var e={};e.fname=this.table2.getdataListParm.parammaps.fname,e.feedgroup=this.table2.getdataListParm.parammaps.feedgroup,e.fweight=this.table2.getdataListParm.parammaps.fweight,e.autosecondname=this.table2.getdataListParm.parammaps.autosecondname,""!==this.table2.getdataListParm.parammaps.islockcount&&(0==this.table2.getdataListParm.parammaps.islockcount?this.table2.getdataListParm.parammaps.islockcount="否":this.table2.getdataListParm.parammaps.islockcount="是"),e.islockcount=this.table2.getdataListParm.parammaps.islockcount,e.sort=this.table2.getdataListParm.parammaps.sort,Object.getOwnPropertyNames(e).forEach((function(a){""!==e[a]&&(t.table2.getdataListParm.parammaps.all+=e[a]+"/")})),"/"==this.table2.getdataListParm.parammaps.all.charAt(this.table2.getdataListParm.parammaps.all.length-1)&&(this.table2.getdataListParm.parammaps.all=this.table2.getdataListParm.parammaps.all.slice(0,this.table2.getdataListParm.parammaps.all.length-1)),this.getList2()},handleRefresh2:function(){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.parammaps.all="",this.table2.getdataListParm.offset=1,this.getList2()},handleCreate2:function(){for(var t=0;t<this.table2.list.length;t++)if(!0===this.table2.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;if(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})},changeFname:function(t,e){if(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){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;break}1==r&&(e.feedgroup=this.table2.temp.fname)}}},bort: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(this.table2.list[a].id!==t.id){t.isGroupDisabled=!0,t.feedgroup=this.table2.list[a].feedgroup;break}}else t.isGroupDisabled=!0,t.feedgroup=t.fname;else t.feedgroup=t.fname},createData2:function(t){var e=this;if(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: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;if(this.table2.temp.fweight=Object(r["k"])(this.table2.temp.fweight,3),t.fweight=Object(r["k"])(t.fweight,3),0==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:String(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,status:0}},this.requestParam.data[2]={name:"updateftversion",type:"e",parammaps:{pastureid:this.table2.getdataListParm.parammaps.pastureid,id:this.table2.getdataListParm.parammaps.ftid}},this.requestParam.data[3]={name:"insertFitHistory",type:"e",parammaps:{weight:t.fweight,preftid:this.table2.temp.preftid,pastureid:this.table2.getdataListParm.parammaps.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,dateTime:Object(d["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),slid:0,fid:t.fid}};var i="authdata/ftdetail/edit",s=this.requestParam;Object(r["n"])(i,s).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList2(),e.getList3()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},createCancel2:function(t){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){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,t.Edit=!0,t.NoEdit=!1,t.isCreate=!1,t.isUpdate=!1,t.isUpdateSave=!0,!1;this.table2.updateList=Object.assign({},t)},updateData2:function(t){var e=this;if(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;if(this.table2.temp.fweight=Object(r["k"])(this.table2.temp.fweight,3),t.fweight=Object(r["k"])(t.fweight,3),0==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:"insertFitHistory",type:"e",parammaps:{pastureid:t.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,weight:String(t.fweight),preftid:this.table2.temp.preftid,dateTime:Object(d["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),slid:this.table2.temp.id,fid:t.fid}},this.requestParam.data[1]={name:"updateFTdetail",type:"e",parammaps:{pastureid:t.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,fid:t.fid,fname:this.table2.temp.fname,fweight:String(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[2]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:t.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,type:this.table2.getdataListParm.parammaps.fttypeid}},this.requestParam.data[3]={name:"updateFTdetailbySort",type:"e",parammaps:{pastureid:t.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,sort:t.sort,feedgroup:t.feedgroup}},this.requestParam.data[4]={name:"updateFTdetailGroup",type:"e",parammaps:{pastureid:this.table2.getdataListParm.parammaps.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid}};var i="authdata/ftdetail/edit",s=this.requestParam;Object(r["n"])(i,s).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList2(),e.getList3(),e.dropState=!1):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel2:function(t){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;n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.table2.list.length>1?(e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertFitHistory",type:"e",parammaps:{pastureid:t.pastureid,ftid:e.table2.getdataListParm.parammaps.ftid,weight:0,preftid:t.preftid,dateTime:Object(d["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),slid:t.id,fid:t.fid}},e.requestParam.data[1]={name:"deleteFTdetail",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[2]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:t.pastureid,ftid:e.table2.getdataListParm.parammaps.ftid,type:e.table2.getdataListParm.parammaps.fttypeid,status:1}},e.requestParam.data[3]={name:"updateftversion",type:"e",parammaps:{pastureid:e.table2.getdataListParm.parammaps.pastureid,id:e.table2.getdataListParm.parammaps.ftid}}):(e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertFitHistory",type:"e",parammaps:{pastureid:t.pastureid,ftid:e.table2.getdataListParm.parammaps.ftid,weight:0,preftid:t.preftid,dateTime:Object(d["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),slid:t.id,fid:t.fid}},e.requestParam.data[1]={name:"checkdeleteFT",type:"v",parammaps:{pastureid:e.table2.getdataListParm.parammaps.pastureid,id:e.table2.getdataListParm.parammaps.ftid}},e.requestParam.data[2]={name:"deleteFTdetail",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[3]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:t.pastureid,ftid:e.table2.getdataListParm.parammaps.ftid,type:e.table2.getdataListParm.parammaps.fttypeid,status:1}},e.requestParam.data[4]={name:"updateftversion",type:"e",parammaps:{pastureid:e.table2.getdataListParm.parammaps.pastureid,id:e.table2.getdataListParm.parammaps.ftid}});var a="authdata/ftdetail/edit",i=e.requestParam;Object(r["n"])(a,i).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),e.getList2(),e.getList3()):e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange2:function(t){this.selectList2=t},celldblclick:function(t,e,a,i){this.handleUpdate2(t)},handleDelete2:function(){var t=this;0==this.selectList2.length?this.$message({type:"error",message:"请选择配方详情",duration:2e3}):n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.table2.list.length-t.selectList2.length>0?(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:"insertFitHistory",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",ftid:"@insertSpotList.ftid",weight:0,preftid:"@insertSpotList.preftid",dateTime:Object(d["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),slid:"@insertSpotList.id",fid:"@insertSpotList.fid"}},t.requestParam.data[0].children[1]={name:"deleteFTdetail",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[1]={name:"updateftversion",type:"e",parammaps:{pastureid:t.table2.getdataListParm.parammaps.pastureid,id:t.table2.getdataListParm.parammaps.ftid}},t.requestParam.data[2]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:t.table2.getdataListParm.parammaps.pastureid,ftid:t.table2.getdataListParm.parammaps.ftid,type:t.table2.getdataListParm.parammaps.fttypeid,status:1}}):(t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"checkdeleteFT",type:"v",parammaps:{pastureid:t.table2.getdataListParm.parammaps.pastureid,id:t.table2.getdataListParm.parammaps.ftid}},t.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:t.selectList2}},t.requestParam.data[1].children=[],t.requestParam.data[1].children[0]={name:"deleteFTdetail",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[2]={name:"updateftversion",type:"e",parammaps:{pastureid:t.table2.getdataListParm.parammaps.pastureid,id:t.table2.getdataListParm.parammaps.ftid}},t.requestParam.data[3]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:t.table2.getdataListParm.parammaps.pastureid,ftid:t.table2.getdataListParm.parammaps.ftid,type:t.table2.getdataListParm.parammaps.fttypeid,status:1}});var e="authdata/ftdetail/edit",a=t.requestParam;Object(r["n"])(e,a).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList2(),t.getList3()):t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3})}))}))},handleSplitPremix:function(t){var e=this;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(),e.getList3())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSyntheticPremix:function(){var t=this;if(this.dialogFull=!1,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["c"])(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(3)==(a[o].fweight/i).toFixed(3)&&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["c"])(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(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(3),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("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.getList3(),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(3),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),null==this.detail.list2[0].tcolor&&(this.detail.list2[0].tcolor="#CCCCCC"),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("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.getList3(),t.getList2(),t.getDownList()}))}},handleFormulationEvaluation:function(t){this.$router.push({name:"FormulationEvaluation",params:{tname:t.tname,ftid:t.id,pastureid:t.pastureid,startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date("startTime"),new Date("startTime")],stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}")}})},handleRowRecipeRecord:function(t){this.rowRecipeRecord.temp=Object.assign({},t),this.rowRecipeRecord.dialogFormVisible=!0,this.textMap.rowRecipeRecordTxt="配方修改记录——配方:"+t.tname,this.rowRecipeRecord.dialogStatus="rowRecipeRecordTxt",this.rowRecipeRecord.getdataListParm.parammaps.pastureid=t.pastureid,this.rowRecipeRecord.getdataListParm.parammaps.fitid=t.id,this.rowRecipeRecord.getdataListParm.parammaps.inputDatetime=[],this.getRowRecipeRecordList()},getRowRecipeRecordList:function(){var t=this;this.rowRecipeRecord.listLoading=!0,this.rowRecipeRecord.getdataListParm.parammaps.fitid=this.rowRecipeRecord.temp.id,null==this.rowRecipeRecord.getdataListParm.parammaps.inputDatetime?(this.rowRecipeRecord.getdataListParm.parammaps.inputDatetime="",this.rowRecipeRecord.getdataListParm.parammaps.startTime="",this.rowRecipeRecord.getdataListParm.parammaps.stopTime=""):(this.rowRecipeRecord.getdataListParm.parammaps.startTime=this.rowRecipeRecord.getdataListParm.parammaps.inputDatetime[0],this.rowRecipeRecord.getdataListParm.parammaps.stopTime=this.rowRecipeRecord.getdataListParm.parammaps.inputDatetime[1]);var e="authdata/GetArrList",a=this.rowRecipeRecord.getdataListParm;Object(r["n"])(e,a).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)null==e.data.list[a].arrList&&t.$set(e.data.list[a],"arrList",[]);t.rowRecipeRecord.list=e.data.list,t.rowRecipeRecord.pageNum=e.data.pageNum,t.rowRecipeRecord.pageSize=e.data.pageSize,t.rowRecipeRecord.total=e.data.total}else t.rowRecipeRecord.list=[],t.rowRecipeRecord.total=0;setTimeout((function(){t.rowRecipeRecord.listLoading=!1}),100)}))},handleRowRecipeRecordSearch:function(){this.getRowRecipeRecordList()},handleEnlarge:function(){var t=(document.documentElement.clientHeight-165+50).toString()+"px",e="-"+this.$refs.template.offsetHeight.toString()+"px";this.isEnlarge=!1,this.$refs.detail.style.top=e,this.$refs.detail.style.height=t,this.$refs.appContainer.style.height=t,this.$refs.table2.style.height=0,this.$refs.myContainer.style.posiiton="relative",this.$refs.detail.style.posiiton="absolute"},handleNarrow:function(){this.isEnlarge=!0,this.$refs.detail.style.top=0,this.$refs.detail.style.height="300px",this.$refs.myContainer.style.posiiton="",this.$refs.detail.style.posiiton="",this.$refs.detail.style.zIndex=""},handleTakeEffect:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):n["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否生效?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=[],a=0;a<t.selectList.length;a++)e.push(t.selectList[a].id);var i={parammaps:{}};i.parammaps.enable=1,i.parammaps.id=e.toString();var s="authdata/feedtemplet/enable";Object(r["n"])(s,i).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())}))}))},handleDisable:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):n["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否禁用?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=[],a=0;a<t.selectList.length;a++)e.push(t.selectList[a].id);var i={parammaps:{}};i.parammaps.enable=0,i.parammaps.id=e.toString();var s="authdata/feedtemplet/enable";Object(r["n"])(s,i).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())}))}))}}},g=b,f=(a("bece"),a("d0e0"),a("2877")),w=Object(f["a"])(g,i,s,!1,null,"3dd08cc4",null);e["default"]=w.exports},"04b7":function(t,e,a){},"04e6":function(t,e,a){},"057d":function(t,e,a){"use strict";a("5e6a")},"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},"0627":function(t,e,a){"use strict";a("9f89")},"0628":function(t,e,a){},"0658":function(t,e,a){},"06ba":function(t,e,a){},"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)}},p={changeSetting:function(t,e){var a=t.commit;a("CHANGE_SETTING",e)}};e["default"]={namespaced:!0,state:c,mutations:d,actions:p}},"07bb":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAIXUlEQVR4Xu2de4xcVR3HP2dm3RoC1RgE47NGIJj4QtAImAhi1K2xYkrXYgS7O3d25852QY2g8g/bhJGGRxG6nTs7c2fXEiIKoYIabbdGMSqpRAwmYrS+iCVVMDE1ENtsO/eYM7OsLDu7M+e+5tzde//c/J7fz5w755x75q4gvYxSQBhVTVoMKRDDPgQpkBSIYQoYVk46QlIghilgWDnpCEmBRKzA1MiryGQuaGbpO3GIoW+eiDhjqOFXzwipjW5EZDeBHF1QSPAYpxo5Rqt/CFW1CIMlH8i0/REasogQn26vkxjHKk9GqGGooZMLxC1cCqIIfHZFRQR1co4VqmoRBksekOmx99LwighyXeryKJZzeZe2PTdLDpBa8e0IrwjCBrIayqVANMTqbDpT2MApoUaEAnF6Z4clFikQH6ItdaldfzZirohEwTgzQMwUSADx4L7x9Rw/qWZN6gv7TYFitZxTIL5EnNjSzxtfa4NUIM7zFaO9UwpEW8xpewQPBeLd2r6dHVIgnTWat3AL18yvJT7QtY++YQqko2bTxavwmremONYHKZBlgbj2J1ojQm7sCC08gxTIEi2nCx/Ga86aNoenc9eRUiALUlWLl5CRakH3ua7lC98wBYJbuAAyagqbD19f7YhrGMjUyPn09dnNL2xBn7Z00TisQSDu2FvAU7cm9T1xRjS6+o66hoBMjZxGX+aG5sxJcpZvyaJ1XCNA3MJWEDcCrefX5l5rAEi9cDNSTJjLYFFlRxGySr9X5ZrqP0yvWf8BVc0eQTBlemPL1NeCc8qbYbT6dxN70Afi2r8GLjSxGc2aWnAa2fsZ2XNY0zcycz0ge4qns04+H1k1vQvcgoN8mNzUb3tXBpo/R5gaeRvZ7J97WXAMuVtwRHY/w3t+FUO+RSn0RkhrK+SXcRfZw3xHgb1kOMCw87M46tADUitchhA/jaMw7RyCn4CcRnLJ/DMW7RAdHI6C/E4TzlBlFoEMO4GKtxqAvICUJfKVnQsCufYB4KNRCDYfU42cR4BZ1r/yAIN3HQ8rV9KB7KPRKDFa/c0iQeJdJ6mRMwscgJOzWPV/B4GTUCDiGTxZYsSpLGm+Zl+I4HvA64MI49P3WPOUi+RH5J2qnxgJBCKmycgSw85flzTsFs8B+Sc/QkTg8wT9ciPXVp7TiZ0kIL8DWcKqfHvFBuv2OJJ7dESIzFbwEDnnKp34SQGyC+ZKXd+fXfuHSGZBPokQ1wNX6ogSou0RLOfNOvFMB/ILECWs8n6dpri3cNaiW4VrRzJF7aomy9HSWMuY+NYhc0CJZ86+hYkJr6vGlzNyCht4hfhboBhBnBMPRPADPErknUNBdGj6tmZcNwOfDBzLb4DEAhE815zK5ivhfSFX7QIZHL9ahuKXUCD3zS/wwv9xZr3wLaS4OhRx/QRJGJDDSFEiX77XT69d+7j2Tiznq7S+T8rAQNe+QQ2TA0RMkqXEUPmfQXvW8neLXwZ5u5ZPEOMEAHkcQYmco7Y34r9q9hcQ3BVbYsOB3EL2eKlnb1eId9OxxdxgIINYzoOxfTLbJXJttSsc77ElM4GI27DKX+kpDJW8F/tcRgKR8nLylUd7DqQXhzSMBAK9v129+GlwbbU9f05sHw5DgXwfy9kUmwgrJXLtrwFfj60WQ4Go/m/Fcm6KTYjlEs0UX0dDtjtS+jSCZ5HyXBCvCa1Og4GoHrdhOXtDa1Y3UH34DLx1kwiuXeQquI6cs3vhbzX7HgTjuuHb2hsO5BiSgVB2cnXVcu0rEUwiecMi1+UmHDX7BgS36aZZYm84EFXvIbLrBhj6hjoQEP31wJZ+/nPmLgRjbZI9ieW0X5e0tu7VOeZgVwKAqAb3YjnbgnXahbc7dgWyMYkQ57e1FnKCXGXHspHCeNKYECBKg5uwnFu7kNWfiWurmZSaUa10PYXlvKOtQX30YmTmMX/JX+KVICAgxWby5X2Bm35pgHrxg0h5J/D+ruJKdpN3rlti69rqyOxlXcVYyShRQOAIGe/jDE/9PnDjKoDfNYbkRqQ4SPbEX5D970KKIY1XCK5cesKAqOPFB1n/rwEGH2z4hlLffhHy1E4QV/iOEZVj8oAoJcQkVtnfvN8tfhHkrqj0DBw3mUBU23Icq9L9+3Vntr8Tz9uBlMu8rzewlOEESC4QGkhvgPzUwY5KuMUieOoWFe1LCgRVPHk/GT6EFF8C1nes7eUGCQaiWnmKjBhguHykbePVsfPIeGrdsFVbGH2HJ7Ccixbc6vZ+JB/TDpNwIKrffVjO0tc41Yo5MnLHkq0PbYW6dli8RnHtB4AtXXu/aLgKgIBaQc+xF7vy9PzxVbWq/7y2GEEd1C0r54wS5Fn8qgASVEiT/FMgJtEw+9SJYUrFVM6qHSFCqIdGdyw7A1tJXzUhEF4OxMUxYfh/mlUG5BhS3EHff+8M5XCd+g8LGXJIqf7VxatjgbMqgEgOI7gdy3EjE61e2IwUCky0B68TDuTnwC4s5+HIQLw88MzouTQyn4HmP4jZEHrehAJ5CMnd5B0FpHdX3d6EJ7ciQvw9SaKACCqc9HZTCOl5SFgoa9vfimgMzm/RvCdQ2AQAeQHk3Uh+HKjRuJz7sqfR8AZBXg2iXzttAoBo95RohxSIYfhSICkQwxQwrJx0hKwlINXi+8jIxw1r2exyIh0h6qUuc+JZsxUwqrqjWM7iw90dytN7+YwKFuZRfaO0i6IY8QhWWevVUPpAVN1ucQZk9Ielo9AozpiatytVmj8gyrNa2EZGfGr+/Gs8W9lxiuk/1x8R4rvkyp0OerfN4B+I/4JTzxUUSIEY9vFIgaRADFPAsHLSEZICMUwBw8pJR0gKxDAFDCsnHSGGAfkfeHrBg5NgozcAAAAASUVORK5CYII="},"0818":function(t,e,a){},"084f":function(t,e,a){},"09bf":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="M454.724267 463.530667L80.896 296.823467a63.624533 63.624533 0 0 1-43.2128-59.118934c0-26.146133 17.2032-49.629867 43.2128-59.118933L454.656 11.8784a143.36 143.36 0 0 1 113.937067 0l373.896533 166.7072a63.624533 63.624533 0 0 1 43.144533 59.118933 63.624533 63.624533 0 0 1-43.144533 59.118934L568.661333 463.530667a143.36 143.36 0 0 1-113.937066 0z m57.002666 222.958933a187.050667 187.050667 0 0 1-78.506666-17.066667L66.56 498.551467a48.059733 48.059733 0 0 1-32.085333-39.936 46.6944 46.6944 0 0 1 23.688533-44.782934c16.384-9.557333 37.000533-9.557333 53.384533 0L477.866667 584.567467c21.2992 9.693867 46.216533 9.693867 67.584 0l366.728533-170.871467a53.589333 53.589333 0 0 1 53.384533 0.068267c16.384 9.557333 25.531733 26.8288 23.7568 44.782933a48.059733 48.059733 0 0 1-32.1536 39.936L590.097067 669.422933c-24.3712 11.264-51.2 17.066667-78.370134 17.066667z m0 200.977067c-27.2384 0-54.0672-5.802667-78.506666-17.066667L66.56 699.460267a48.059733 48.059733 0 0 1-32.085333-39.936 46.6944 46.6944 0 0 1 23.688533-44.782934c16.384-9.557333 37.000533-9.557333 53.384533-0.068266L477.866667 785.544533c21.2992 9.898667 46.2848 9.898667 67.584 0l366.728533-170.8032a53.589333 53.589333 0 0 1 53.384533 0c16.384 9.557333 25.531733 26.897067 23.7568 44.8512a48.059733 48.059733 0 0 1-32.1536 39.936l-367.138133 170.8032c-24.3712 11.332267-51.2 17.134933-78.370133 17.134934z" p-id="218082" /></symbol>'});l.a.add(n);e["default"]=n},"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),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 i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function s(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var l=r(),n=t-l,o=20,c=0;e="undefined"===typeof e?500:e;var d=function t(){c+=o;var r=Math.easeInOutQuad(c,l,n,e);s(r),c<e?i(t):a&&"function"===typeof a&&a()};d()}},"0a0c":function(t,e,a){},"0abe":function(t,e,a){},"0c5a":function(t,e,a){"use strict";a("467b")},"0d42":function(t,e,a){},"0def":function(t,e,a){},"0e75":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:"120px"},attrs:{placeholder:"牧场"},on:{change:t.changePasture},model:{value:t.table.getdataListParm.parammaps.pastureid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"pastureid",e)},expression:"table.getdataListParm.parammaps.pastureid"}},t._l(t.pastureList,(function(t){return a("el-option",{key:t.pastureid,attrs:{label:t.pasturename,value:t.pastureid}})})),1),a("el-date-picker",{staticStyle:{width:"150px"},attrs:{clearable:!1,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeTab2Date},model:{value:t.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"date",e)},expression:"table.getdataListParm.parammaps.date"}}),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}})],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.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:"400px"}},[a("el-table-column",{attrs:{label:"宾州筛","min-width":"70px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"第一层重量","min-width":"58px",align:"center",prop:"oneweight"}}),a("el-table-column",{attrs:{label:"第一层百分比","min-width":"58px",align:"center",prop:"onerate"}}),a("el-table-column",{attrs:{label:"第二层重量","min-width":"58px",align:"center",prop:"twoweight"}}),a("el-table-column",{attrs:{label:"第二层百分比","min-width":"58px",align:"center",prop:"tworate"}}),a("el-table-column",{attrs:{label:"第三层重量","min-width":"58px",align:"center",prop:"threeweight"}}),a("el-table-column",{attrs:{label:"第三层百分比","min-width":"58px",align:"center",prop:"threerate"}}),a("el-table-column",{attrs:{label:"第四层重量","min-width":"58px",align:"center",prop:"fourweight"}}),a("el-table-column",{attrs:{label:"第四层百分比","min-width":"58px",align:"center",prop:"fourrate"}}),a("el-table-column",{attrs:{label:"参考标准","min-width":"45px",align:"center",prop:"standard"}})],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.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:"400px"}},[a("el-table-column",{attrs:{label:"粪便筛","min-width":"70px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"第一层重量","min-width":"58px",align:"center",prop:"oneweight"}}),a("el-table-column",{attrs:{label:"第一层百分比","min-width":"58px",align:"center",prop:"onerate"}}),a("el-table-column",{attrs:{label:"第二层重量","min-width":"58px",align:"center",prop:"twoweight"}}),a("el-table-column",{attrs:{label:"第二层百分比","min-width":"58px",align:"center",prop:"tworate"}}),a("el-table-column",{attrs:{label:"第三层重量","min-width":"58px",align:"center",prop:"threeweight"}}),a("el-table-column",{attrs:{label:"第三层百分比","min-width":"58px",align:"center",prop:"threerate"}}),a("el-table-column",{attrs:{label:"参考标准","min-width":"70px",align:"center",prop:"standard"}})],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.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:"400px"}},[a("el-table-column",{attrs:{label:"栏舍","min-width":"58px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"抽查样本数","min-width":"58px",align:"center",prop:"sumcowcount"}}),a("el-table-column",{attrs:{label:"单产","min-width":"58px",align:"center",prop:"product"}}),a("el-table-column",{attrs:{label:"干物质采食量","min-width":"58px",align:"center",prop:"dryweight"}}),a("el-table-column",{attrs:{label:"泌乳天数","min-width":"58px",align:"center",prop:"avgdim"}}),a("el-table-column",{attrs:{label:"标准分数","min-width":"58px",align:"center",prop:"standardscore"}}),a("el-table-column",{attrs:{label:"2.75-分(数量、百分比)","min-width":"100px",align:"center",prop:"score25"}}),a("el-table-column",{attrs:{label:"2.75分(数量、百分比)","min-width":"100px",align:"center",prop:"score275"}}),a("el-table-column",{attrs:{label:"3分(数量、百分比)","min-width":"100px",align:"center",prop:"score3"}}),a("el-table-column",{attrs:{label:"3.25分(数量、百分比)","min-width":"100px",align:"center",prop:"score325"}}),a("el-table-column",{attrs:{label:"3.5分(数量、百分比)","min-width":"100px",align:"center",prop:"score35"}}),a("el-table-column",{attrs:{label:"3.75分(数量、百分比)","min-width":"100px",align:"center",prop:"score375"}}),a("el-table-column",{attrs:{label:"4+分(数量、百分比)","min-width":"100px",align:"center",prop:"score4"}})],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.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,height:"400px"}},[a("el-table-column",{attrs:{label:"栏舍","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"抽查样本数","min-width":"60px",align:"center",prop:"sumcowcount"}}),a("el-table-column",{attrs:{label:"单产","min-width":"50px",align:"center",prop:"product"}}),a("el-table-column",{attrs:{label:"干物质采食量","min-width":"60px",align:"center",prop:"dryweight"}}),a("el-table-column",{attrs:{label:"泌乳天数","min-width":"50px",align:"center",prop:"avgdim"}}),a("el-table-column",{attrs:{label:"标准分数","min-width":"50px",align:"center",prop:"standardscore"}}),a("el-table-column",{attrs:{label:"1分(数量、百分比)","min-width":"90px",align:"center",prop:"score1"}}),a("el-table-column",{attrs:{label:"2分(数量、百分比)","min-width":"90px",align:"center",prop:"score2"}}),a("el-table-column",{attrs:{label:"3分(数量、百分比)","min-width":"90px",align:"center",prop:"score3"}}),a("el-table-column",{attrs:{label:"4分(数量、百分比)","min-width":"90px",align:"center",prop:"score4"}}),a("el-table-column",{attrs:{label:"5分(数量、百分比)","min-width":"90px",align:"center",prop:"score5"}})],1)],1)],1)],1)])},s=[],r=(a("313e"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d");a("5c96");a("817d");var d={name:"GroupFeedingEfficiency",components:{Pagination:c["a"]},data:function(){return{requestParams:[{name:"getPastureListJT",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),pasturename:""}}],pastureList:[],frequencyList:[],table:{getdataListParm:{name:"getAssessCowPenn",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:"",date:Object(o["d"])(new Date,"{y}-{m}-{d}")}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getAssessCowDung",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:"",date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table3:{getdataListParm:{name:"getAssessBodyscore",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:"",date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table4:{getdataListParm:{name:"getAssessDungscore",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:"",date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){var t=new Date;t.setTime(t.getTime()-864e5),this.table.getdataListParm.parammaps.date=Object(o["d"])(t,"{y}-{m}-{d}"),this.getDownList()},mounted:function(){},activated:function(){var t=new Date;t.setTime(t.getTime()-864e5),this.table.getdataListParm.parammaps.date=Object(o["d"])(t,"{y}-{m}-{d}"),this.getDownList()},methods:{getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.pastureList=e.data.getPastureListJT.list,t.table.getdataListParm.parammaps.pastureid=e.data.getPastureListJT.list[0].pastureid,t.table2.getdataListParm.parammaps.pastureid=e.data.getPastureListJT.list[0].pastureid,t.table3.getdataListParm.parammaps.pastureid=e.data.getPastureListJT.list[0].pastureid,t.table4.getdataListParm.parammaps.pastureid=e.data.getPastureListJT.list[0].pastureid,t.table2.getdataListParm.parammaps.pastureid=t.table.getdataListParm.parammaps.pastureid,t.table3.getdataListParm.parammaps.pastureid=t.table.getdataListParm.parammaps.pastureid,t.table4.getdataListParm.parammaps.pastureid=t.table.getdataListParm.parammaps.pastureid,t.getTab2List(),t.getTab2List2(),t.getTab2List3(),t.getTab2List4()}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.date&&null!==this.table.getdataListParm.parammaps.date){this.table.getdataListParm.parammaps.date=new Date(this.table.getdataListParm.parammaps.date);var t=new Date(this.table.getdataListParm.parammaps.date.setDate(this.table.getdataListParm.parammaps.date.getDate()-1));this.table.getdataListParm.parammaps.date=Object(o["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.date&&null!==this.table.getdataListParm.parammaps.date){this.table.getdataListParm.parammaps.date=new Date(this.table.getdataListParm.parammaps.date);var t=new Date(this.table.getdataListParm.parammaps.date.setDate(this.table.getdataListParm.parammaps.date.getDate()+1));this.table.getdataListParm.parammaps.date=Object(o["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},changeTab2Date:function(){this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()},changePasture:function(t){this.table.getdataListParm.parammaps.pastureid=this.table.getdataListParm.parammaps.pastureid,this.table2.getdataListParm.parammaps.pastureid=this.table.getdataListParm.parammaps.pastureid,this.table3.getdataListParm.parammaps.pastureid=this.table.getdataListParm.parammaps.pastureid,this.table4.getdataListParm.parammaps.pastureid=this.table.getdataListParm.parammaps.pastureid,this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()},getTab2List:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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)}))},getTab2List2:function(){var t=this;this.table2.listLoading=!0,this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.date,Object(r["c"])(this.table2.getdataListParm).then((function(e){null!==e.data.list?(t.table2.list=e.data.list,t.table2.total=e.data.total):t.table2.list=[],setTimeout((function(){t.table2.listLoading=!1}),100)}))},getTab2List3:function(){var t=this;this.table3.listLoading=!0,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.date,Object(r["c"])(this.table3.getdataListParm).then((function(e){null!==e.data.list?(t.table3.list=e.data.list,t.table3.total=e.data.total):t.table3.list=[],setTimeout((function(){t.table3.listLoading=!1}),100)}))},getTab2List4:function(){var t=this;this.table4.listLoading=!0,this.table4.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.date,Object(r["c"])(this.table4.getdataListParm).then((function(e){null!==e.data.list?(t.table4.list=e.data.list,t.table4.total=e.data.total):t.table4.list=[],setTimeout((function(){t.table4.listLoading=!1}),100)}))}}},p=d,m=(a("b21b"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"3aab10eb",null);e["default"]=u.exports},"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="M498.24 124.352a25.6 25.6 0 0 1 27.52 0l364.8 232.128a25.6 25.6 0 0 1 11.84 21.568v487.04a38.4 38.4 0 0 1-38.4 38.4h-704a38.4 38.4 0 0 1-38.4-38.4v-487.04a25.6 25.6 0 0 1 11.84-21.568zM435.2 641.088H332.8a12.8 12.8 0 0 0-12.8 12.8v102.4c0 7.04 5.76 12.8 12.8 12.8h102.4a12.8 12.8 0 0 0 12.8-12.8v-102.4a12.8 12.8 0 0 0-12.8-12.8z m256 0H588.8a12.8 12.8 0 0 0-12.8 12.8v102.4c0 7.04 5.76 12.8 12.8 12.8h102.4a12.8 12.8 0 0 0 12.8-12.8v-102.4a12.8 12.8 0 0 0-12.8-12.8zM435.2 435.2H332.8A12.8 12.8 0 0 0 320 448v102.4c0 7.04 5.76 12.8 12.8 12.8h102.4a12.8 12.8 0 0 0 12.8-12.8V448a12.8 12.8 0 0 0-12.8-12.8z" p-id="190067" /></symbol>'});l.a.add(n);e["default"]=n},"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:"app-content"},[a("div",{staticClass:"search"},[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.operationModuleList,(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:"操作内容",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-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.operationModeList,(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.enable,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable",e)},expression:"table.getdataListParm.parammaps.enable"}},t._l(t.operatorList,(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}},[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",prop:"rolename"}}),a("el-table-column",{attrs:{label:"操作方式","min-width":"130px",align:"center",prop:"rolename"}}),a("el-table-column",{attrs:{label:"操作内容","min-width":"130px",align:"center",prop:"rolename"}}),a("el-table-column",{attrs:{label:"操作人","min-width":"130px",align:"center",prop:"rolename"}}),a("el-table-column",{attrs:{label:"操作时间","min-width":"130px",align:"center",prop:"rolename"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"50px","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}})]}}])})],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-add"},[a("div",{staticClass:"seeContent"},[a("div",{staticClass:"left"},t._l(4,(function(e,i){return a("div",[a("b",[t._v("操作模块:")]),a("span",[t._v("配方计划/配方模板")])])})),0),a("div",{staticClass:"right"},[a("div",{staticClass:"right-t"},[t._v("上")]),a("div",{staticClass:"right-b"},[a("div",{staticClass:"right-b-l"},[a("div",{staticClass:"title"},[t._v(" 修改前 ")]),t._l(24,(function(e,i){return a("div",{staticClass:"right-content"},[a("b",[t._v("操作模块:")]),a("span",[t._v("配方计划/配方模板")])])}))],2),a("div",{staticClass:"right-b-r"},[a("div",{staticClass:"title"},[t._v(" 修改前 ")]),t._l(24,(function(e,i){return a("div",{staticClass:"right-content"},[a("b",[t._v("操作模块:")]),a("span",[t._v("配方计划/配方模板")])])}))],2)])])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.see.dialogFormVisible=!1}}},[t._v("关闭")])],1)])])],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d={name:"Operation",components:{Pagination:c["a"]},data:function(){return{operationModuleList:[],operationModeList:[],operatorList:[],table:{getdataListParm:{name:"getRoleList",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),rolename:"",createmp:"",enable:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},see:{dialogFormVisible:!1,dialogStatus:"",temp:{}},textMap:{see:"操作详情"},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.table.listLoading=!0;var e="authdata/GetDataByName",a=this.table.getdataListParm;Object(r["n"])(e,a).then((function(e){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(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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(){},handleSee:function(t){this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.temp=Object.assign({},t)}}},p=d,m=(a("3600"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"74de5ca5",null);e["default"]=u.exports},"0f9a":function(t,e,a){"use strict";a.r(e);a("b0c0"),a("e9c4"),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"),p=a("a78e"),m=a.n(p),u={token:Object(o["a"])(),name:"",avatar:"",pastureid:"",pasturename:"",pasturenumber:"",employename:"",employeid:"",dashchartid:"",dashchartidisedit:"",roles:[],buttons:[],decimal:""},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,m.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){m.a.set("pastureid",e),m.a.set("pageCount",50),t.pastureid=e},SET_PASTURENAME:function(t,e){m.a.set("pasturename",e),t.pasturename=e},SET_PASTURENUMBER:function(t,e){m.a.set("pasturenumber",e),t.pasturenumber=e},SET_EMPLOYEID:function(t,e){m.a.set("employeid",e),t.employeid=e},SET_EMPLOYENAME:function(t,e){m.a.set("employename",e),t.employename=e},SET_ISPASTUREUSE:function(t,e){m.a.set("ispastureuse",e),t.ispastureuse=e},SET_DECIMAL:function(t,e){m.a.set("decimal",e),t.decimal=e},SET_DEPARTMENTID:function(t,e){m.a.set("departmentid",e),t.departmentid=e},SET_BUTTONS:function(t,e){m.a.set("buttons",e),sessionStorage.setItem("buttons",JSON.stringify(e)),t.buttons=e}},b={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),m.a,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;if(!r||r.length<=0)return i("该用户未授权,请联系管理员!"),!1;Object(n["c"])({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),e("SET_ISPASTUREUSE",t.data.list[0].isgroups),e("SET_DECIMAL",2),Object(n["c"])({name:"getUserPCButtons",parammaps:{username:l,pastureid:t.data.list[0].pastureId}}).then((function(t){null!==t.data.list?e("SET_BUTTONS",t.data.list):e("SET_BUTTONS",[])})))})),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",[]),m.a.remove("employename"),m.a.remove("employeid"),m.a.remove("pastureid"),m.a.remove("ispastureuse"),m.a.remove("decimal"),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:b}},"0fca":function(t,e,a){},1:function(t,e,a){t.exports=a("56d7")},1113: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="M927.14 289.81v-5.91c-41.42-41.42-100.59-29.59-142.01 11.83l-307.7 313.61c-5.91 0-5.91 5.92-5.91 11.84l-29.59 124.26c-5.92 11.83 0 17.75 5.92 23.67 5.92 5.91 29.58 0 29.58 0l130.18-29.59c5.92 0 11.84-5.92 17.75-5.92l301.78-307.69c41.42-41.42 41.42-94.68 0-136.1z m0 0" p-id="190209" /><path d="M619.45 786.85L430.1 828.27c-11.84 0-23.67-5.92-29.59-17.75-5.92-11.84-11.83-23.67-5.92-29.59l41.42-189.35c0-5.92 5.92-17.75 11.84-17.75l372.78-378.69 11.84-11.84v-5.91c0-65.09-53.26-112.43-112.43-112.43H175.66c-65.09 0-112.43 53.25-112.43 112.43v668.63c0 65.09 53.25 112.43 112.43 112.43H708.2c65.09 0 112.43-53.26 112.43-112.43V597.51L643.12 775.02c0 5.91-11.84 11.83-23.67 11.83zM317.67 378.57l-76.92 71.01c-11.84 11.83-29.59 11.83-41.42 0-11.84-11.84-11.84-29.59 0-41.42L294 313.48c11.84-11.83 29.59-11.83 41.42 0l71.01 76.93 171.6-171.6c11.83-11.84 29.58-11.84 35.5 5.91 11.83 11.84 11.83 29.59 5.92 35.51L424.18 449.58c-5.92 5.92-11.84 5.92-17.75 5.92-5.92 0-17.75 0-23.67-5.92l-65.09-71.01z m0 0" p-id="190210" /></symbol>'});l.a.add(n);e["default"]=n},1115:function(t,e,a){},"12bc":function(t,e,a){"use strict";a("b914")},"142c":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.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.rolename,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"rolename",e)},expression:"table.getdataListParm.parammaps.rolename"}}),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:function(e){return t.handleSearch("table")}}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:function(e){return t.handleRefresh("table")}}},[t._v("重置")])],1),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]),a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[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":"100px",align:"center",prop:"rolename"}}),a("el-table-column",{attrs:{label:"时间范围","min-width":"100px",align:"center",prop:"rolename"}}),a("el-table-column",{attrs:{label:"创建时间","min-width":"100px",align:"center",prop:"createdtime"}}),a("el-table-column",{attrs:{label:"创建人","min-width":"100px",align:"center",prop:"createmp"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}}),a("span",{staticClass:"centerSpan"},[t._v("|")]),a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}),a("span",{staticClass:"centerSpan"},[t._v("|")]),a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}),a("span",{staticClass:"centerSpan"},[t._v("|")]),a("a",{staticClass:"correcting",on:{click:function(e){return t.handleStatisticsRead(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.statisticsRead.dialogStatus],visible:t.statisticsRead.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.statisticsRead,"dialogFormVisible",e)}}},[a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场",clearable:""},model:{value:t.statisticsRead.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.statisticsRead.getdataListParm.parammaps,"enable",e)},expression:"statisticsRead.getdataListParm.parammaps.enable"}},t._l(t.pastureList,(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:"用户",clearable:""},model:{value:t.statisticsRead.getdataListParm.parammaps.rolename,callback:function(e){t.$set(t.statisticsRead.getdataListParm.parammaps,"rolename",e)},expression:"statisticsRead.getdataListParm.parammaps.rolename"}}),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.statisticsRead.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.statisticsRead.getdataListParm.parammaps,"inputDatetime",e)},expression:"statisticsRead.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:function(e){return t.handleSearch("statisticsRead")}}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:function(e){return t.handleRefresh("statisticsRead")}}},[t._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsRead.listLoading,expression:"statisticsRead.listLoading"}],key:t.statisticsRead.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.statisticsRead.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.statisticsRead.pageNum-1)*t.statisticsRead.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"牧场","min-width":"100px",align:"center",prop:"rolename"}}),a("el-table-column",{attrs:{label:"用户","min-width":"100px",align:"center",prop:"rolename"}}),a("el-table-column",{attrs:{label:"已读时间","min-width":"100px",align:"center",prop:"createdtime"}})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.statisticsRead.total>=0,expression:"statisticsRead.total>=0"}],attrs:{total:t.statisticsRead.total,page:t.statisticsRead.getdataListParm.offset,limit:t.statisticsRead.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.statisticsRead.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.statisticsRead.getdataListParm,"pagecount",e)},pagination:t.getStatisticsReadList}}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.statisticsRead.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")])],1)],1)])],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("5c96"),d=a("333d"),p={name:"NotificationManagement",components:{Pagination:d["a"]},data:function(){return{requestParams:[{name:"getPastureListJT",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),pasturename:""}}],pastureList:[],table:{getdataListParm:{name:"getRoleList",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),rolename:"",createmp:"",enable:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},statisticsRead:{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:{},dialogFormVisible:!1},dialogStatus:"",isokDisable:!1,textMap:{statisticsRead:"已读统计"},selectList:{},requestParam:{},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getDownList(),this.getList()},methods:{getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.pastureList=e.data.getPastureListJT.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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(t){"table"==t?(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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()):"statisticsRead"==t&&(""!==this.statisticsRead.getdataListParm.parammaps.inputDatetime&&null!==this.statisticsRead.getdataListParm.parammaps.inputDatetime?(this.statisticsRead.getdataListParm.parammaps.startTime=Object(o["d"])(this.statisticsRead.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.statisticsRead.getdataListParm.parammaps.stopTime=Object(o["d"])(this.statisticsRead.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.statisticsRead.getdataListParm.parammaps.inputDatetime="",this.statisticsRead.getdataListParm.parammaps.startTime="",this.statisticsRead.getdataListParm.parammaps.stopTime=""),this.statisticsRead.getdataListParm.offset=1,this.getList())},handleRefresh:function(t){},handleCreate:function(){},handleSee:function(t){},handleUpdate:function(t){},handleRowDelete:function(t){},handleStatisticsRead:function(t){this.statisticsRead.temp=Object.assign({},t),this.statisticsRead.dialogStatus="statisticsRead",this.statisticsRead.dialogFormVisible=!0,this.getStatisticsReadList()},getStatisticsReadList:function(){var t=this;this.statisticsRead.listLoading=!0,Object(r["c"])(this.statisticsRead.getdataListParm).then((function(e){null!==e.data.list?(t.statisticsRead.list=e.data.list,t.statisticsRead.pageNum=e.data.pageNum,t.statisticsRead.pageSize=e.data.pageSize,t.statisticsRead.total=e.data.total):t.statisticsRead.list=[],setTimeout((function(){t.statisticsRead.listLoading=!1}),100)}))},handleSelectionChange:function(t){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择角色信息",duration:2e3}):c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.common={returnmap:"0"},t.requestParam.data=[];for(var e=0;e<t.selectList.length;e++)t.requestParam.data[e]={name:"checkDeleteRole",type:"v",parammaps:{pastureid:t.selectList[e].pastureid,id: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){"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))}}},m=p,u=(a("6ef0"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"164a18d0",null);e["default"]=h.exports},"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},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",staticStyle:{position:"relative"}},["first"==t.activeName?a("div",{staticClass:"operation",staticStyle:{position:"absolute",top:"-5px",right:"10px","z-index":"1"}},[t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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):t._e(),"second"==t.activeName?a("div",{staticClass:"operation",staticStyle:{position:"absolute",top:"-5px",right:"10px","z-index":"1"}},[t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers2,data:t.uploadData2,action:t.uploadExcelUrl2,"show-file-list":!1,"before-upload":t.beforeImport2,"on-success":t.handleImportSuccess2}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[t._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(3)}}},[t._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.handleExport(4)}}},[t._v("导出数据")])],1)],1)],1):t._e(),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:"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:"50","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e()]}}])})],1),0==t.table1.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table1.total)+"条")]):t._e()],1)]),a("el-tab-pane",{attrs:{label:"宾州筛、粪便筛标准范围",name:"second"}},[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:"50","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e()]}}])})],1),0==t.table2.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table2.total)+"条")]):t._e()],1)])],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.table1.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(e){return t.$set(t.table1,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.table1.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:"cancelClose",on:{click:function(e){t.table1.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData()}}},[t._v("确认")])],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.table2.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(e){return t.$set(t.table2,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.table2.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:"cancelClose",on:{click:function(e){t.table2.dialogFormVisible=!1,t.getList2()}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData()}}},[t._v("确认")])],1)],1)],2)],1)},s=[],r=(a("b0c0"),a("ac1f"),a("00b4"),a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("2934")),l=a("a78e"),n=a.n(l),o=(a("bc3a"),a("ed08")),c=a("5f87"),d={name:"StandardParameters",data:function(){return{dialogFull:!1,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:{}},download:{getdataListParm:{},list:[]},textMap:{update:"编辑"},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},computed:{headers:function(){return{token:Object(c["a"])()}},uploadData:function(){return{name:"checkft,updateOptscoreUpload",importParams:"配方名称,体况评分标准(分),体况评分数据来源,粪便评分标准(分),粪便评分数据来源",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"",requiredParams:"配方名称,体况评分标准(分),粪便评分标准(分)",numParams:"体况评分标准(分),粪便评分标准(分)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"},headers2:function(){return{token:Object(c["a"])()}},uploadData2:function(){return{name:"checkbigcowclassW,checkclassnameW,insertOptrangeUpload",importParams:"牲畜父类,牲畜子类,宾州筛一层(%),宾州筛二层(%),宾州筛三层(%),宾州筛四层(%),宾州筛数据来源,粪便筛一层(%),粪便筛二层(%),粪便筛三层(%),粪便筛数据来源",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"",requiredParams:"牲畜父类,牲畜子类",numParams:""}},uploadExcelUrl2:function(){return"/authdata/ImportExcel"}},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["d"])(this.requestParams).then((function(e){t.physicalList=e.data.getDictByName.list,t.faecesList=e.data.getDictByName2.list}))},handleTabClick:function(t,e){"first"===t.name?this.getList():"second"===t.name&&this.getList2()},getList:function(){var t=this;this.table1.listLoading=!0,Object(r["c"])(this.table1.getdataListParm).then((function(e){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["c"])(this.table2.getdataListParm).then((function(e){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){this.dialogFull=!1,"first"===this.activeName?(this.table1.dialogStatus="update",this.table1.dialogFormVisible=!0,this.table1.temp=Object.assign({},t)):"second"===this.activeName&&(this.table2.dialogStatus="update",this.table2.dialogFormVisible=!0,this.table2.temp=Object.assign({},t))},updateData:function(){var t=this;if("first"===this.activeName)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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.table1.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})})))}));else if("second"===this.activeName){if(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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.table2.dialogFormVisible=!1,t.getList2(),t.activeName="second"):(t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),"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(t){var e=this;if(1==t){var i=[{obj1:"1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;"},{obj1:"2、底部工作表名称不可更改,默认为:Sheet1;"},{obj1:"3、配方名称,体况评分标准(分),粪便评分标准为必填;"},{obj1:"4、配方名称必须与系统中配方模板的配方名称匹配;"},{obj1:"5、标准分数为固定几个分值,分别为:2.75-,2.75,3,3.25,3.75,4+;粪便评分标准为1,2,3,4,5"},{obj1:"6、数据最多可导入200条,超过200条请分多个文件导入。"}],s=[{tHeader:["配方名称","体况评分标准(分)","体况评分数据来源","粪便评分标准(分)","粪便评分数据来源"],filterVal:["ftname","","","",""],tableDatas:this.table1.list,sheetName:"Sheet1"},{tHeader:["填写规范:"],filterVal:["obj1"],tableDatas:i,sheetName:"Sheet2"}];Object(o["c"])(s,"基础数据_体况、粪便评分标准导入模板",!0,"xlsx")}else if(3==t)this.download.getdataListParm.name="getOptrangeList",this.download.getdataListParm.parammaps={},this.download.getdataListParm.parammaps.pastureid=n.a.get("pastureid"),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{obj1:"1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;"},{obj1:"2、底部工作表名称不可更改,默认为:Sheet1;"},{obj1:"3、牲畜父类,牲畜子类为必填;"},{obj1:"4、牲畜类别必须与系统基础数据中牲畜类别匹配;"},{obj1:"5、数据最多可导入200条,超过200条请分多个文件导入。"}],i=[{tHeader:["牲畜父类","牲畜子类","宾州筛一层(%)","宾州筛二层(%)","宾州筛三层(%)","宾州筛四层(%)","宾州筛数据来源","粪便筛一层(%)","粪便筛二层(%)","粪便筛三层(%)","粪便筛数据来源"],filterVal:["parentname","cowname","","","","","","","","",""],tableDatas:e.download.list,sheetName:"Sheet1"},{tHeader:["填写规范:"],filterVal:["obj1"],tableDatas:a,sheetName:"Sheet2"}];Object(o["c"])(i,"基础数据_宾州筛、粪便筛标准范围导入模板",!0,"xlsx")}));else if(2==t)Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-52ecc0ac")]).then(a.bind(null,"a1cf")).then((function(t){var a=[["配方名称","体况评分标准","","粪便评分标准",""]],i=[["","体况评分标准(分)","数据来源","粪便评分标准(分)","数据来源"]],s=["ftname","bodystandard","bodysource","dungstandard","dungsource"],r=e.table1.list.map((function(t){return s.map((function(e){return t[e]}))})),l=["A1:A2","B1:C1","D1:E1"];t.export_json_to_excel({multiHeader:a,multiHeader2:i,data:r,filename:"体况、粪便评分标准导出数据",merges:l})}));else if(4==t){for(var l=[],c=0;c<this.table2.list.length;c++){var d={};d.parentname=this.table2.list[c].parentname,d.cowname=this.table2.list[c].cowname,d.bzsource=this.table2.list[c].bzsource,void 0==this.table2.list[c].bzonemin&&(this.table2.list[c].bzonemin=""),void 0==this.table2.list[c].bzonemax&&(this.table2.list[c].bzonemax=""),void 0==this.table2.list[c].bztwomin&&(this.table2.list[c].bztwomin=""),void 0==this.table2.list[c].bztwomax&&(this.table2.list[c].bztwomax=""),void 0==this.table2.list[c].bzthreemin&&(this.table2.list[c].bzthreemin=""),void 0==this.table2.list[c].bzthreemax&&(this.table2.list[c].bzthreemax=""),void 0==this.table2.list[c].bzfourmin&&(this.table2.list[c].bzfourmin=""),void 0==this.table2.list[c].bzfourmax&&(this.table2.list[c].bzfourmax=""),void 0==this.table2.list[c].fbonemin&&(this.table2.list[c].fbonemin=""),void 0==this.table2.list[c].fbonemax&&(this.table2.list[c].fbonemax=""),void 0==this.table2.list[c].fbtwomin&&(this.table2.list[c].fbtwomin=""),void 0==this.table2.list[c].fbtwomax&&(this.table2.list[c].fbtwomax=""),void 0==this.table2.list[c].fbthreemin&&(this.table2.list[c].fbthreemin=""),void 0==this.table2.list[c].fbthreemax&&(this.table2.list[c].fbthreemax=""),d.one1=this.table2.list[c].bzonemin+"-"+this.table2.list[c].bzonemax,d.two1=this.table2.list[c].bztwomin+"-"+this.table2.list[c].bztwomax,d.three1=this.table2.list[c].bzthreemin+"-"+this.table2.list[c].bzthreemax,d.four1=this.table2.list[c].bzfourmin+"-"+this.table2.list[c].bzfourmax,d.one2=this.table2.list[c].fbonemin+"-"+this.table2.list[c].fbonemax,d.two2=this.table2.list[c].fbtwomin+"-"+this.table2.list[c].fbtwomax,d.three2=this.table2.list[c].fbthreemin+"-"+this.table2.list[c].fbthreemax,d.fbsource=this.table2.list[c].fbsource,l.push(d)}Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-52ecc0ac")]).then(a.bind(null,"a1cf")).then((function(t){var e=[["牲畜类别","","宾州筛","","","","","粪便筛","","",""]],a=[["牲畜父类","牲畜子类","宾州筛一层(%)","宾州筛二层(%)","宾州筛三层(%)","宾州筛四层(%)","数据来源","粪便筛一层(%)","粪便筛二层(%)","粪便筛三层(%)","数据来源"]],i=["parentname","cowname","one1","two1","three1","four1","bzsource","one2","two2","three2","fbsource"],s=l.map((function(t){return i.map((function(e){return t[e]}))})),r=["A1:B1","C1:G1","H1:K1"];t.export_json_to_excel({multiHeader:e,multiHeader2:a,data:s,filename:"宾州筛、粪便筛标准范围导出数据",merges:r})}))}},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["配方名称","体况评分标准(分)","体况评分数据来源","粪便评分标准(分)","粪便评分数据来源","错误信息"],r=["配方名称","体况评分标准(分)","体况评分数据来源","粪便评分标准(分)","粪便评分数据来源","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"体况、粪便评分导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))},beforeImport2:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess2:function(t,e){var i=this;this.getList2(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["牲畜父类","牲畜子类","宾州筛一层(%)","宾州筛二层(%)","宾州筛三层(%)","宾州筛四层(%)","宾州筛数据来源","粪便筛二层(%)","粪便筛三层(%)","粪便筛数据来源","错误信息"],r=["牲畜父类","牲畜子类","宾州筛一层(%)","宾州筛二层(%)","宾州筛三层(%)","宾州筛四层(%)","宾州筛数据来源","粪便筛二层(%)","粪便筛三层(%)","粪便筛数据来源","error_msg"],l=i.formatJson2(r,a);e.export_json_to_excel({header:s,data:l,filename:"宾州筛、粪便筛导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson2:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))}}},p=d,m=(a("abe2"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"51edfa88",null);e["default"]=u.exports},1532:function(t,e,a){},1648:function(t,e,a){"use strict";a("e119")},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:"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-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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"},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,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,"max-height":t.myHeight},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:"1分(头)","min-width":"65px",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":"65px",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":"65px",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":"65px",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":"65px",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:"80","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",["create"==t.create.dialogStatus?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):a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barname"}},[a("el-input",{ref:"barname",staticClass:"filter-item",attrs:{disabled:"",placeholder:"barname"},model:{value:t.create.temp.barname,callback:function(e){t.$set(t.create.temp,"barname",e)},expression:"create.temp.barname"}})],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:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",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:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.historyRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.historyRecord,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.historyRecord.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"historyRecord"},[a("keep-alive",[a(t.historyRecord.myComponent,{ref:"historyRecord",tag:"component"})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.historyRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2)],1)},s=[],r=(a("b680"),a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),p=a("bc3a"),m=a.n(p),u=a("5f87"),h={name:"DungScores",components:{Pagination:c["a"]},data:function(){return{dialogFull:!1,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:parseInt(n.a.get("pageCount")),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["d"])(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:"编辑",historyRecord:"历史记录"},historyRecord:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},requestParam:{},requestParam2:{},download:{getdataListParm:{name:"getDungscoreList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},list:[]},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkbarname,insertDungscoreUpload",importParams:"栏舍名称,1分(头),2分(头),3分(头),4分(头),5分(头),备注,操作人,操作日期",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"操作日期",requiredParams:"栏舍名称,1分(头),2分(头),3分(头),4分(头),5分(头)",numParams:"1分(头),2分(头),3分(头),4分(头),5分(头)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){if(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(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.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["d"])(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["c"])(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["c"])(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}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(){this.resetTemp(),this.getNoteTakerList(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData: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="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){if("fail"!==e.msg)t.saveData();else{var a=new RegExp("Duplicate entry :ds");a.test(e.data)?t.$notify({type:"error",message:"同一栏舍不可重复录入",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},saveData:function(){var t=this;this.requestParam2.name="insertDungandbodyhistory",this.create.temp.pastureid=n.a.get("pastureid"),this.create.temp.changetime=Object(o["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),this.create.temp.species="fppf",this.create.temp.fourrate="",this.create.temp.fourweight="",this.requestParam2.parammaps=this.create.temp,Object(r["f"])(this.requestParam2).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},createDataAgain: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="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){if("fail"!==e.msg)t.saveData(),t.resetTemp(),t.getList(),t.getNoteTakerList();else{var a=new RegExp("Duplicate entry :ds");a.test(e.data)?t.$notify({type:"error",message:"同一栏舍不可重复录入",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},handleUpdate:function(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.dialogFull=!1,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){if("fail"!==e.msg)t.saveData();else{var a=new RegExp("Duplicate entry :ds");a.test(e.data)?t.$notify({type:"error",message:"同一栏舍不可重复录入",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},handleRowDelete:function(t){var e=this;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){this.selectList=t},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(){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){"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}):d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e={common:{returnmap:"0"},data:[{name:"insertSpotList",resultmaps:{list:t.selectList},children:[{name:"copyDungscore",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}}]}]};Object(r["b"])(e).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:"已取消复制"})}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/栏舍生产/粪便评分导入模板.xlsx";m()({method:"GET",url:i,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="粪便评分导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["栏舍名称","标准分数(分)","牛头数(头)","1分(头)","2分(头)","3分(头)","4分(头)","5分(头)","备注","操作人","操作日期"],filterVal:["barname","standardscore","cowsum","score1","score2","score3","score4","score5","remark","emp","operatetime"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(o["c"])(a,"粪便评分",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","1分(头)","2分(头)","3分(头)","4分(头)","5分(头)","备注","操作人","操作日期","错误信息"],r=["栏舍名称","1分(头)","2分(头)","3分(头)","4分(头)","5分(头)","备注","操作人","操作日期","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"粪便评分导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))},handleHistoryRecord:function(){this.dialogFull=!1,this.historyRecord.dialogStatus="historyRecord",this.historyRecord.dialogFormVisible=!0;var t=this,e=function(){return Promise.resolve().then(a.bind(null,"3034"))};return t.historyRecord.myComponent=e}}},b=h,g=a("2877"),f=Object(g["a"])(b,i,s,!1,null,null,null);e["default"]=f.exports},1729:function(t,e,a){},1730:function(t,e,a){"use strict";a("0a0c")},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",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增车次 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleReduceTrains}},[t._v("减少车次")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCheck}},[t._v("校验")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-download"},on:{click:t.handleAutomaticGeneration}},[t._v("自动生成")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{float:"left","margin-left":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v(" 生效")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v(" 禁用")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleAllEmpty}},[t._v(" 清空已分配栏舍")]):t._e(),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px",float:"left","margin-left":"10px"},attrs:{filterable:"",placeholder:"班次"},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-button",{staticClass:"export",staticStyle:{float:"right"},attrs:{icon:"el-icon-time"},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",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:"50px",align:"center","class-name":"small-padding fixed-width",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",width:"110px",align:"center","class-name":"small-padding fixed-width",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrname))])]}}])}),a("el-table-column",{attrs:{label:"描述",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.display))])]}}])}),a("el-table-column",{attrs:{label:"生效",width:"70px",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.sel,callback:function(a){t.$set(e.row,"sel",a)},expression:"scope.row.sel"}})]}}])}),a("el-table-column",{attrs:{label:"班次",width:"65px",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:"时间",width:"55px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.begintime))])]}}])}),a("el-table-column",{attrs:{label:"最大重量",width:"75px",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:"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ftname))])]}}])}),a("el-table-column",{directives:[{name:"show",rawName:"v-show",value:t.isInforvalue,expression:"isInforvalue"}],attrs:{label:"是否提前小料拆分",width:"70px",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.issplit,callback:function(a){t.$set(e.row,"issplit",a)},expression:"scope.row.issplit"}})]}}])}),a("el-table-column",{attrs:{label:"撒料","min-width":"250px",align:"left","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.arrList,(function(e){return a("div",{key:e.name,staticClass:"list"},[a("el-tooltip",{attrs:{placement:"top","open-delay":1e3}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("div",[t._v(" 栏舍全称:"+t._s(e.barname)+" ")]),a("div",[t._v(" 饲料重量:"+t._s(e.weight)+" ")]),a("div",[t._v(" 撒料车:"+t._s(e.tmrname)+" ")])]),a("div",{staticClass:"tmrname",style:{background:e.background}},[t._v(t._s(e.barname))])])],1)}))}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"70","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e()]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.automaticGeneration.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(e){return t.$set(t.automaticGeneration,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.automaticGeneration.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-automaticGeneration",staticStyle:{margin:"0 auto"}},[a("div",{staticStyle:{width:"210px",margin:"60px auto 120px","font-weight":"16px"}},[t._v(" 请选择自动生成方式:"),a("br"),t._v(" 清空计划并生成新计划;"),a("br"),t._v(" 当前计划基础上继续生成计划;"),a("br")]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{right:"240px"},on:{click:function(e){t.automaticGeneration.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",staticStyle:{right:"130px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.continueData(0)}}},[t._v("继续生成 ")]),a("el-button",{staticClass:"save",staticStyle:{right:"20px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.continueData(1)}}},[t._v("重新生成 ")])],1)])],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.historyRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.historyRecord,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.historyRecord.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"historyRecord"},[a("keep-alive",[a(t.historyRecord.myComponent,{ref:"historyRecord",tag:"component"})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.historyRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.create.dialogFormVisible,"before-close":t.close,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"create"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 10px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"135px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"生效:",prop:"sel"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.temp.sel,callback:function(e){t.$set(t.create.temp,"sel",e)},expression:"create.temp.sel"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"TMR编号:",prop:"tmrid2"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"TMR编号"},on:{change:t.changeTMRNumber},model:{value:t.create.temp.tmrid2,callback:function(e){t.$set(t.create.temp,"tmrid2",e)},expression:"create.temp.tmrid2"}},t._l(t.TMRNumberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tclassname+"/"+t.eqcode,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.create.list2.length>0,placeholder:"班次"},on:{change:t.changeTimes},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:8}},[a("el-form-item",{attrs:{label:"提前小料拆分:",prop:"issplit"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.temp.issplit,callback:function(e){t.$set(t.create.temp,"issplit",e)},expression:"create.temp.issplit"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"时间:",prop:"begintime"}},[a("el-time-picker",{staticStyle:{width:"100%"},attrs:{clearable:!1,type:"datetime",placeholder:"时间",format:"HH:mm","value-format":"HH:mm"},model:{value:t.create.temp.begintime,callback:function(e){t.$set(t.create.temp,"begintime",e)},expression:"create.temp.begintime"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"模板配方:",prop:"ftid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.create.list2.length>0,placeholder:"模板配方"},on:{change:t.changeTemplateFormulation},model:{value:t.create.temp.ftid,callback:function(e){t.$set(t.create.temp,"ftid",e)},expression:"create.temp.ftid"}},t._l(t.templateFormulationList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"描述:",prop:"display"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"描述",maxlength:"255"},model:{value:t.create.temp.display,callback:function(e){t.$set(t.create.temp,"display",e)},expression:"create.temp.display"}})],1)],1)],1)],1),"update"===t.create.dialogStatus||t.isDispaly?t._e():a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.distributionAndSpreading()}}},[t._v("分配撒料")]):t._e()],1),"update"==t.create.dialogStatus||t.isDispaly?a("div",{staticClass:"bottom",staticStyle:{"border-top":"1px solid #009C69"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("div",{staticClass:"fenceHouse"},[a("ul",{directives:[{name:"loading",rawName:"v-loading",value:t.create.listLoadingTimes,expression:"create.listLoadingTimes"}],staticClass:"fenceHouseList"},t._l(t.create.list1,(function(e){return a("li",{key:e.arrid},[e.isShowTitle?a("span",{staticClass:"fenceHouseTitle"},[t._v(t._s(e.ftname)+":")]):t._e(),t._l(e.arrList,(function(e){return a("div",{key:e.id,staticClass:"colorBlock"},[a("div",{staticStyle:{position:"relative"}},[a("el-tooltip",{staticStyle:{height:"18px","line-height":"18px"},style:{background:e.background},attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.barname))]),a("div",{staticClass:"barname"},[a("span",{staticStyle:{float:"left",width:"70px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[t._v(t._s(e.barname))]),a("button",{staticStyle:{background:"red",float:"right",color:"#fff",width:"18px","font-size":"18px",border:"none","text-align":"center"},attrs:{disabled:t.isokDisable},on:{click:function(a){return t.clickBar(e)}}},[t._v("√")])])]),a("div",{staticClass:"barWeight",style:{background:"rgba("+e.background2+",0.1)"}},[t._v(" "+t._s(e.weight)+" ")])],1)])}))],2)})),0)])]),a("el-col",{attrs:{span:4}},[a("div",{staticStyle:{"text-align":"center",height:"100px","margin-top":"40px"}},[a("div",{staticClass:"maxweight",staticStyle:{"line-height":"20px"}},[a("b",[t._v("最大重量:")]),t._v(t._s(t.create.temp.maxweight)+" (KG)")]),a("div",{staticClass:"sumweight",staticStyle:{"line-height":"20px","margin-top":"10px"}},[a("b",[t._v("合计重量:")]),t._v(t._s(t.create.temp.sumweight)+" (KG) ")])])])],1),a("div",{staticClass:"spreadingMaterial"},[a("div",[t._v("撒料:"),a("el-button",{attrs:{type:"danger"},on:{click:t.handleEmpty}},[t._v("清空")])],1),a("div",{staticClass:"spreadingMaterialList"},[a("draggable",{staticClass:"list-group1",attrs:{disabled:t.isDropState,id:"1","data-source":"juju",list:t.create.list2,draggable:".item",group:"a",animation:"500",move:t.move1},on:{change:t.changeLog1,start:t.start1,end:function(e){return t.end1(t.create.temp)}}},t._l(t.create.list2,(function(e){return a("div",{key:e.name,staticClass:"list-group-item2 item"},[a("div",{staticClass:"arr-l",style:{background:e.tbackground}},[a("div",{staticClass:"arr-l-t"},[a("div",{staticClass:"arr-l-t-t"}),a("el-select",{staticClass:"arr-l-t-b el-icon-arrow-down",attrs:{placeholder:"撒料设备"},on:{change:function(a){t.changeEquipment(a,e.fttype,e.id)}},model:{value:e.tmrid,callback:function(a){t.$set(e,"tmrid",a)},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("div",{staticClass:"arr-l-b"},[a("el-tooltip",{staticClass:"list-group-item1 item",staticStyle:{height:"18px","line-height":"18px"},attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.tmrname))]),a("div",{staticClass:"tmrname"},[t._v(t._s(e.tmrname))])])],1),0==e.fttype?a("div",{staticStyle:{background:"#009C69",position:"absolute",bottom:"0",left:"0"}},[t._v("补")]):t._e()]),a("div",{staticClass:"arr-r"},[a("div",{staticClass:"arr-r-l"},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.barname))]),a("div",{staticClass:"barname"},[t._v(t._s(e.barname))])])],1),a("div",{staticClass:"arr-r-c"},[t._v("-")]),a("div",{staticClass:"arr-r-r"},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.weight))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.weight,expression:"element.weight"}],ref:"weight",refInFor:!0,staticClass:"filter-item2",staticStyle:{display:"inline-block",height:"25px",padding:"4px 4px 4px 0","text-align":"right","font-size":"12px",width:"95%",border:"1px solid #e6e6e6"},attrs:{autofocus:e.focusState,type:"number",placeholder:"重量",step:"0.01"},domProps:{value:e.weight},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.target.blur.apply(null,arguments)},focus:t.focusWeight,blur:function(a){return t.blurWeight(e)},input:function(a){a.target.composing||t.$set(e,"weight",a.target.value)}}})])],1)]),a("div",{staticClass:"arr-t",style:{background:e.background}},[a("i",{staticClass:"el-icon-close",staticStyle:{position:"absolute",right:"0"},on:{click:function(a){return t.handleFLDelete(e)}}})])])})),0)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{height:"55px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{top:"40px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.close()}}},[t._v("关闭")]),a("el-button",{staticClass:"save",staticStyle:{top:"40px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData()}}},[t._v("确认")])],1)],1):t._e()],1)],2),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"},[0==t.check.temp.isDistribution?a("p",[t._v("当前有未分配栏舍,未分配栏舍如下:")]):a("p",[t._v("已分配完:当前栏舍已分配完善")]),t._l(t.check.temp.ftlist,(function(e,i){return a("div",{key:i},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])}))],2),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"save",on:{click:function(e){t.check.dialogFormVisible=!1}}},[t._v("确认")])],1)])],1)},s=[],r=a("ade3"),l=(a("7db0"),a("d3b7"),a("b0c0"),a("159b"),a("ac1f"),a("00b4"),a("99af"),a("fb6a"),a("a15b"),a("4e82"),a("b680"),a("a434"),a("3ca3"),a("ddb0"),a("a78e")),n=a.n(l),o=a("b76a"),c=a.n(o),d=a("aa47"),p=a("2934"),m=a("5c96"),u={components:{draggable:c.a},data:function(){return{isRoleEdit:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},height:document.body.clientHeight-220,table:{getdataListParm:{page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),times:1,refresh:1}},tableKey:0,list:[],total:0,listLoading:!1},frequencyList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}},isInforvalue:!1,selectList:[],historyRecord:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},automaticGeneration:{dialogFormVisible:!1,dialogStatus:""},textMap:{automaticGeneration:"提示",historyRecord:"历史记录",create:"新增",update:"编辑",check:"提示"},check:{dialogFormVisible:!1,dialogStatus:"",temp:{ftlist:[],isDistribution:""}},dialogFull:!1,isOrder:!0,requestParam:{},isokDisable:!1,create:{dialogFormVisible:!1,dialogStatus:"",temp:Object(r["a"])({sel:1,tmrid:"",tmrid2:"",maxweight:"",issplit:1,begintime:"",sumweight:0,display:"",times:1,ftid:"",ftname:"",tmrname:""},"maxweight",""),rules:{tmrid2:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"number",required:!0,message:"必填",trigger:"blur"}],ftid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},listLoadingTimes:!1,list1:[],list2:[],checkBarList:[]},TMRNumberList:[],equipmentList:[],templateFormulationList:[],isDispaly:!1,dropState:!1,isDropState:!1}},created:function(){this.getButtons(),this.getIsDisplay(),this.getList()},methods:{getButtons:function(){var t="MaterialIssuancePlan",e=Object(p["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this,e="authdata/GetDataByName",a={name:"getTMRListEnableType",offset:0,parammaps:{pastureid:n.a.get("pastureid"),eqtype:"1"}};Object(p["n"])(e,a).then((function(e){null!==e.data?t.TMRNumberList=e.data.list:t.TMRNumberList=[]}));var i={name:"getTMRListEnableTypeAll",offset:0,parammaps:{pastureid:n.a.get("pastureid"),eqtype:"1"}};Object(p["n"])(e,i).then((function(e){null!==e.data?(t.equipmentList=e.data.list,"update"==t.create.dialogStatus&&(void 0!==t.equipmentList.find((function(e){return e.id==t.create.temp.tmrid}))?t.create.temp.tclassname=t.equipmentList.find((function(e){return e.id==t.create.temp.tmrid})).tclassname:t.create.temp.tclassname="固定式")):t.equipmentList=[]}));var s={name:"getFTSWList",offset:0,parammaps:{pastureid:n.a.get("pastureid")}};Object(p["n"])(e,s).then((function(e){null!==e.data?t.templateFormulationList=e.data.list:t.templateFormulationList=[]}));var r={name:"getSysoptEnable",offset:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"isSmallMaterial"}};Object(p["n"])(e,r).then((function(e){null!==e.data?0==e.data.list[0].inforvalue?t.isInforvalue=!1:t.isInforvalue=!0:t.isInforvalue=!1}))},getIsDisplay:function(){var t=this,e="authdata/GetDataByName",a=this.maxTime.getMaxTimesParm;Object(p["n"])(e,a).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;var e="authdata/spillage",a=this.table.getdataListParm;Object(p["n"])(e,a).then((function(e){if(void 0!==e.data.list)if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)null==e.data.list[a].arrList&&t.$set(e.data.list[a],"arrList",[]);t.table.list=e.data.list,t.table.total=e.data.list.length,setTimeout((function(){t.$refs.table.doLayout()}),100)}else t.table.list=[];t.table.listLoading=!1}))},changeFrequency:function(t){this.getList()},handleRowDelete:function(t){var e=this;if(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;var a="authdata/PostDataByName",i=e.requestParam;Object(p["n"])(a,i).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.table.getdataListParm.parammaps.refresh=1,e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelect:function(t){this.selectList=t},changeTemplateFormulation:function(t){this.create.temp.ftname=this.templateFormulationList.find((function(e){return e.id===t})).tname,this.getCreateList1()},changeTimes:function(t){this.getCreateList1()},changeTMRNumber:function(t){var e=this;this.create.list2.length>0?m["MessageBox"].confirm("更换TMR撒料设备,会清空撒料车,是否更换?",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}).then((function(){e.create.temp.tmrid=e.create.temp.tmrid2,e.create.temp.tmrname=e.TMRNumberList.find((function(e){return e.id===t})).eqcode,e.create.temp.maxweight=e.TMRNumberList.find((function(e){return e.id===t})).maxstirfeed,e.create.temp.tclassname=e.TMRNumberList.find((function(e){return e.id===t})).tclassname,e.create.temp.mytmrid=e.create.temp.tmrid,e.create.temp.mytmrname=e.create.temp.tmrname,(e.isDispaly||"update"==e.create.dialogStatus)&&e.getClearList()})).catch((function(){e.create.temp.tmrid2=e.create.temp.tmrid,e.create.temp.tmrname=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).eqcode,e.create.temp.maxweight=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).maxstirfeed,e.create.temp.tclassname=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).tclassname,e.create.temp.mytmrid=e.create.temp.tmrid2,e.create.temp.mytmrname=e.create.temp.tmrname,e.$message({type:"info",message:"已取消"})})):(this.create.temp.tmrid=this.create.temp.tmrid2,this.create.temp.tmrname=this.TMRNumberList.find((function(e){return e.id===t})).eqcode,this.create.temp.maxweight=this.TMRNumberList.find((function(e){return e.id===t})).maxstirfeed,this.create.temp.tclassname=this.TMRNumberList.find((function(e){return e.id===t})).tclassname,this.create.temp.mytmrid=this.create.temp.tmrid,this.create.temp.mytmrname=this.create.temp.tmrname,(this.isDispaly||"update"==this.create.dialogStatus)&&this.getClearList())},getClearList:function(){var t=this,e="authdata/lpplandtl/del",a=[];this.create.list2.forEach((function(t,e){var i={};i.pastureid=t.pastureid,i.lpplandtlid=t.id,i.fttype=t.fttype,i.lweight=t.lweight,i.fpdid=t.fpdid,a.push(i)})),Object(p["n"])(e,a).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.getCreateList1())}))},colorRgb:function(t){t=t.toLowerCase();var e=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t&&e.test(t)){if(4===t.length){for(var a="#",i=1;i<4;i+=1)a+=t.slice(i,i+1).concat(t.slice(i,i+1));t=a}var s=[];for(i=1;i<7;i+=2)s.push(parseInt("0x"+t.slice(i,i+2)));return s.join(",")}return"rgba("+s.join(",")+")"},dbclickWeight:function(t){this.$set(t,"isWeight",!0),this.$set(t,"focusState",!0)},focusWeight:function(){this.isDropState=!0},blurWeight:function(t){var e=this;if(this.isDropState=!1,parseFloat(t.weight)<=0)return this.$message({type:"error",message:"重量不可输入小于0的数据",duration:2e3}),!1;""==t.weight&&(t.weight=0);var a=String(parseFloat(t.weight)-parseFloat(t.lweight)),i=0;if(this.create.list2.forEach((function(t,e){i+=parseFloat(t.weight)})),i>this.create.temp.maxweight)return this.$message({type:"error",message:"撒料车总重量大于最大重量",duration:2e3}),!1;this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkFPdLeftW",type:"v",parammaps:{pastureid:t.pastureid,fpdid:t.fpdid,fttype:t.fttype,lweight:a}},this.requestParam.data[1]={name:"updateLppd",type:"e",parammaps:{pastureid:this.create.temp.pastureid,lppid:this.create.temp.id,barid:t.barid,barname:t.barname,fpdid:t.fpdid,fttype:t.fttype,lweight:t.weight,sort:t.sort,tmrid:t.tmrid,tmrname:t.tmrname,background:t.background,id:t.id}},this.requestParam.data[2]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:t.pastureid,id:t.fpdid,fttype:t.fttype,lweight:a}},Object(p["b"])(this.requestParam).then((function(t){"fail"===t.msg&&e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}),e.getCreateList1()}))},handleFLDelete:function(t){var e=this;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)}};var a="authdata/ExecDataByConfig",i=this.requestParam;Object(p["n"])(a,i).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.getCreateList1())}))},handleCreate:function(){this.create.temp=Object(r["a"])({sel:1,tmrid:"",tmrid2:"",maxweight:"",issplit:1,begintime:"",sumweight:0,display:"",times:1,ftid:"",ftname:"",tmrname:""},"maxweight",""),this.create.temp.times=this.table.getdataListParm.parammaps.times,this.getDownList(),this.isDispaly=!1,this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.create.list1=[],this.create.list2=[],this.create.checkBarList=[]},distributionAndSpreading:function(){var t=this;this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a="authdata/lpplan/add",i={};t.create.temp.pastureid=n.a.get("pastureid"),t.create.temp.times=parseInt(t.create.temp.times),i.parammaps=t.create.temp,Object(p["n"])(a,i).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.temp.id=e.data.Id,t.isDispaly=!0):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})})),t.getCreateList1()}}))},getCreateList1:function(){var t=this;this.create.listLoadingTimes=!0;var e="authdata/spillage",a={page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),times:this.create.temp.times,refresh:2,ftid:this.create.temp.ftid}};Object(p["n"])(e,a).then((function(e){if(null!==e.data.ftlist){for(var a=0;a<e.data.ftlist.length;a++)if(t.$set(e.data.ftlist[a],"isShowTitle",!0),null==e.data.ftlist[a].arrList)t.$set(e.data.ftlist[a],"isShowTitle",!1);else for(var i=0;i<e.data.ftlist[a].arrList.length;i++)t.$set(e.data.ftlist[a].arrList[i],"background2",t.colorRgb(e.data.ftlist[a].arrList[i].background));t.create.list1=e.data.ftlist}else t.create.list1=[];t.create.listLoadingTimes=!1})),this.getCreateList2()},getCreateList2:function(){var t=this,e="authdata/lpplandtl",a={parammaps:{}};a.parammaps.pastureid=n.a.get("pastureid"),a.parammaps.id=this.create.temp.id,Object(p["n"])(e,a).then((function(e){if(null!==e.data){t.create.list2=e.data,t.create.temp.sort=e.data.length+1;for(var a=0,i=0;i<t.create.list2.length;i++)a+=parseFloat(t.create.list2[i].weight),t.$set(t.create.list2[i],"isWeight",!1),t.$set(t.create.list2[i],"focusState",!1);t.create.temp.sumweight=a.toFixed(2)}else t.create.list2=[],t.create.temp.sumweight=0}))},clickBar:function(t){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.create.temp.sumweight=parseFloat(this.create.temp.sumweight),"固定式"==this.create.temp.tclassname&&void 0!==this.equipmentList.find((function(t){return"任意车"==t.tclassname}))&&(this.create.temp.tmrname=this.equipmentList.find((function(t){return"任意车"==t.tclassname})).eqcode,this.create.temp.tmrid=this.equipmentList.find((function(t){return"任意车"==t.tclassname})).id);var a=this.create.temp;if(parseFloat(a.maxweight)-parseFloat(a.sumweight)<parseFloat(t.weight)&&parseFloat(a.sumweight)+parseFloat(t.weight)>parseFloat(a.maxweight)&&this.$set(t,"weight",(parseFloat(a.maxweight)-parseFloat(a.sumweight)).toFixed(2)),parseFloat(a.maxweight)==parseFloat(a.sumweight)||parseFloat(a.maxweight)<parseFloat(a.sumweight))return this.$message({type:"error",message:"计划配方已经是最大容量",duration:2e3}),void this.getCreateList1();var i="authdata/lpplandtl/add",s={parammaps:{}};s.parammaps.id=t.id,s.parammaps.pastureid=a.pastureid,s.parammaps.lppid=a.id,s.parammaps.barid=t.barid,s.parammaps.barname=t.barname,s.parammaps.fpdid=t.id,s.parammaps.lweight=t.weight,s.parammaps.tmrid=a.tmrid,s.parammaps.tmrname=a.tmrname,s.parammaps.fttype=t.fttype,s.parammaps.background=t.background,s.parammaps.cowcount=t.cowcount,s.parammaps.ccountradio=t.ccountradio,Object(p["n"])(i,s).then((function(a){e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:t.pastureid,id:t.id,fttype:t.fttype,lweight:t.weight}};var i="authdata/ExecDataByConfig",s=e.requestParam;Object(p["n"])(i,s).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.getCreateList1()}))}))},handleUpdate:function(t){this.getDownList(),this.dialogFull=!1,this.create.dialogStatus="update",this.create.dialogFormVisible=!0,t.tmrid2=t.tmrid,this.create.temp=Object.assign({},t),this.create.temp.mytmrname=t.tmrname,this.create.temp.mytmrid=t.tmrid,this.create.checkBarList=[],this.getCreateList1()},updateData:function(){var t=this;this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a="authdata/lpplan/edit",i={};t.create.temp.pastureid=n.a.get("pastureid"),t.create.temp.times=parseInt(t.create.temp.times),i.parammaps=t.create.temp,i.parammaps.tmrid=t.create.temp.mytmrid,i.parammaps.tmrname=t.create.temp.mytmrname,Object(p["n"])(a,i).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},close:function(){var t=this;if("create"==this.create.dialogStatus){this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var e="authdata/lpplandtl/restore",a={old:[]};a.new=this.create.list2,Object(p["n"])(e,a).then((function(e){"fail"!==e.msg&&(t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList())}))}else{this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var i="authdata/lpplandtl/restore",s={};s.old=this.create.temp.arrList,s.new=this.create.list2,Object(p["n"])(i,s).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}},changeEquipment:function(t,e,a){var i=this,s=this.equipmentList.find((function(e){return e.id==t})).tclassname,r=this.equipmentList.find((function(e){return e.id==t})).maxstirfeed;if("固定式"==s)return this.$message({type:"error",message:"固定式设备无法撒料,请选择撒料设备",duration:2e3}),void this.getCreateList2();for(var l={},n=0;n<this.create.list2.length;n++)this.create.list2[n].fttype==e&&this.create.list2[n].id==a&&(this.create.list2[n].tmrname=this.equipmentList.find((function(e){return e.id===t})).tname,l=this.create.list2[n],parseFloat(this.create.list2[n].weight)>parseFloat(r)&&(l.weight=r));var o="authdata/lpplandtl/add",c={parammaps:{}};c.parammaps.id=l.id,c.parammaps.pastureid=this.create.temp.pastureid,c.parammaps.lppid=this.create.temp.id,c.parammaps.tmrid=l.tmrid,c.parammaps.tmrname=l.tmrname,Object(p["n"])(o,c).then((function(t){"fail"===t.msg?i.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(i.getCreateList2(),i.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},move1:function(t,e){},changeLog1:function(t){var e=this,a="authdata/lpplandtl/edit/sort",i={},s=t.moved.element;i.parammaps={},i.parammaps.tmrid=s.tmrid,i.parammaps.pastureid=s.pastureid,i.parammaps.lppid=s.lppid,i.parammaps.sort=t.moved.newIndex+1,i.parammaps.id=s.id,Object(p["n"])(a,i).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getCreateList2(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},start1:function(t){},end1:function(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(){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(p["b"])(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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleAutomaticGeneration:function(){this.dialogFull=!1,this.automaticGeneration.dialogStatus="automaticGeneration",this.automaticGeneration.dialogFormVisible=!0},continueData:function(t){var e=this;if(0==t){this.requestParam={},this.requestParam.pastureid=n.a.get("pastureid"),this.requestParam.type=0;var a="authdata/autogeneration",i=this.requestParam;Object(p["n"])(a,i).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.automaticGeneration.dialogFormVisible=!1,e.getIsDisplay()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))}else m["MessageBox"].confirm("重新生成计划会将原有计划清空再生成,是否确认重新生成?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.automaticGeneration.dialogFormVisible=!1,e.requestParam={},e.requestParam.pastureid=n.a.get("pastureid"),e.requestParam.type=1;var t="authdata/autogeneration",a=e.requestParam;Object(p["n"])(t,a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.automaticGeneration.dialogFormVisible=!1,e.getIsDisplay()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消重新生成"})}))},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},rowDrop:function(){var t=document.querySelector("#table .el-table__body-wrapper tbody"),e=this,a=d["default"].create(t,{disabled:e.dropState,onChoose:function(t){t.newIndex,t.oldIndex;1!=e.dropState&&1!=e.isOrder||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)}})},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a+1,i.id=this.table.list[a].id,i.pastureid=this.table.list[a].pastureid,e.push(i)}var s="authdata/trains",r=e;Object(p["n"])(s,r).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.table.getdataListParm.parammaps.refresh=1,t.getList(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.table.getdataListParm.parammaps.refresh=1,this.getList(),this.isOrder=!0},handleTakeEffect:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否生效?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].sel=1;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:"updatelpplanEnable",type:"e",parammaps:{sel:"@insertSpotList.sel",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(p["b"])(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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleDisable:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否禁用?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].sel=0;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:"updatelpplanEnable",type:"e",parammaps:{sel:"@insertSpotList.sel",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(p["b"])(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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleHistoryRecord:function(){this.dialogFull=!1,this.historyRecord.dialogStatus="historyRecord",this.historyRecord.dialogFormVisible=!0;var t=this,e=function(){return Promise.resolve().then(a.bind(null,"b3b2"))};return t.historyRecord.myComponent=e},handleCheck:function(){this.check.dialogStatus="check",this.check.dialogFormVisible=!0,this.getCheckList()},getCheckList:function(){var t=this,e="authdata/spillage",a={page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),times:this.table.getdataListParm.parammaps.times,refresh:2}};Object(p["n"])(e,a).then((function(e){void 0!==e.data.ftlist&&null!==e.data.ftlist?(t.$set(t.check.temp,"isDistribution",0),t.check.temp.ftlist=e.data.ftlist):(t.check.temp={},t.$set(t.check.temp,"isDistribution",1))}))},handleEmpty:function(){for(var t=this,e=[],a=0;a<this.create.list2.length;a++){var i={};i.pastureid=this.create.list2[a].pastureid,i.id=this.create.list2[a].fpdid,i.fttype=this.create.list2[a].fttype,i.lweight="-"+this.create.list2[a].weight,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deleteLpplandtl1ByLppid",type:"e",parammaps:{lppid:this.create.temp.id,pastureid:n.a.get("pastureid")}},this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",id:"@insertSpotList.id",fttype:"@insertSpotList.fttype",lweight:"@insertSpotList.lweight"}},Object(p["b"])(this.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.getCreateList1())}))},handleAllEmpty:function(){var t=this;m["MessageBox"].confirm("执行该操作会将现有车次已分配的撒料栏舍全部清空,是否要执行该操作?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"deleteLpplandtl1All",type:"e",parammaps:{pastureid:n.a.get("pastureid"),times:t.table.getdataListParm.parammaps.times}},t.requestParam.data[1]={name:"deletefpdetailAll",type:"e",parammaps:{pastureid:n.a.get("pastureid"),times:t.table.getdataListParm.parammaps.times}},Object(p["b"])(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())}))}))}}},h=u,b=(a("0627"),a("63c1"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"77ff276e",null);e["default"]=g.exports},1855:function(t,e,a){},1879:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAALzElEQVR4Xu2dfZRUZR3Hv88dUPC1kCOmlWEeKLQ0ERMI01I7kVL4wilBDsvc2Z1nVkh86WXr6Jp5KFMhl507u3NnIUXoSBod8khlRyrIF8KSyfRYlAhiZglZKQJzn85z752d2WHmvj73zrN79vlrz5nf83v73Jfn5ffcJRhuUmWASOXNsDMYBiLZRTAMZBiIZBmQzJ2hd4f0tU0CS0wFjP0oJbaitftFyXLu6M7QAVJomwqmLAFwdU3EG6BqswYLlKEBZGXrR1BKbHdI+nNQtTMHA5ShAUTPrAfY552fBawTydxtskMZIkDonwGc7pLsTVC1i4aBxJEBnTJPZlRN+gtQegc9JVqnjwO40EX2UajaTE/6mig0VIB8D8BNLnmcC1Vb08RcezI9NIDwUHX6LICPNoh6HVRtjqeMNFlo6ACxoNS+S14EYWsGw+iqfB2IA6KnvwhgBkBOAsjjMLAZrdk/xHbB5TNXgLCH+u0xdhFSuU2x2RdkSAwQnT5YZ4a8Dwy3IaUtF+Srs5pCZjUYm2sLbcbucZ9EZ6cRi22BRsID0envAExu6BNDG1Jar0Cf66vS6b8BHGf/uBSq1hG5zQgMhANSSF8JRn7k6teoEcdjXtebrnJBBfJtM0GURyrdyWehZjcGVdfMfuGA6OnvAuQrrgEoxhlY2PMnV7mgAgWqgyFpd9+GUukCtPW+FVRdM/uFBEJ/DOALrgEY5Dy0Zre6ygUV0NO7APJeqztbBjV3Q1BVze4XEkjmJoDxSZlz2/vfY3Dz/f9zEwv0ez79KRDyy6q+s6Fq6wPpkqBTOCCFzKVg7GeucZAIV1oLdAUY2m0fdgKjzoG67A1XnyQVCAeEB6VTviHEh73OLSooOn0OwCTbuAZVy7i5IvPv4YFYUN4BcERVoHsAbDlsbiIaSm9mGhTG7diNfQlq7ocyJ9zNt/BA+B62ofCr1GoES5C0J4P17h6RUHRavaj4Fg6yCaC5V9yClvn38EB0+h0AX7WDPABiTEeyh08WrRYlFJ0+AeB860Iga5HMXiNzsr34JgLITgDvt439HKr2mcMMRwFFT38MIM9UnlZYiJS20kvQMsuEA5JXx4GM/HslKewWpHK31w1YNBSdfhNAxVapdDraenfInGwvvoUDUqA3g+HOKiDOK6wioeiUD7cvtd9bjyGpXeIlYNllwgHR6VMAzrODfBK7n5+Bzk2HHIMWASWf+TAI4++po2wgi5HUuoQn27RjnIWEsgMtEa40VDkeHMiDVyfw5tiq5JM7oWbLL3fn3ISF0pdeDIN8v9+IoZyJ1u7KSC8MmXuWjMaxb98AkPkgmDBAFSH3gqELavYvYUw49Q0OpI+2wEBfRTmZBTW7wbOjYaDk0+tAyFW2rWehamd7tuskaG6ykUL/nddYtgOqtlSIzRolwYHo9CcAyiWaLyNx5FloWb7Pl5NBoOSvGw9S+i2Ak6zHFbkdyewtvuzWE87T80HAh9EeG0lDzfZ4FPYsFgbI6wDG2paCL1n4hVLILABjleEtMaYMmPd4Dr1GsEA3guHwIbuTvpNHjMLMLr5KIawFA1Kgs8DA7xCrKeQaLMyuDeyVHyh6ugCQhbatPVC1UwLbLXe0CrX5XeevMfZlpHL3+uvkLB0USA8YWm3VJShkPBZmd4VyzAuU+9In4gD5DWC/bBlySGk0lF3e2etGW60hhl8hpbkV6PlyLxgQnRYBlKvJ10PVZvuy2kjYDUptZQnBTCS1R0PbztOnQTAlkJ7d4xIiiyn8A+nLTINRtcIquoihERQou8EYf8aXz38chKpVrzAHyqfZaeAF5k+P4HoB/0B0ykv6K6MaRiYhlX3eXxQu0t72WPZB1d4txG6e6iD9e/I+VJLXoGat0Z6g5h9Igf4CDBeb9hm2IqWVZ+qCXLLVeIMi5nHZm54NhTwcIADh5Ub+gBToRDDwFVZryQK4Far2rQCBeOuiU763cbKjMMGNSGr3eFPoIKXTFwBM9KUnYUxASw8/myKs+QOit2UApbtinX0cau5pYd5UK9KTY4Aj/uVB92ao2gwPcs4ieToPBPd71kPI3Uhm3SruPasrC/oEQrnD88zOBK8gqdmlN77tuneo3Yls2IO9ATV3grtCDxIFugwM13uQjOwgqXcgP2g/AQcNfjecZjlMeqBm0x6cDy6i0z8COMNRAWMPIJWzLhIRLd92CYjCr3xraX9g2w6G5VFuhHkHUjsHMNjlaM39VEQOGuoopG8FI52ONkhiCpIrKlvGohzqaf0QEiMuBmNng2AHiLEJyR4fa13BHPEOpLqggIBh1z9HoXPdgWBmffTKZx4GYfUnniILJny4FKWodyAFugUM02xnInuG1g22N70ACllsjoIY9oLgbwDrHuwlP/VidQZSuO5coJQCM48bVI4ciJ6dR3nJDTLdjYE4Pr/JKqjZFilj1dsvQGLkdt97M5IEUx9IX/oyGMR590/G53e5EoXgHwDpQDLLd/8GVasPRKd3A3Ap6We7oebeJ0W0ve0ToBi8yKF2qLoRYB1Qc7+Xwk8PTjQCwg9PXuHa31AmNv3zR4VMEmBdYBjd2F92B9Qcr+OSvjUCUu8Q5+HBHGTjQXMvNSXK1YuOw9uHukAw35N9xl4AQwdac/yQkbStPpBCZikY+5qj1wRPIalZdbVxN51+DiBdABvv2zSf2RtGB9p6X/bdN4YO9YH0tI5FIsHLMsunWg93heFapLTVMfg40ETQ7daBWvabL301uyx2/10MNh726unpANncoP8aqFr5THg8MeXpZBDzrpgq0OAWQOmA2v1rgTpDqXKeGPa0Ho9E4uv2guIxYPgrCHsGaq6qQC6UfW+dC/R6MER3NfOKxJFHdWD+XdGcg/QWpSnlfenEh1Jholr6FIxQuhquZQkzZG8nWHOX+0Sq9atLXiBWWSefW5SL8fzGFlR+gz134Uv/sTf5gFhF3BxE+HqrMOls0kqEXEDy6QutF3d/zVeYlIbvy1jRnrtEu+9T5ak8QHTKS4sk/WooW4WSOXd5NTxlZw3NB8J35pQEn3FbpUXytv/Yc5cVUbrYXCCFTAqM8UfUkVEGKVj3JhClA8nuSLZzmwNk5YJ3oTSagxBXnCA4667qeBnQsSd2YE6n0G3s+IHomcvN1VngVNegZRcolU4VvSYWL5CBX16QPd1u/kVSVxAfEJ3yM+WDYk/CjYT1ezTfVYkPCI9Bp/ywzSe8BSyzlMBqyZow4wXS134ODGObzKn25Bs/Gp3SeFmS8BYvEO5+Pn0jCLlLeCRxKmSYipT2ZBQm4wfCoyjQDWC4LIqAYtC5Dap2blR2mgOkj54GA/w/4hwdVWCR6RV1HqWBg80BYt4lmSQY0yNLXFSKE+Q9aMlWvoAk2E7zgFjvk9UgJN6t4HAJfAiqVv6kRzhN0t0h5jB4yRiQ/fzMRfjD/5Gkp0YpI1cilQ1yFtGzd829Q8xHl8fPlXsOKTLBV6FqzucdBZhuPhDz0UVXgPR/e1dAWBGoiOhMYa2ncgCxtm35f8hxPr4WQZ49q1SUyVjYXfnGo+eO/gTlAGK+T9o/DRiP+XM/LmnyBNRs+bBSpEblAWJCSX8bIN+INOJAytkiqLlIdwrLbskFxIRCebXk9EB5i6rTaIzBXG1vVOqr9coHxCwZhfhTtUGzSdhaJHOxfaBZPiDmXeLx32AETbKffnEc/67yR04g5lA4/QgIafZ/5twJVfuAH35hZeUFsmrRB3HoEF+ALH/oJmysQfoL/9qPmxPyArFe8Cq/V9yCCP07/xACQxGMFEF4taJRRCJRDP3ZwgCOyQ3EgvIAAJEv1T1m8hVsBy8VTShFHP16EXPWlQLkT3gX+YFYp7n4LN7vOtI7QPmKZ0UY/O+DRaT014RnUaBC+YGYL/jMVSBsnUPcL4HYVzxTikiUipH+mz6BAGpVDQ4g5qMr3Q2Qa83HDSFF83FDjCIOKEVk4pm0RcihX/XgARJHNiSwMQxEAghyL51IlqC43Rm+Q+LOuIu9YSDDQCTLgGTuDN8hw0Aky4Bk7vwf4CGJkkxGyhIAAAAASUVORK5CYII="},"18b7":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjAwODhGNTVEQzI3QjExRUI5NzU1QjdCQUJDMkRDRDRCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjAwODhGNTVFQzI3QjExRUI5NzU1QjdCQUJDMkRDRDRCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDA4OEY1NUJDMjdCMTFFQjk3NTVCN0JBQkMyRENENEIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDA4OEY1NUNDMjdCMTFFQjk3NTVCN0JBQkMyRENENEIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6OFFReAAACWUlEQVR42uyZS0scQRDHa3pHs2KCrkTBePAuJCcPXn2ArAfzATx6EkRzUvwKipAlOYqfQTysiJpcBfFiQrwH4vu5PsbX7qR6rF5rm7nodu+MsAV/Zpie2fpN1Tx6/uvA3AiwcLSlvm4j/JD14jbBIJSSqAzqEJVHPViWzHFEOZMaC7hapSTwNGoUKhspynmDmkIVVBUFoxUEPATRxTAxFLlcVr0EDaYiBEwRg6/ksupJwFqIPmqpxUGbhXb9uTEA5C2GVwHoaG2OOhK8cEIbdGIAWPKyENpAXAAd/U3y4lgfnICNz5PQnHxrhbZswBqRgM737bA28MUKZNmA6eXv8OdsFz6mPliBLBvwwLuA7uzXIuRqetwopDDxIxKyJ5sJID81tRmFFKbOdN/LBZDbZ3sB5Ep6zAikMH1R+zTXdAw9sYwBttS9gx8D49DR2ApbJ/+gbykDhzeX8QCUcD/xDpZwv053jMEZAdThevGONgVnBHCpfzSA+20BzgjgfSEPm0d/8Q42Dwcm5n9di9NWZw4CYh5VwCpgFfAZgOprPhchT45xhFZQDmQjBFwAzYLjPoi0GqQVNouqQ/Wh6isEdoVaRX0jhoKCdBmt3Cj9ugvUDGoe1QCPnp2tD3oJIy23c9Qx5X4AZr+FAXp0gIxb1BvLgDLHJeX0wgB5e+9op2AeQAfWcK/E6OT7Me89VVHmvSYG1eaSFucJwmOld6l6jiVAlVfZwXfwZAuXVBBYi9WZCSawBKjyFlgX86zFvhtScrV0KuTX+NqTpOQ56GpnA/oOEPHfEP8FGADS3fBPhRbu9QAAAABJRU5ErkJggg=="},"18c8":function(t,e,a){"use strict";a("c1dd")},"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},"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 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="M157.502578 395.940978l225.1264 75.036444 306.323911-218.794666 204.993422 122.993777a28.444444 28.444444 0 0 1 13.812622 24.388267v546.218667a28.444444 28.444444 0 0 1-28.444444 28.444444H148.508444a28.444444 28.444444 0 0 1-28.444444-28.444444V422.923378a28.444444 28.444444 0 0 1 37.438578-26.9824z m137.602844 184.439466v87.523556h393.847467V580.380444h-393.841778z m0 175.047112v87.517866h262.564978V755.427556H295.105422zM688.952889 46.500978l204.993422 122.993778a28.444444 28.444444 0 0 1 13.812622 24.393955v38.684445a28.444444 28.444444 0 0 1-43.081955 24.388266l-66.321067-39.793778-109.397333-65.6384-297.580089 214.4256L139.776 284.791467a28.444444 28.444444 0 0 1-19.712-27.067734v-35.669333a28.444444 28.444444 0 0 1 37.717333-26.885689l216.098134 74.513067 315.073422-223.175111z" p-id="210846" /></symbol>'});l.a.add(n);e["default"]=n},"1a07":function(t,e,a){"use strict";a("3b30")},"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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增盘点单")]):t._e(),a("el-button",{staticClass:"success",attrs:{icon:"el-icon-upload2"},on:{click:t.handleInventoryList}},[t._v("下载盘点单")]),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-button",{staticClass:"import",staticStyle:{float:"right","margin-right":"10px"},attrs:{icon:"el-icon-upload2"},on:{click:function(e){return t.handleExport(1)}}},[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,"max-height":t.myHeight}},[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:"80","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,icon:"el-icon-search"},on:{click:function(a){return t.handleSee(e.row)}}}),e.$index+(t.table.pageNum-1)*t.table.pageSize+1==1&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),e.$index+(t.table.pageNum-1)*t.table.pageSize+1==1&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(a){return t.handleRowDelete(e.row)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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"},["see"===t.create.dialogStatus?a("el-button",{staticClass:"import",attrs:{icon:"el-icon-upload2",disabled:t.isokDisable},on:{click:function(e){return t.handleExport(2)}}},[t._v("导出")]):t._e(),"see"===t.create.dialogStatus?a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]):t._e(),"create"===t.create.dialogStatus?a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]):t._e(),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData()}}},[t._v("确认")]):t._e()],1)],1)],2)],1)},s=[],r=(a("ac1f"),a("00b4"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("2934")),l=a("333d"),n=a("ed08"),o=a("5c96"),c=a("a78e"),d=a.n(c),p=(a("bc3a"),a("5f87")),m={name:"InventoryList",components:{Pagination:l["a"]},data:function(){return{dialogFull:!1,table:{getdataListParm:{name:"getBigInventoryList",page:1,offset:1,pagecount:parseInt(d.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{create:"新增",see:"查看盘点单"},create:{pickerOptions1:{disabledDate:this.disabledDate},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:d.a.get("pastureid"),remark:"",inventorydate:Object(n["d"])(new Date,"{y}-{m}-{d}"),createuser:d.a.get("employename")},rules:{},getdataListParm:{name:"getFeedstorageWeightList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),emp:d.a.get("employename")}},tableKey:0,list:[],total:0,listLoading:!0,getMaxdataParm:{name:"getInventoryMaxdate",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},maxDate:""},see:{getdataListParm:{name:"getInventoryList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{}}},requestParam:{},download:{getdataListParm:{name:"getBigInventoryList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},list:[]},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(p["a"])()}},uploadData:function(){return{name:"checkFeed,insertBigInventoryUpload,insertInventoryUpload",importParams:"盘点日期,盘点人,备注,饲料名称,库存重量(kg),实际重量(kg)",sheetname:"Sheet1",pastureid:d.a.get("pastureid"),dateParams:"盘点日期",requiredParams:"盘点日期,饲料名称,库存重量(kg),实际重量(kg)",numParams:"实际重量(kg)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},created:function(){this.getButtons(),this.getList()},methods:{getButtons:function(){var t="InventoryList",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},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["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(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["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},handleSearch:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(n["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(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["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),remark:"",inventorydate:Object(n["d"])(new Date,"{y}-{m}-{d}"),createuser:d.a.get("employename")}},handleCreate:function(){this.resetCreateTemp(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.getMaxDate(),this.getCreateList()},disabledDate:function(t){return t.getTime()<new Date(this.create.maxDate)||t.getTime()>Date.now()},getMaxDate:function(){var t=this;Object(r["c"])(this.create.getMaxdataParm).then((function(e){t.create.maxDate=e.data.list[0].maxdate}))},getCreateList:function(){var t=this;this.create.listLoading=!0,Object(r["c"])(this.create.getdataListParm).then((function(e){if(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.factweight&&""!==t.stockweight&&(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]);for(var s=0;s<a.length;s++){var l=/^\d+(\.\d{1,2})?$/;if(!l.test(parseFloat(a[s].factweight)))return t.$message({type:"error",message:"实际重量请输入自然数并保留两位小数",duration:2e3}),!1}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["d"])(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){if("fail"===e.msg){var a=new RegExp("key 'inventorydate'");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.create.dialogFormVisible=!1,t.getList()}))}}))},handleSee:function(t){this.dialogFull=!1,this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},t),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["c"])(this.see.getdataListParm).then((function(e){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:"已取消删除"})}))},handleInventoryList:function(){var t=this;this.download.getdataListParm.name="getFeedstorageWeightList",this.download.getdataListParm.parammaps={},this.download.getdataListParm.parammaps.pastureid=d.a.get("pastureid"),this.download.getdataListParm.parammaps.emp=d.a.get("employename"),Object(r["c"])(this.download.getdataListParm).then((function(e){null!==e.data.list?t.download.list=e.data.list:t.download.list=[];var a=[{obj1:"1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;"},{obj1:"2、底部工作表名称不可更改,默认为:Sheet1;"},{obj1:"3、盘点日期,饲料名称为必填;"},{obj1:"4、饲料名称必须与系统基础数据-饲料表中匹配;"},{obj1:"5、实际重量为非负数,至多保留俩位小数;"},{obj1:"6、盘点日期为文本格式的年-月-日,例:2020-10-10,盘点日期不可与系统已存在日期重复;盘点日期需保持一致"},{obj1:"7、库存重量仅做参考,不与系统现有库存做校验;"},{obj1:"8、实际重量可仅填写部分,导入已填写实际重量的饲料生成盘点单。"},{obj1:"9、若有备注则填写在表格内容中第一个饲料行内即可;"}],i=[{tHeader:["盘点日期","盘点人","备注","饲料名称","库存重量(kg)","实际重量(kg)"],filterVal:["nowdate","emp","","feedname","stockweight",""],tableDatas:t.download.list,sheetName:"Sheet1"},{tHeader:["填写规范:"],filterVal:["obj1"],tableDatas:a,sheetName:"Sheet2"}];Object(n["c"])(i,"盘点单导入模板",!0,"xlsx")}))},handleExport:function(t){var e=this;1==t?(this.download.getdataListParm.parammaps.inputDatetime=this.table.getdataListParm.parammaps.inputDatetime,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(n["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(n["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),this.download.getdataListParm.name="getBigInventoryList",Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["盘点日期","盘点人","盘盈库存(kg)","盘亏库存(kg)","盈亏净值(kg)","备注"],filterVal:["inventorydate","createuser","moreWeight","lessWeight","differWeight","remark"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(n["c"])(a,"盘点单",!0,"xlsx")}))):(this.download.getdataListParm.name="getInventoryList",this.download.getdataListParm.parammaps=this.see.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(t){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"inventorydate",e.create.createTemp.inventorydate),e.$set(t.data.list[a],"createuser",e.create.createTemp.createuser),e.$set(t.data.list[a],"remark",e.create.createTemp.remark);null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var i=[{tHeader:["盘点日期","盘点人","备注","饲料名称","库存重量(kg)","实际重量(kg)","差值(kg)"],filterVal:["inventorydate","createuser","remark","feedname","stockweight","factweight","differ"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(n["c"])(i,"盘点-查看",!0,"xlsx")})))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["盘点日期","盘点人","备注","饲料名称","库存重量(kg)","实际重量(kg)","错误信息"],r=["盘点日期","盘点人","备注","饲料名称","库存重量(kg)","实际重量(kg)","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"盘点单报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(n["d"])(e[t]):e[t]}))}))}}},u=m,h=(a("0477"),a("60b1"),a("2877")),b=Object(h["a"])(u,i,s,!1,null,"3d4baa8c",null);e["default"]=b.exports},"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:"/"}));l.interceptors.request.use((function(t){return t.withCredentials=!0,t}),(function(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&&Object(r["Message"])({message:t.message,type:"error",duration:5e3}),Promise.reject(t)})),e["a"]=l},"1d53":function(t,e,a){},"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(t.myComponent,{ref:"detail",tag:"component"})},s=[],r=a("5530"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("2f62")),n=a("383d"),o=a("70a1"),c=a("a78e"),d=a.n(c),p={name:"ErrorAnalysis",components:{groupErrorAnalysis:n["default"],PastureErrorAnalysis:o["default"]},data:function(){return{myComponent:null}},computed:Object(r["a"])({},Object(l["b"])(["ispastureuse"])),mounted:function(){this.detailComponent()},methods:{detailComponent:function(){if("1"==d.a.get("ispastureuse")){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"383d"))};return t.myComponent=e}var i=this;e=function(){return Promise.resolve().then(a.bind(null,"70a1"))};return i.myComponent=e}}},m=p,u=a("2877"),h=Object(u["a"])(m,i,s,!1,null,null,null);e["default"]=h.exports},"1edb":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:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.change_date},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",attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"计划类型",clearable:""},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:"180px"},attrs:{placeholder:"TMR名称",clearable:"",multiple:""},model:{value:t.table.getdataListParm.parammaps.tmrtname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tmrtname",e)},expression:"table.getdataListParm.parammaps.tmrtname"}},t._l(t.TMRList,(function(t){return a("el-option",{key:t.tmrtname,attrs:{label:t.tmrtname,value:t.tmrtname}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"误差筛选范围",clearable:""},model:{value:t.table.getdataListParm.parammaps.error,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"error",e)},expression:"table.getdataListParm.parammaps.error"}},t._l(t.errorList,(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:{placeholder:"工作状态",clearable:""},model:{value:t.table.getdataListParm.parammaps.iscompleted,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"iscompleted",e)},expression:"table.getdataListParm.parammaps.iscompleted"}},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:10}},[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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,height:t.myheight},on:{"row-click":t.rowClick}},[a("el-table-column",{attrs:{sortable:"",label:"开始时间","min-width":"100px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{sortable:"",label:"计划类型","min-width":"80px",align:"center",prop:"lpplantype"}}),a("el-table-column",{attrs:{sortable:"",label:"描述","min-width":"90px",align:"center",prop:"remark"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR名称","min-width":"80px",align:"center",prop:"tmrtname"}})],1)],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()]),t.isPremixedPlan?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("混料时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Hdif))]),a("span",[t._v("混料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].HdifRate))]),a("span",[t._v("混料准确率")])]):t._e()]),a("div",{staticClass:"Mixture"},[a("h4",[t._v("混料详情1")]),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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"60px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"60px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"60px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"60px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"60px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"60px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"60px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"60px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"60px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"60px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"60px",align:"center",prop:"actualweight"}})],1)],1)]):t._e(),t.isSpreadingPlan?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("混料时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Hdif)+"kg")]),a("span",[t._v("混料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].HdifRate))]),a("span",[t._v("混料准确率")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Sdif)+"kg")]),a("span",[t._v("撒料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].SdifRate))]),a("span",[t._v("撒料准确率")])]):t._e()]),a("div",{staticClass:"Mixture"},[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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"70px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"70px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"50px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"70px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"70px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"70px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"70px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"70px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"70px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"70px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"70px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"70px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"70px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"70px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"70px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"70px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"70px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"70px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"70px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"70px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"70px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"70px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"ControlChart"},[a("h4",[t._v("监控图")]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])]):t._e(),t.isResidualMaterialPlan?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e()]),a("div",{staticClass:"Mixture"},[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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-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.sort))])]}}],null,!1,753807644)}),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))])]}}],null,!1,4063637959)}),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.sweight))])]}}],null,!1,3364242997)})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"span-method":t.objectSpanMethod,"element-loading-text":"给我一点时间",data:t.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"110px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"转投栏舍","min-width":"110px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"允许分配剩料量","min-width":"110px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际分配重量(kg)","min-width":"110px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"废弃剩料重量","min-width":"110px",align:"center",prop:"aweight"}})],1)],1)]):t._e(),t.isSpreadingPlanSH?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("混料时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Hdif)+"kg")]),a("span",[t._v("混料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].HdifRate))]),a("span",[t._v("混料准确率")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Sdif)+"kg")]),a("span",[t._v("撒料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].SdifRate))]),a("span",[t._v("撒料准确率")])]):t._e()]),a("div",{staticClass:"Mixture"},[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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"60px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"60px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"60px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"60px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"60px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"60px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"60px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"60px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"60px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"60px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"60px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"60px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"撒料车辆","min-width":"60px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"60px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"60px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"60px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"60px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"60px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"60px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"60px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"60px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"60px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"ControlChart"},[a("h4",[t._v("监控图")]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])]):t._e(),t.isSpreadingPlanSS?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("混料时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Hdif)+"kg")]),a("span",[t._v("混料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].HdifRate))]),a("span",[t._v("混料准确率")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Sdif)+"kg")]),a("span",[t._v("撒料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].SdifRate))]),a("span",[t._v("撒料准确率")])]):t._e()]),a("div",{staticClass:"Mixture"},[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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"60px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"撒料车辆","min-width":"60px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"60px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"60px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"60px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"60px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"60px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"60px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"60px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"60px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"60px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"70px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"撒料车辆","min-width":"70px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"70px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"70px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"70px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"70px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"70px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"70px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"70px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"70px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"70px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"ControlChart"},[a("h4",[t._v("监控图")]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])]):t._e()],1)],1)},s=[],r=(a("b0c0"),a("d3b7"),a("159b"),a("313e")),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08");a("817d");var p={name:"PastureProcessAnalysis",data:function(){var t=this;return{myheight:970,title:"",isPremixedPlan:"",isSpreadingPlan:"",isResidualMaterialPlan:"",isSpreadingPlanSH:"",isSpreadingPlanSS:"",pickerMinDate:"",Beforedisabled:!1,Nextdisabled:!1,pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=Date.now()+864e5),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()+864e5}},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:[{lable:"预混计划",value:"4"},{lable:"撒料计划",value:"0"},{lable:"剩料计划",value:"3"},{lable:"撒料计划-混料",value:"1"},{lable:"撒料计划-撒料",value:"2"},{lable:"预称重计划",value:"5"}],workingConditionList:[{id:"0",name:"进行中"},{id:"1",name:"已完成"}],table:{getdataListParm:{name:"getprocessAnalysis",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],iscompleted:"",tmrtname:"",lpplantype:""}},tableKey:0,list:[],total:0,listLoading:!0},table2:{getdataListParm:{name:"getprocessAnalysisStr",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!0},table3:{getdataListParm:{name:"getprocessAnalysisHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!0},table4:{getdataListParm:{name:"getprocessAnalysisSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!0},chart1:{getdataListParm:{name:"getprocessAnalysisTB",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!1,chartLine_data:[]},chartLine:null,chartLine_data:{},chartName:"",cellStyle:{padding:"0px"},TMRList:[],errorList:[{value:"有误差",label:"有误差"},{value:"无误差",label:"无误差"}],downTMR:{name:"getDownloadedplanTmrName",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),startdate:"",enddate:""}}}},created:function(){this.getList()},methods:{change_date:function(t){this.getDownList()},getDownList:function(){var t=this;this.downTMR.parammaps.startdate=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.downTMR.parammaps.enddate=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),Object(n["c"])(this.downTMR).then((function(e){t.TMRList=e.data.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(n["o"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.total=e.data.total,"预混计划"==e.data.list[0].lpplantype?(t.isPremixedPlan=!0,t.isSpreadingPlan=!1,t.isResidualMaterialPlan=!1,t.isSpreadingPlanSH=!1,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3()):"剩料计划"==e.data.list[0].lpplantype?(t.isResidualMaterialPlan=!0,t.isPremixedPlan=!1,t.isSpreadingPlan=!1,t.isSpreadingPlanSH=!1,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.name="getprocessAnalysisStrSH",t.table3.getdataListParm.name="getprocessAnalysisHLSH",t.table4.getdataListParm.name="getprocessAnalysisSLSH",t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4()):"撒料计划-混料"==e.data.list[0].lpplantype?(t.isSpreadingPlan=!1,t.isResidualMaterialPlan=!1,t.isPremixedPlan=!1,t.isSpreadingPlanSH=!0,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4(),t.chart1.getdataListParm.parammaps.pid=e.data.list[0].id,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getChart1()):"撒料计划-撒料"==e.data.list[0].lpplantype?(t.isSpreadingPlan=!1,t.isResidualMaterialPlan=!1,t.isPremixedPlan=!1,t.isSpreadingPlanSH=!1,t.isSpreadingPlanSS=!0,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4(),t.chart1.getdataListParm.parammaps.pid=e.data.list[0].id,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getChart1()):"预称重计划"==e.data.list[0].lpplantype?(t.isSpreadingPlan=!1,t.isResidualMaterialPlan=!1,t.isPremixedPlan=!1,t.isSpreadingPlanSH=!0,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4(),t.chart1.getdataListParm.parammaps.pid=e.data.list[0].id,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getChart1()):(t.isSpreadingPlan=!0,t.isResidualMaterialPlan=!1,t.isPremixedPlan=!1,t.isSpreadingPlanSH=!1,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4(),t.chart1.getdataListParm.parammaps.pid=e.data.list[0].id,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getChart1()),t.title=e.data.list[0].lpplantype):(t.table.list=[],t.table2.list=[],t.table3.list=[],t.table2.listLoading=!1,t.table3.listLoading=!1,t.table4.listLoading=!1,t.chart1.listLoading=!1),t.getDownList(),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(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(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.tmrtname="",this.table.getdataListParm.parammaps.iscompleted="",this.table.getdataListParm.parammaps.lpplantype="",this.table.getdataListParm.parammaps.startTime=Object(d["d"])(new Date,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(new Date,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.inputDatetime=[new Date,new Date],this.table.getdataListParm.offset=1,this.getList()},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));e>Date.now()?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getDownList(),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));e>Date.now()?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getDownList(),this.getList()},rowClick:function(t,e,a){this.table2.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.pid=t.id,this.table4.getdataListParm.parammaps.pid=t.id,this.chart1.getdataListParm.parammaps.pid=t.id,this.chartName=t.tmrtname,"预混计划"==t.lpplantype?(this.isPremixedPlan=!0,this.isResidualMaterialPlan=!1,this.isSpreadingPlan=!1,this.isSpreadingPlanSH=!1,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3()):"剩料计划"==t.lpplantype?(this.isResidualMaterialPlan=!0,this.isPremixedPlan=!1,this.isSpreadingPlan=!1,this.isSpreadingPlanSH=!1,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStrSH",this.table3.getdataListParm.name="getprocessAnalysisHLSH",this.table4.getdataListParm.name="getprocessAnalysisSLSH",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4()):"撒料计划-混料"==t.lpplantype?(this.isSpreadingPlan=!1,this.isPremixedPlan=!1,this.isResidualMaterialPlan=!1,this.isSpreadingPlanSH=!0,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table4.getdataListParm.name="getprocessAnalysisSL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.chart1.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4(),this.getChart1()):"撒料计划-撒料"==t.lpplantype?(this.isSpreadingPlan=!1,this.isPremixedPlan=!1,this.isResidualMaterialPlan=!1,this.isSpreadingPlanSH=!1,this.isSpreadingPlanSS=!0,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table4.getdataListParm.name="getprocessAnalysisSL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.chart1.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4(),this.getChart1()):"预称重计划"==t.lpplantype?(this.isSpreadingPlan=!1,this.isPremixedPlan=!1,this.isResidualMaterialPlan=!1,this.isSpreadingPlanSH=!0,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table4.getdataListParm.name="getprocessAnalysisSL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.chart1.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4(),this.getChart1()):(this.isSpreadingPlan=!0,this.isPremixedPlan=!1,this.isResidualMaterialPlan=!1,this.isSpreadingPlanSH=!1,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table4.getdataListParm.name="getprocessAnalysisSL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.chart1.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4(),this.getChart1()),this.title=""+t.lpplantype},getList2:function(){var t=this;this.table2.listLoading=!1,Object(n["c"])(this.table2.getdataListParm).then((function(e){null!==e.data.list?t.table2.list=e.data.list:t.table2.list=[],setTimeout((function(){t.table2.listLoading=!1}),100)}))},getList3:function(){var t=this;this.table3.listLoading=!1,Object(n["c"])(this.table3.getdataListParm).then((function(e){if(null!==e.data.list){t.table3.list=e.data.list;for(var a=0,i=0,s=0,r="",l=0;l<e.data.list.length;l++)void 0==e.data.list[l].lweight&&(e.data.list[l].lweight=0),void 0==e.data.list[l].actualweightminus&&(e.data.list[l].actualweightminus=0),void 0==e.data.list[l].sweight&&(e.data.list[l].sweight=0),a+=parseFloat(e.data.list[l].lweight),i+=parseFloat(e.data.list[l].actualweightminus),s+=parseFloat(e.data.list[l].sweight),r=e.data.list[0].sumproesstime;a=Object(n["k"])(a,2),i=Object(n["k"])(i,2),s=Object(n["k"])(s,2),t.table3.list.push({sort:"合计",lweight:a,actualweightminus:i,sweight:s,proesstime:r})}else t.table3.list=[];setTimeout((function(){t.table3.listLoading=!1}),100)}))},getList4:function(){var t=this;this.table4.listLoading=!1,Object(n["c"])(this.table4.getdataListParm).then((function(e){if(null!==e.data.list){t.table4.list=e.data.list;for(var a=0,i=0,s=0,r="",l=0;l<e.data.list.length;l++)void 0==e.data.list[l].lweight&&(e.data.list[l].lweight=0),void 0==e.data.list[l].actualweightminus&&(e.data.list[l].actualweightminus=0),void 0==e.data.list[l].sweight&&(e.data.list[l].sweight=0),a+=parseFloat(e.data.list[l].lweight),i+=parseFloat(e.data.list[l].actualweightminus),s+=parseFloat(e.data.list[l].sweight),r=e.data.list[0].sumproesstime;a=Object(n["k"])(a,2),i=Object(n["k"])(i,2),s=Object(n["k"])(s,2),t.table4.list.push({sort:"合计",lweight:a,actualweightminus:i,sweight:s,proesstime:r}),t.rowspan()}else t.table4.list=[];setTimeout((function(){t.table4.listLoading=!1}),100)}))},rowspan:function(){var t=this;this.spanArr=[],this.table4.list.forEach((function(e,a){0==a?(t.spanArr.push(1),t.position=0):t.table4.list[a].aweight==t.table4.list[a-1].aweight?(t.spanArr[t.position]+=1,t.spanArr.push(0)):(t.spanArr.push(1),t.position=a)}))},objectSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,a=t.columnIndex;if(4==a){var i=this.spanArr[e],s=i>0?1:0;return{rowspan:i,colspan:s}}},getChart1:function(){var t=this;this.chart1.listLoading=!0,Object(n["e"])(this.chart1.getdataListParm).then((function(e){null!==e.data.list?(t.chart1.list=e.data.data,t.chart1.chartLine_data=e.data.list,t.chart1.total=e.data.total,t.roadChartLine1(t.chart1.chartLine_data)):t.chart1.list=[],setTimeout((function(){t.chart1.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:["#ff0000","#5199e5","#fdb06a","#fb8b73"],legend:[{itemWidth:15,itemHeight:7,right:"25%",textStyle:{fontSize:12},data:[{name:"设计重量"},{name:"实际重量"}]},{itemWidth:5,itemHeight:5,right:"0",textStyle:{fontSize:12},data:[{name:"开始重量"},{name:"结束重量"}]}],tooltip:{trigger:"axis",formatter:function(t){for(var e=t[0].name,a=0;a<t.length;a++)"设计重量"==t[a].seriesName&&(e+="<br>"+t[a].seriesName+":"+t[a].value[1]),"实际重量"==t[a].seriesName&&(e+="<br>"+t[a].seriesName+":"+t[a].value[1]),"开始重量"==t[a].seriesName&&(e+="<br>"+t[a].seriesName+":"+t[a].value[1]),"结束重量"==t[a].seriesName&&(e+="<br>"+t[a].seriesName+":"+t[a].value[1]+"<br>"+t[a].value[2]+t[a].value[3]);return e}},calculable:!0,xAxis:[{type:"category"}],yAxis:[{type:"value"}],toolbox:{show:!1,feature:{dataZoom:{realtime:!1,yAxisIndex:"none"},restore:{}}},dataZoom:[{type:"inside"},{type:"slider"}],series:[{symbol:"none",name:"实际重量",type:"line",data:t.data3,itemStyle:{normal:{lineStyle:{color:"#ff0000",width:2}}}},{symbol:"none",name:"设计重量",type:"line",step:"middle",data:t.data2,itemStyle:{normal:{lineStyle:{width:2}}}},{name:"开始重量",symbolSize:6,type:"scatter",data:t.data4},{name:"结束重量",symbolSize:6,type:"scatter",data:t.data5}]};this.chartLine.setOption(e),window.onresize=function(){this.chartLine.resize()}},rowStyle:function(t){var e=t.row,a=(t.rowIndex,{});return 1==e.abnormal?(a.background="#fb8072",a.maxHeight="30px",a.height="30px",a):""}}},m=p,u=(a("7c47"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"59f86ce8",null);e["default"]=h.exports},2:function(t,e){},2017:function(t,e,a){"use strict";a("cafe")},"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:"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:"downminCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniPrimary",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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{float:"left","margin-left":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1)],1),a("div",{staticClass:"table"},[a("u-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:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id","max-height":t.myHeight},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",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.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:{placeholder:"1-32个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1)])},s=[],r=(a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("b0c0"),a("a434"),a("2934")),l=a("a78e"),n=a.n(l),o=a("b76a"),c=a.n(o),d=a("aa47"),p=a("333d"),m=a("5c96"),u={name:"GroupColumn",components:{Pagination:p["a"],draggable:c.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:"",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:"30px",height:"30px"},cellStyle:{padding:"0px"},dropState:!1,isOrder:!0,myHeight:document.documentElement.clientHeight-85-150}},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["d"])(this.requestParams).then((function(e){t.jumpDelayList=e.data.getDictByName.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleConfirmStartChange:function(){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList(),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){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},handleCreate:function(){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(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.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){var i=/^(\d|[1-9]\d|1[0-1]\d|120)$/;if(!i.test(parseFloat(this.table.temp.autozone)))return this.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于120的整数",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){if("fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("Duplicate entry :bar_bcode");if(a.test(t.data))return e.$notify({type:"error",message:"栏舍编号不可重复,请重新录入",duration:2e3}),!1;e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}})))},createCancel:function(t){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.autosecond=String(t.autosecond),this.table.temp.autosecondname=t.autosecondname,this.table.temp.autosecond=t.autosecond},updateData:function(t){var e=this;if(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.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){var i=/^(\d|[1-9]\d|1[0-1]\d|120)$/;if(!i.test(parseFloat(this.table.temp.autozone)))return this.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于120的整数",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){if("fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("Duplicate entry :bar_bcode");if(a.test(t.data))return e.$notify({type:"error",message:"栏舍编号不可重复,请重新录入",duration:2e3}),!1;e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}})))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkDeleteBar",type:"v",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"deleteBar",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择舍组栏信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){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:"checkDeleteBar",type:"v",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[0].children[1]={name:"deleteBar",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a+1,i.id=this.table.list[a].id,i.pastureid=this.table.list[a].pastureid,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"updateBarSort",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",sort:"@insertSpotList.sort"}},this.table.listLoading=!0,Object(r["b"])(this.requestParam).then((function(e){t.table.listLoading=!1,"fail"===e.msg?t.$notify({title:"顺序切换失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"顺序切换成功",type:"success",duration:2e3}),t.getList(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.getList(),this.isOrder=!0},rowDrop:function(){var t=document.querySelector("#table .el-table__body-wrapper tbody"),e=this,a=d["default"].create(t,{disabled:e.dropState,onChoose:function(t){t.newIndex,t.oldIndex;1!=e.dropState&&1!=e.isOrder||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)}})}}},h=u,b=(a("7985"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"06e5b41a",null);e["default"]=g.exports},2279: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:"successBorder",on:{click:t.handleFormulaDistribution}},[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.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:"120px"},attrs:{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.livestockList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.parentname}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{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:{placeholder:"使用状态",clearable:""},model:{value:t.table.getdataListParm.parammaps.useStatus,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"useStatus",e)},expression:"table.getdataListParm.parammaps.useStatus"}},t._l(t.useStatusList,(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.adjustmentResults,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"adjustmentResults",e)},expression:"table.getdataListParm.parammaps.adjustmentResults"}},t._l(t.adjustmentResultsList,(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}},[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":"100px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"100px",align:"center",prop:"ccname"}}),a("el-table-column",{attrs:{label:"配方类型","min-width":"100px",align:"center",prop:"fttype"}}),a("el-table-column",{attrs:{label:"是否为当前配方","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.isissue?a("span",[t._v("否")]):a("span",[t._v("是")])]}}])}),a("el-table-column",{attrs:{label:"已下发牧场","min-width":"100px",align:"center",prop:"grouppastures"}}),a("el-table-column",{attrs:{label:"下发时间","min-width":"100px",align:"center",prop:"issueTime"}}),a("el-table-column",{attrs:{label:"使用状态","min-width":"100px",align:"center",prop:"useStatus"}}),a("el-table-column",{attrs:{label:"调整结果","min-width":"100px",align:"center",prop:"adjustmentResults"},scopedSlots:t._u([{key:"default",fn:function(e){return["已调整"==e.row.adjustmentResults?a("a",{staticStyle:{"text-decoration":"underline"}},[t._v(t._s(e.row.adjustmentResults))]):a("span",[t._v(t._s(e.row.adjustmentResults))])]}}])}),a("el-table-column",{attrs:{label:"最近一次调整时间","min-width":"130px",align:"center",prop:"lastTime"}}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center",prop:"remark"}}),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":!0,align:"center","class-name":"small-padding fixed-width",width:"50",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}})]}}])})],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.formulaDistribution.dialogStatus],visible:t.formulaDistribution.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.formulaDistribution,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-formulaDistribution"},[a("h4",[t._v("请选择下发配方:")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.formulaDistribution.table.listLoading,expression:"formulaDistribution.table.listLoading"}],key:t.formulaDistribution.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.formulaDistribution.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",width:"55"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center",prop:"ccname"}}),a("el-table-column",{attrs:{label:"配方类型","min-width":"130px",align:"center",prop:"fttype"}}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center",prop:"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},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"}})]}}])})],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.formulaDistribution.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.nextData()}}},[t._v("下一步")])],1)]),a("el-dialog",{attrs:{title:t.textMap[t.formulaDistribution.pasture.dialogStatus],visible:t.formulaDistribution.pasture.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(e){return t.$set(t.formulaDistribution.pasture,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-pasture"},[a("h4",[t._v("选择下发牧场:")]),a("el-checkbox",{attrs:{indeterminate:t.formulaDistribution.pasture.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.formulaDistribution.pasture.checkAll,callback:function(e){t.$set(t.formulaDistribution.pasture,"checkAll",e)},expression:"formulaDistribution.pasture.checkAll"}},[t._v("全选")]),a("div",{staticStyle:{margin:"15px 0"}}),a("el-checkbox-group",{on:{change:t.handlePastureChange},model:{value:t.formulaDistribution.pasture.checkedList,callback:function(e){t.$set(t.formulaDistribution.pasture,"checkedList",e)},expression:"formulaDistribution.pasture.checkedList"}},t._l(t.formulaDistribution.pasture.list,(function(e){return a("el-checkbox",{key:e.id,attrs:{label:e,value:e.id}},[t._v(t._s(e.pasturename))])})),1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.formulaDistribution.pasture.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.formulaDistributionData()}}},[t._v("确认")])],1)]),a("el-dialog",{attrs:{title:t.textMap[t.see.dialogStatus],visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-see"},[a("el-tabs",{on:{"tab-click":t.handleSeeTabClick},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-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场",clearable:""},model:{value:t.see.tab1.table.getdataListParm.parammaps.pasturename,callback:function(e){t.$set(t.see.tab1.table.getdataListParm.parammaps,"pasturename",e)},expression:"see.tab1.table.getdataListParm.parammaps.pasturename"}},t._l(t.formulaDistribution.pasture.list,(function(t){return a("el-option",{key:t.id,attrs:{label:t.pasturename,value:t.pasturename}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSeeTab1Search}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.tab1.table.listLoading,expression:"see.tab1.table.listLoading"}],key:t.see.tab1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.see.tab1.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"row-click":t.handleSeeTab1RowClick}},[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.tab1.table.pageNum-1)*t.see.tab1.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center",prop:"pasturename"}}),a("el-table-column",{attrs:{label:"下发时间","min-width":"130px",align:"center",prop:"date"}})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.see.tab1.table.total>0,expression:"see.tab1.table.total>0"}],attrs:{total:t.see.tab1.table.total,page:t.see.tab1.table.getdataListParm.offset,limit:t.see.tab1.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.see.tab1.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.see.tab1.table.getdataListParm,"pagecount",e)},pagination:t.getSeeTab1List}})],1),a("el-tab-pane",{attrs:{label:"使用情况",name:"second"}},[a("div",{staticClass:"search"},[a("el-autocomplete",{staticClass:"inline-input filter-item",staticStyle:{width:"250px"},attrs:{"value-key":"date","fetch-suggestions":t.dateSearch,placeholder:"日期"},on:{select:t.handleSelectDate},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",[t._v(t._s(i.date))])]}}]),model:{value:t.see.tab2.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.see.tab2.table.getdataListParm.parammaps,"date",e)},expression:"see.tab2.table.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSeeTab2Search}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.tab2.table.listLoading,expression:"see.tab2.table.listLoading"}],key:t.see.tab2.table.tableKey,ref:"table",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{id:"table","element-loading-text":"给我一点时间",data:t.see.tab2.table.list,border:"","highlight-current-row":"",height:t.height,"row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id","show-header":!1}},[a("el-table-column",{attrs:{label:"1",width:"100px",align:"center",prop:"pasturename"}}),a("el-table-column",{attrs:{label:"1",width:"120px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"1",width:"130px",align:"center",prop:"datestr"}}),a("el-table-column",{attrs:{label:"1","min-width":"800px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.arrList,(function(e){return a("div",{key:e.concatname,staticClass:"list-group-item2 item",staticStyle:{width:"100px",float:"left",margin:"5px 5px",padding:"0",height:"30px"}},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.concatname))]),a("span",{staticStyle:{display:"block",height:"30px","line-height":"30px"},style:{color:e.color}},[t._v(" "+t._s(e.concatname)+" ")])])],1)}))}}])})],1)],1)])],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.see.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],1)},s=[],r=a("2934"),l=a("333d"),n=(a("ed08"),a("a78e")),o=a.n(n),c={name:"FormulaDistribution",components:{Pagination:l["a"]},data:function(){return{useStatusList:[{id:0,name:"未使用"},{id:1,name:"已使用"}],adjustmentResultsList:[{id:0,name:"未调整"},{id:1,name:"已调整"}],formulaTypeList:[],livestockList:[],requestParams:[{name:"getDictByName2",offset:0,pagecount:0,params:["配方类型"]},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],table:{getdataListParm:{name:"getFTListXF",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),tname:"",ccname:"",fttype:"",remark:"",useStatus:"",adjustmentResults:""}},tableKey:0,list:[],total:0,listLoading:!0},formulaDistribution:{dialogFormVisible:!1,dialogStatus:"",table:{getdataListParm:{name:"getFTListXF",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},tableKey:1,list:[],total:0,listLoading:!0},selectList:[],pasture:{dialogFormVisible:!1,dialogStatus:"",getdataListParm:{name:"getgroupsPasture",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},total:0,listLoading:!0,checkAll:!1,checkedList:[],list:[],isIndeterminate:!1}},see:{dialogFormVisible:!1,dialogStatus:"",activeName:"first",temp:{},tab1:{table:{getdataListParm:{name:"getFTListXFhis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",ftid:"",pasturename:""}},tableKey:2,list:[],total:0,listLoading:!0}},tab2:{table:{getdataListParm:{name:"getFTusageList",name1:"getFTdusageList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:""}},tableKey:3,list:[],total:0,listLoading:!1},date:{getdataListParm:{name:"getFTListXFhisTime",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:""}},list:[]}}},textMap:{formulaDistribution:"配方下发",see:"查看",pasture:"配方下发"},requestParam:{},isokDisable:!1,height:document.body.clientHeight,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getDownList(),this.getList()},methods:{getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.livestockList=e.data.getCowclassListEnable.list,t.formulaTypeList=e.data.getDictByName2.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.tname="",this.table.getdataListParm.parammaps.ccname="",this.table.getdataListParm.parammaps.fttype="",this.table.getdataListParm.parammaps.remark=""},handleFormulaDistribution:function(){this.formulaDistribution.dialogStatus="formulaDistribution",this.formulaDistribution.dialogFormVisible=!0,this.getFormulaDistributionList()},handleSelectionChange:function(t){this.formulaDistribution.selectList=t},getFormulaDistributionList:function(){var t=this;this.formulaDistribution.table.listLoading=!0,Object(r["c"])(this.formulaDistribution.table.getdataListParm).then((function(e){null!==e.data.list?t.formulaDistribution.table.list=e.data.list:t.formulaDistribution.table.list=[],setTimeout((function(){t.formulaDistribution.table.listLoading=!1}),100)}))},nextData:function(){if(0==this.formulaDistribution.selectList.length)return this.$message({type:"error",message:"请选择下发配方",duration:2e3}),!1;for(var t=0;t<this.formulaDistribution.selectList.length;t++)if(0==this.formulaDistribution.selectList[t].enable)return this.$message({type:"error",message:"配方未启用不可下发",duration:2e3}),!1;this.formulaDistribution.pasture.dialogStatus="pasture",this.formulaDistribution.pasture.dialogFormVisible=!0,this.getPastureList()},getPastureList:function(){var t=this;Object(r["c"])(this.formulaDistribution.pasture.getdataListParm).then((function(e){null!==e.data.list?t.formulaDistribution.pasture.list=e.data.list:t.formulaDistribution.pasture.list=[]}))},handleCheckAllChange:function(t){this.formulaDistribution.pasture.checkedList=t?this.formulaDistribution.pasture.list:[],this.formulaDistribution.pasture.isIndeterminate=!1},handlePastureChange:function(t){var e=t.length;this.formulaDistribution.pasture.checkAll=e===this.formulaDistribution.pasture.list.length,this.formulaDistribution.pasture.isIndeterminate=e>0&&e<this.formulaDistribution.pasture.list.length},formulaDistributionData:function(){var t=this;if(0==this.formulaDistribution.pasture.checkedList.length)return this.$message({type:"error",message:"请选择下发牧场",duration:2e3}),!1;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.formulaDistribution.selectList}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"insertfeedtemplet_issue",type:"e",parammaps:{pastureid:o.a.get("pastureid"),ftid:"@insertSpotList.id"}},this.requestParam.data[0].children[1]={name:"insertftdetail_issue",type:"e",parammaps:{pastureid:o.a.get("pastureid"),ftid:"@insertSpotList.id"}},this.requestParam.data[1]={name:"insertSpotList2",resultmaps:{list:this.formulaDistribution.pasture.checkedList}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"deleteFTissue",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[1]={name:"insertfeedtempletISS",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[2]={name:"insertftdetailISS",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[3]={name:"insertfeedtemplet_pastureISS",type:"e",parammaps:{pastureid:"@insertSpotList2.id",pasturename:"@insertSpotList2.pasturename",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[4]={name:"deleteFeedissue",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[5]={name:"insertFeedissue",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[6]={name:"insertFeednurissue",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},Object(r["b"])(this.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.formulaDistribution.dialogFormVisible=!1,t.formulaDistribution.pasture.dialogFormVisible=!1,t.getList())}))},handleSee:function(t){this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.temp=Object.assign({},t),this.see.activeName="first",this.see.tab1.table.list=[],this.formulaDistribution.pasture.list=[],this.see.tab2.date.list=[],this.getSeeTab1List(),this.getPastureList(),this.getSeeTab2DateList()},getSeeTab1List:function(){var t=this;this.see.tab1.table.listLoading=!0,this.see.tab1.table.getdataListParm.parammaps.ftid=this.see.temp.id,this.see.tab1.table.getdataListParm.parammaps.pastureid=this.see.temp.pastureid,Object(r["c"])(this.see.tab1.table.getdataListParm).then((function(e){null!==e.data.list?(t.see.tab1.table.list=e.data.list,t.see.tab1.table.pageNum=e.data.pageNum,t.see.tab1.table.pageSize=e.data.pageSize,t.see.tab1.table.total=e.data.total):t.see.tab1.table.list=[],setTimeout((function(){t.see.tab1.table.listLoading=!1}),100)}))},handleSeeTab1Search:function(){this.getSeeTab1List()},getSeeTab2List:function(){var t=this;this.see.tab2.table.listLoading=!0,this.see.tab2.table.getdataListParm.parammaps.ftid=this.see.temp.id;var e="authdata/GetArrList",a=this.see.tab2.table.getdataListParm;Object(r["n"])(e,a).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)if(null==e.data.list[a].arrList)t.$set(e.data.list[a],"Disabled",!1),t.$set(e.data.list[a],"arrList",[]);else if(e.data.list[a].arrList.length>0)for(var i=0;i<e.data.list[a].arrList.length;i++)e.data.list[a].arrList[i].nowweight==e.data.list[a].arrList[i].fweight?t.$set(e.data.list[a].arrList[i],"color","#333"):-1==e.data.list[a].arrList[i].nowweight?t.$set(e.data.list[a].arrList[i],"color","orange"):e.data.list[a].arrList[i].nowweight!==e.data.list[a].arrList[i].fweight&&parseFloat(e.data.list[a].arrList[i].nowweight)>0&&t.$set(e.data.list[a].arrList[i],"color","red");t.see.tab2.table.list=e.data.list,e.data.total&&(t.see.tab2.table.total=e.data.total)}else t.see.tab2.table.list=[];setTimeout((function(){t.see.tab2.table.listLoading=!1}),100)}))},handleSeeTab2Search:function(){""==this.see.tab2.table.getdataListParm.parammaps.date&&(this.see.tab2.table.getdataListParm.parammaps.date=this.see.tab2.date.list[0].date),this.see.tab2.table.list=[],this.getSeeTab2List()},getSeeTab2DateList:function(){var t=this;this.see.tab2.date.getdataListParm.parammaps.ftid=this.see.temp.id,Object(r["c"])(this.see.tab2.date.getdataListParm).then((function(e){null!==e.data.list?t.see.tab2.date.list=e.data.list:t.see.tab2.table.list=[]}))},dateSearch:function(t,e){this.see.tab2.date.getdataListParm.parammaps["date"]=t,Object(r["c"])(this.see.tab2.date.getdataListParm).then((function(t){null==t.data.list?e([]):e(t.data.list)}))},handleSelectDate:function(t){this.see.tab2.table.getdataListParm.parammaps.date=t.date},handleSeeTabClick:function(){"first"==this.see.activeName?this.getSeeTab1List():this.getSeeTab2List()},handleSeeTab1RowClick:function(t){this.see.activeName="second",this.see.tab2.table.getdataListParm.parammaps.date=t.date,this.getSeeTab2List()}}},d=c,p=(a("ea49"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"5453c700",null);e["default"]=m.exports},"22a9":function(t,e,a){},"22db":function(t,e,a){},"23ea":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="M878.933333 238.933333c-8.533333-22.755556-28.444444-39.822222-54.044444-39.822222H201.955556c-25.6 0-48.355556 17.066667-56.888889 42.666667L65.422222 568.888889h893.155556L878.933333 238.933333zM56.888889 625.777778v199.111111c0 31.288889 25.6 56.888889 56.888889 56.888889h796.444444c31.288889 0 56.888889-25.6 56.888889-56.888889v-199.111111H56.888889z m796.444444 142.222222h-113.777777v-56.888889h113.777777v56.888889z" p-id="23533" /></symbol>'});l.a.add(n);e["default"]=n},24495:function(t,e,a){"use strict";a("dc20")},2502:function(t,e,a){"use strict";a("d05e")},"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("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择栏舍"},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.barList,(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:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请输入配方名称"},model:{value:t.table.getdataListParm.parammaps.tname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tname",e)},expression:"table.getdataListParm.parammaps.tname"}},t._l(t.tnameList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tname,value:t.tname}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),t.isRoleEdit?a("el-button",{staticClass:"successBorder",on:{click:t.handleDryMatterRegulation}},[t._v("干物质调节")]):t._e(),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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,ref:"table",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,"max-height":t.myHeight},on:{"header-click":t.headerClick,"cell-click":t.cellClick,"selection-change":t.handleSelect,"cell-dblclick":t.celldblclick}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{key:1,attrs:{label:"序号",align:"center",type:"index",width:"50px","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"100px",align:"center","class-name":"small-padding fixed-width",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{key:2,attrs:{label:"软件牛头数","min-width":"70px",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:3,attrs:{label:"实际牛头数","min-width":"90px",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:4,attrs:{label:"系数(%)","min-width":"85px",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:5,attrs:{label:"系数头数","min-width":"85px",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:{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: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.ftname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"99%"},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: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.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:8,attrs:{label:"第一班比例(%)","min-width":"80px",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:9,attrs:{label:"第一班重量","min-width":"120px",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.isRW1&&t.table.isPtsfname?a("el-table-column",{key:10,attrs:{label:"第一班补料重量","min-width":"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bw1))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"-1"==e.row.ptsfid||""==e.row.ptsfid,step:"0.01",type:"number"},on:{blur:function(a){return t.blurBw(e.row)},focus:function(a){return t.focusBw(e.row)}},model:{value:e.row.bw1,callback:function(a){t.$set(e.row,"bw1",a)},expression:"scope.row.bw1"}}):t._e()]}}],null,!1,1365907363)}):t._e(),t.table.isRW2?a("el-table-column",{key:11,attrs:{label:"第二班比例(%)","min-width":"80px",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":"120px",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.isRW2&&t.table.isPtsfname?a("el-table-column",{key:13,attrs:{label:"第二班补料重量","min-width":"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bw2))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"-1"==e.row.ptsfid||""==e.row.ptsfid,step:"0.01",type:"number"},on:{blur:function(a){return t.blurBw(e.row)},focus:function(a){return t.focusBw(e.row)}},model:{value:e.row.bw2,callback:function(a){t.$set(e.row,"bw2",a)},expression:"scope.row.bw2"}}):t._e()]}}],null,!1,2916783235)}):t._e(),t.table.isRW3?a("el-table-column",{key:14,attrs:{label:"第三班比例(%)","min-width":"80px",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:15,attrs:{label:"第三班重量","min-width":"120px",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.isRW3&&t.table.isPtsfname?a("el-table-column",{key:16,attrs:{label:"第三班补料重量","min-width":"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bw3))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"-1"==e.row.ptsfid||""==e.row.ptsfid,step:"0.01",type:"number"},on:{blur:function(a){return t.blurBw(e.row)},focus:function(a){return t.focusBw(e.row)}},model:{value:e.row.bw3,callback:function(a){t.$set(e.row,"bw3",a)},expression:"scope.row.bw3"}}):t._e()]}}],null,!1,1296099683)}):t._e(),t.table.isRW4?a("el-table-column",{key:17,attrs:{label:"第四班比例(%)","min-width":"80px",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:18,attrs:{label:"第四班重量","min-width":"120px",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(),t.table.isRW4&&t.table.isPtsfname?a("el-table-column",{key:19,attrs:{label:"第四班补料重量","min-width":"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bw4))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"-1"==e.row.ptsfid||""==e.row.ptsfid,step:"0.01",type:"number"},on:{blur:function(a){return t.blurBw(e.row)},focus:function(a){return t.focusBw(e.row)}},model:{value:e.row.bw4,callback:function(a){t.$set(e.row,"bw4",a)},expression:"scope.row.bw4"}}):t._e()]}}],null,!1,431083075)}):t._e(),a("el-table-column",{key:20,attrs:{label:"饲喂总比例(%)","min-width":"80px",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:21,attrs:{label:"饲喂投喂量","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.todayweight))])]}}])}),a("el-table-column",{key:22,attrs:{label:"饲喂配方重量","min-width":"70px",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:23,attrs:{label:"补料配方重量","min-width":"100px",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(),t.table.isPtsfname?a("el-table-column",{key:24,attrs:{label:"补料投喂量","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.todaysupplement))])]}}],null,!1,1910214236)}):t._e(),a("el-table-column",{key:25,attrs:{label:"日投喂量","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.todayfeed))])]}}])}),a("el-table-column",{key:26,attrs:{label:"配方干物质","min-width":"70px",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:"操作",align:"center",width:"80","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1)],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.history.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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"}})],1),a("div",{staticClass:"table"},[a("u-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,"span-method":t.objectSpanMethod,"max-height":500}},[a("u-table-column",{key:1,attrs:{label:"序号",align:"center",type:"index",width:"50px","class-name":"small-padding fixed-width",fixed:"left"}}),a("u-table-column",{key:2,attrs:{label:"栏舍名称",prop:"barname","min-width":"90px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),a("u-table-column",{key:3,attrs:{label:"班次",prop:"times","min-width":"90px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),a("u-table-column",{key:4,attrs:{label:"软件牛头数",prop:"softccount","min-width":"70px",align:"center"}}),a("u-table-column",{key:5,attrs:{label:"实际牛头数",prop:"ccount","min-width":"70px",align:"center"}}),a("u-table-column",{key:6,attrs:{label:"系数(%)",prop:"ratio","min-width":"70px",align:"center"}}),a("u-table-column",{key:7,attrs:{label:"系数头数",prop:"ccountratio","min-width":"70px",align:"center"}}),a("u-table-column",{key:8,attrs:{label:"配方模板",prop:"ptname","min-width":"70px",align:"center"}}),t.table.isPtsfname?a("u-table-column",{key:9,attrs:{label:"补料配方",prop:"ptsname","min-width":"70px",align:"center"}}):t._e(),a("u-table-column",{key:10,attrs:{label:"班次比例",prop:"tratio","min-width":"70px",align:"center"}}),a("u-table-column",{key:11,attrs:{label:"班次重量",prop:"weight","min-width":"70px",align:"center"}}),a("u-table-column",{key:12,attrs:{label:"配方重量",prop:"pweight","min-width":"70px",align:"center"}}),t.table.isPtsfname?a("u-table-column",{key:13,attrs:{label:"补料重量",prop:"ptweight","min-width":"70px",align:"center"}}):t._e(),a("u-table-column",{key:14,attrs:{label:"配方干物质量",prop:"dryweight","min-width":"70px",align:"center"}}),a("u-table-column",{key:15,attrs:{label:"饲喂干物质量",prop:"swdryw","min-width":"70px",align:"center"}}),a("u-table-column",{key:16,attrs:{label:"采样干物质量",prop:"cydryw","min-width":"70px",align:"center"}}),a("u-table-column",{key:17,attrs:{label:"日投喂量",prop:"sumweight","min-width":"70px",align:"center"}})],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.history.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.nutritional.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.nutritional,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.nutritional.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-nutritional"},[a("h4",{staticStyle:{position:"absolute",top:"-5px",left:"140px",font:"16px/30px ''",color:"#303133"}},[t._v("栏舍:"+t._s(t.nutritional.tab1.temp.barname))]),a("el-tabs",{on:{"tab-click":t.handleNutritionalTab},model:{value:t.nutritional.activeName,callback:function(e){t.$set(t.nutritional,"activeName",e)},expression:"nutritional.activeName"}},[a("el-tab-pane",{attrs:{label:"营养评估",name:"first"}},[a("el-form",{ref:"temp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:t.rules,model:t.nutritional.tab1.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.tab1.disabledCowclass,filterable:"",placeholder:""},model:{value:t.nutritional.tab1.temp.cowclassid,callback:function(e){t.$set(t.nutritional.tab1.temp,"cowclassid",e)},expression:"nutritional.tab1.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.tab1.temp.avgmonthage,callback:function(e){t.$set(t.nutritional.tab1.temp,"avgmonthage",e)},expression:"nutritional.tab1.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.tab1.temp.bw,callback:function(e){t.$set(t.nutritional.tab1.temp,"bw",e)},expression:"nutritional.tab1.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.tab1.temp.dayw,callback:function(e){t.$set(t.nutritional.tab1.temp,"dayw",e)},expression:"nutritional.tab1.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.tab1.temp.fetal,callback:function(e){t.$set(t.nutritional.tab1.temp,"fetal",e)},expression:"nutritional.tab1.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.tab1.temp.avgdim,callback:function(e){t.$set(t.nutritional.tab1.temp,"avgdim",e)},expression:"nutritional.tab1.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.tab1.temp.dayspre,callback:function(e){t.$set(t.nutritional.tab1.temp,"dayspre",e)},expression:"nutritional.tab1.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.tab1.temp.product,callback:function(e){t.$set(t.nutritional.tab1.temp,"product",e)},expression:"nutritional.tab1.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.tab1.temp.fat,callback:function(e){t.$set(t.nutritional.tab1.temp,"fat",e)},expression:"nutritional.tab1.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.tab1.temp.pro,callback:function(e){t.$set(t.nutritional.tab1.temp,"pro",e)},expression:"nutritional.tab1.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.tab1.temp.lactose,callback:function(e){t.$set(t.nutritional.tab1.temp,"lactose",e)},expression:"nutritional.tab1.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.tab1.temp.tem,callback:function(e){t.$set(t.nutritional.tab1.temp,"tem",e)},expression:"nutritional.tab1.temp.tem"}})],1)],1)],1)],1),a("div",{staticStyle:{height:"50px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px","margin-right":"10px"},attrs:{"picker-options":t.pickerOptions,clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.nutritional.tab1.inputDatetime,callback:function(e){t.$set(t.nutritional.tab1,"inputDatetime",e)},expression:"nutritional.tab1.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",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.tab1.listLoading,expression:"nutritional.tab1.listLoading"}],key:t.nutritional.tab1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab1.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-class-name":t.tableRowClassName}},[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.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.ftpro))])]}}])}),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.hprov))])]}}])}),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.sprov))])]}}])})],1)],1)],1),a("el-tab-pane",{attrs:{label:"牛群评估",name:"second"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px","margin-right":"10px"},attrs:{"picker-options":t.pickerOptions,clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeTab2Date},model:{value:t.nutritional.tab2.inputDatetime,callback:function(e){t.$set(t.nutritional.tab2,"inputDatetime",e)},expression:"nutritional.tab2.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-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{"text-align":"center"}},[t._v("宾州筛分析")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.tab2.listLoading1,expression:"nutritional.tab2.listLoading1"}],key:t.nutritional.tab2.tableKey1,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab2.list1,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.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"第一层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.oneweight))])]}}])}),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.onerate))])]}}])}),a("el-table-column",{attrs:{label:"第二层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.twoweight))])]}}])}),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.tworate))])]}}])}),a("el-table-column",{attrs:{label:"第三层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.threeweight))])]}}])}),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.threerate))])]}}])}),a("el-table-column",{attrs:{label:"第四层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fourweight))])]}}])}),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.fourrate))])]}}])}),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))])]}}])})],1)],1)])],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{"text-align":"center"}},[t._v("粪便筛分析")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.tab2.listLoading2,expression:"nutritional.tab2.listLoading2"}],key:t.nutritional.tab2.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab2.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("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"第一层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.oneweight))])]}}])}),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.onerate))])]}}])}),a("el-table-column",{attrs:{label:"第二层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.twoweight))])]}}])}),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.tworate))])]}}])}),a("el-table-column",{attrs:{label:"第三层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.threeweight))])]}}])}),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.threerate))])]}}])}),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))])]}}])})],1)],1)])],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{"text-align":"center"}},[t._v("BCS评分")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.tab2.listLoading3,expression:"nutritional.tab2.listLoading3"}],key:t.nutritional.tab2.tableKey3,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab2.list3,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.operatetime))])]}}])}),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.sumcowcount))])]}}])}),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.product))])]}}])}),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.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.avgdim))])]}}])}),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.standardscore))])]}}])}),a("el-table-column",{attrs:{label:"2.75-分(数量、百分比)","min-width":"130px",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":"130px",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":"130px",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":"130px",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":"130px",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":"130px",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":"130px",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)],1)])],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{"text-align":"center"}},[t._v("粪便评分")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.tab2.listLoading4,expression:"nutritional.tab2.listLoading4"}],key:t.nutritional.tab2.tableKey4,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab2.list4,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.operatetime))])]}}])}),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.sumcowcount))])]}}])}),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.product))])]}}])}),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.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.avgdim))])]}}])}),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:"1分(数量、百分比)","min-width":"130px",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":"130px",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":"130px",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":"130px",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":"130px",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)],1)])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.nutritional.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2),a("DryMatterRegulation",{ref:"mychild",attrs:{show:t.isShowDialog},on:{"update:show":function(e){t.isShowDialog=e},getIsDisplay:t.getIsDisplay}})],1)},s=[],r=a("5530"),l=(a("7db0"),a("d3b7"),a("ac1f"),a("1276"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("b680"),a("159b"),a("3ca3"),a("ddb0"),a("d81d"),a("2934")),n=a("333d"),o=a("c483"),c=a("ed08"),d=a("5c96"),p=a("a78e"),m=a.n(p),u=(a("bc3a"),a("5f87")),h=a("dd8d"),b={inject:["reload"],name:"DhedFormula",components:{Pagination:n["a"],Pagination2:o["a"],DryMatterRegulation:h["default"]},data:function(){var t=this;return{dialogFull:!1,isRoleEdit:[],headerList:[],pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i-864e5||e.getTime()>s-864e5}return e.getTime()>Date.now()-864e5}},requestParams:[{name:"getFTSWLSList",offset:0,pagecount:0,parammaps:{pastureid:m.a.get("pastureid")}},{name:"getFTBLList",offset:0,pagecount:0,parammaps:{pastureid:m.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:m.a.get("pastureid")}},{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:m.a.get("pastureid")}}],getFeedTempletNameListParm:{name:"getFeedTempletName",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:m.a.get("pastureid")}},tnameList:[],recipeTemplateList:[],feedingFormulaList:[],livestockTypeList:[],barList:[],rules:{cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},table:{getdataListParm:{name:"getFPList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:m.a.get("pastureid"),enable:"",barid:"",tname:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{},rwList:[],isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:m.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:m.a.get("pastureid"),inforname:"times"}},RWLength:""},selectList:[],nutritional:{dialogFormVisible:!1,dialogStatus:"",activeName:"first ",tab1:{inputDatetime:[new Date,new Date],listLoading1:!0,getdataListParm1:{name:"getnurj",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:""}},disabledCowclass:!1,temp:{},tableKey:0,list:[],total:0,listLoading2:!0,getdataListParm2:{name:"GETNurJudge",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",cowclassid:""}}},tab2:{inputDatetime:[new Date,new Date],listLoading1:!0,tableKey1:0,list1:[],total1:0,getdataListParm1:{name:"getPennsieveList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:"",startTime:"",stopTime:"",inputDatetime:""}},listLoading2:!0,tableKey2:0,list2:[],total2:0,getdataListParm2:{name:"getDungsieveList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:"",startTime:"",stopTime:"",inputDatetime:""}},listLoading3:!0,tableKey3:0,list3:[],total3:0,getdataListParm3:{name:"getBodyscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:"",startTime:"",stopTime:"",inputDatetime:""}},listLoading4:!0,tableKey4:0,list4:[],total4:0,getdataListParm4:{name:"getDungscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:"",startTime:"",stopTime:"",inputDatetime:""}}}},history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getPlanModifyFPlist",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:m.a.get("pastureid"),date:"",barid:"",tname:""}},isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:m.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:m.a.get("pastureid"),inforname:"times"}},getdataDateParm:{name:"getFPMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:m.a.get("pastureid")}}},textMap:{Nutritional:"营养评估",history:"历史记录"},focusWRow:{},focusWRow2:{},focusWRow3:{},focusWRow4:{},requestParam:{},download:{getdataListParm:{name:"getFPList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:m.a.get("pastureid"),enable:""}},list:[]},spanObj:{},mergekeys:["barname","sumweight"],isShowDialog:!1,isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-140,oldRowList:{}}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkbarname,checkftsw,checkftbl",importParams:"栏舍名称,实际牛头数,系数(%),配方模板,补料配方,第一班比例(%),第二班比例(%),第三班比例(%)",sheetname:"Sheet1",pastureid:m.a.get("pastureid"),dateParams:"",requiredParams:"栏舍名称,实际牛头数,系数(%),配方模板,",numParams:"实际牛头数,系数(%),第一班比例(%),第二班比例(%),第三班比例(%),,第四班比例(%)"}},uploadExcelUrl:function(){return"/authdata/fpdimportexcel"}},created:function(){this.getButtons(),this.getDownList(),this.getFeedTempletNameList()},methods:{getButtons:function(){var t="DhedFormula",e=Object(l["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(l["d"])(this.requestParams).then((function(e){t.recipeTemplateList=e.data.getFTSWLSList.list,t.feedingFormulaList=e.data.getFTBLList.list,t.livestockTypeList=e.data.getCowclassListEnable.list,t.barList=e.data.getBarListEnable.list,t.getIsDisplay()}))},getFeedTempletNameList:function(){var t=this;Object(l["c"])(this.getFeedTempletNameListParm).then((function(e){null!==e.data.list?t.tnameList=e.data.list:t.tnameList=[]}))},getIsDisplay:function(){var t=this;Object(l["c"])(this.table.getdataListParm2).then((function(e){null!==e.data.list&&(0==e.data.list[0].inforvalue?t.table.isPtsfname=!1:t.table.isPtsfname=!0)})),Object(l["c"])(this.table.getdataListParm3).then((function(e){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(l["c"])(this.table.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=function(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].ftid&&(void 0!==t.recipeTemplateList.find((function(t){return t.id==e.data.list[a].ftid}))?t.$set(e.data.list[a],"dryweight",t.recipeTemplateList.find((function(t){return t.id==e.data.list[a].ftid})).dryweight):t.$set(e.data.list[a],"dryweight","")),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&&0!=parseFloat(e.data.list[a].feedweight)||t.$set(e.data.list[a],"feedweight",""),t.$set(e.data.list[a],"dailyWeight",""),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){s=e.data.list[a].timesopt.split(",");for(var i=0;i<s.length;i++)e.data.list[a]["r"+s[i].split(":")[0]]=s[i].split(":")[1],e.data.list[a]["w"+s[i].split(":")[0]]=s[i].split(":")[2]}if(void 0==e.data.list[a].bw1&&t.$set(e.data.list[a],"bw1",""),void 0==e.data.list[a].bw2&&t.$set(e.data.list[a],"bw2",""),void 0==e.data.list[a].bw3&&t.$set(e.data.list[a],"bw3",""),void 0==e.data.list[a].bw4&&t.$set(e.data.list[a],"bw4",""),void 0!==e.data.list[a].supplement){r=e.data.list[a].supplement.split(",");for(var l=0;l<r.length;l++)e.data.list[a]["bw"+r[l].split(":")[0]]=r[l].split(":")[2]}},i=0;i<e.data.list.length;i++){var s,r;a(i)}for(var n=0;n<e.data.list.length;n++)""==e.data.list[n].r1&&(e.data.list[n].r1=0,e.data.list[n].w1=0),""==e.data.list[n].r2&&(e.data.list[n].r2=0,e.data.list[n].w2=0),""==e.data.list[n].r3&&(e.data.list[n].r3=0,e.data.list[n].w3=0),""==e.data.list[n].r4&&(e.data.list[n].r4=0,e.data.list[n].w4=0),t.$set(e.data.list[n],"sumr",parseFloat(e.data.list[n].r1)+parseFloat(e.data.list[n].r2)+parseFloat(e.data.list[n].r3)+parseFloat(e.data.list[n].r4)),e.data.list[n].sumr=Object(l["k"])(e.data.list[n].sumr,parseInt(m.a.get("decimal"))),t.$set(e.data.list[n],"dailyWeight",parseFloat(e.data.list[n].w1)+parseFloat(e.data.list[n].w2)+parseFloat(e.data.list[n].w3)+parseFloat(e.data.list[n].w4)),e.data.list[n].dailyWeight=Object(l["k"])(e.data.list[n].dailyWeight,parseInt(m.a.get("decimal")));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(){this.getList()},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(this.headerList.push(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){e.myccname=this.recipeTemplateList.find((function(e){return e.id==t})).ccname,e.bigcowclass!==e.myccname&&this.$message({type:"warning",message:"所选配方模板牲畜类别与栏舍对应牲畜类别不一致",duration:2e3}),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,e.dryweight=this.recipeTemplateList.find((function(e){return e.id==t})).dryweight,""!==e.Sfweight&&""!==e.ccount?this.$set(e,"ftweight",Object(l["k"])(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount),parseInt(m.a.get("decimal")))):e.ftweight="",0==this.table.isPtsfname?e.feedweight=Object(l["k"])(parseFloat(e.ftweight),parseInt(m.a.get("decimal"))):("NaN"==e.supplyweight&&(e.supplyweight=0),""!==e.supplyweight&&""!==e.ftweight?e.feedweight=Object(l["k"])(parseFloat(e.supplyweight)+parseFloat(e.ftweight),parseInt(m.a.get("decimal"))):""==e.supplyweight&&""!==e.ftweight?e.feedweight=Object(l["k"])(parseFloat(e.ftweight),parseInt(m.a.get("decimal"))):""!==e.supplyweight&&""!==e.ftweight&&(e.feedweight=Object(l["k"])(parseFloat(e.supplyweight),parseInt(m.a.get("decimal")))),""!==e.ccountratio&&""!==e.ftweight&&(e.ftweight=Object(l["k"])(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount),parseInt(m.a.get("decimal")))),""!==e.Sfweight&&""!==e.ccount?this.$set(e,"ftweight",Object(l["k"])(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount),parseInt(m.a.get("decimal")))):e.ftweight=""),"NaN"==e.supplyweight&&(e.supplyweight=0),""!==e.r1&&this.$set(e,"w1",Object(l["k"])(parseFloat(e.feedweight)*(parseFloat(e.r1)/100),parseInt(m.a.get("decimal")))),""!==e.r2&&this.$set(e,"w2",Object(l["k"])(parseFloat(e.feedweight)*(parseFloat(e.r2)/100),parseInt(m.a.get("decimal")))),""!==e.r3&&this.$set(e,"w3",Object(l["k"])(parseFloat(e.feedweight)*(parseFloat(e.r3)/100),parseInt(m.a.get("decimal")))),""!==e.r4&&this.$set(e,"w4",Object(l["k"])(parseFloat(e.feedweight)*(parseFloat(e.r4)/100),parseInt(m.a.get("decimal")))),""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.w3&&(e.w3=0),""==e.w4&&(e.w4=0),this.$set(e,"dailyWeight",parseFloat(e.w1)+parseFloat(e.w2)+parseFloat(e.w3)+parseFloat(e.w4)),e.dailyWeight=Object(l["k"])(e.dailyWeight,parseInt(m.a.get("decimal")))},changeFeedingFormula:function(t,e){""==t&&(e.bw1=0,e.bw2=0,e.bw3=0,e.bw4=0),e.myccname=this.feedingFormulaList.find((function(e){return e.id==t})).ccname,e.bigcowclass!==e.myccname&&this.$message({type:"warning",message:"所选补料配方与栏舍对应牲畜类别不一致",duration:2e3}),""!==t?(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):(e.ptsfname="",e.BLweight=0,e.BLSfweightLock=0),""!==e.ccountratio&&""!==e.ccount&&""!==e.ccount.BLweight&&""!==e.BLSfweightLock?this.$set(e,"supplyweight",Object(l["k"])(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLSfweightLock)*parseFloat(e.ccount),parseInt(m.a.get("decimal")))):e.supplyweight="",0==this.table.isPtsfname?e.feedweight=parseFloat(e.ftweight):""!==e.supplyweight&&""!==e.ftweight?e.feedweight=Object(l["k"])(parseFloat(e.supplyweight)+parseFloat(e.ftweight),parseInt(m.a.get("decimal"))):""==e.supplyweight&&""!==e.ftweight?e.feedweight=Object(l["k"])(parseFloat(e.ftweight),parseInt(m.a.get("decimal"))):""!==e.supplyweight&&""==e.ftweight&&(e.feedweight=Object(l["k"])(parseFloat(e.supplyweight),parseInt(m.a.get("decimal")))),""!==e.r1&&this.$set(e,"w1",Object(l["k"])(parseFloat(e.feedweight)*(parseFloat(e.r1)/100),parseInt(m.a.get("decimal")))),""!==e.r2&&this.$set(e,"w2",Object(l["k"])(parseFloat(e.feedweight)*(parseFloat(e.r2)/100),parseInt(m.a.get("decimal")))),""!==e.r3&&this.$set(e,"w3",Object(l["k"])(parseFloat(e.feedweight)*(parseFloat(e.r3)/100),parseInt(m.a.get("decimal")))),""!==e.r4&&this.$set(e,"w4",Object(l["k"])(parseFloat(e.feedweight)*(parseFloat(e.r4)/100),parseInt(m.a.get("decimal")))),""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.w3&&(e.w3=0),""==e.w4&&(e.w4=0),this.$set(e,"dailyWeight",parseFloat(e.w1)+parseFloat(e.w2)+parseFloat(e.w3)+parseFloat(e.w4)),e.dailyWeight=Object(l["k"])(e.dailyWeight,parseInt(m.a.get("decimal")))},blurCcount: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=Object(l["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),parseInt(m.a.get("decimal"))),t.BLweightLock=Object(l["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock),parseInt(m.a.get("decimal")))),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.Sfweight&&""!==t.ccount&&(t.ftweight=Object(l["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal")))),""!==t.ccount&&""!==t.ratio?t.ccountratio=Object(l["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,parseInt(m.a.get("decimal"))):""!==t.ratio&&""!==t.ccountratio?t.ccount=Object(l["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ratio)/100,parseInt(m.a.get("decimal"))):""===t.ccount&&""===t.ratio||(t.ccountratio=""),"undefined"==t.BLweight&&this.$set(t,"BLweight",""),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(l["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(l["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==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=Object(l["k"])(parseFloat(t.supplyweight)+parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.supplyweight),parseInt(m.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight&&(t.feedweight=Object(l["k"])(parseFloat(t.ftweight),parseInt(m.a.get("decimal")))),""!==t.ccountratio&&""!==t.ftweight&&(t.ftweight=Object(l["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal")))),""!==t.ccountratio&&""!==t.BLweight&&(t.supplyweight=Object(l["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))))),""!==t.r1&&0==t.isOneWeight&&this.$set(t,"w1",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r1)/100),parseInt(m.a.get("decimal")))),""!==t.r2&&0==t.isTwoWeight&&this.$set(t,"w2",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r2)/100),parseInt(m.a.get("decimal")))),""!==t.r3&&0==t.isThreeWeight&&this.$set(t,"w3",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r3)/100),parseInt(m.a.get("decimal")))),""!==t.r4&&0==t.isFourWeight&&this.$set(t,"w4",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r4)/100),parseInt(m.a.get("decimal")))),1==t.isOneWeight&&this.$set(t,"r1",Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isTwoWeight&&this.$set(t,"r2",Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isThreeWeight&&this.$set(t,"r3",Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isFourWeight&&this.$set(t,"r4",Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal")))},blurRatio: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=Object(l["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),parseInt(m.a.get("decimal"))),t.BLweightLock=Object(l["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock),parseInt(m.a.get("decimal")))),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.ccount&&""!==t.ratio&&""!==t.ccountratio?t.ccountratio=Object(l["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,parseInt(m.a.get("decimal"))):""!==t.ccount&&""!==t.ccountratio?t.ratio=Object(l["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),parseInt(m.a.get("decimal"))):""===t.ccount&&""===t.ccountratio||(t.ratio=""),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(l["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(l["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight=""),""!==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=Object(l["k"])(parseFloat(t.supplyweight),parseInt(m.a.get("decimal")))),0==this.table.isPtsfname?t.feedweight=Object(l["k"])(parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):(""!==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.supplyweight)+parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=Object(l["k"])(parseFloat(t.supplyweight),parseInt(m.a.get("decimal")))),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(l["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(l["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight="")),""!==t.r1&&0==t.isOneWeight&&this.$set(t,"w1",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r1)/100),parseInt(m.a.get("decimal")))),""!==t.r2&&0==t.isTwoWeight&&this.$set(t,"w2",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r2)/100),parseInt(m.a.get("decimal")))),""!==t.r3&&0==t.isThreeWeight&&this.$set(t,"w3",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r3)/100),parseInt(m.a.get("decimal")))),""!==t.r4&&0==t.isFourWeight&&this.$set(t,"w4",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r4)/100),parseInt(m.a.get("decimal")))),1==t.isOneWeight&&this.$set(t,"r1",Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isTwoWeight&&this.$set(t,"r2",Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isThreeWeight&&this.$set(t,"r3",Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isFourWeight&&this.$set(t,"r4",Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal")))},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=Object(l["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),parseInt(m.a.get("decimal"))),t.BLweightLock=Object(l["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock),parseInt(m.a.get("decimal")))),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.ccountratio&&""!==t.ccount&&""!==t.ratio?0!==t.ccountratio&&0!==t.ccount&&(t.ratio=Object(l["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),parseInt(m.a.get("decimal")))):""!==t.ccount&&""!==t.ratio?t.ccountratio=Object(l["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,parseInt(m.a.get("decimal"))):""!==t.ccountratio&&""!==t.ccount?0!==t.ccountratio&&0!==t.ccount&&(t.ratio=Object(l["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),parseInt(m.a.get("decimal")))):""!==t.ccountratio&&""!==t.ratio&&(t.ccount=Object(l["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ratio)/100,parseInt(m.a.get("decimal")))),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(l["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(l["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight=""),""!==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.supplyweight)+parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=Object(l["k"])(parseFloat(t.supplyweight),parseInt(m.a.get("decimal")))),0==this.table.isPtsfname?t.feedweight=Object(l["k"])(parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):(""!==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.supplyweight)+parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(l["k"])(parseFloat(t.ftweight),parseInt(m.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=Object(l["k"])(parseFloat(t.supplyweight),parseInt(m.a.get("decimal")))),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(l["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(l["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(m.a.get("decimal"))):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight="")),""!==t.r1&&0==t.isOneWeight&&this.$set(t,"w1",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r1)/100),parseInt(m.a.get("decimal")))),""!==t.r2&&0==t.isTwoWeight&&this.$set(t,"w2",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r2)/100),parseInt(m.a.get("decimal")))),""!==t.r3&&0==t.isThreeWeight&&this.$set(t,"w3",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r3)/100),parseInt(m.a.get("decimal")))),""!==t.r4&&0==t.isFourWeight&&this.$set(t,"w4",Object(l["k"])(parseFloat(t.feedweight)*(parseFloat(t.r4)/100),parseInt(m.a.get("decimal")))),1==t.isOneWeight&&this.$set(t,"r1",Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isTwoWeight&&this.$set(t,"r2",Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isThreeWeight&&this.$set(t,"r3",Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),1==t.isFourWeight&&this.$set(t,"r4",Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal")))},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=Object(l["k"])(parseFloat(t.feedweight)*parseFloat(t.r1)/100,parseInt(m.a.get("decimal")))),""!==t.r2&&(t.w2=Object(l["k"])(parseFloat(t.feedweight)*parseFloat(t.r2)/100,parseInt(m.a.get("decimal")))),""!==t.r3&&(t.w3=Object(l["k"])(parseFloat(t.feedweight)*parseFloat(t.r3)/100,parseInt(m.a.get("decimal")))),""!==t.r4&&(t.w4=Object(l["k"])(parseFloat(t.feedweight)*parseFloat(t.r4)/100,parseInt(m.a.get("decimal")))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal")))},focusW:function(t){this.focusWRow=Object.assign({},t)},focusW2:function(t){this.focusWRow2=Object.assign({},t)},focusW3:function(t){this.focusWRow3=Object.assign({},t)},focusW4:function(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),4==this.table.RWLength?(1==t.isTwoWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isTwoWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isTwoWeight&&1==t.isFourWeight&&0==t.isThreeWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isTwoWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r3&&0==t.r4?(t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w3,t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))):0==t.r3&&0!==t.r4?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w4=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r3&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w3)&&(t.w3=0,t.r3=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r2&&0==t.r4?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))/2,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w2,t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))):0==t.r2&&0!==t.r4?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w4=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r2&&0==t.r3?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))/2,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w2,t.r3=t.r2):0==t.r2&&0!==t.r3?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r3?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),t.w2<=0&&(t.w2=0,t.r2=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==parseFloat(t.r2)&&0==parseFloat(t.r3)&&0==parseFloat(t.r4)?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))/3,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w2,t.w4=t.w2,t.r3=t.r2,t.r4=t.r2):0==parseFloat(t.r2)&&0==parseFloat(t.r3)&&0!==parseFloat(t.r4)?(t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))/2,parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=t.w3,t.r2=t.r3,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w4=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==parseFloat(t.r2)&&0!==parseFloat(t.r3)&&0==parseFloat(t.r4)?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))/2,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w2,t.r4=t.r2,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==parseFloat(t.r2)&&0==parseFloat(t.r3)&&0==parseFloat(t.r4)?(t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w3,t.r4=t.r3,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r2&&0!==t.r3&&0!==t.r4?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r3&&0!==t.r4?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0!==t.r3&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),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",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))))):3==this.table.RWLength?(1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r2&&0==t.r3?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))/2,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w2,t.r3=t.r2):0==t.r2&&0!==t.r3?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r3?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal")))))):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=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2),parseInt(m.a.get("decimal"))))):(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2),parseInt(m.a.get("decimal")))))):(t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1),parseInt(m.a.get("decimal"))))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),isNaN(t.r1)&&(t.r1=0),isNaN(t.r2)&&(t.r2=0),isNaN(t.r3)&&(t.r3=0),isNaN(t.r4)&&(t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal")))},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),4==this.table.RWLength?(1==t.isOneWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&1==t.isFourWeight&&0==t.isThreeWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r3&&0==t.r4?(t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w3,t.r4=t.r3):0==t.r3&&0!==t.r4?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w4=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r3&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w3)&&(t.w3=0,t.r3=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r4?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1):0==t.r1&&0!==t.r4?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w4=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w1<=0&&(t.w1=0,t.r1=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&0==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r3?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1):0==t.r1&&0!==t.r3?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(this.focusWRow2.r1)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(this.focusWRow2.r1)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w1<=0&&(t.w1=0,t.r1=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r3&&0==t.r4?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))/3,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1,t.w4=t.w1,t.r4=t.r1):0==t.r1&&0==t.r3&&0!==t.r4?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w4))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w4=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r3&&0==t.r4?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3&&0==t.r4?(t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w1))/2,parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w3,t.r4=t.r3,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0!==t.r3&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3&&0!==t.r4?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w1)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r3&&0!==t.r4?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),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",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))))):3==this.table.RWLength?(1==t.isOneWeight&&1==t.isThreeWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&1==t.isThreeWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&0==t.isThreeWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&0==t.isThreeWeight&&(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r3?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1):0==t.r1&&0!==t.r3?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal")))))):2==this.table.RWLength&&(0==t.isOneWeight?(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2),parseInt(m.a.get("decimal"))))):(t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2),parseInt(m.a.get("decimal")))))),t.w2<=0&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),isNaN(t.r1)&&(t.r1=0),isNaN(t.r2)&&(t.r2=0),isNaN(t.r3)&&(t.r3=0),isNaN(t.r4)&&(t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal")))},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),4==this.table.RWLength?(1==t.isOneWeight&&1==t.isTwoWeight&&1==t.isFourWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&1==t.isTwoWeight&&0==t.isFourWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&1==t.isTwoWeight&&1==t.isFourWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isOneWeight&&1==t.isFourWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isTwoWeight&&0==t.isOneWeight&&0==t.isFourWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r4?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1):0==t.r1&&0!==t.r4?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w4=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w1<=0&&(t.w1=0,t.r1=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isOneWeight&&0==t.isFourWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r2&&0==t.r4?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))/2,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w2,t.r4=t.r2):0==t.r2&&0!==t.r4?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w4=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isOneWeight&&1==t.isFourWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r2?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1):0==t.r1&&0!==t.r2?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isOneWeight&&0==t.isFourWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r2&&0==t.r4?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))/3,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1,t.w4=t.w1,t.r4=t.r1):0==t.r1&&0==t.r2&&0!==t.r4?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w4=Object(l["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r2&&0==t.r4?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(l["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2&&0==t.r4?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w1))/2,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0!==t.r2&&0==t.r4?(t.w4=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2&&0!==t.r4?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w1)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r2&&0!==t.r4?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(l["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r4)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])(parseFloat(t.dailyWeight-t.w3)*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w4=Object(l["k"])(parseFloat(t.dailyWeight-t.w3)*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(m.a.get("decimal"))),t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),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",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))))):3==this.table.RWLength&&(1==t.isOneWeight&&1==t.isTwoWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&1==t.isTwoWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&0==t.isTwoWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&0==t.isTwoWeight&&(t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r2?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1):0==t.r1&&0!==t.r2?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(m.a.get("decimal")))))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),isNaN(t.r1)&&(t.r1=0),isNaN(t.r2)&&(t.r2=0),isNaN(t.r3)&&(t.r3=0),isNaN(t.r4)&&(t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal")))},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),4==this.table.RWLength&&(1==t.isOneWeight&&1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r3?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1):0==t.r1&&0!==t.r3?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(this.focusWRow4.r1)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(this.focusWRow4.r1)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r2?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1):0==t.r1&&0!==t.r2?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(this.focusWRow4.r1)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3)-parseFloat(t.w1),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r2)+parseFloat(t.r1)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r2)+parseFloat(t.r1)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(this.focusWRow4.r1)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),1==t.isOneWeight&&0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r2&&0==t.r3?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))/2,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w2,t.r3=t.r2):0==t.r2&&0!==t.r3?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r3?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal"))))),0==t.isOneWeight&&0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=Object(l["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),0==t.r1&&0==t.r2&&0==t.r3?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4))/3,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1,t.w3=t.w1,t.r3=t.r1):0==t.r1&&0==t.r2&&0!==t.r3?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1,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),t.w4<=0&&(t.w4=0,t.r4=0),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w3=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),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),t.w4<=0&&(t.w4=0,t.r4=0))):0==t.r1&&0!==t.r2&&0==t.r3?(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))/2,parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2&&0==t.r3?(t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w1))/2,parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0!==t.r2&&0==t.r3?(t.w3=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2&&0!==t.r3?(t.w2=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),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),t.w4<=0&&(t.w4=0,t.r4=0)),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r2&&0!==t.r3?(t.w1=Object(l["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w2=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),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),t.w4<=0&&(t.w4=0,t.r4=0))):(t.w1=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)),parseInt(m.a.get("decimal"))),t.r1=Object(l["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w2=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(m.a.get("decimal"))),t.r2=Object(l["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal"))),t.w3=Object(l["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(m.a.get("decimal"))),t.r3=Object(l["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(m.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),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",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),isNaN(t.r1)&&(t.r1=0),isNaN(t.r2)&&(t.r2=0),isNaN(t.r3)&&(t.r3=0),isNaN(t.r4)&&(t.r4=0),this.$set(t,"sumr",Object(l["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(m.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(l["k"])(t.dailyWeight,parseInt(m.a.get("decimal")))},celldblclick:function(t,e,a,i){this.handleUpdate(t)},handleUpdate:function(t){this.oldRowList=Object(r["a"])({},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;"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),"NaN"==t.bw1&&this.$set(t,"bw1",0),"NaN"==t.bw2&&this.$set(t,"bw2",0),"NaN"==t.bw3&&this.$set(t,"bw3",0),"NaN"==t.bw4&&this.$set(t,"bw4",0);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],""==t["bw"+i]?s["supplement"]=0:s["supplement"]=t["bw"+i],s["tratio"]=Math.round(t["r"+i]),s["todaysupplement"]=t.todaysupplement,s["todayweight"]=t.todayweight,a.push(s)}(0==this.table.isPtsfname||""==t.ptsfid)&&(t.ptsfid="-1",t.ptsfname=""),""==t.supplyweight&&(t.supplyweight="0"),0==this.table.isPtsfname&&(t.supplyweight="0"),this.$set(t,"ratio",Math.floor(100*parseFloat(t.ratio))/100),this.$set(t,"ccountratio",Math.floor(100*parseFloat(t.ccountratio))/100),t.ccountratio=String(t.ccountratio),t.sumr=Math.round(t.sumr),this.table.rwList=a,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),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;s={};if(s.pastureid=t.pastureid,s.id=t.id,s.data=[],this.oldRowList.w1!==t.w1&&s.data.push({old:this.oldRowList.w1,new:t.w1,times:1,ptid:t.ftid,ptsid:t.ptsfid}),this.oldRowList.w2!==t.w2&&s.data.push({old:this.oldRowList.w2,new:t.w2,times:2,ptid:t.ftid,ptsid:t.ptsfid}),this.oldRowList.w3!==t.w3&&s.data.push({old:this.oldRowList.w3,new:t.w3,times:3,ptid:t.ftid,ptsid:t.ptsfid}),this.oldRowList.bw1!==t.bw1&&s.data.push({old:this.oldRowList.bw1,new:t.bw1,times:1,ptid:t.ftid,ptsid:t.ptsfid}),this.oldRowList.bw2!==t.bw2&&s.data.push({old:this.oldRowList.bw2,new:t.bw2,times:2,ptid:t.ftid,ptsid:t.ptsfid}),this.oldRowList.bw3!==t.bw3&&s.data.push({old:this.oldRowList.bw3,new:t.bw3,times:3,ptid:t.ftid,ptsid:t.ptsfid}),""==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 r=/^[0-9]\d*$/;if(!r.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",supplement:"@insertSpotList.supplement",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(l["b"])(this.requestParam).then((function(t){if("fail"===t.msg)e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3});else{if(s.data.length>0){var a="authdata/fpdetail/edit",i=s;Object(l["n"])(a,i).then((function(t){"fail"!==t.msg&&e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})}))}else e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3});e.getList();for(var r=0;r<e.headerList.length;r++)"el-icon-lock"==e.headerList[r].target.className&&(e.headerList[r].target.className="el-icon-unlock",e.$set(e.headerList[r].target,"className","el-icon-unlock"))}}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isUpdate=!0,t.isUpdateSave=!1;for(var e=0;e<this.headerList.length;e++)"el-icon-lock"==this.headerList[e].target.className&&(this.headerList[e].target.className="el-icon-unlock",this.$set(this.headerList[e].target,"className","el-icon-unlock"));this.table.getdataListParm.offset=this.table.getdataListParm.offset,this.getList()},cellClick:function(t,e,a){},handleSelect:function(t){this.selectList=t},handleNutritional:function(){if(this.dialogFull=!1,1!==this.selectList.length)return this.$message({type:"error",message:"请选择一条栏舍信息进行营养评估",duration:2e3}),!1;this.nutritional.dialogStatus="Nutritional",this.nutritional.activeName="first",this.nutritional.dialogFormVisible=!0,this.nutritional.tab1.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab1.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.getNutritionalList(),this.nutritional.tab1.list=[]},tableRowClassName:function(t){var e=t.row;return"0"==e.isColor?"red-row":""},handleNutritionalTab:function(t){"first "==t?(this.nutritional.tab1.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab1.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.getNutritionalList(),this.nutritional.tab1.list=[]):(this.nutritional.tab2.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab2.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.nutritional.tab2.getdataListParm1.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm1.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm2.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm2.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm2.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.nutritional.tab2.getdataListParm3.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm3.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm3.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm3.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.nutritional.tab2.getdataListParm4.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm4.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm4.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm4.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.getTab2NutritionalList1(),this.getTab2NutritionalList2(),this.getTab2NutritionalList3(),this.getTab2NutritionalList4())},changeTab2Date:function(){this.nutritional.tab2.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab2.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.nutritional.tab2.getdataListParm1.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm1.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm2.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm2.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm2.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.nutritional.tab2.getdataListParm3.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm3.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm3.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm3.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.nutritional.tab2.getdataListParm4.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm4.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm4.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm4.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.getTab2NutritionalList1(),this.getTab2NutritionalList2(),this.getTab2NutritionalList3(),this.getTab2NutritionalList4()},handleBefore:function(){if("first"==this.nutritional.activeName){if(""!==this.nutritional.tab1.inputDatetime&&null!==this.nutritional.tab1.inputDatetime){var t=new Date(this.nutritional.tab1.inputDatetime[0].setDate(this.nutritional.tab1.inputDatetime[0].getDate()-1)),e=new Date(this.nutritional.tab1.inputDatetime[1].setDate(this.nutritional.tab1.inputDatetime[1].getDate()-1));this.nutritional.tab1.inputDatetime.length=0,this.nutritional.tab1.inputDatetime.push(t,e),this.$forceUpdate()}}else{var a=new Date(this.nutritional.tab2.inputDatetime[0].setDate(this.nutritional.tab2.inputDatetime[0].getDate()-1)),i=new Date(this.nutritional.tab2.inputDatetime[1].setDate(this.nutritional.tab2.inputDatetime[1].getDate()-1));this.nutritional.tab2.inputDatetime.length=0,this.nutritional.tab2.inputDatetime.push(a,i),this.$forceUpdate(),this.nutritional.tab2.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab2.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.nutritional.tab2.getdataListParm1.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm1.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm2.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm2.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm3.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm3.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm3.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm3.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm4.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm4.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm4.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm4.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2NutritionalList1(),this.getTab2NutritionalList2(),this.getTab2NutritionalList3(),this.getTab2NutritionalList4()}},handleNext:function(){if("first"==this.nutritional.activeName){if(""!==this.nutritional.tab1.inputDatetime&&null!==this.nutritional.tab1.inputDatetime){var t=new Date(this.nutritional.tab1.inputDatetime[0].setDate(this.nutritional.tab1.inputDatetime[0].getDate()+1)),e=new Date(this.nutritional.tab1.inputDatetime[1].setDate(this.nutritional.tab1.inputDatetime[1].getDate()+1));this.nutritional.tab1.inputDatetime.length=0,this.nutritional.tab1.inputDatetime.push(t,e),this.$forceUpdate()}}else{var a=new Date(this.nutritional.tab2.inputDatetime[0].setDate(this.nutritional.tab2.inputDatetime[0].getDate()+1)),i=new Date(this.nutritional.tab2.inputDatetime[1].setDate(this.nutritional.tab2.inputDatetime[1].getDate()+1));this.nutritional.tab2.inputDatetime.length=0,this.nutritional.tab2.inputDatetime.push(a,i),this.$forceUpdate(),this.nutritional.tab2.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab2.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.nutritional.tab2.getdataListParm1.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm1.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm2.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm2.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm3.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm3.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm3.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm3.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm4.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm4.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm4.parammaps.startTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm4.parammaps.stopTime=Object(c["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2NutritionalList1(),this.getTab2NutritionalList2(),this.getTab2NutritionalList3(),this.getTab2NutritionalList4()}},getNutritionalList:function(){var t=this;this.nutritional.tab1.listLoading1=!0,Object(l["c"])(this.nutritional.tab1.getdataListParm1).then((function(e){null!==e.data.list?(e.data.list[0].cowclassid=String(e.data.list[0].cowclassid),t.nutritional.tab1.temp=e.data.list[0],t.nutritional.tab1.disabledCowclass=!0,t.nutritional.tab1.getdataListParm2.parammaps.name="judgenurFT",t.nutritional.tab1.getdataListParm2.parammaps.name1="judgenurBarHSL",t.nutritional.tab1.getdataListParm2.parammaps.startTime=Object(c["d"])(t.nutritional.tab1.inputDatetime[0],"{y}-{m}-{d}"),t.nutritional.tab1.getdataListParm2.parammaps.stopTime=Object(c["d"])(t.nutritional.tab1.inputDatetime[1],"{y}-{m}-{d}"),t.nutritional.tab1.getdataListParm2.parammaps.bw=parseFloat(t.nutritional.tab1.temp.bw),t.nutritional.tab1.getdataListParm2.parammaps.dayw=parseFloat(t.nutritional.tab1.temp.dayw),t.nutritional.tab1.getdataListParm2.parammaps.fetal=parseFloat(t.nutritional.tab1.temp.fetal),t.nutritional.tab1.getdataListParm2.parammaps.avgdim=parseFloat(t.nutritional.tab1.temp.avgdim),t.nutritional.tab1.getdataListParm2.parammaps.dayspre=parseFloat(t.nutritional.tab1.temp.dayspre),t.nutritional.tab1.getdataListParm2.parammaps.product=parseFloat(t.nutritional.tab1.temp.product),t.nutritional.tab1.getdataListParm2.parammaps.fat=parseFloat(t.nutritional.tab1.temp.fat),t.nutritional.tab1.getdataListParm2.parammaps.pro=parseFloat(t.nutritional.tab1.temp.pro),t.nutritional.tab1.getdataListParm2.parammaps.lactose=parseFloat(t.nutritional.tab1.temp.lactose),t.nutritional.tab1.getdataListParm2.parammaps.source=parseFloat(t.nutritional.tab1.temp.source),t.nutritional.tab1.getdataListParm2.parammaps.tem=parseFloat(t.nutritional.tab1.temp.tem),t.nutritional.tab1.getdataListParm2.parammaps.cowsum=parseFloat(t.nutritional.tab1.temp.cowsum),t.nutritional.tab1.getdataListParm2.parammaps.cowclass=t.nutritional.tab1.temp.cowclass,t.nutritional.tab1.getdataListParm2.parammaps.cowclassid=t.nutritional.tab1.temp.cowclassid,t.nutritional.tab1.getdataListParm2.parammaps.bigcowclass=t.nutritional.tab1.temp.bigcowclass,t.nutritional.tab1.getdataListParm2.parammaps.pastureid=t.selectList[0].pastureid,t.nutritional.tab1.getdataListParm2.parammaps.barid=t.nutritional.tab1.temp.barid,t.nutritional.tab1.getdataListParm2.parammaps.date=t.nutritional.tab1.temp.date,t.getNutritionalList2()):(t.nutritional.tab1.temp=[],t.nutritional.tab1.disabledCowclass=!1),setTimeout((function(){t.nutritional.tab1.listLoading=!1}),100)}))},assessmentData:function(){var t=this;this.$refs["temp"].validate((function(e){if(e){if(""==t.nutritional.tab1.inputDatetime||null==t.nutritional.tab1.inputDatetime)return t.$message({type:"error",message:"开始日期结束日期不能为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(""!==t.nutritional.tab1.temp.cowsum&&!a.test(parseFloat(t.nutritional.tab1.temp.cowsum)))return t.$message({type:"error",message:"牛头数请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==t.nutritional.tab1.temp.tem&&!i.test(parseFloat(t.nutritional.tab1.temp.tem)))return t.$message({type:"error",message:"温度环境请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.avgmonthage&&!i.test(parseFloat(t.nutritional.tab1.temp.avgmonthage)))return t.$message({type:"error",message:"平均月龄请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.bw&&!i.test(parseFloat(t.nutritional.tab1.temp.bw)))return t.$message({type:"error",message:"体重请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.dayw&&!i.test(parseFloat(t.nutritional.tab1.temp.dayw)))return t.$message({type:"error",message:"日增重请保留两位小数",duration:2e3}),!1;var s=/^(([1-9]|([1-9]\d)|(1\d\d)|(2([0-7]\d|7[0-9]))))$/;if(""!==t.nutritional.tab1.temp.dayspre&&!s.test(parseFloat(t.nutritional.tab1.temp.dayspre)))return t.$message({type:"error",message:"怀孕天数请输入大于0小于280整数",duration:2e3}),!1;var r=/^(?:[1-9]|1[0-9])$/;if(""!==t.nutritional.tab1.temp.fetal&&!r.test(parseFloat(t.nutritional.tab1.temp.fetal)))return t.$message({type:"error",message:"胎次请输入大于0小于20整数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.avgdim&&!a.test(parseFloat(t.nutritional.tab1.temp.avgdim)))return t.$message({type:"error",message:"平均泌乳天数请输入正整数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.product&&!i.test(parseFloat(t.nutritional.tab1.temp.product)))return t.$message({type:"error",message:"产奶量请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.fat&&!i.test(parseFloat(t.nutritional.tab1.temp.fat)))return t.$message({type:"error",message:"乳脂率请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.pro&&!i.test(parseFloat(t.nutritional.tab1.temp.pro)))return t.$message({type:"error",message:"乳蛋白率请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.lactose&&!i.test(parseFloat(t.nutritional.tab1.temp.lactose)))return t.$message({type:"error",message:"乳糖率请保留两位小数",duration:2e3}),!1;t.nutritional.tab1.getdataListParm2.parammaps.name="judgenurFT",t.nutritional.tab1.getdataListParm2.parammaps.name1="judgenurBarHSL",t.nutritional.tab1.getdataListParm2.parammaps.startTime=Object(c["d"])(t.nutritional.tab1.inputDatetime[0],"{y}-{m}-{d}"),t.nutritional.tab1.getdataListParm2.parammaps.stopTime=Object(c["d"])(t.nutritional.tab1.inputDatetime[1],"{y}-{m}-{d}"),t.nutritional.tab1.getdataListParm2.parammaps.bw=parseFloat(t.nutritional.tab1.temp.bw),t.nutritional.tab1.getdataListParm2.parammaps.dayw=parseFloat(t.nutritional.tab1.temp.dayw),t.nutritional.tab1.getdataListParm2.parammaps.fetal=parseFloat(t.nutritional.tab1.temp.fetal),t.nutritional.tab1.getdataListParm2.parammaps.avgdim=parseFloat(t.nutritional.tab1.temp.avgdim),t.nutritional.tab1.getdataListParm2.parammaps.dayspre=parseFloat(t.nutritional.tab1.temp.dayspre),t.nutritional.tab1.getdataListParm2.parammaps.product=parseFloat(t.nutritional.tab1.temp.product),t.nutritional.tab1.getdataListParm2.parammaps.fat=parseFloat(t.nutritional.tab1.temp.fat),t.nutritional.tab1.getdataListParm2.parammaps.pro=parseFloat(t.nutritional.tab1.temp.pro),t.nutritional.tab1.getdataListParm2.parammaps.lactose=parseFloat(t.nutritional.tab1.temp.lactose),t.nutritional.tab1.getdataListParm2.parammaps.source=parseFloat(t.nutritional.tab1.temp.source),t.nutritional.tab1.getdataListParm2.parammaps.tem=parseFloat(t.nutritional.tab1.temp.tem),t.nutritional.tab1.getdataListParm2.parammaps.cowsum=parseFloat(t.nutritional.tab1.temp.cowsum),t.nutritional.tab1.getdataListParm2.parammaps.cowclass=t.nutritional.tab1.temp.cowclass,t.nutritional.tab1.getdataListParm2.parammaps.cowclassid=t.nutritional.tab1.temp.cowclassid,t.nutritional.tab1.getdataListParm2.parammaps.bigcowclass=t.nutritional.tab1.temp.bigcowclass,t.nutritional.tab1.getdataListParm2.parammaps.pastureid=t.selectList[0].pastureid,t.nutritional.tab1.getdataListParm2.parammaps.barid=t.nutritional.tab1.temp.barid,t.nutritional.tab1.getdataListParm2.parammaps.date=t.nutritional.tab1.temp.date,t.getNutritionalList2()}}))},getNutritionalList2:function(){var t=this;this.nutritional.tab1.listLoading2=!0;var e="authdata/GETNurJudge",a=this.nutritional.tab1.getdataListParm2;Object(l["n"])(e,a).then((function(e){if("fail"!==e.msg)if(null!==e.data.list){for(var a=0;a<e.data.length;a++){null==e.data[a].cowneed&&(e.data[a].cowneed="");var i=RegExp(/>/),s=RegExp(/</),r=RegExp(/-/);if(1==i.test(e.data[a].cowneed)){var l=e.data[a].cowneed.split(">")[1];parseFloat(e.data[a].ftpro)<parseFloat(l)||parseFloat(e.data[a].hprov)<parseFloat(l)||parseFloat(e.data[a].sprov)<parseFloat(l)?t.$set(e.data[a],"isColor","0"):t.$set(e.data[a],"isColor","")}else if(1==s.test(e.data[a].cowneed)){var n=e.data[a].cowneed.split("<")[1];parseFloat(e.data[a].ftpro)>parseFloat(n)||parseFloat(e.data[a].hprov)>parseFloat(n)||parseFloat(e.data[a].sprov)>parseFloat(n)?t.$set(e.data[a],"isColor","0"):t.$set(e.data[a],"isColor","")}else if(1==r.test(e.data[a].cowneed))if(e.data[a].cowneed=String(e.data[a].cowneed),1==e.data[a].cowneed.length){var o=e.data[a].cowneed.split("-");parseFloat(e.data[a].ftpro)>parseFloat(o[0])&&parseFloat(e.data[a].ftpro)<parseFloat(o[1])||parseFloat(e.data[a].hprov)>parseFloat(o[0])&&parseFloat(e.data[a].hprov)<parseFloat(o[1])||parseFloat(e.data[a].sprov)>parseFloat(o[0])&&parseFloat(e.data[a].sprov)<parseFloat(o[1])||""==o[0]&&""==o[0]?t.$set(e.data[a],"isColor",""):t.$set(e.data[a],"isColor","0")}else parseFloat(e.data[a].ftpro)<parseFloat(e.data[a].cowneed)||parseFloat(e.data[a].hprov)<parseFloat(e.data[a].cowneed)||parseFloat(e.data[a].sprov)<parseFloat(e.data[a].cowneed)?t.$set(e.data[a],"isColor","0"):t.$set(e.data[a],"isColor","");else e.data[a].cowneed=String(e.data[a].cowneed),"-"!==e.data[a].cowneed[0]&&(parseFloat(e.data[a].ftpro)<parseFloat(e.data[a].cowneed)||parseFloat(e.data[a].hprov)<parseFloat(e.data[a].cowneed)||parseFloat(e.data[a].sprov)<parseFloat(e.data[a].cowneed))?t.$set(e.data[a],"isColor","0"):t.$set(e.data[a],"isColor","")}t.nutritional.tab1.list=e.data,t.nutritional.tab1.total=e.data.total}else t.nutritional.tab1.list=[];else t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3});setTimeout((function(){t.nutritional.tab1.listLoading2=!1}),100)}))},getTab2NutritionalList1:function(){var t=this;this.nutritional.tab2.listLoading1=!0,Object(l["c"])(this.nutritional.tab2.getdataListParm1).then((function(e){null!==e.data.list?(t.nutritional.tab2.list1=e.data.list,t.nutritional.tab2.pageNum1=e.data.pageNum,t.nutritional.tab2.pageSize1=e.data.pageSize,t.nutritional.tab2.total1=e.data.total):t.nutritional.tab2.list1=[],setTimeout((function(){t.nutritional.tab2.listLoading1=!1}),100)}))},getTab2NutritionalList2:function(){var t=this;this.nutritional.tab2.listLoading2=!0,Object(l["c"])(this.nutritional.tab2.getdataListParm2).then((function(e){null!==e.data.list?(t.nutritional.tab2.list2=e.data.list,t.nutritional.tab2.pageNum2=e.data.pageNum,t.nutritional.tab2.pageSize2=e.data.pageSize,t.nutritional.tab2.total2=e.data.total):t.nutritional.tab2.list2=[],setTimeout((function(){t.nutritional.tab2.listLoading2=!1}),100)}))},getTab2NutritionalList3:function(){var t=this;this.nutritional.tab2.listLoading3=!0,Object(l["c"])(this.nutritional.tab2.getdataListParm3).then((function(e){if(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(parseInt(m.a.get("decimal")))),t.$set(e.data.list[a],"score275rate",(parseFloat(e.data.list[a].score275)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(m.a.get("decimal")))),t.$set(e.data.list[a],"score3rate",(parseFloat(e.data.list[a].score3)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(m.a.get("decimal")))),t.$set(e.data.list[a],"score325rate",(parseFloat(e.data.list[a].score325)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(m.a.get("decimal")))),t.$set(e.data.list[a],"score35rate",(parseFloat(e.data.list[a].score35)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(m.a.get("decimal")))),t.$set(e.data.list[a],"score375rate",(parseFloat(e.data.list[a].score375)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(m.a.get("decimal")))),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(parseInt(m.a.get("decimal"))));t.nutritional.tab2.list3=e.data.list,t.nutritional.tab2.pageNum3=e.data.pageNum,t.nutritional.tab2.pageSize3=e.data.pageSize,t.nutritional.tab2.total3=e.data.total}else t.nutritional.tab2.list3=[];setTimeout((function(){t.nutritional.tab2.listLoading3=!1}),100)}))},getTab2NutritionalList4:function(){var t=this;this.nutritional.tab2.listLoading4=!0,Object(l["c"])(this.nutritional.tab2.getdataListParm4).then((function(e){if(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(parseInt(m.a.get("decimal")))),t.$set(e.data.list[a],"score2rate",(parseFloat(e.data.list[a].score2)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(m.a.get("decimal")))),t.$set(e.data.list[a],"score3rate",(parseFloat(e.data.list[a].score3)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(m.a.get("decimal")))),t.$set(e.data.list[a],"score4rate",(parseFloat(e.data.list[a].score4)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(m.a.get("decimal")))),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(parseInt(m.a.get("decimal"))));t.nutritional.tab2.list4=e.data.list,t.nutritional.tab2.pageNum4=e.data.pageNum,t.nutritional.tab2.pageSize4=e.data.pageSize,t.nutritional.tab2.total4=e.data.total}else t.nutritional.tab2.list4=[];setTimeout((function(){t.nutritional.tab2.listLoading4=!1}),100)}))},handleHistoryRecords:function(){this.dialogFull=!1,this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var t=this;Object(l["c"])(this.history.getdataDateParm).then((function(e){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(l["c"])(this.table.getdataListParm2).then((function(e){null!==e.data.list&&(0==e.data.list[0].inforvalue?t.table.isPtsfname=!1:t.table.isPtsfname=!0)})),Object(l["c"])(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(l["c"])(this.history.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)void 0!=e.data.list[a].ptid&&""!=e.data.list[a].ptname||(t.$set(e.data.list[a],"ptid",""),t.$set(e.data.list[a],"ptname",""));t.history.list=e.data.list,t.handleSpan(),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)}))},handleSpan:function(){var t=this;this.mergekeys.forEach((function(e){t.spanObj[e]=[];var a=0;t.history.list.forEach((function(i,s){0===s?(t.spanObj[e].push(1),a=0):"sumweight"==e?t.history.list[s][e]===t.history.list[s-1][e]&&t.history.list[s]["barname"]===t.history.list[s-1]["barname"]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s):t.history.list[s][e]===t.history.list[s-1][e]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s)}))}))},objectSpanMethod:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.mergekeys.length;i++)if(e.property===this.mergekeys[i]){var s=this.spanObj[this.mergekeys[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},changeDate:function(){this.getHistoryList()},handleApplication:function(){var t=this;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=m.a.get("pastureid"),t.requestParam.parammaps.date=t.history.getdataListParm.parammaps.date,Object(l["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){var e=this;1==t?(this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{obj1:"1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;"},{obj1:"2、底部工作表名称不可更改,默认为:Sheet1;"},{obj1:"3、栏舍名称,实际牛头数,系数(%),系数头数,配方模板,补料配方字体为必填;"},{obj1:"4、第一列栏舍名称默认为系统中栏舍,不可修改;"},{obj1:"5、实际牛头数为正整数,系数为正数,至多保留俩位小数;"},{obj1:"6、配方模板名称必须与系统中配方计划—配方模板中的饲喂配方匹配;若补料配方开启,需与配方模板中的补料配方匹配;"},{obj1:"7、数据最多可导入200条,超过200条请分多个文件导入。"}],i=[{tHeader:["栏舍名称","实际牛头数","系数(%)","配方模板","补料配方","第一班比例(%)","第二班比例(%)","第三班比例(%)","第四班比例(%)"],filterVal:["barname","","","","","","","",""],tableDatas:e.download.list,sheetName:"Sheet1"},{tHeader:["填写规范:"],filterVal:["obj1"],tableDatas:a,sheetName:"Sheet2"}];Object(c["c"])(i,"栏舍配方导入模板",!0,"xlsx")}))):(this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(l["c"])(this.download.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=function(a){if(void 0!==t.data.list[a].ftid&&""!==t.data.list[a].ftid&&(void 0!==e.recipeTemplateList.find((function(e){return e.id==t.data.list[a].ftid}))?e.$set(t.data.list[a],"dryweight",e.recipeTemplateList.find((function(e){return e.id==t.data.list[a].ftid})).dryweight):e.$set(t.data.list[a],"dryweight","")),void 0!==t.data.list[a].timesopt){s=t.data.list[a].timesopt.split(",");for(var i=0;i<s.length;i++)t.data.list[a]["r"+s[i].split(":")[0]]=s[i].split(":")[1],t.data.list[a]["w"+s[i].split(":")[0]]=s[i].split(":")[2]}""!=t.data.list[a].r1&&void 0!=t.data.list[a].r1||(t.data.list[a].r1=0,t.data.list[a].w1=0),""!=t.data.list[a].r2&&void 0!=t.data.list[a].r2||(t.data.list[a].r2=0,t.data.list[a].w2=0),""!=t.data.list[a].r3&&void 0!=t.data.list[a].r3||(t.data.list[a].r3=0,t.data.list[a].w3=0),""!=t.data.list[a].r4&&void 0!=t.data.list[a].r4||(t.data.list[a].r4=0,t.data.list[a].w4=0),e.$set(t.data.list[a],"sumr",parseFloat(t.data.list[a].r1)+parseFloat(t.data.list[a].r2)+parseFloat(t.data.list[a].r3)+parseFloat(t.data.list[a].r4)),t.data.list[a].sumr=Object(l["k"])(t.data.list[a].sumr,parseInt(m.a.get("decimal"))),e.$set(t.data.list[a],"dailyWeight",parseFloat(t.data.list[a].w1)+parseFloat(t.data.list[a].w2)+parseFloat(t.data.list[a].w3)+parseFloat(t.data.list[a].w4)),t.data.list[a].dailyWeight=Object(l["k"])(t.data.list[a].dailyWeight,parseInt(m.a.get("decimal")))},i=0;i<t.data.list.length;i++){var s;a(i)}e.download.list=t.data.list}else e.download.list=[];if(1==e.table.isRW1&&0==e.table.isRW2&&0==e.table.isRW3&&0==e.table.isRW4)var r=[{tHeader:["栏舍名称","软件牛头数","实际牛头数","系数(%)","系数头数","配方模板","补料配方","第一班比例(%)","第一班重量","总比例","日投喂量","配方重量","补料重量","配方干物质"],filterVal:["barname","softccount","ccount","ratio","ccountratio","ftname","ptsfname","r1","w1","sumr","dailyWeight","ftweight","supplyweight","dryweight"],tableDatas:e.download.list,sheetName:"Sheet1"}];else if(1==e.table.isRW1&&1==e.table.isRW2&&0==e.table.isRW3&&0==e.table.isRW4)r=[{tHeader:["栏舍名称","软件牛头数","实际牛头数","系数(%)","系数头数","配方模板","补料配方","第一班比例(%)","第一班重量","第二班比例(%)","第二班重量","总比例","日投喂量","配方重量","补料重量","配方干物质"],filterVal:["barname","softccount","ccount","ratio","ccountratio","ftname","ptsfname","r1","w1","r2","w2","sumr","dailyWeight","ftweight","supplyweight","dryweight"],tableDatas:e.download.list,sheetName:"Sheet1"}];else if(1==e.table.isRW1&&1==e.table.isRW2&&1==e.table.isRW3&&0==e.table.isRW4)r=[{tHeader:["栏舍名称","软件牛头数","实际牛头数","系数(%)","系数头数","配方模板","补料配方","第一班比例(%)","第一班重量","第二班比例(%)","第二班重量","第三班比例(%)","第三班重量","总比例","日投喂量","配方重量","补料重量","配方干物质"],filterVal:["barname","softccount","ccount","ratio","ccountratio","ftname","ptsfname","r1","w1","r2","w2","r3","w3","sumr","dailyWeight","ftweight","supplyweight","dryweight"],tableDatas:e.download.list,sheetName:"Sheet1"}];else r=[{tHeader:["栏舍名称","软件牛头数","实际牛头数","系数(%)","系数头数","配方模板","补料配方","第一班比例(%)","第一班重量","第二班比例(%)","第二班重量","第三班比例(%)","第三班重量","第四班比例(%)","第四班重量","总比例","日投喂量","配方重量","补料重量","配方干物质"],filterVal:["barname","softccount","ccount","ratio","ccountratio","ftname","ptsfname","r1","w1","r2","w2","r3","w3","r4","w4","sumr","dailyWeight","ftweight","supplyweight","dryweight"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(c["c"])(r,"栏舍配方",!0,"xlsx")})))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","实际牛头数","系数(%)","配方模板","补料配方","第一班比例(%)","第二班比例(%)","第三班比例(%)","错误信息"],r=["栏舍名称","实际牛头数","系数(%)","配方模板","补料配方","第一班比例(%)","第二班比例(%)","第三班比例(%)","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"栏舍配方导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(c["d"])(e[t]):e[t]}))}))},handleDryMatterRegulation:function(){this.isShowDialog=!0,this.$refs.mychild.getBalconicFormula(),this.$refs.mychild.restTemp()},blurBw:function(t){},focusBw:function(t){}}},g=b,f=(a("cf47"),a("431d"),a("2877")),w=Object(f["a"])(g,i,s,!1,null,"6c507440",null);e["default"]=w.exports},"26c4":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"},2710:function(t,e,a){},"27ed":function(t,e,a){},"283c":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-table"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"年/月/日",clearable:!0},model:{value:t.table.getdataListParm.parammaps.operatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"operatetime",e)},expression:"table.getdataListParm.parammaps.operatetime"}}),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",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"栏舍名称",prop:"barname","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"第一层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"onerate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"oneweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:4,attrs:{label:"第二层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"tworate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"twoweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:5,attrs:{label:"第三层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"threerate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"threeweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:6,attrs:{label:"操作",prop:"operation",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("a",{staticClass:"correcting",on:{click:function(e){t.handleSeeHistory(i)}}},[t._v(t._s(i.operation))])]}}])})],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:{visible:t.seeHistory.dialogFormVisible,"append-to-body":"",title:t.textMap[t.seeHistory.dialogStatus],"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.seeHistory,"dialogFormVisible",e)}}},[a("div",{staticClass:"seeHistory"},[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.seeHistory.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.seeHistory.getdataListParm.parammaps,"inputDatetime",e)},expression:"seeHistory.getdataListParm.parammaps.inputDatetime"}}),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-table",{directives:[{name:"loading",rawName:"v-loading",value:t.seeHistory.listLoading,expression:"seeHistory.listLoading"}],key:t.seeHistory.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.seeHistory.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"修改时间",prop:"operatetime1","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"第一层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"onerate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"oneweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:4,attrs:{label:"第二层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"tworate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"twoweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:5,attrs:{label:"第三层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"threerate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"threeweight","min-width":"90px",align:"center"}})],1)],1),a("Pagination",{directives:[{name:"show",rawName:"v-show",value:t.seeHistory.total>0,expression:"seeHistory.total>0"}],attrs:{total:t.seeHistory.total,page:t.seeHistory.getdataListParm.offset,limit:t.seeHistory.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.seeHistory.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.seeHistory.getdataListParm,"pagecount",e)},pagination:t.getSeeHistoryList}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.seeHistory.dialogFormVisible=!1}}},[t._v("关闭")])],1)])])],1)},s=[],r=a("2934"),l=(a("b76a"),a("a78e")),n=a.n(l),o=a("ed08"),c=a("333d"),d={name:"MaterialIssuancePlan",display:"Two list header slot",order:14,components:{Pagination:c["a"]},data:function(){return{table:{getdataListParm:{name:"getDungHistory",page:1,offset:1,pagecount:12,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),operatetime:""}},list:[],total:0,tableKey:0,listLoading:!1,temp:{},changeList:[],startObj:{}},textMap:{seeHistory:"粪便筛修改记录"},seeHistory:{dialogFormVisible:!1,dialogStatus:"",total:0,tableKey:0,listLoading:!1,getdataListParm:{name:"getDungHistoryBar",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",inputDatetime:"",time1:"",time2:""}}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{changeDate:function(){this.getList()},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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.operatetime||null==this.table.getdataListParm.parammaps.operatetime?this.table.getdataListParm.parammaps.operatetime="":this.table.getdataListParm.parammaps.operatetime=Object(o["d"])(this.table.getdataListParm.parammaps.operatetime,"{y}-{m}-{d}"),this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.operatetime="",this.getList()},handleSeeHistory:function(t){this.textMap.seeHistory="粪便筛修改记录——栏舍:"+t.barname,this.seeHistory.dialogFormVisible=!0,this.seeHistory.dialogStatus="seeHistory",this.seeHistory.getdataListParm.parammaps.barid=t.barids,this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.getSeeHistoryList()},getSeeHistoryList:function(){var t=this;this.seeHistory.listLoading=!0,Object(r["c"])(this.seeHistory.getdataListParm).then((function(e){null!==e.data.list?(t.seeHistory.list=e.data.list,t.seeHistory.pageNum=e.data.pageNum,t.seeHistory.pageSize=e.data.pageSize,t.seeHistory.total=e.data.total):t.seeHistory.list=[],setTimeout((function(){t.seeHistory.listLoading=!1}),100)}))},handleSearch2:function(){""!==this.seeHistory.getdataListParm.parammaps.inputDatetime&&null!==this.seeHistory.getdataListParm.parammaps.inputDatetime?(this.seeHistory.getdataListParm.parammaps.time1=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.seeHistory.getdataListParm.parammaps.time2=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2=""),this.seeHistory.getdataListParm.offset=1,this.getSeeHistoryList()},handleRefresh2:function(){this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.getSeeHistoryList()}}},p=d,m=(a("52cd"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"23428e10",null);e["default"]=u.exports},2934:function(t,e,a){"use strict";a.d(e,"i",(function(){return s})),a.d(e,"c",(function(){return r})),a.d(e,"o",(function(){return l})),a.d(e,"a",(function(){return n})),a.d(e,"j",(function(){return o})),a.d(e,"r",(function(){return c})),a.d(e,"e",(function(){return d})),a.d(e,"p",(function(){return p})),a.d(e,"d",(function(){return m})),a.d(e,"f",(function(){return u})),a.d(e,"n",(function(){return h})),a.d(e,"b",(function(){return b})),a.d(e,"l",(function(){return g})),a.d(e,"m",(function(){return f})),a.d(e,"g",(function(){return w})),a.d(e,"q",(function(){return y})),a.d(e,"h",(function(){return v})),a.d(e,"k",(function(){return L})),a.d(e,"s",(function(){return P}));a("caad"),a("2532"),a("d81d"),a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("99af");var i=a("b775");a("ed08");function s(t){return Object(i["a"])({url:"/authdata/checkDates",method:"post",data:t})}function r(t){return Object(i["a"])({url:"/authdata/GetDataByName",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/authdata/processAnalysist",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/authdata/exesql",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/authdata/Dashboards",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/authdata/Updatedashboard",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/authdata/GetReportform",method:"post",timeout:6e5,data:t})}function p(t,e){return Object(i["a"])({url:"/authdata/"+e,method:"post",data:t})}function m(t){return Object(i["a"])({url:"/authdata/GetDataByNames",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/authdata/PostDataByName",method:"post",data:t})}function h(t,e){return Object(i["a"])({url:"/"+t,method:"post",data:e})}function b(t){return Object(i["a"])({url:"/authdata/ExecDataByConfig",method:"post",data:t})}function g(t){return Object(i["a"])({url:"/authdata/getDorm",method:"post",timeout:6e6,data:t})}function f(t){return Object(i["a"])({url:"/authdata/GetRecuDataByName",method:"post",data:t})}function w(t){return Object(i["a"])({url:"/authdata/UpdateDataRelation",method:"post",data:t})}function y(t,e,a,i){for(var s=[],r={},l=e,n=a,o=i,c=0,d=0,p=t.length;c<p;c++)r[t[c][l]]=t[c];for(;d<p;d++){var m=t[d],u=r[m[n]];u?(!u[o]&&(u[o]=[]),u[o].push(m)):s.push(m)}return s}function v(t,e){for(var a=0;a<t.length;a++)if(t[a].path===e&&1===t[a].editbutton)return!0;return!1}function L(t,e){var a=Math.pow(10,e);return parseInt(t*a,10)/a}function x(t){var e=new Date(1e3*t),a=e.getFullYear(),i=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,s=e.getDate()<10?"0"+e.getDate():e.getDate(),r={year:a,month:i,date:s};return r}function P(t){var e=new Date(t,0,1);while(1!=e.getDay())e.setDate(e.getDate()+1);var a=[],i=e.setDate(e.getDate());if(i>+new Date(t,0,1)){var s=x(+new Date(t,0,1)/1e3);s.last=x(i/1e3-86400),a.push(s)}var r,l=x(i/1e3);l.last=x(i/1e3+518400),a.push(l);for(var n=0;n<51;n++){var o=e.setDate(e.getDate()+7),c=x(o/1e3);c.last=x(o/1e3+518400),r=o+5184e5,a.push(c)}if(r<+new Date(t+1,0,1)){var d=x(r/1e3+86400);d.last=x(+new Date(t+1,0,1)/1e3-86400),a.push(d)}else a[a.length-1].last=x(+new Date(t+1,0,1)/1e3-86400);return a}Date.prototype.format=function(){var t="",e=this.getMonth()+1>=10?this.getMonth()+1:"0"+(this.getMonth()+1),a=this.getDate()>=10?this.getDate():"0"+this.getDate();return t+=this.getFullYear()+"-",t+=e+"-",t+=a,t}},2948:function(t,e,a){"use strict";a("8ad3")},"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},"2a4c":function(t,e,a){"use strict";a("9b22")},"2b66":function(t,e,a){},"2d52":function(t,e,a){},"2ddd":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("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",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod}},[a("el-table-column",{key:1,attrs:{label:"序号",align:"center",type:"index",width:"50px","class-name":"small-padding fixed-width",fixed:"left"},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:"栏舍名称",prop:"barname","min-width":"90px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{key:3,attrs:{label:"班次",prop:"times","min-width":"90px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{key:4,attrs:{label:"软件牛头数",prop:"softccount","min-width":"70px",align:"center"}}),a("el-table-column",{key:5,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.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:6,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.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:7,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.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:8,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.ptname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"99%"},attrs:{filterable:"",placeholder:"配方模板"},on:{change:function(a){t.changeRecipeTemplate(a,e.row)}},model:{value:e.row.ptid,callback:function(a){t.$set(e.row,"ptid",a)},expression:"scope.row.ptid"}},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:9,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.ptsname))]):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.ptsid,callback:function(a){t.$set(e.row,"ptsid",a)},expression:"scope.row.ptsid"}},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,3678410148)}):t._e(),a("el-table-column",{key:10,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.tratio))]):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.blurTratio(e.row)}},model:{value:e.row.tratio,callback:function(a){t.$set(e.row,"tratio",a)},expression:"scope.row.tratio"}}):t._e()]}}])}),a("el-table-column",{key:11,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.weight))]):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.blurWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}}):t._e()]}}])}),a("el-table-column",{key:12,attrs:{label:"配方重量",prop:"pweight","min-width":"85px",align:"center"}}),t.table.isPtsfname?a("el-table-column",{key:13,attrs:{label:"补料重量",prop:"ptweight","min-width":"85px",align:"center"}}):t._e(),a("el-table-column",{key:14,attrs:{label:"配方干物质量",prop:"dryweight","min-width":"85px",align:"center"}}),a("el-table-column",{key:15,attrs:{label:"饲喂干物质量",prop:"swdryw","min-width":"85px",align:"center"}}),a("el-table-column",{key:16,attrs:{label:"采样干物质量",prop:"cydryw","min-width":"85px",align:"center"}}),a("el-table-column",{key:17,attrs:{label:"日投喂量",prop:"sumweight","min-width":"85px",align:"center"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"80","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",attrs:{disabled:1==i.havebutton,icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1),a("pagination2",{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("d3b7"),a("159b"),a("7db0"),a("ac1f"),a("00b4"),a("2934")),l=a("c483"),n=a("a78e"),o=a.n(n),c={name:"DhedFormula",inject:["reload"],components:{Pagination2:l["a"]},props:{show:{type:Boolean,default:!1},parentDate:{type:String,defalut:""}},data:function(){return{date:"",requestParams:[{name:"getFTSWList",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getFTBLList",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],recipeTemplateList:[],feedingFormulaList:[],livestockTypeList:[],rules:{cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},table:{getdataListParm:{name:"getPlanModifyFPlist",page:1,offset:1,pagecount:12,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0,temp:{},rwList:[],isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),inforname:"isEnableSupplyFeed"}}},requestParam:{},spanObj:{},mergekeys:["barname","sumweight"],isokDisable:!1,rowStyle:{maxHeight:"50px",height:"35px"},cellStyle:{padding:"0px"}}},watch:{show:{immediate:!0,handler:function(t){this.visible=t}},parentDate:{immediate:!0,handler:function(t,e){this.date=t}}},created:function(){this.getIsDisplay(),this.getDownList()},methods:{getDownList:function(){var t=this;Object(r["d"])(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["c"])(this.table.getdataListParm2).then((function(e){null!==e.data.list&&(0==e.data.list[0].inforvalue?t.table.isPtsfname=!1:t.table.isPtsfname=!0)})),this.getList()},getList:function(){var t=this;this.table.listLoading=!0,this.table.getdataListParm.parammaps.date=this.date,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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),void 0!=e.data.list[a].ptid&&""!=e.data.list[a].ptname||(t.$set(e.data.list[a],"ptid",""),t.$set(e.data.list[a],"ptname","")),void 0==e.data.list[a].ratio&&t.$set(e.data.list[a],"ratio",""),void 0==e.data.list[a].ccount&&t.$set(e.data.list[a],"ccount",""),void 0==e.data.list[a].ccountratio&&t.$set(e.data.list[a],"ccountratio","");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.handleSpan()}else t.table.list=[];setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSpan:function(){var t=this;this.mergekeys.forEach((function(e){t.spanObj[e]=[];var a=0;t.table.list.forEach((function(i,s){0===s?(t.spanObj[e].push(1),a=0):"sumweight"==e?t.table.list[s][e]===t.table.list[s-1][e]&&t.table.list[s]["barname"]===t.table.list[s-1]["barname"]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s):t.table.list[s][e]===t.table.list[s-1][e]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s)}))}))},objectSpanMethod:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.mergekeys.length;i++)if(e.property===this.mergekeys[i]){var s=this.spanObj[this.mergekeys[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},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,"-1"==t.ptsfid&&(t.ptsfid=""),t.ptsfid=String(t.ptsfid),this.table.temp.ptid=t.ptid,this.table.temp.ptname=t.ptname,this.table.temp.ptsfid=t.ptsfid,this.table.temp.ptsfname=t.ptsfname,t.Sfweight=this.recipeTemplateList.find((function(e){return e.id==t.ptid})).Sfweight,t.SfweightLock=this.recipeTemplateList.find((function(e){return e.id==t.ptid})).SfweightLock},blurCcount:function(t){""!==t.ccount&&""!==t.ratio?t.ccountratio=Object(r["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,2):""!==t.ratio&&""!==t.ccountratio?t.ccount=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ratio)/100,2):""===t.ccount&&""===t.ratio||(t.ccountratio=""),0==this.table.isPtsfname?""!==t.Sfweight&&""!==t.ccountratio&&""!==t.SfweightLock&&t.ccount?(t.pweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccount)*parseFloat(t.ratio)/100+parseFloat(t.SfweightLock)*parseFloat(t.ccount),2),t.weight=Object(r["k"])(parseFloat(t.pweight)*(parseFloat(t.tratio)/100),2)):(t.pweight=0,t.weight=0):("NaN"!=t.supplyweight&&void 0!=t.supplyweight&&"undefined"!=t.supplyweight||(t.supplyweight=0),""!==t.Sfweight&&""!==t.ccountratio&&""!==t.SfweightLock&&t.ccount?(t.pweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccount)*parseFloat(t.ratio)/100+parseFloat(t.SfweightLock)*parseFloat(t.ccount),2),t.weight=Object(r["k"])((parseFloat(t.pweight)+parseFloat(t.supplyweight))*(parseFloat(t.tratio)/100),2)):(t.pweight=0,t.weight=0)),this.getSumWeight(t)},blurRatio:function(t){""!==t.ccount&&""!==t.ratio?t.ccountratio=Object(r["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,2):""!==t.ccount&&""!==t.ccountratio?t.ratio=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),2):""===t.ccount&&""===t.ccountratio||(t.ratio=""),0==this.table.isPtsfname?""!==t.Sfweight&&""!==t.ccountratio&&""!==t.SfweightLock&&t.ccount?(t.pweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccount)*parseFloat(t.ratio)/100+parseFloat(t.SfweightLock)*parseFloat(t.ccount),2),t.weight=Object(r["k"])(parseFloat(t.pweight)*(parseFloat(t.tratio)/100),2)):(t.pweight=0,t.weight=0):("NaN"!=t.supplyweight&&void 0!=t.supplyweight&&"undefined"!=t.supplyweight||(t.supplyweight=0),""!==t.Sfweight&&""!==t.ccountratio&&""!==t.SfweightLock&&t.ccount?(t.pweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccount)*parseFloat(t.ratio)/100+parseFloat(t.SfweightLock)*parseFloat(t.ccount),2),t.weight=Object(r["k"])((parseFloat(t.pweight)+parseFloat(t.supplyweight))*(parseFloat(t.tratio)/100),2)):(t.pweight=0,t.weight=0)),this.getSumWeight(t)},blurCcountratio:function(t){""!==t.ccountratio&&""!==t.ccount&&""!==t.ratio?t.ratio=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),2):""!==t.ccount&&""!==t.ratio?t.ccountratio=Object(r["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,2):""!==t.ccountratio&&""!==t.ccount?t.ratio=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),2):""!==t.ccountratio&&""!==t.ratio&&(t.ccount=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ratio)/100,2)),0==this.table.isPtsfname?""!==t.Sfweight&&""!==t.ccountratio&&""!==t.SfweightLock&&t.ccount?(t.pweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccount)*parseFloat(t.ratio)/100+parseFloat(t.SfweightLock)*parseFloat(t.ccount),2),t.weight=Object(r["k"])(parseFloat(t.pweight)*(parseFloat(t.tratio)/100),2)):(t.pweight=0,t.weight=0):("NaN"!=t.supplyweight&&void 0!=t.supplyweight&&"undefined"!=t.supplyweight||(t.supplyweight=0),""!==t.Sfweight&&""!==t.ccountratio&&""!==t.SfweightLock&&t.ccount?(t.pweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccount)*parseFloat(t.ratio)/100+parseFloat(t.SfweightLock)*parseFloat(t.ccount),2),t.weight=Object(r["k"])((parseFloat(t.pweight)+parseFloat(t.supplyweight))*(parseFloat(t.tratio)/100),2)):(t.pweight=0,t.weight=0)),this.getSumWeight(t)},getSumWeight:function(t){for(var e=[],a=0;a<this.table.list.length;a++)t.barid==this.table.list[a].barid&&e.push(this.table.list[a].weight);for(var i=0,s=0;s<e.length;s++)i+=parseFloat(e[s]);for(var l=0;l<this.table.list.length;l++)t.barid==this.table.list[l].barid&&(this.table.list[l].sumweight=Object(r["k"])(i,2))},changeRecipeTemplate:function(t,e){e.ptname=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,0==this.table.isPtsfname?""!==e.Sfweight&&""!==e.ccountratio&&""!==e.SfweightLock&&e.ccount?(e.pweight=Object(r["k"])(parseFloat(e.Sfweight)*parseFloat(e.ccount)*parseFloat(e.ratio)/100+parseFloat(e.SfweightLock)*parseFloat(e.ccount),2),e.weight=Object(r["k"])(parseFloat(e.pweight)*(parseFloat(e.tratio)/100),2)):(e.pweight=0,e.weight=0):("NaN"!=e.supplyweight&&void 0!=e.supplyweight&&"undefined"!=e.supplyweight||(e.supplyweight=0),""!==e.Sfweight&&""!==e.ccountratio&&""!==e.SfweightLock&&e.ccount?(e.pweight=Object(r["k"])(parseFloat(e.Sfweight)*parseFloat(e.ccount)*parseFloat(e.ratio)/100+parseFloat(e.SfweightLock)*parseFloat(e.ccount),2),e.weight=Object(r["k"])((parseFloat(e.pweight)+parseFloat(e.supplyweight))*(parseFloat(e.tratio)/100),2)):(e.pweight=0,e.weight=0)),this.getSumWeight(e)},blurTratio:function(t){""!==t.pweight&&""!==t.tratio?t.weight=Object(r["k"])(parseFloat(t.pweight)*parseFloat(t.tratio)/100,2):t.weight=0,this.getSumWeight(t)},blurWeight:function(t){""!==t.weight&&""!==t.pweight&&""!==t.ratio?t.tratio=Object(r["k"])(parseFloat(t.weight)/parseFloat(t.pweight)*100,0):t.tratio=0},updateData:function(t){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),5e3);var a=/^[1-9]\d*$/;if(""!==t.ccount){if(!a.test(parseFloat(t.ccount)))return this.$message({type:"error",message:"实际牛头数请输入正整数",duration:2e3}),!1}else this.$message({type:"error",message:"实际牛头数不能为空",duration:2e3});var i=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(""!==t.ratio){if(!i.test(parseFloat(t.ratio)))return this.$message({type:"error",message:"系数请输入正数",duration:2e3}),!1}else this.$message({type:"error",message:"系数不能为空",duration:2e3});if(""!==t.ccountratio){if(!i.test(parseFloat(t.ccountratio)))return this.$message({type:"error",message:"系数头数请输入正数",duration:2e3}),!1}else this.$message({type:"error",message:"系数头数不能为空",duration:2e3});""==t.tratio&&(t.tratio=0),isNaN(t.tratio)&&(t.tratio=0),""==t.weight&&(t.weight=0),isNaN(t.weight)&&(t.weight=0),void 0==t.ptsid&&(t.ptsid=0),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updatePlanModifyFPlist",type:"e",parammaps:{pastureid:t.pastureid,date:this.date,id:t.id,ptweight:t.ptweight,pweight:t.pweight,weight:t.weight,tratio:t.tratio,cowcount:t.ccount,ccountradio:t.ratio,ptid:t.ptid,ptsid:t.ptsid}},this.requestParam.data[1]={name:"updateLPPbyFPChangedate",type:"e",parammaps:{pastureid:t.pastureid,fpid:t.fpid,date:this.date,timesin:t.timesin}},Object(r["b"])(this.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())}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isUpdate=!0,t.isUpdateSave=!1,this.table.getdataListParm.offset=this.table.getdataListParm.offset,this.getList()}}},d=c,p=a("2877"),m=Object(p["a"])(d,i,s,!1,null,null,null);e["default"]=m.exports},"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="M791.31738031 76.99973c0-24.84363094-20.82793781-44.99973-46.55137875-44.99973-25.7244 0-46.55233781 20.15514094-46.55233781 44.99973l0 90.00041906c0 24.84363094 20.82793781 45.00068906 46.55233781 45.00068907 25.72344188 0 46.55137875-20.15705813 46.55137875-45.00068907L791.31738031 76.99973z" p-id="11318" /><path d="M558.55281687 76.99973c0-24.84363094-20.85956438-44.99973-46.55137875-44.99973-25.69468969 0-46.55329594 20.15609906-46.55329593 44.99973l0 90.00041906c0 24.84363094 20.85956438 45.00068906 46.55329593 45.00068907 25.69373156 0 46.55137875-20.15705813 46.55137875-45.00068907L558.55281687 76.99973z" p-id="11319" /><path d="M325.78825344 76.99973c0-24.84363094-20.82985406-44.99973-46.55329594-44.99973-25.72248375 0-46.55233781 20.15609906-46.55233781 44.99973l0 90.00041906c0 24.84363094 20.82985406 45.00068906 46.55233781 45.00068907 25.72344188 0 46.55329594-20.15705813 46.55329594-45.00068907L325.78825344 76.99973z" p-id="11320" /><path d="M915.45119656 121.99850281l-77.58052031 0 0 45.00068907c0 49.71697219-41.6903775 90.00041906-93.10467563 90.00041906-51.41621531 0-93.10563375-40.284405-93.10563375-90.00041906L651.66036687 121.99850281l-46.55233781 0 0 45.00068907c0 49.71697219-41.68846031 90.00041906-93.10467562 90.00041906s-93.10563375-40.284405-93.10563375-90.00041906L418.89772062 121.99850281 372.34346656 121.99850281l0 45.00068907c0 49.71697219-41.65970813 90.00041906-93.10467562 90.00041906-51.41429813 0-93.10563375-40.284405-93.10563375-90.00041906L186.13315719 121.99850281 108.55263687 121.99850281c-25.72344188 0-46.55329594 20.15705813-46.55329593 45.00068907l0 780.00107812c0 24.84459 20.82985406 44.99973 46.55329593 44.99973l806.89855969 0c25.72056656 0 46.54850438-20.15514094 46.54850438-44.99973L961.99970094 167.00015C962.00065906 142.15651906 941.17176312 121.99850281 915.45119656 121.99850281zM318.20156375 848.17394938c0 21.08478844-17.39782594 38.15675812-38.80655344 38.15675812-21.46719 0-38.83626375-17.07196969-38.83626375-38.15675813L240.55874656 746.46572187c0-21.05412 17.36907375-38.12608969 38.83626375-38.12608968 21.4087275 0 38.80655344 17.07196969 38.80655344 38.12608968L318.20156375 848.17394938zM473.48623812 848.17394938c0 21.08478844-17.37003188 38.15675812-38.80751156 38.15675812-21.46719 0-38.83530469-17.07196969-38.83530469-38.15675813l0-203.41070437c0-21.05507812 17.36811563-38.128965 38.83530469-38.128965 21.43747969 0 38.80751156 17.07388687 38.80751156 38.128965L473.48623812 848.17394938zM628.7709125 848.17394938c0 21.08478844-17.33936344 38.15675812-38.80655344 38.15675812-21.43747969 0-38.80655344-17.07196969-38.80655343-38.15675813L551.15780656 543.05597656c0-21.08478844 17.36907375-38.15771625 38.80655344-38.15771625 21.46719 0 38.80655344 17.07292781 38.80655344 38.15771625L628.7709125 848.17394938zM784.08529719 848.17394938c0 21.08478844-17.36811563 38.15675812-38.83530469 38.15675812-21.41064469 0-38.80655344-17.07196969-38.80655344-38.15675813L706.44343906 441.32283125c0-21.05412 17.39590875-38.12800594 38.80655344-38.12800594 21.46623094 0 38.83530469 17.07388687 38.83530469 38.12800594L784.08529719 848.17394938z" p-id="11321" /></symbol>'});l.a.add(n);e["default"]=n},"2e3f":function(t,e,a){},"2e8e":function(t,e,a){"use strict";a("22a9")},"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},"2f08":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-table"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{clearable:!0,type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"年/月/日"},on:{change:t.changeTime},model:{value:t.table.getdataListParm.parammaps.changeTime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"changeTime",e)},expression:"table.getdataListParm.parammaps.changeTime"}}),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,"span-method":t.objectSpanMethod}},[a("el-table-column",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"栏舍名称",prop:"barname","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"班次",prop:"time1","min-width":"90px",align:"center"}}),a("el-table-column",{key:4,attrs:{label:"鲜重重量(g)",prop:"freshweight","min-width":"90px",align:"center"}}),a("el-table-column",{key:5,attrs:{label:"烘干重量(g)",prop:"dryweight","min-width":"90px",align:"center"}}),a("el-table-column",{key:6,attrs:{label:"理论干物质",prop:"thoweight","min-width":"90px",align:"center"}}),a("el-table-column",{key:7,attrs:{label:"实际干物质",prop:"actweight","min-width":"90px",align:"center"}}),a("el-table-column",{key:8,attrs:{label:"操作",prop:"operation",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("a",{staticClass:"correcting",on:{click:function(e){t.handleSeeHistory(i)}}},[t._v(t._s(i.operation))])]}}])})],1),a("pagination2",{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:{visible:t.seeHistory.dialogFormVisible,"append-to-body":"",title:t.textMap[t.seeHistory.dialogStatus],"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.seeHistory,"dialogFormVisible",e)}}},[a("div",{staticClass:"seeHistory"},[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.seeHistory.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.seeHistory.getdataListParm.parammaps,"inputDatetime",e)},expression:"seeHistory.getdataListParm.parammaps.inputDatetime"}}),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-table",{directives:[{name:"loading",rawName:"v-loading",value:t.seeHistory.listLoading,expression:"seeHistory.listLoading"}],key:t.seeHistory.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.seeHistory.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod2}},[a("el-table-column",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"修改时间",prop:"changeTime1","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"班次",prop:"times","min-width":"90px",align:"center"}}),a("el-table-column",{key:4,attrs:{label:"鲜重重量(g)",prop:"times","min-width":"90px",align:"center"}}),a("el-table-column",{key:5,attrs:{label:"烘干重量(g)",prop:"times","min-width":"90px",align:"center"}}),a("el-table-column",{key:6,attrs:{label:"理论干物质",prop:"times","min-width":"90px",align:"center"}}),a("el-table-column",{key:7,attrs:{label:"实际干物质",prop:"times","min-width":"90px",align:"center"}})],1),a("pagination2",{directives:[{name:"show",rawName:"v-show",value:t.seeHistory.total>0,expression:"seeHistory.total>0"}],attrs:{total:t.seeHistory.total,page:t.seeHistory.getdataListParm.offset,limit:t.seeHistory.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.seeHistory.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.seeHistory.getdataListParm,"pagecount",e)},pagination:t.getSeeHistoryList}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.seeHistory.dialogFormVisible=!1}}},[t._v("关闭")])],1)])])],1)},s=[],r=(a("d3b7"),a("159b"),a("2934")),l=(a("b76a"),a("a78e")),n=a.n(l),o=a("ed08"),c=a("c483"),d={name:"MaterialIssuancePlan",display:"Two list header slot",order:14,components:{Pagination2:c["a"]},data:function(){return{table:{getdataListParm:{name:"getFtdryHistory",page:1,offset:1,pagecount:12,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),changeTime:""}},list:[],total:0,tableKey:0,listLoading:!1,temp:{},changeList:[],startObj:{}},spanObj:{},mergekeys:["barname","operation"],textMap:{seeHistory:"配方干物质修改记录"},seeHistory:{dialogFormVisible:!1,dialogStatus:"",total:0,tableKey:0,listLoading:!1,getdataListParm:{name:"getFtdryHistoryBar",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",inputDatetime:"",time1:"",time2:""}}},spanObj2:{},mergekeys2:["changeTime1"],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{changeTime:function(t){null==t&&(this.table.getdataListParm.parammaps.changeTime="")},changeDate:function(){this.getList()},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.handleSpan(),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)}))},handleSpan:function(){var t=this;this.mergekeys.forEach((function(e){t.spanObj[e]=[];var a=0;t.table.list.forEach((function(i,s){0===s?(t.spanObj[e].push(1),a=0):"operation"==e?t.table.list[s][e]===t.table.list[s-1][e]&&t.table.list[s]["barname"]===t.table.list[s-1]["barname"]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s):t.table.list[s][e]===t.table.list[s-1][e]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s)}))}))},objectSpanMethod:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.mergekeys.length;i++)if(e.property===this.mergekeys[i]){var s=this.spanObj[this.mergekeys[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},handleSearch:function(){""==this.table.getdataListParm.parammaps.changeTime||null==this.table.getdataListParm.parammaps.changeTime?this.table.getdataListParm.parammaps.changeTime="":this.table.getdataListParm.parammaps.changeTime=Object(o["d"])(this.table.getdataListParm.parammaps.changeTime,"{y}-{m}-{d}"),this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.changeTime="",this.getList()},handleSeeHistory:function(t){this.textMap.seeHistory="配方干物质修改记录——栏舍:"+t.barname,this.seeHistory.dialogFormVisible=!0,this.seeHistory.dialogStatus="seeHistory",this.seeHistory.getdataListParm.parammaps.barid=t.barids,this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.getSeeHistoryList()},getSeeHistoryList:function(){var t=this;this.seeHistory.listLoading=!0,Object(r["c"])(this.seeHistory.getdataListParm).then((function(e){null!==e.data.list?(t.seeHistory.list=e.data.list,t.handleSpan2(),t.seeHistory.pageNum=e.data.pageNum,t.seeHistory.pageSize=e.data.pageSize,t.seeHistory.total=e.data.total):t.seeHistory.list=[],setTimeout((function(){t.seeHistory.listLoading=!1}),100)}))},handleSpan2:function(){var t=this;this.mergekeys2.forEach((function(e){t.spanObj2[e]=[];var a=0;t.seeHistory.list.forEach((function(i,s){0===s?(t.spanObj2[e].push(1),a=0):"operation"==e?t.seeHistory.list[s][e]===t.seeHistory.list[s-1][e]&&t.seeHistory.list[s]["barname"]===t.seeHistory.list[s-1]["barname"]?(t.spanObj2[e][a]+=1,t.spanObj2[e].push(0)):(t.spanObj2[e].push(1),a=s):t.seeHistory.list[s][e]===t.seeHistory.list[s-1][e]?(t.spanObj2[e][a]+=1,t.spanObj2[e].push(0)):(t.spanObj2[e].push(1),a=s)}))}))},objectSpanMethod2:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.mergekeys2.length;i++)if(e.property===this.mergekeys2[i]){var s=this.spanObj2[this.mergekeys2[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},handleSearch2:function(){""!==this.seeHistory.getdataListParm.parammaps.inputDatetime&&null!==this.seeHistory.getdataListParm.parammaps.inputDatetime?(this.seeHistory.getdataListParm.parammaps.time1=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.seeHistory.getdataListParm.parammaps.time2=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2=""),this.seeHistory.getdataListParm.offset=1,this.getSeeHistoryList()},handleRefresh2:function(){this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.getSeeHistoryList()}}},p=d,m=(a("bc6a"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"7ea2d9fc",null);e["default"]=u.exports},"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},"2f56":function(t,e,a){"use strict";a("6c06")},3:function(t,e){},3012:function(t,e,a){},3034: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-table"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"filter-item ",staticStyle:{width:"250px"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"年/月/日"},model:{value:t.table.getdataListParm.parammaps.changetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"changetime",e)},expression:"table.getdataListParm.parammaps.changetime"}}),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",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"栏舍名称",prop:"barname","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"标准分数(分)",prop:"standardscore","min-width":"90px",align:"center"}}),a("el-table-column",{key:4,attrs:{label:"牛头数(分)",prop:"cowsum","min-width":"90px",align:"center"}}),a("el-table-column",{key:5,attrs:{label:"评分","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"1分 (头)",prop:"onescore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"2分(头)",prop:"twoscore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"3分(头)",prop:"threescore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"4分(头)",prop:"fourscore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"5分(头)",prop:"fivescore","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:6,attrs:{label:"操作",prop:"operation",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("a",{staticClass:"correcting",on:{click:function(e){t.handleSeeHistory(i)}}},[t._v(t._s(i.operation))])]}}])})],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:{visible:t.seeHistory.dialogFormVisible,"append-to-body":"",title:t.textMap[t.seeHistory.dialogStatus],"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.seeHistory,"dialogFormVisible",e)}}},[a("div",{staticClass:"seeHistory"},[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.seeHistory.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.seeHistory.getdataListParm.parammaps,"inputDatetime",e)},expression:"seeHistory.getdataListParm.parammaps.inputDatetime"}}),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-table",{directives:[{name:"loading",rawName:"v-loading",value:t.seeHistory.listLoading,expression:"seeHistory.listLoading"}],key:t.seeHistory.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.seeHistory.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"修改时间",prop:"changetime1","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"标准分数(分)",prop:"standardscore","min-width":"90px",align:"center"}}),a("el-table-column",{key:4,attrs:{label:"牛头数(分)",prop:"cowsum","min-width":"90px",align:"center"}}),a("el-table-column",{key:5,attrs:{label:"评分","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"1分 (头)",prop:"onescore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"2分(头)",prop:"twoscore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"3分(头)",prop:"threescore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"4分(头)",prop:"fourscore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"5分(头)",prop:"fivescore","min-width":"90px",align:"center"}})],1)],1),a("Pagination",{directives:[{name:"show",rawName:"v-show",value:t.seeHistory.total>0,expression:"seeHistory.total>0"}],attrs:{total:t.seeHistory.total,page:t.seeHistory.getdataListParm.offset,limit:t.seeHistory.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.seeHistory.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.seeHistory.getdataListParm,"pagecount",e)},pagination:t.getSeeHistoryList}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.seeHistory.dialogFormVisible=!1}}},[t._v("关闭")])],1)])])],1)},s=[],r=a("2934"),l=(a("b76a"),a("a78e")),n=a.n(l),o=a("ed08"),c=a("333d"),d={name:"MaterialIssuancePlan",display:"Two list header slot",order:14,components:{Pagination:c["a"]},data:function(){return{table:{getdataListParm:{name:"getDungandbodyhistory",page:1,offset:1,pagecount:12,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),changetime:"",species:"fppf"}},list:[],total:0,tableKey:0,listLoading:!1,temp:{},changeList:[],startObj:{}},textMap:{seeHistory:"粪便评分修改记录"},seeHistory:{dialogFormVisible:!1,dialogStatus:"",total:0,tableKey:0,listLoading:!1,getdataListParm:{name:"getDungandbodyhistoryBar",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",inputDatetime:"",time1:"",time2:""}}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{changeDate:function(){this.getList()},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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.changetime||null==this.table.getdataListParm.parammaps.changetime?this.table.getdataListParm.parammaps.changetime="":this.table.getdataListParm.parammaps.changetime=Object(o["d"])(this.table.getdataListParm.parammaps.changetime,"{y}-{m}-{d}"),this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.changetime="",this.getList()},handleSeeHistory:function(t){this.textMap.seeHistory="粪便评分修改记录——栏舍:"+t.barname,this.seeHistory.dialogFormVisible=!0,this.seeHistory.dialogStatus="seeHistory",this.seeHistory.getdataListParm.parammaps.species="fppf",this.seeHistory.getdataListParm.parammaps.barid=t.barids,this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.getSeeHistoryList()},getSeeHistoryList:function(){var t=this;this.seeHistory.listLoading=!0,Object(r["c"])(this.seeHistory.getdataListParm).then((function(e){null!==e.data.list?(t.seeHistory.list=e.data.list,t.seeHistory.pageNum=e.data.pageNum,t.seeHistory.pageSize=e.data.pageSize,t.seeHistory.total=e.data.total):t.seeHistory.list=[],setTimeout((function(){t.seeHistory.listLoading=!1}),100)}))},handleSearch2:function(){""!==this.seeHistory.getdataListParm.parammaps.inputDatetime&&null!==this.seeHistory.getdataListParm.parammaps.inputDatetime?(this.seeHistory.getdataListParm.parammaps.time1=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.seeHistory.getdataListParm.parammaps.time2=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2=""),this.seeHistory.getdataListParm.offset=1,this.getSeeHistoryList()},handleRefresh2:function(){this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.getSeeHistoryList()}}},p=d,m=(a("6965"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"1daebe21",null);e["default"]=u.exports},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},"306d":function(t,e,a){},"30b5c":function(t,e,a){"use strict";a("c8ca")},"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";a("b2bd")},"31ae":function(t,e,a){"use strict";a("98bd")},"31c2":function(t,e,a){"use strict";a.r(e),a.d(e,"filterAsyncRoutes",(function(){return d}));var i=a("5530"),s=(a("d3b7"),a("159b"),a("caad"),a("2532"),a("99af"),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 p={routes:[],addRoutes:[],data1:{name:"getmenu",idname:"id",parammaps:{id:-1}}},m={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["c"])(p.data1).then((function(i){if(null!==i.data.list){for(var s=0;s<i.data.list.length;s++)if(i.data.list[s].affix=!0,i.data.list[s].keepAlive=!0,void 0!==i.data.list[s].children)for(var r=0;r<i.data.list[s].children.length;r++)i.data.list[s].children[r].affix=!0,i.data.list[s].children[r].keepAlive=!0;var n=Object(l["q"])(i.data.list,"id","parentId","children");0===n.length&&e("menus data is null1");var c=o(n);c.push({path:"*",redirect:"/404",hidden:!0}),a("SET_ROUTES",c),t(c)}else{var d=[];0==d.length&&e("当前用户角色未分配页面权限,无法登录");var p=o(d);p.push({path:"*",redirect:"/404",hidden:!0}),a("SET_ROUTES",p),t(p)}}))}))}};e["default"]={namespaced:!0,state:p,mutations:m,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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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:"180","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("a",{staticClass:"correcting",on:{click:function(e){return t.handleRole(i)}}},[t._v("页面权限")]):t._e(),i.NoEdit&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-folder-checked",disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-folder-checked",disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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:{fullscreen:t.dialogFull,visible:t.role.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.role,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.role.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:{"header-align":"center",prop:"name",label:"页面"}}),a("el-table-column",{attrs:{"header-align":"center",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:{"header-align":"center",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:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.role.dialogFormVisible=!1,t.getList()}}},[t._v("取消")]),"role"===t.role.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.roleData()}}},[t._v("确认")]):t._e()],1)])],2)],1)},s=[],r=(a("b0c0"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("a434"),a("d3b7"),a("159b"),a("caad"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("5c96"),d=a("333d"),p={name:"Role",components:{Pagination:d["a"]},data:function(){return{dialogFull:!1,isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getRoleList",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},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["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleConfirmStartChange:function(){},handleSearch:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.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(){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["d"])(new Date,"{y}-{m}-{d}"),createmp:n.a.get("employename"),rolename:""})},createData:function(t){var e=this;if(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("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}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}}))},createCancel:function(t){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(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkDeleteRole",type:"v",parammaps:{pastureid:t.pastureid,id: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){"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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择角色信息",duration:2e3}):c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.common={returnmap:"0"},t.requestParam.data=[];for(var e=0;e<t.selectList.length;e++)t.requestParam.data[e]={name:"checkDeleteRole",type:"v",parammaps:{pastureid:t.selectList[e].pastureid,id: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){"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),this.dialogFull=!1,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["c"])(this.getRecuListParm).then((function(e){null!==e.data.list&&(t.tableData=Object(r["q"])(e.data.list,"id","pid","children"),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)}))})))}))},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&&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)a.fnCheck[e]=!0,a.indeterminate[e]=!1;else{a.fnCheck[e]=!1,a.fnCheck["editbutton"]=!1;var r=[],l=[];if(a.childList.forEach((function(t,a){r.push(t.fnCheck[e]),l.push(t.fnCheck["editbutton"])})),r.includes(!0))a.indeterminate[e]=!0,a.fnCheck["editbutton"]=!1,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;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 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){!1===t.fnCheck["seebutton"]&&(t.fnCheck["seebutton"]=t.fnCheck["editbutton"])}));else{a.fnCheck[e]=!1,!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"])}))}}else a.fnCheck[e]=t.row.fnCheck[e]}))},handleFnAll:function(t,e,a,i){if(t.fnCheck[i]=e,t.childList){var s=this;t.childList.forEach((function(r,l){t.indeterminate[i]=!1,s.handleFnAll(t.childList[l],e,a,i)}))}},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)}))}},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),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,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){"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())}))}}},m=p,u=(a("12bc"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"9705df18",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({ref:"pagination",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=[],r=(a("a9e3"),a("09f4")),l={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&&Object(r["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},n=l,o=(a("ec5a"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"05ef770c",null);e["a"]=c.exports},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:"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-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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:"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,"max-height":t.myHeight},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:"80","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",attrs:{disabled:"设备采集"==i.emp,icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{disabled:"设备采集"==i.emp,icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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"}},["create"==t.create.dialogStatus?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:"barname"}},[a("el-input",{ref:"barname",staticClass:"filter-item",attrs:{disabled:"",placeholder:"barname"},model:{value:t.create.temp.barname,callback:function(e){t.$set(t.create.temp,"barname",e)},expression:"create.temp.barname"}})],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:"班次",disabled:"update"==t.create.dialogStatus},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:"操作人",disabled:"update"==t.create.dialogStatus},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:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",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:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2)],1)},s=[],r=(a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),p=a("bc3a"),m=a.n(p),u=a("5f87"),h={name:"MaterialRemainingRecord",components:{Pagination:c["a"]},data:function(){return{dialogFull:!1,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:parseInt(n.a.get("pageCount")),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["d"])(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:{},download:{getdataListParm:{name:"getBarfeedremainList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",startTime:"",stopTime:"",inputDatetime:""}},list:[]},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkbarname,checktimes,insertBarfeedremainUpload",importParams:"栏舍名称,剩料量(kg),班次,收集时间,操作人",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"收集时间",requiredParams:"栏舍名称,剩料量(kg),班次",numParams:"剩料量(kg)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){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(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.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["d"])(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["c"])(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}else t.create.noteTakerList=[]}))},handleCreate:function(){this.dialogFull=!1,this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData: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="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("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}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},createDataAgain: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="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("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}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},handleUpdate:function(t){this.dialogFull=!1,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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},handleRowDelete:function(t){var e=this;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){this.selectList=t},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(){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){"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}):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'");if(a.test(e.data))return void t.$notify({type:"warning",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){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/栏舍生产/栏舍剩料记录导入模板.xlsx";m()({method:"GET",url:i,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="栏舍剩料记录导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["栏舍名称","剩料量(kg)","班次","收集时间","操作人"],filterVal:["barname","remain","timesstr","operatetime","emp"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(o["c"])(a,"栏舍剩料记录",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","剩料量(kg)","班次","收集时间","操作人","错误信息"],r=["栏舍名称","剩料量(kg)","班次","收集时间","操作人","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"栏舍剩料记录导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))}}},b=h,g=a("2877"),f=Object(g["a"])(b,i,s,!1,null,null,null);e["default"]=f.exports},3528:function(t,e,a){},3537:function(t,e,a){"use strict";a("c740"),a("a434"),a("d81d");var i=a("a5e0"),s=a("aa35"),r={debug:!1,state:{dimensions:[],caculCols:[],caculCols2:[],allCols:[]},addDimensionAction:function(t){this.debug,t.isDimension=!0},deleteDimensionAction:function(t){this.debug;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,this.state.dimensions=t},addCaculColAction:function(t){this.debug;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;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;var e=this.state.caculCols.findIndex((function(e){return e.Column===t.Column}));this.state.caculCols.splice(e,1)},deleteCaculColAction2:function(t){this.debug;var e=this.state.caculCols2.findIndex((function(e){return e.Column===t.Column}));this.state.caculCols2.splice(e,1)},setCaculColsAction:function(t){this.debug,this.state.caculCols=t},setCaculColsAction2:function(t){this.debug,this.state.caculCols2=t},setAllColsAction:function(t){this.debug,this.state.allCols=t}};e["a"]=r},3600:function(t,e,a){"use strict";a("a8e9")},"364f":function(t,e,a){},3666:function(t,e,a){"use strict";a("2d52")},3699:function(t,e,a){},3722:function(t,e,a){},3748:function(t,e,a){},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},"383d":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(t.myComponent1,{ref:"detail1",tag:"component"})],1),a("el-tab-pane",{attrs:{label:"混料统计",name:"second"}},[a("keep-alive",[a(t.myComponent2,{ref:"detail2",tag:"component"})],1)],1),a("el-tab-pane",{attrs:{label:"撒料统计",name:"third"}},[a("keep-alive",[a(t.myComponent3,{ref:"detail3",tag:"component"})],1)],1)],1)],1)},s=[],r=(a("d3b7"),a("3ca3"),a("ddb0"),a("313e"),a("2934"),a("a78e"),a("ed08"),a("333d")),l=(a("5c96"),a("753a")),n=a("fb98");a("817d");var o={name:"GroupErrorAnalysis",components:{Pagination:r["a"],Tab1:l["default"],Tab2:n["default"]},data:function(){return{activeName:"first",myComponent1:null,myComponent2:null,myComponent3:null}},created:function(){},mounted:function(){this.detailComponent1()},methods:{detailComponent1:function(){if("first"==this.activeName){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"753a"))};return t.myComponent1=e}},handleTabClick:function(){if("first"==this.activeName){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"753a"))};return t.myComponent1=e}if("second"==this.activeName){var i=this,s=function(){return Promise.resolve().then(a.bind(null,"fb98"))};return i.myComponent2=s}if("third"==this.activeName){var r=this,l=function(){return Promise.resolve().then(a.bind(null,"b0ae"))};return r.myComponent3=l}}}},c=o,d=(a("39e5"),a("2877")),p=Object(d["a"])(c,i,s,!1,null,"126f2f7a",null);e["default"]=p.exports},"38cb":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",{attrs:{clearable:!1,type:"date",placeholder:"选择日期"},model:{value:t.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"date",e)},expression:"table.getdataListParm.parammaps.date"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备类型",clearable:""},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.equipmentTypeList,(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("设备列表")]),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:t.table1Height},on:{"row-click":t.rowClick1}},[a("el-table-column",{attrs:{label:"设备类型","min-width":"90px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"设备名称","min-width":"80px",align:"center",prop:"field2"}}),a("el-table-column",{attrs:{label:"GPS设备名称","min-width":"90px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"总时长(分钟)","min-width":"100px",align:"center",prop:"field4"}})],1)],1),a("h4",[t._v("设备详情")]),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,height:t.table1Height},on:{"row-click":t.rowClick2}},[a("el-table-column",{attrs:{label:"设备名称","min-width":"90px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"开始时间","min-width":"80px",align:"center",prop:"field2"}}),a("el-table-column",{attrs:{label:"结束时间","min-width":"90px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"时长(分钟)","min-width":"100px",align:"center",prop:"field4"}})],1)],1)]),a("el-col",{staticClass:"map",attrs:{span:16}},[a("h4",[t._v("设备轨迹图")]),t.isShow?a("div",{staticStyle:{"text-align":"center","line-height":"400px"}},[t._v("设备轨迹图加载失败,请刷新加载设备轨迹图")]):a("div",{staticStyle:{"min-height":"400px"},attrs:{id:"yzMap"}})])],1)],1)},s=[],r=(a("d81d"),a("71ac")),l=a("2934"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"EquipmentRunningTrack",data:function(){return{equipmentTypeList:[{id:0,name:"自走式TMR"},{id:1,name:"撒料设备TMR"},{id:2,name:"铲车"},{id:3,name:"推料车"},{id:4,name:"推粪车"}],table:{getdataListParm:{name:"getprocessAnalysis",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:Object(c["d"])(new Date,"{y}-{m}-{d}"),iscompleted:"",tmrtname:"",lpplantype:""}},tableKey:0,list:[],total:0,listLoading:!0},table2:{getdataListParm:{name:"getprocessAnalysisStr",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!0},table3:{getdataListParm:{name:"getprocessAnalysisStr",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),id:""}},tableKey:0,initializationMap:"",startLngLatMap:"",endLngLatMap:"",pointsList:[],total:0,listLoading:!0},table1Height:(document.documentElement.clientHeight-85-250)/2,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},map:"",drivingRoute:"",zoom:16.5,startIcon:"http://lbs.tianditu.gov.cn/images/bus/start.png",endIcon:"http://lbs.tianditu.gov.cn/images/bus/end.png",line:null,points:[],isShow:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.table.listLoading=!0,Object(l["c"])(this.table.getdataListParm).then((function(e){t.table.list=[{field1:"自走式TMR",field2:"1",field3:"自走式GPS",field4:"100",id:"1"},{field1:"铲车",field2:"1号铲车",field3:"铲车GPS",field4:"60",id:"2"}],t.table2.getdataListParm.parammaps.id=t.table.list[0].id,t.getList2(),setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.offset=1,this.getList()},rowClick1:function(t,e,a){"1"==t.id?this.table2.getdataListParm.parammaps.id="1":this.table2.getdataListParm.parammaps.id="2",this.getList2()},getList2:function(){var t=this;this.table2.listLoading=!1,Object(l["c"])(this.table2.getdataListParm).then((function(e){"1"==t.table2.getdataListParm.parammaps.id?t.table2.list=[{field1:"1",field2:"05:29:43",field3:"05:37:47",field4:"8",id:"1"},{field1:"1",field2:"05:37:50",field3:"05:40:33",field4:"2.6",id:"2"}]:t.table2.list=[{field1:"1号铲车",field2:"09:01:28",field3:"09:04:42",field4:"3.2",id:"3"}],t.table3.getdataListParm.parammaps.id=t.table2.list[0].id,t.getList3(),setTimeout((function(){t.table2.listLoading=!1}),100)}))},rowClick2:function(t,e,a){var i=this;"1"==t.id?this.table3.getdataListParm.parammaps.id="1":"2"==t.id?this.table3.getdataListParm.parammaps.id="2":this.table3.getdataListParm.parammaps.id="3","1"==this.table3.getdataListParm.parammaps.id?(this.table3.initializationMap=[117.88,33.82],this.table3.pointsList=[{longitude:117.882677,latitude:33.8208131},{longitude:117.8826372,latitude:33.8213032},{longitude:117.8826971,latitude:33.8217033},{longitude:117.8827081,latitude:33.8220751},{longitude:117.8829982,latitude:33.8220152},{longitude:117.8831583,latitude:33.8220853},{longitude:117.8833981,latitude:33.8221151},{longitude:117.8835982,latitude:33.8219852},{longitude:117.8839703,latitude:33.8220433},{longitude:117.8838709,latitude:33.8222431},{longitude:117.8840024,latitude:33.8225752},{longitude:117.8837024,latitude:33.8226553},{longitude:117.8833024,latitude:33.8225956},{longitude:117.8830024,latitude:33.8226556},{longitude:117.8827133,latitude:33.8226505},{longitude:117.8826033,latitude:33.8218505},{longitude:117.8825471,latitude:33.8208586}]):"2"==this.table3.getdataListParm.parammaps.id?(this.table3.initializationMap=[117.88,33.82],this.table3.pointsList=[{longitude:117.8826684,latitude:33.8220995},{longitude:117.8823899,latitude:33.8222107},{longitude:117.882071,latitude:33.822077},{longitude:117.8819408,latitude:33.8221457},{longitude:117.881294,latitude:33.8222307},{longitude:117.881294,latitude:33.8226243},{longitude:117.8814287,latitude:33.8232728},{longitude:117.8816937,latitude:33.8231791},{longitude:117.8819363,latitude:33.8232328},{longitude:117.8822417,latitude:33.8232791},{longitude:117.882592,latitude:33.8231304},{longitude:117.8827448,latitude:33.8227855},{longitude:117.8826549,latitude:33.8224481},{longitude:117.8826819,latitude:33.822092}]):(this.table3.initializationMap=[117.88,33.82],this.table3.pointsList=[{longitude:117.8828031,latitude:33.823599},{longitude:117.8830906,latitude:33.8236015},{longitude:117.8832433,latitude:33.8235127},{longitude:117.8834544,latitude:33.8235777},{longitude:117.8836161,latitude:33.823509},{longitude:117.8838079,latitude:33.8235015},{longitude:117.8840159,latitude:33.823554},{longitude:117.8840248,latitude:33.8232528},{longitude:117.8838048,latitude:33.8233503},{longitude:117.8835532,latitude:33.8233128},{longitude:117.8833511,latitude:33.8233703},{longitude:117.8831162,latitude:33.8233639},{longitude:117.8828225,latitude:33.8234215},{longitude:117.8825822,latitude:33.8234577},{longitude:117.8825022,latitude:33.8234077},{longitude:117.8821698,latitude:33.8234015},{longitude:117.881797,latitude:33.8235052},{longitude:117.8815096,latitude:33.8234865},{longitude:117.8813659,latitude:33.8235952},{longitude:117.8813614,latitude:33.8237577},{longitude:117.8816353,latitude:33.8237002},{longitude:117.8820108,latitude:33.8236552},{longitude:117.8821708,latitude:33.8237152},{longitude:117.8822708,latitude:33.8236152},{longitude:117.8824708,latitude:33.8236152},{longitude:117.8825531,latitude:33.8235588},{longitude:117.8828031,latitude:33.8236088}]),r["a"].init().then((function(t){i.isShow=!1,i.T=t,i.map=new t.Map("yzMap",a);var e=new t.Control.MapType;i.map.addControl(e),i.map.centerAndZoom(new t.LngLat(i.table3.initializationMap[0],i.table3.initializationMap[1]),i.zoom);var a={policy:0,onSearchComplete:i.searchResult};i.map.setMapType(TMAP_HYBRID_MAP),i.points=[];for(var s=0;s<i.table3.pointsList.length;s++)i.points.push(new t.LngLat(i.table3.pointsList[s].longitude,i.table3.pointsList[s].latitude));i.line=new t.Polyline(i.points,{color:"red"}),i.map.addOverLay(i.line)})).catch((function(t){i.isShow=!0}))},getList3:function(){var t=this;this.table3.listLoading=!1,Object(l["c"])(this.table3.getdataListParm).then((function(e){"1"==t.table3.getdataListParm.parammaps.id?(t.table3.initializationMap=[117.88199,33.8225],t.table3.pointsList=[{longitude:117.882677,latitude:33.8208131},{longitude:117.8826372,latitude:33.8213032},{longitude:117.8826971,latitude:33.8217033},{longitude:117.8827081,latitude:33.8220751},{longitude:117.8829982,latitude:33.8220152},{longitude:117.8831583,latitude:33.8220853},{longitude:117.8833981,latitude:33.8221151},{longitude:117.8835982,latitude:33.8219852},{longitude:117.8839703,latitude:33.8220433},{longitude:117.8838709,latitude:33.8222431},{longitude:117.8840024,latitude:33.8225752},{longitude:117.8837024,latitude:33.8226553},{longitude:117.8833024,latitude:33.8225956},{longitude:117.8830024,latitude:33.8226556},{longitude:117.8827133,latitude:33.8226505},{longitude:117.8826033,latitude:33.8218505},{longitude:117.8825471,latitude:33.8208586}]):"2"==t.table3.getdataListParm.parammaps.id?(t.table3.initializationMap=[117.88,33.82],t.table3.pointsList=[{longitude:117.8826684,latitude:33.8220995},{longitude:117.8823899,latitude:33.8222107},{longitude:117.882071,latitude:33.822077},{longitude:117.8819408,latitude:33.8221457},{longitude:117.881294,latitude:33.8222307},{longitude:117.881294,latitude:33.8226243},{longitude:117.8814287,latitude:33.8232728},{longitude:117.8816937,latitude:33.8231791},{longitude:117.8819363,latitude:33.8232328},{longitude:117.8822417,latitude:33.8232791},{longitude:117.882592,latitude:33.8231304},{longitude:117.8827448,latitude:33.8227855},{longitude:117.8826549,latitude:33.8224481},{longitude:117.8826819,latitude:33.822092}]):(t.table3.initializationMap=[117.88,33.82],t.table3.pointsList=[{longitude:117.8828031,latitude:33.823599},{longitude:117.8830906,latitude:33.8236015},{longitude:117.8832433,latitude:33.8235127},{longitude:117.8834544,latitude:33.8235777},{longitude:117.8836161,latitude:33.823509},{longitude:117.8838079,latitude:33.8235015},{longitude:117.8840159,latitude:33.823554},{longitude:117.8840248,latitude:33.8232528},{longitude:117.8838048,latitude:33.8233503},{longitude:117.8835532,latitude:33.8233128},{longitude:117.8833511,latitude:33.8233703},{longitude:117.8831162,latitude:33.8233639},{longitude:117.8828225,latitude:33.8234215},{longitude:117.8825822,latitude:33.8234577},{longitude:117.8825022,latitude:33.8234077},{longitude:117.8821698,latitude:33.8234015},{longitude:117.881797,latitude:33.8235052},{longitude:117.8815096,latitude:33.8234865},{longitude:117.8813659,latitude:33.8235952},{longitude:117.8813614,latitude:33.8237577},{longitude:117.8816353,latitude:33.8237002},{longitude:117.8820108,latitude:33.8236552},{longitude:117.8821708,latitude:33.8237152},{longitude:117.8822708,latitude:33.8236152},{longitude:117.8824708,latitude:33.8236152},{longitude:117.8825531,latitude:33.8235588},{longitude:117.8828031,latitude:33.8236088}]),t.roadMap()}))},roadMap:function(){var t=this;r["a"].init().then((function(e){t.isShow=!1,t.T=e,t.map=new e.Map("yzMap",i);var a=new e.Control.MapType;t.map.addControl(a),t.map.centerAndZoom(new e.LngLat(t.table3.initializationMap[0],t.table3.initializationMap[1]),t.zoom);var i={policy:0,onSearchComplete:t.searchResult};t.map.disableDrag(),t.map.setMapType(TMAP_HYBRID_MAP),t.points=[];for(var s=0;s<t.table3.pointsList.length;s++)t.points.push(new e.LngLat(t.table3.pointsList[s].longitude,t.table3.pointsList[s].latitude));t.line=new e.Polyline(t.points,{color:"red"}),t.map.addOverLay(t.line),t.drivingRoute=new e.DrivingRoute(t.map,i)})).catch((function(e){t.isShow=!0}))},getDistance:function(t){for(var e=0,a=0;a<t.length-1;a++)e+=t[a].distanceTo(t[a+1]);return e}}},p=d,m=(a("f259"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"3858bb48",null);e["default"]=u.exports},"39e5":function(t,e,a){"use strict";a("4651")},"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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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,"max-height":t.myHeight},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[t.table.pageNum?a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))]):a("span",[t._v("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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("ac1f"),a("00b4"),a("b0c0"),a("a434"),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:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-50}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var t="Supplier",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.providerName="",this.table.getdataListParm.parammaps.providerNumber="",this.table.getdataListParm.parammaps.enable="",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 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(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 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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},createCancel:function(t){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(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 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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkDeleteProv",type:"v",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"deleteProvider",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择供应商信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){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:"checkDeleteProv",type:"v",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[0].children[1]={name:"deleteProvider",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))}}},p=d,m=(a("7855"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"65d9df16",null);e["default"]=u.exports},"3a8c":function(t,e,a){"use strict";a("6a1c")},"3af5":function(t,e,a){"use strict";a("0818")},"3b25":function(t,e,a){"use strict";a("1115")},"3b30":function(t,e,a){},"3b86":function(t,e,a){},"3b8b":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",staticStyle:{width:"100%",height:"385px"}})},s=[],r=(a("99af"),a("313e")),l=a.n(r);a("2934"),a("b76a"),a("a78e"),a("ed08"),a("333d");a("817d");var n={name:"LineBarChart",props:{chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.renderChart(t)}}},mounted:function(){this.renderChart(this.chartData),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,a=t.legendArr1.concat(t.legendArr2),i={title:{text:"Stacked Line"},tooltip:{trigger:"axis"},legend:{data:a,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"8%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:t.xAxisArr}],yAxis:[{type:"value",name:"kg"}],series:function(e){for(var a=[],i=0;i<t.xAxisArr.length;i++){var s={name:t.legendArr1[i],data:t.dataArr1[i],type:"line",emphasis:{label:{show:!0,position:"inside"}}};a.push(s)}for(i=0;i<t.xAxisArr.length;i++){s={name:t.legendArr2[i],data:t.dataArr2[i],type:"bar",emphasis:{label:{show:!0,position:"inside"}}};a.push(s)}return a}()};setTimeout((function(){e.chart||(e.chart=l.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(i),e.chart.setOption(e.chartOpt)}),0)}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);e["a"]=d.exports},"3c02":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-table"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"年/月/日",clearable:!0},model:{value:t.table.getdataListParm.parammaps.changetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"changetime",e)},expression:"table.getdataListParm.parammaps.changetime"}}),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",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"栏舍名称",prop:"barname","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"标准分数(分)",prop:"standardscore","min-width":"90px",align:"center"}}),a("el-table-column",{key:4,attrs:{label:"牛头数(分)",prop:"cowsum","min-width":"90px",align:"center"}}),a("el-table-column",{key:5,attrs:{label:"评分","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"1分 (头)",prop:"onescore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"2分(头)",prop:"twoscore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"3分(头)",prop:"threescore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"4分(头)",prop:"fourscore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"5分(头)",prop:"fivescore","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:6,attrs:{label:"操作",prop:"operation",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("a",{staticClass:"correcting",on:{click:function(e){t.handleSeeHistory(i)}}},[t._v(t._s(i.operation))])]}}])})],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:{visible:t.seeHistory.dialogFormVisible,"append-to-body":"",title:t.textMap[t.seeHistory.dialogStatus],"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.seeHistory,"dialogFormVisible",e)}}},[a("div",{staticClass:"seeHistory"},[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.seeHistory.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.seeHistory.getdataListParm.parammaps,"inputDatetime",e)},expression:"seeHistory.getdataListParm.parammaps.inputDatetime"}}),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-table",{directives:[{name:"loading",rawName:"v-loading",value:t.seeHistory.listLoading,expression:"seeHistory.listLoading"}],key:t.seeHistory.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.seeHistory.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"修改时间",prop:"changetime1","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"标准分数(分)",prop:"standardscore","min-width":"90px",align:"center"}}),a("el-table-column",{key:4,attrs:{label:"牛头数(分)",prop:"cowsum","min-width":"90px",align:"center"}}),a("el-table-column",{key:5,attrs:{label:"评分","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"1分 (头)",prop:"onescore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"2分(头)",prop:"twoscore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"3分(头)",prop:"threescore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"4分(头)",prop:"fourscore","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"5分(头)",prop:"fivescore","min-width":"90px",align:"center"}})],1)],1),a("Pagination",{directives:[{name:"show",rawName:"v-show",value:t.seeHistory.total>0,expression:"seeHistory.total>0"}],attrs:{total:t.seeHistory.total,page:t.seeHistory.getdataListParm.offset,limit:t.seeHistory.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.seeHistory.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.seeHistory.getdataListParm,"pagecount",e)},pagination:t.getSeeHistoryList}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.seeHistory.dialogFormVisible=!1}}},[t._v("关闭")])],1)])])],1)},s=[],r=a("2934"),l=(a("b76a"),a("a78e")),n=a.n(l),o=a("ed08"),c=a("333d"),d={name:"MaterialIssuancePlan",display:"Two list header slot",order:14,components:{Pagination:c["a"]},data:function(){return{table:{getdataListParm:{name:"getDungandbodyhistory",page:1,offset:1,pagecount:12,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),changetime:"",species:"tkpf"}},list:[],total:0,tableKey:0,listLoading:!1,temp:{},changeList:[],startObj:{}},textMap:{seeHistory:"体况评分修改记录"},seeHistory:{dialogFormVisible:!1,dialogStatus:"",total:0,tableKey:0,listLoading:!1,getdataListParm:{name:"getDungandbodyhistoryBar",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",inputDatetime:"",time1:"",time2:""}}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{changeDate:function(){this.getList()},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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.changetime||null==this.table.getdataListParm.parammaps.changetime?this.table.getdataListParm.parammaps.changetime="":this.table.getdataListParm.parammaps.changetime=Object(o["d"])(this.table.getdataListParm.parammaps.changetime,"{y}-{m}-{d}"),this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.changetime="",this.getList()},handleSeeHistory:function(t){this.textMap.seeHistory="体况评分修改记录——栏舍:"+t.barname,this.seeHistory.dialogFormVisible=!0,this.seeHistory.dialogStatus="seeHistory",this.seeHistory.getdataListParm.parammaps.species="tkpf",this.seeHistory.getdataListParm.parammaps.barid=t.barids,this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.getSeeHistoryList()},getSeeHistoryList:function(){var t=this;this.seeHistory.listLoading=!0,Object(r["c"])(this.seeHistory.getdataListParm).then((function(e){null!==e.data.list?(t.seeHistory.list=e.data.list,t.seeHistory.pageNum=e.data.pageNum,t.seeHistory.pageSize=e.data.pageSize,t.seeHistory.total=e.data.total):t.seeHistory.list=[],setTimeout((function(){t.seeHistory.listLoading=!1}),100)}))},handleSearch2:function(){""!==this.seeHistory.getdataListParm.parammaps.inputDatetime&&null!==this.seeHistory.getdataListParm.parammaps.inputDatetime?(this.seeHistory.getdataListParm.parammaps.time1=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.seeHistory.getdataListParm.parammaps.time2=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2=""),this.seeHistory.getdataListParm.offset=1,this.getSeeHistoryList()},handleRefresh2:function(){this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.getSeeHistoryList()}}},p=d,m=(a("f7062"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"a7a5b538",null);e["default"]=u.exports},"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-outline",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:"success",staticStyle:{"margin-left":"10px"},attrs:{icon:"el-icon-plus"},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:"successBorder",staticStyle:{"margin-left":"10px"},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:"150","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:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}),a("span",{staticClass:"centerSpan"},[t._v("|")]),"已删"!=i.status?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleDelete(i)}}}):t._e(),a("span",{staticClass:"centerSpan"},[t._v("|")]),a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-copy-document"},on:{click:function(e){return t.handleCopy(i)}}})]}}])})],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("e9c4"),a("4e82"),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:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{menu_popoverHide:function(t,e){this.deptform.menuid=t},jump:function(){this.$router.push("/console/menu")},menuCheckChange:function(t,e,a){var i=this.selectMenu.menuid.indexOf(t.id);i<0&&1===this.selectMenu.menuid.length&&e?(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["c"])(this.getdataListParm).then((function(e){t.list=e.data.list,t.total=e.data.total,setTimeout((function(){t.listLoading=!1}),100)}))},handleNodeClick:function(t){var e=this;(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["c"])(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["c"])(this.getRecuListParm).then((function(e){t.parent=e.data,null!==e.data.list&&(t.parent=Object(n["q"])(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["c"])(this.getdataListParm).then((function(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,Object(n["p"])(JSON.parse(this.deptform.request_body),this.deptform.method).then((function(e){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})}))}))}}},p=d,m=a("2877"),u=Object(m["a"])(p,i,s,!1,null,null,null);e["default"]=u.exports},"3d1b":function(t,e,a){"use strict";a("8c7c")},"3d65":function(t,e,a){"use strict";a("1d53")},"3dc9":function(t,e,a){"use strict";a("fe14")},"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("a9e3"),a("d81d"),a("99af"),{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("d152"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,"3f5dae8c",null);e["a"]=o.exports},"3f4d":function(t,e,a){},4006:function(t,e,a){"use strict";a("ac0f")},"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:"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.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.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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增入库单")]):t._e(),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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:"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,"max-height":t.myHeight}},[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":"90px",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":"90px",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":"90px",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":"90px",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":"90px",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":"90px",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":"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.islaid))])]}}])}),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.createemp))])]}}])}),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.createdate))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"80","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}}),"否"==i.islaid?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):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:{fullscreen:t.dialogFull,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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"100%",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: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:"请选择饲料名称",disabled:"see"==t.create.dialogStatus||"update"==t.create.dialogStatus},on:{select:t.handleSelectFeedName,blur:t.blurFeedName},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","string"===typeof e?e.trim():e)},expression:"create.createTemp.operateweight"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerid"}},["see"==t.create.dialogStatus?a("el-input",{ref:"providername",staticClass:"filter-item",attrs:{disabled:"",placeholder:"请选择供应商"},model:{value:t.create.createTemp.providername,callback:function(e){t.$set(t.create.createTemp,"providername","string"===typeof e?e.trim():e)},expression:"create.createTemp.providername"}}):a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",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:{clearable:"",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||"see"==t.create.dialogStatus,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:"毛重(kg):",prop:"grossweight"}},[a("el-input",{ref:"grossweight",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:t.blurGrossweight},model:{value:t.create.createTemp.grossweight,callback:function(e){t.$set(t.create.createTemp,"grossweight","string"===typeof e?e.trim():e)},expression:"create.createTemp.grossweight"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"皮重(kg):",prop:"tareweight"}},[a("el-input",{ref:"tareweight",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:t.blurTareweight},model:{value:t.create.createTemp.tareweight,callback:function(e){t.$set(t.create.createTemp,"tareweight","string"===typeof e?e.trim():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"},["see"==t.create.dialogStatus?a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]):t._e(),"see"!==t.create.dialogStatus?a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]):t._e(),"see"!==t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.initial.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",attrs:{icon:"el-icon-download"}},[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:"cancelClose",on:{click:function(e){t.initial.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.initialData()}}},[t._v("确认")])],1)],1)])],2)],1)},s=[],r=a("1da1"),l=(a("96cf"),a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("159b"),a("a9e3"),a("a434"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),n=a("333d"),o=a("5c96"),c=a("a78e"),d=a.n(c),p=a("ed08"),m=a("bc3a"),u=a.n(m),h=a("5f87"),b=a("1146"),g=a.n(b),f={name:"Warehousing",components:{Pagination:n["a"]},data:function(){return{dialogFull:!1,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:parseInt(d.a.get("pageCount")),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"}],operateweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],feedname:[{type:"string",required:!0,message:"必填",trigger:"change"}],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:"",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:{},download:{getdataListParm:{name:"getFeedlaidList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inputDatetime:"",startTime:"",stopTime:"",feedid:"",islaid:"",providerid:""}},list:[]},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(h["a"])()}},uploadData:function(){return{name:"checkFeed,checkProviderRK,checkcontractcode,checkcontractcodePrice,insertFeedlaidUpload,insertFeedstorageLaidUpload",importParams:"入库日期,送货单编号,饲料名称,供应商,合同编号,入库重量(kg),单价(元),总价(元),毛重(kg),皮重(kg),许可证号,批号,创建人,备注",sheetname:"Sheet1",pastureid:d.a.get("pastureid"),dateParams:"入库日期",requiredParams:"入库日期,饲料名称,入库重量(kg),单价(元)",numParams:"入库重量(kg),单价(元),总价(元),毛重(kg),皮重(kg)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,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(p["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(p["d"])(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="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.islaid="",this.table.getdataListParm.parammaps.providerid="",this.table.getdataListParm.offset=1,this.getList()},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),laiddate:Object(p["d"])(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(p["d"])(new Date,"{y}-{m}-{d}"),remark:"",wagonnumber:""},this.contractNoList=[]},changeSupplier:function(t){""!==t?this.create.createTemp.providername=this.supplierList.find((function(e){return e.id==t})).providerName:(this.create.createTemp.providername="",this.create.createTemp.contractcode="",this.create.createTemp.pricenew="",this.create.createTemp.sumprice="",this.contractNoList=[]),""!==this.create.createTemp.feedid&&""!==this.create.createTemp.providerid&&this.getContractNoList()},changeContractNo:function(t){this.create.createTemp.pricenew=""!==t?this.contractNoList.find((function(e){return e.contractcode==t})).price:"",""!==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=Object(l["k"])(this.create.createTemp.sumprice,2))},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["c"])(this.create.getdataListParm).then((function(e){null!==e.data.list?(t.contractNoList=e.data.list,t.create.createTemp.contractcode="",t.create.createTemp.pricenew="",t.create.createTemp.sumprice=""):(t.contractNoList=[],t.create.createTemp.contractcode="",t.create.createTemp.pricenew="",t.create.createTemp.sumprice="")}))},feedNameSearch:function(t,e){this.create.getfeedNameParm.parammaps["fname"]=t,Object(l["c"])(this.create.getfeedNameParm).then((function(t){null==t.data.list?e([]):e(t.data.list)}))},handleSelectFeedName:function(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.providerid="",this.create.createTemp.providername="",this.create.createTemp.contractcode="",this.create.createTemp.pricenew="",this.create.createTemp.sumprice="",""!==this.create.createTemp.feedid&&""!==this.create.createTemp.providerid&&this.getContractNoList()},blurFeedName:function(){this.create.createTemp.feedname="",this.create.createTemp.feedid="",this.create.createTemp.startweight="",this.create.createTemp.priceold="",this.create.createTemp.providerid="",this.create.createTemp.providername="",this.create.createTemp.contractcode="",this.create.createTemp.pricenew="",this.create.createTemp.sumprice=""},blurOperateweight:function(){""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&(this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=Object(l["k"])(this.create.createTemp.operateweight,2),this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.tareweight&&""!==this.create.createTemp.grossweight&&(""==this.create.createTemp.operateweight&&(this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight),2)),parseFloat(this.create.createTemp.tareweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.tareweight=Object(l["k"])(this.create.createTemp.grossweight,2),this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight),2))),""!==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=Object(l["k"])(this.create.createTemp.sumprice,2)):this.create.createTemp.sumprice=""},blurGrossweight:function(){""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&(this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=Object(l["k"])(this.create.createTemp.operateweight,2),this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.pricenew&&""!==this.create.createTemp.operateweight?(this.create.createTemp.sumprice=parseFloat(this.create.createTemp.operateweight)*parseFloat(this.create.createTemp.pricenew),this.create.createTemp.sumprice=Object(l["k"])(this.create.createTemp.sumprice,2)):this.create.createTemp.sumprice=""},blurTareweight:function(){""!==this.create.createTemp.operateweight&&""!==this.create.createTemp.tareweight&&(this.create.createTemp.grossweight=Object(l["k"])(parseFloat(this.create.createTemp.tareweight)+parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=Object(l["k"])(this.create.createTemp.operateweight,2),this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.tareweight&&""!==this.create.createTemp.grossweight&&(parseFloat(this.create.createTemp.tareweight)>parseFloat(this.create.createTemp.grossweight)?(this.create.createTemp.tareweight=Object(l["k"])(this.create.createTemp.grossweight,2),this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight),2)):this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight),2)),""!==this.create.createTemp.pricenew&&""!==this.create.createTemp.operateweight?(this.create.createTemp.sumprice=parseFloat(this.create.createTemp.operateweight)*parseFloat(this.create.createTemp.pricenew),this.create.createTemp.sumprice=Object(l["k"])(this.create.createTemp.sumprice,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=Object(l["k"])(this.create.createTemp.sumprice,2)):this.create.createTemp.sumprice=""},blurSumprice:function(){""!==this.create.createTemp.sumprice&&""!==this.create.createTemp.pricenew?this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.sumprice)/parseFloat(this.create.createTemp.pricenew),2):this.create.createTemp.operateweight=""},handleCreate:function(){var t=this;this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.$nextTick((function(){t.resetCreateTemp(),t.$refs.createTemp.resetFields()}))},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;t.create.createTemp.sumprice.length>15&&t.$message({type:"error",message:"数值过大请重新输入",duration:2e3});var a=/^\d+(\.\d{1,2})?$/;if(""!==t.create.createTemp.operateweight){if(0==t.create.createTemp.operateweight)return t.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.operateweight)))return t.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1}if(0==t.create.createTemp.pricenew)return t.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.pricenew)))return t.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(""!==t.create.createTemp.pricenew&&""!==t.create.createTemp.operateweight){if(0==t.create.createTemp.sumprice)return t.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.sumprice)))return t.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==t.create.createTemp.grossweight){if(0==t.create.createTemp.grossweight)return t.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.grossweight)))return t.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==t.create.createTemp.tareweight){if(0==t.create.createTemp.tareweight)return t.$message({type:"error",message:"皮重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.tareweight)))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}}),Object(l["b"])(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.create.dialogFormVisible=!1,t.getList())}))}))}}))},handleUpdate:function(t){var e=this;this.$nextTick((function(){e.$refs.createTemp.resetFields()})),this.dialogFull=!1,this.create.dialogStatus="update",this.create.dialogFormVisible=!0,t.feedid=String(t.feedid),-1==t.providerid&&(t.providerid="",t.providername=""),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;t.create.createTemp.sumprice.length>15&&t.$message({type:"error",message:"数值过大请重新输入",duration:2e3});var a=/^\d+(\.\d{1,2})?$/;if(""!==t.create.createTemp.operateweight){if(0==t.create.createTemp.operateweight)return t.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.operateweight)))return t.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1}if(0==t.create.createTemp.pricenew)return t.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.pricenew)))return t.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(""!==t.create.createTemp.pricenew&&""!==t.create.createTemp.operateweight){if(0==t.create.createTemp.sumprice)return t.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.sumprice)))return t.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==t.create.createTemp.grossweight){if(0==t.create.createTemp.grossweight)return t.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.grossweight)))return t.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==t.create.createTemp.tareweight){if(0==t.create.createTemp.tareweight)return t.$message({type:"error",message:"皮重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.tareweight)))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}}),Object(l["b"])(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.create.dialogFormVisible=!1,t.getList())}))}))}}))},handleSee:function(t){var e=this;this.$nextTick((function(){e.$refs.createTemp.resetFields()})),this.dialogFull=!1,this.create.dialogStatus="see",this.create.dialogFormVisible=!0,-1==t.providerid&&(t.providerid="",t.providername=""),this.create.createTemp=Object.assign({},t)},handleInitial:function(){this.dialogFull=!1,this.initial.dialogStatus="initial",this.initial.dialogFormVisible=!0,this.getInitialList()},getInitialList:function(){var t=this;this.initial.listLoading=!0,Object(l["c"])(this.initial.getdataListParm).then((function(e){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(){var t=[{tHeader:["饲料名称","库存重量"],filterVal:["fname","stockweight"],tableDatas:this.initial.list,sheetName:"初始化库存"}];Object(p["c"])(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,m;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(p["e"])(i);case 5:for(s=a.sent,r=g.a.read(s,{type:"binary"}),s=g.a.utils.sheet_to_json(r.Sheets[r.SheetNames[0]]),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)})),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(d=0;d<l.length;d++)e.$set(l[d],"msg","饲料名称与系统不匹配");e.$message({title:"成功",message:"导入成功:"+n+"条!",type:"success",duration:2e3}),e.$notify({title:"失败",message:"导入失败:"+l.length+"条!",type:"danger",duration:2e3}),l.length>0&&(m=[{tHeader:["饲料名称","库存重量","报错信息"],filterVal:["fname","stockweight","msg"],tableDatas:l,sheetName:"ExcelDatas1"}],Object(p["c"])(m,"初始化库存报错信息",!0,"xlsx"));case 16:case"end":return a.stop()}}),a)})))()},initialData:function(){var t=this;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?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/库存管理/入库导入模板.xlsx";u()({method:"GET",url:i,data:a,headers:{token:Object(h["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="入库管理导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(p["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(p["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(l["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["入库日期","送货单编号","饲料名称","供应商","合同编号","入库重量(kg)","单价(元)","总价","毛重(kg)","皮重(kg)","许可证号","批号","创建人","创建日期","备注"],filterVal:["laiddate","wagonnumber","feedname","providername","contractcode","operateweight","pricenew","sumprice","grossweight","tareweight","licence","pcpde","createemp","createdate","remark"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(p["c"])(a,"入库管理",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["入库日期","送货单编号","饲料名称","供应商","合同编号","入库重量(kg)","单价(元)","总价(元)","毛重(kg)","皮重(kg)","许可证号","批号","创建人","创建日期","备注","错误信息"],r=["入库日期","送货单编号","饲料名称","供应商","合同编号","入库重量(kg)","单价(元)","总价(元)","毛重(kg)","皮重(kg)","许可证号","批号","创建人","创建日期","备注","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"入库管理导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(p["d"])(e[t]):e[t]}))}))}}},w=f,y=a("2877"),v=Object(y["a"])(w,i,s,!1,null,null,null);e["default"]=v.exports},4047: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("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增车次 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("减少车次 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCheck}},[t._v("校验")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{float:"left","margin-left":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v("生效 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v("禁用 ")]):t._e()],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,ref:"table",staticClass:"elTable",staticStyle:{width:"100%"},attrs:{id:"table2","element-loading-text":"给我一点时间",data:t.table.list,border:"","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":"80px",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":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.qstr))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"110px",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":"70px",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},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":"120px",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.lppcode))])]}}])}),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.hstr))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e()]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.create.dialogFormVisible,"before-close":t.close,"close-on-click-modal":!1,width:"90%","modal-append-to-body":!1,"append-to-body":!0},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:6}},[a("el-form-item",{attrs:{label:"车次:",prop:"sort"}},[a("el-input",{ref:"sort",staticClass:"filter-item",attrs:{type:"number",placeholder:"车次"},model:{value:t.create.temp.sort,callback:function(e){t.$set(t.create.temp,"sort",e)},expression:"create.temp.sort"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBars},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.barsList,(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:"TMR编号:",prop:"tmrid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"TMR编号"},on:{change:t.changeTMRNumber},model:{value:t.create.temp.tmrid,callback:function(e){t.$set(t.create.temp,"tmrid",e)},expression:"create.temp.tmrid"}},t._l(t.TMRNumberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.eqcode,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"生效:",prop:"sort"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.temp.enable,callback:function(e){t.$set(t.create.temp,"enable",e)},expression:"create.temp.enable"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"班次"},on:{change:t.changeTimes},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),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"撒料计划车次跟随:",prop:"lppid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"撒料计划车次跟随"},on:{change:t.changeCarFollow},model:{value:t.create.temp.lppid,callback:function(e){t.$set(t.create.temp,"lppid",e)},expression:"create.temp.lppid"}},t._l(t.carFollowList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.lppcode,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"时间:",prop:"rtime"}},[a("el-time-picker",{staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"datetime",placeholder:"选择时间",format:"HH:mm","value-format":"HH:mm"},model:{value:t.create.temp.rtime,callback:function(e){t.$set(t.create.temp,"rtime",e)},expression:"create.temp.rtime"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"剩料处理方式:",prop:"treatmethod"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"剩料处理方式"},on:{change:t.changeResidueDisposal},model:{value:t.create.temp.treatmethod,callback:function(e){t.$set(t.create.temp,"treatmethod",e)},expression:"create.temp.treatmethod"}},t._l(t.residueDisposalList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"转投栏舍:",prop:"useinbarid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"转投栏舍",disabled:t.isDis},on:{change:t.changeTransferbars},model:{value:t.create.temp.useinbarid,callback:function(e){t.$set(t.create.temp,"useinbarid",e)},expression:"create.temp.useinbarid"}},t._l(t.transferbarsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("draggable",{attrs:{group:"itxst",animation:"300",group:{name:"dashboard",pull:!0}},on:{start:t.onStart,end:t.onEnd},model:{value:t.barSortList,callback:function(e){t.barSortList=e},expression:"barSortList"}},[a("transition-group",t._l(t.barSortList,(function(e){return a("div",{key:"1",staticStyle:{width:"80px",height:"30px",border:"1px soild #333",display:"inline-block",background:"#2ed1f9",padding:"5px 5px","margin-right":"15px","margin-bottom":"15px"}},[t._v(t._s(e.bname))])})),0)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){return t.close()}}},[t._v("关闭")]),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{title:t.textMap[t.check.dialogStatus],"destroy-on-close":!0,visible:t.check.dialogFormVisible,"before-close":t.close,"close-on-click-modal":!1,width:"30%","modal-append-to-body":!1,"append-to-body":!0},on:{"update:visible":function(e){return t.$set(t.check,"dialogFormVisible",e)}}},[a("div",{staticClass:"check"},["0"==t.check.temp.isDistribution?a("p",[t._v("当前有栏舍未分配,建议及时进行分配,未分配栏舍如下:")]):a("p",[t._v("已分配完:当前栏舍已分配完善")]),t._v(" "+t._s(t.check.temp.bnames)+" ")]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"save",on:{click:function(e){t.check.dialogFormVisible=!1}}},[t._v("确认")])],1)])],1)},s=[],r=(a("d81d"),a("ac1f"),a("1276"),a("a434"),a("d3b7"),a("159b"),a("7db0"),a("4e82"),a("00b4"),a("b0c0"),a("2934")),l=a("aa47"),n=a("333d"),o=a("a78e"),c=a.n(o),d=a("5c96"),p=a("b76a"),m=a.n(p),u={name:"SurplusMaterialPlan",components:{Pagination:n["a"],draggable:m.a},directives:{focus:{update:function(t,e){var a=e.value;a&&t.focus()}}},props:{show:{type:Boolean,default:!1},parentDate:{type:String,defalut:""}},data:function(){return{date:"",barSortList:[],dialogFull:!1,isDis:!1,isRoleEdit:[],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:[],barsNamesIdTempArr:[],useinbarNamesIdTempArr:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}}},frequencyList:[],getCarFollowParm:{name:"getLPPCodeListDate",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:"",date:""}},carFollowList:[],getTransferbarsParm:{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:"",date:""}},transferbarsList:[],table:{getdataListParm:{name:"getRemainplanListDate",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{},temp2:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:c.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:"",sort:""},rules:{}},check:{dialogFormVisible:!1,dialogStatus:"",getCheckParm:{name:"checkRemainplanDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},temp:{bnames:"",isDistribution:""}},textMap:{create:"新增",update:"编辑",check:"提示"},requestParam:{},selectList:[],isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},dropState:!1,isOrder:!0}},watch:{show:{immediate:!0,handler:function(t,e){}},parentDate:{immediate:!0,handler:function(t,e){this.date=t}}},created:function(){this.getList(),this.getDownList(),this.getIsDisplay()},methods:{getButtons:function(){var t="SurplusMaterialPlan",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.barsList=e.data.getBarListEnable.list,t.TMRNumberList=e.data.getTMRYHList.list}))},getIsDisplay:function(){var t=this;Object(r["c"])(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,this.table.getdataListParm.parammaps.date=this.date,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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);var i=e.data.list;i.map((function(t,e){return t.qstrids?t.barid=t.qstrids.split(","):t.barid=[]})),i.map((function(t,e){return t.hstrids?t.useinbarid=t.hstrids:t.useinbarid=""})),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)}))},handleEnableChange:function(){},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},rowDrop:function(){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&&1!=e.isOrder||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)}})},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a+1,i.id=this.table.list[a].id,i.pastureid=this.table.list[a].pastureid,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"updateRemainplanSortDate",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",sort:"@insertSpotList.sort",date:this.date}},Object(r["b"])(this.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(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.getList(),this.isOrder=!0},handleCreate:function(){this.resetTemp(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0},resetTemp:function(){this.create.temp={pastureid:c.a.get("pastureid"),myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,sort:"",ftid:"",ftname:"",tmrcode:"",tmrid:"",times:"",lppcode:"",lppid:"",rtime:"",barid:"",treatmethod:"",useinbar:"",useinbarid:""},this.barSortList=[],this.isDis=!1},changeBars:function(t){var e=[],a=this.barsList;t.forEach((function(t){a.forEach((function(a){t==a.id&&e.push(a)}))})),this.barSortList=e,this.table.temp.barid=e,this.barsNamesIdTempArr=e,this.$forceUpdate()},onStart:function(){},onEnd:function(){this.table.temp.barid=this.barSortList,this.barsNamesIdTempArr=this.barSortList},changeTMRNumber:function(t){this.create.temp.tmrcode=this.TMRNumberList.find((function(e){return e.id===t})).eqcode},changeCarFollow:function(t,e){this.create.temp.lppcode=""==t?"":this.carFollowList.find((function(e){return e.id==t})).lppcode},changeTimes:function(t){this.getCarFollowParm.parammaps.times=t,this.getCarFollowList()},getCarFollowList:function(){var t=this;this.getCarFollowParm.parammaps.date=this.date,Object(r["c"])(this.getCarFollowParm).then((function(e){null!==e.data.list&&(t.carFollowList=e.data.list,t.create.temp.lppid=t.carFollowList[0].id,t.create.temp.lppcode=t.carFollowList[0].lppcode)}))},changeResidueDisposal:function(t){this.getCarFollowParm.parammaps.times=t,this.getTransferbarsList(),this.isDis="继续饲喂"==t},getTransferbarsList:function(){var t=this;Object(r["c"])(this.getTransferbarsParm).then((function(e){null!==e.data.list&&(t.transferbarsList=e.data.list)}))},changeTransferbars:function(t){},close:function(){this.create.dialogFormVisible=!1,this.getList()},createData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){if(null!=t.create.temp.rtime&&"null"!=t.create.temp.rtime||(t.create.temp.rtime=""),""==t.create.temp.sort&&""==t.create.temp.barid&&""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"车次/栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.barid&&""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.sort||0==t.create.temp.sort)return t.$message({type:"error",message:"车次不能为空且大于0",duration:2e3}),!1;if(""==t.create.temp.barid)return t.$message({type:"error",message:"栏舍不能为空",duration:2e3}),!1;if(""==t.create.temp.tmrid)return t.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==t.create.temp.times)return t.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==t.create.temp.treatmethod)return t.$message({type:"error",message:"剩料处理方式不能为空",duration:2e3}),!1;if(""!==t.create.temp.treatmethod&&"转投剩料"==t.create.temp.treatmethod&&""==t.create.temp.useinbarid)return t.$message({type:"error",message:"转投栏舍不能为空",duration:2e3}),!1;""!==t.create.temp.treatmethod&&"继续饲喂"==t.create.temp.treatmethod&&(t.create.temp.useinbarid="0"),""!=t.create.temp.rtime&&null!=t.create.temp.rtime||(t.create.temp.rtime="");for(var a=0;a<t.table.list.length;a++)if(t.create.temp.sort==t.table.list[a].sort&&t.create.temp.myId!==t.table.list[a].myId)return t.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==t.create.temp.sort&&!i.test(parseFloat(t.create.temp.sort)))return t.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var s=[{bname:"",id:t.create.temp.useinbarid}];t.transferbarsList.forEach((function(t){t.id==s[0].id&&(s[0].bname=t.bname)}));var l={common:{returnmap:"0"},data:[{name:"insertRemainplanDate",type:"e",parammaps:{pastureid:c.a.get("pastureid"),sort:t.create.temp.sort,tmrid:t.create.temp.tmrid,tmrcode:t.create.temp.tmrcode,enable:t.create.temp.enable,times:t.create.temp.times,lppid:t.create.temp.lppid,lppcode:t.create.temp.lppcode,rtime:t.create.temp.rtime,treatmethod:t.create.temp.treatmethod,date:t.date}},{name:"insertSpotList",resultmaps:{list:t.barsNamesIdTempArr},children:[{name:"insertRpdetailDate",type:"e",parammaps:{pastureid:c.a.get("pastureid"),bigid:"@insertRemainplanDate.LastInsertId",barid:"@insertSpotList.id",bar:"@insertSpotList.bname",type:0,date:t.date}}]},{name:"insertRpdetailDate",type:"e",parammaps:{pastureid:"1647917519",bigid:"@insertRemainplanDate.LastInsertId",barid:s[0].id,bar:s[0].bname,type:1,date:t.date}}]};Object(r["b"])(l).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.create.dialogFormVisible=!1,t.getList(),t.dropState=!1)}))}}))},createCancel:function(t){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){var e=this;this.create.dialogStatus="update",this.dialogFull=!1,this.create.dialogFormVisible=!0,this.getCarFollowParm.parammaps.times=t.times,this.getCarFollowList(),t.temp={},t.temp2={},"继续饲喂"==t.treatmethod?this.isDis=!0:this.isDis=!1,void 0==t.barid&&(t.barid=[]),void 0==t.tmrid&&(t.tmrid=""),void 0==t.times&&(t.times=""),void 0==t.treatmethod&&(t.treatmethod=""),"第一班"==t.times?(this.getCarFollowParm.parammaps.times=1,t.times="1"):"第二班"==t.times?(this.getCarFollowParm.parammaps.times=2,t.times="2"):"第三班"==t.times?(this.getCarFollowParm.parammaps.times=3,t.times="3"):"第四班"==t.times?(this.getCarFollowParm.parammaps.times=4,t.times="4"):"第五班"==t.times&&(this.getCarFollowParm.parammaps.times=5,t.times="5"),Object(r["c"])(this.getCarFollowParm).then((function(t){null!==t.data.list&&(e.carFollowList=t.data.list)})),this.carFollowList.length>0?void 0==this.carFollowList.find((function(e){return e.id==t.lppid})).lppcode&&this.$set(t,"lppid",""):this.$set(t,"lppid",""),void 0==t.lppcode&&this.$set(t,"lppid",""),this.getTransferbarsList(),t.barid=t.qstrids.split(","),t.useinbarid=t.hstrids,"0"==t.useinbarid&&(t.useinbarid="");for(var a=[],i=function(i){a.push(e.barsList.find((function(e){return e.id==t.barid[i]})))},s=0;s<t.barid.length;s++)i(s);this.barsNamesIdTempArr=a,this.barSortList=a;this.dropState=!0,this.create.temp=Object.assign({},t)},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){if(null!=t.create.temp.rtime&&"null"!=t.create.temp.rtime||(t.create.temp.rtime=""),""==t.create.temp.barid&&""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"班次/混剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.barid)return t.$message({type:"error",message:"栏舍不能为空",duration:2e3}),!1;if(""==t.create.temp.tmrid)return t.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==t.create.temp.times)return t.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==t.create.temp.treatmethod)return t.$message({type:"error",message:"剩料处理方式不能为空",duration:2e3}),!1;if(""!==t.create.temp.treatmethod&&"转投剩料"==t.create.temp.treatmethod&&""==t.create.temp.useinbarid)return t.$message({type:"error",message:"转投栏舍不能为空",duration:2e3}),!1;""!==t.create.temp.treatmethod&&"继续饲喂"==t.create.temp.treatmethod&&(t.create.temp.useinbarid="0"),""!=t.create.temp.rtime&&null!=t.create.temp.rtime||(t.create.temp.rtime="");for(var a=0;a<t.table.list.length;a++)if(t.create.temp.sort==t.table.list[a].sort&&t.create.temp.id!==t.table.list[a].id)return t.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==t.create.temp.sort&&!i.test(parseFloat(t.create.temp.sort)))return t.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;if(""==t.create.temp.sort||0==t.create.temp.sort)return t.$message({type:"error",message:"车次不能为空且大于0",duration:2e3}),!1;"第一班"==t.create.temp.times?t.create.temp.times=1:"第二班"==t.create.temp.times?t.create.temp.times=2:"第三班"==t.create.temp.times?t.create.temp.times=3:"第四班"==t.create.temp.times?t.create.temp.times=4:"第五班"==t.create.temp.times&&(t.create.temp.times=5),t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var s=[{bname:"",id:t.create.temp.useinbarid}];t.transferbarsList.forEach((function(t){t.id==s[0].id&&(s[0].bname=t.bname)}));var l={common:{returnmap:"0"},data:[{name:"updateRemainplanDate",type:"e",parammaps:{pastureid:t.create.temp.pastureid,id:t.create.temp.id,sort:t.create.temp.sort,tmrid:t.create.temp.tmrid,tmrcode:t.create.temp.tmrcode,enable:t.create.temp.enable,times:t.create.temp.times,lppid:t.create.temp.lppid,lppcode:t.create.temp.lppcode,rtime:t.create.temp.rtime,treatmethod:t.create.temp.treatmethod,date:t.date}},{name:"deleteRpdetailDate",type:"e",parammaps:{pastureid:t.create.temp.pastureid,bigid:t.create.temp.id,date:t.date}},{name:"insertSpotList2",resultmaps:{list:t.barsNamesIdTempArr},children:[{name:"insertRpdetailDate",type:"e",parammaps:{pastureid:t.create.temp.pastureid,bigid:t.create.temp.id,date:t.date,barid:"@insertSpotList2.id",bar:"@insertSpotList2.bname",type:0}}]},{name:"insertRpdetailDate",type:"e",parammaps:{pastureid:t.create.temp.pastureid,bigid:t.create.temp.id,barid:s[0].id,bar:s[0].bname,type:1,date:t.date}}]};Object(r["b"])(l).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.create.dialogFormVisible=!1,t.getList(),t.dropState=!1)}))}}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList(),this.dropState=!1},handleSelect:function(t){this.selectList=t},handleRowDelete:function(t){var e=this;d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.name="deleteRemainplanDate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,e.requestParam.parammaps.date=e.date,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(){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:"deleteRemainplanDate",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",date:t.date}},Object(r["b"])(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())}))}))},handleCheck:function(){this.check.dialogStatus="check",this.check.dialogFormVisible=!0,this.getCheckList()},getCheckList:function(){var t=this;this.check.getCheckParm.parammaps.date=this.date,Object(r["c"])(this.check.getCheckParm).then((function(e){void 0!==e.data.list[0].bnames?(t.check.temp.isDistribution=0,t.check.temp.bnames=e.data.list[0].bnames):(t.check.temp={},t.check.temp.isDistribution=1)}))},handleTakeEffect: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(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].enable=1;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:"updateRemainplanEnableDate",type:"e",parammaps:{enable:"@insertSpotList.enable",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",date:t.date}},Object(r["b"])(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())}))}))},handleDisable: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(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].enable=0;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:"updateRemainplanEnableDate",type:"e",parammaps:{enable:"@insertSpotList.enable",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",date:t.date}},Object(r["b"])(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())}))}))}}},h=u,b=(a("2f56"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"38885cf6",null);e["default"]=g.exports},4059:function(t,e,a){},4102:function(t,e,a){"use strict";a("b607")},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="M53.394286 895.049143h922.550857c21.138286 0 38.4 17.261714 38.4 38.473143v36.425143c0 21.211429-17.261714 38.473143-38.473143 38.473142H53.394286a38.473143 38.473143 0 0 1-38.4-38.473142v-36.425143c0-21.211429 17.188571-38.473143 38.4-38.473143zM728.283429 90.843429l190.902857 70.436571c33.133714 12.288 55.222857 43.885714 55.149714 79.36v667.794286H728.283429V90.916571zM150.454857 0H599.04c46.738286 0 84.626286 37.888 84.626286 84.553143v823.954286H65.828571V84.553143C65.828571 37.888 103.716571 0 150.381714 0z m66.779429 199.899429a42.276571 42.276571 0 0 0-42.349715 42.276571v15.36c0 23.259429 19.017143 42.203429 42.349715 42.203429h315.026285c23.405714 0 42.276571-18.944 42.276572-42.276572v-15.286857a42.276571 42.276571 0 0 0-42.276572-42.276571H217.234286z m0 231.716571a42.276571 42.276571 0 0 0-42.349715 42.276571v15.286858c0 23.405714 19.017143 42.276571 42.349715 42.276571h315.026285c23.405714 0 42.276571-18.944 42.276572-42.276571v-15.36a42.276571 42.276571 0 0 0-42.276572-42.349715H217.234286v0.146286z m0 231.570286a42.276571 42.276571 0 0 0-42.349715 42.276571v15.36c0 23.405714 19.017143 42.349714 42.349715 42.349714h315.026285c23.405714 0 42.276571-19.017143 42.276572-42.276571v-15.36a42.276571 42.276571 0 0 0-42.276572-42.349714H217.234286z" p-id="11463" /></symbol>'});l.a.add(n);e["default"]=n},"417e":function(t,e,a){"use strict";a("7db9")},"42f7":function(t,e,a){"use strict";a("0fca")},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",{staticClass:"successBorder",staticStyle:{"margin-top":"9px"},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:"#009C69",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",{staticClass:"save",staticStyle:{"margin-bottom":"10px"},on:{click:function(e){return t.jumpCreate()}}},[t._v(" 创建新的图表 ")]),a("el-table",{attrs:{data:t.myChartList,border:""}},[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",{staticClass:"miniPrimary",attrs:{disabled:t.isExisted(e.row)},on:{click:function(a){return t.linkChart(e.row)}}},[t._v("添加")]),a("el-button",{staticStyle:{padding:"6px 10px !important","font-size":"14px"},attrs:{size:"mini",type:"warning"},on:{click:function(a){return t.jumpEdit2(e.row)}}},[t._v(" 编辑 ")])]}}])})],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.showChartList=!1}}},[t._v("关闭")])],1)],1)],1)},s=[],r=(a("d3b7"),a("159b"),a("99af"),a("d81d"),a("4de4"),a("7db0"),a("c740"),a("e9c4"),a("a434"),a("7be8")),l=a("4ab3"),n=a("f77d"),o=(a("5fd4"),a("2934")),c=(a("c638"),a("a78e")),d=a.n(c),p=a("a5e0");function m(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={inject:["reload"],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){t&&this.getList(t)}}},methods:{getList:function(){var t=this;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["c"])(e).then((function(e){t.loading=!1,t.charts=e.data.list||[];var a=t.dashboard.content&&t.dashboard.content.layout||[];t.charts.forEach((function(e,a){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.selectedDimension).concat(e.content.selectedCalcul).concat(e.content.selectedCalcul2),e.content.filters&&e.content.filters.map(p["a"]),t.exeSqlJia2(e.content,e,a)})),t.layout=a.filter((function(e){return t.charts.find((function(t){return t.chart_id===e.id}))})),t.handleLayoutChange()}))},jumpCreate:function(){this.$router.push({name:"ChartPanel",params:{id:"create",isEdit:"edit"}}),localStorage.setItem("ChartPanelIsEditId","create")},jumpEdit2:function(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){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!m(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["c"])(e).then((function(e){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){e.showChartList=!1,"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}}),e.getList(),e.$emit("fatherMethod"),e.reload()}))},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){e.$message({type:"success",message:e.$t("common.deleteSuccess")}),e.getList()}))}))},handleLayoutChange:function(){if("view"!==this.mode){this.dashboard.content=this.dashboard.content||{},this.dashboard.content.layout=this.layout;var t={dashboard_id:this.dashboard.dashboard_id,content:this.dashboard.content,pastureid:d.a.get("pastureid")};Object(o["r"])(t).then((function(t){}))}},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,b=(a("057d"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"2fd6665a",null);e["default"]=g.exports},"431d":function(t,e,a){"use strict";a("c12f")},4360:function(t,e,a){"use strict";a("d3b7"),a("ddb0"),a("ac1f"),a("5319");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},ispastureuse:function(t){return t.user.ispastureuse},decimal:function(t){return t.user.decimal},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},"43e8":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-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.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.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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增入库单")]):t._e(),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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:"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,"max-height":t.myHeight}},[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":"90px",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":"90px",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":"90px",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":"90px",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":"90px",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":"90px",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":"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.islaid))])]}}])}),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.createemp))])]}}])}),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.createdate))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"80","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}}),"已入库"==i.islaid?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-refresh-left"},on:{click:function(e){return t.handleRevoke(i)}}}):t._e(),"未入库"==i.islaid?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):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:{fullscreen:t.dialogFull,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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-add"},[a("h3",[t._v("基础信息")]),a("el-form",{ref:"createTemp",staticStyle:{width:"100%",margin:"0 auto"},attrs:{rules:t.create.rules,model:t.create.createTemp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"入库日期:",prop:"laiddate"}},[a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"100%"},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:6}},[a("el-form-item",{attrs:{label:"送货单号:",prop:"wagonnumber"}},[a("el-button",{staticClass:"successBorder"},[t._v("选择货单")])],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"创建人:",prop:"feedname"}},[a("span",[t._v(t._s(t.create.createTemp.laiddate))])])],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"创建日期:",prop:"feedname"}},[a("span",[t._v(t._s(t.create.createTemp.laiddate))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"规格:",prop:"specifications"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"规格",disabled:"see"==t.create.dialogStatus},on:{change:t.changeSupplier},model:{value:t.create.createTemp.specifications,callback:function(e){t.$set(t.create.createTemp,"specifications",e)},expression:"create.createTemp.specifications"}},t._l(t.specificationsList,(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:"providerid"}},[a("el-input",{ref:"providername",staticClass:"filter-item",attrs:{disabled:"see"==t.create.dialogStatus,type:"textarea",placeholder:"备注"},model:{value:t.create.createTemp.providername,callback:function(e){t.$set(t.create.createTemp,"providername",e)},expression:"create.createTemp.providername"}})],1)],1)],1)],1),a("div",{staticClass:"feedTable",staticStyle:{margint:"0 100px","border-top":"1px solid #000"}},[a("div",{staticClass:"feedBtn",staticStyle:{height:"50px"}},[a("h3",{staticStyle:{float:"left"}},[t._v("饲料信息")]),a("el-button",{staticClass:"successBorder",staticStyle:{float:"right","margin-top":"5px"},attrs:{icon:"el-icon-plus"},on:{click:t.handleIncreaseFeed}},[t._v("增加饲料")])],1),a("div",{staticClass:"feedTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.create.table.listLoading,expression:"create.table.listLoading"}],key:t.create.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.create.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[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"},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:"毛重(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.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},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:"皮重(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.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},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:"入库重量(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.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},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:"总价(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.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},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:"单价(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.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},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:"供应商(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.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},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:"合同编号(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.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},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:"许可证号(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.drivercode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},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:"操作",align:"center",width:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createFeedData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createFeedCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleFeedUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowFeedDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateFeedData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateFeedCancel(i)}}}):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.create.table.total>=0,expression:"create.table.total>=0"}],attrs:{total:t.create.table.total,page:t.create.table.getdataListParm.offset,limit:t.create.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.create.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.create.table.getdataListParm,"pagecount",e)},pagination:t.getFeedList}})],1)]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["see"==t.create.dialogStatus?a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]):t._e(),"see"!==t.create.dialogStatus?a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]):t._e(),"see"!==t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.initial.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",attrs:{icon:"el-icon-download"}},[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:"cancelClose",on:{click:function(e){t.initial.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.initialData()}}},[t._v("确认")])],1)],1)])],2)],1)},s=[],r=a("1da1"),l=(a("96cf"),a("7db0"),a("d3b7"),a("a434"),a("ac1f"),a("00b4"),a("159b"),a("a9e3"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),n=a("333d"),o=a("5c96"),c=a("a78e"),d=a.n(c),p=a("ed08"),m=a("bc3a"),u=a.n(m),h=a("5f87"),b=a("1146"),g=a.n(b),f={name:"Warehousing",components:{Pagination:n["a"]},data:function(){return{dialogFull:!1,feedNameList:[],feedNameAddList:[],supplierList:[],contractNoList:[],islaidList:[{id:0,name:"未入库"},{id:1,name:"已入库"},{id:2,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:parseInt(d.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inputDatetime:"",startTime:"",stopTime:"",feedid:"",islaid:"",providerid:""}},tableKey:0,list:[],total:0,listLoading:!0},specificationsList:[{name:"整车重量",id:"0"},{name:"分袋重量",id:"1"}],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:"change"}],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:"",parammaps:{pastureid:d.a.get("pastureid")}},table:{getdataListParm:{name:"getFeedlaidList",page:1,offset:1,pagecount:parseInt(d.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!1}},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:{},download:{getdataListParm:{name:"getFeedlaidList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inputDatetime:"",startTime:"",stopTime:"",feedid:"",islaid:"",providerid:""}},list:[]},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(h["a"])()}},uploadData:function(){return{name:"checkFeed,checkProviderRK,checkcontractcode,checkcontractcodePrice,insertFeedlaidUpload,insertFeedstorageLaidUpload",importParams:"入库日期,送货单编号,饲料名称,供应商,合同编号,入库重量(kg),单价(元),总价(元),毛重(kg),皮重(kg),许可证号,批号,创建人,备注",sheetname:"Sheet1",pastureid:d.a.get("pastureid"),dateParams:"入库日期",requiredParams:"入库日期,饲料名称,入库重量(kg),单价(元)",numParams:"入库重量(kg),单价(元),总价(元),毛重(kg),皮重(kg)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,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(p["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(p["d"])(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="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.islaid="",this.table.getdataListParm.parammaps.providerid="",this.table.getdataListParm.offset=1,this.getList()},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),laiddate:Object(p["d"])(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(p["d"])(new Date,"{y}-{m}-{d}"),remark:"",wagonnumber:""},this.contractNoList=[]},changeSupplier:function(t){""!==t?this.create.createTemp.providername=this.supplierList.find((function(e){return e.id==t})).providerName:(this.create.createTemp.providername="",this.create.createTemp.contractcode="",this.create.createTemp.pricenew="",this.create.createTemp.sumprice="",this.contractNoList=[]),""!==this.create.createTemp.feedid&&""!==this.create.createTemp.providerid&&this.getContractNoList()},changeContractNo:function(t){this.create.createTemp.pricenew=""!==t?this.contractNoList.find((function(e){return e.contractcode==t})).price:"",""!==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=Object(l["k"])(this.create.createTemp.sumprice,2))},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["c"])(this.create.getdataListParm).then((function(e){null!==e.data.list?(t.contractNoList=e.data.list,t.create.createTemp.contractcode="",t.create.createTemp.pricenew="",t.create.createTemp.sumprice=""):(t.contractNoList=[],t.create.createTemp.contractcode="",t.create.createTemp.pricenew="",t.create.createTemp.sumprice="")}))},feedNameSearch:function(t,e){this.create.getfeedNameParm.parammaps["fname"]=t,Object(l["c"])(this.create.getfeedNameParm).then((function(t){null==t.data.list?e([]):e(t.data.list)}))},handleSelectFeedName:function(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.providerid="",this.create.createTemp.providername="",this.create.createTemp.contractcode="",this.create.createTemp.pricenew="",this.create.createTemp.sumprice="",""!==this.create.createTemp.feedid&&""!==this.create.createTemp.providerid&&this.getContractNoList()},blurFeedName:function(){this.create.createTemp.feedname="",this.create.createTemp.feedid="",this.create.createTemp.startweight="",this.create.createTemp.priceold="",this.create.createTemp.providerid="",this.create.createTemp.providername="",this.create.createTemp.contractcode="",this.create.createTemp.pricenew="",this.create.createTemp.sumprice=""},blurOperateweight:function(){""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&(this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=Object(l["k"])(this.create.createTemp.operateweight,2),this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.tareweight&&""!==this.create.createTemp.grossweight&&(""==this.create.createTemp.operateweight&&(this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight),2)),parseFloat(this.create.createTemp.tareweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.tareweight=Object(l["k"])(this.create.createTemp.grossweight,2),this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight),2))),""!==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=Object(l["k"])(this.create.createTemp.sumprice,2)):this.create.createTemp.sumprice=""},blurGrossweight:function(){""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&(this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=Object(l["k"])(this.create.createTemp.operateweight,2),this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.pricenew&&""!==this.create.createTemp.operateweight?(this.create.createTemp.sumprice=parseFloat(this.create.createTemp.operateweight)*parseFloat(this.create.createTemp.pricenew),this.create.createTemp.sumprice=Object(l["k"])(this.create.createTemp.sumprice,2)):this.create.createTemp.sumprice=""},blurTareweight:function(){""!==this.create.createTemp.operateweight&&""!==this.create.createTemp.tareweight&&(this.create.createTemp.grossweight=Object(l["k"])(parseFloat(this.create.createTemp.tareweight)+parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=Object(l["k"])(this.create.createTemp.operateweight,2),this.create.createTemp.tareweight=Object(l["k"])(parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight),2)),""!==this.create.createTemp.tareweight&&""!==this.create.createTemp.grossweight&&(parseFloat(this.create.createTemp.tareweight)>parseFloat(this.create.createTemp.grossweight)?(this.create.createTemp.tareweight=Object(l["k"])(this.create.createTemp.grossweight,2),this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight),2)):this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight),2)),""!==this.create.createTemp.pricenew&&""!==this.create.createTemp.operateweight?(this.create.createTemp.sumprice=parseFloat(this.create.createTemp.operateweight)*parseFloat(this.create.createTemp.pricenew),this.create.createTemp.sumprice=Object(l["k"])(this.create.createTemp.sumprice,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=Object(l["k"])(this.create.createTemp.sumprice,2)):this.create.createTemp.sumprice=""},blurSumprice:function(){""!==this.create.createTemp.sumprice&&""!==this.create.createTemp.pricenew?this.create.createTemp.operateweight=Object(l["k"])(parseFloat(this.create.createTemp.sumprice)/parseFloat(this.create.createTemp.pricenew),2):this.create.createTemp.operateweight=""},handleCreate:function(){var t=this;this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.$nextTick((function(){t.resetCreateTemp(),t.$refs.createTemp.resetFields()}))},handleIncreaseFeed:function(){for(var t=0;t<this.create.table.list.length;t++)if(!0===this.create.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.create.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,drivercode:"",drivername:""})},getFeedList:function(){},createFeedData:function(t){},createFeedCancel:function(t){for(var e=0;e<this.create.table.list.length;e++){if(t.myId===this.create.table.list[e].myId)var a=this.create.table.list.indexOf(this.create.table.list[e]);if(a>-1)return void this.create.table.list.splice(a,1)}},handleFeedUpdate:function(t){for(var e=0;e<this.create.table.list.length;e++)if(1==this.create.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},handleRowFeedDelete:function(){},updateFeedData:function(){},updateFeedCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getFeedList()},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;t.create.createTemp.sumprice.length>15&&t.$message({type:"error",message:"数值过大请重新输入",duration:2e3});var a=/^\d+(\.\d{1,2})?$/;if(""!==t.create.createTemp.operateweight){if(0==t.create.createTemp.operateweight)return t.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.operateweight)))return t.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1}if(0==t.create.createTemp.pricenew)return t.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.pricenew)))return t.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(""!==t.create.createTemp.pricenew&&""!==t.create.createTemp.operateweight){if(0==t.create.createTemp.sumprice)return t.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.sumprice)))return t.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==t.create.createTemp.grossweight){if(0==t.create.createTemp.grossweight)return t.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.grossweight)))return t.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==t.create.createTemp.tareweight){if(0==t.create.createTemp.tareweight)return t.$message({type:"error",message:"皮重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.tareweight)))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}}),Object(l["b"])(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.create.dialogFormVisible=!1,t.getList())}))}))}}))},handleUpdate:function(t){var e=this;this.$nextTick((function(){e.$refs.createTemp.resetFields()})),this.dialogFull=!1,this.create.dialogStatus="update",this.create.dialogFormVisible=!0,t.feedid=String(t.feedid),-1==t.providerid&&(t.providerid="",t.providername=""),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;t.create.createTemp.sumprice.length>15&&t.$message({type:"error",message:"数值过大请重新输入",duration:2e3});var a=/^\d+(\.\d{1,2})?$/;if(""!==t.create.createTemp.operateweight){if(0==t.create.createTemp.operateweight)return t.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.operateweight)))return t.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1}if(0==t.create.createTemp.pricenew)return t.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.pricenew)))return t.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(""!==t.create.createTemp.pricenew&&""!==t.create.createTemp.operateweight){if(0==t.create.createTemp.sumprice)return t.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.sumprice)))return t.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==t.create.createTemp.grossweight){if(0==t.create.createTemp.grossweight)return t.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.grossweight)))return t.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==t.create.createTemp.tareweight){if(0==t.create.createTemp.tareweight)return t.$message({type:"error",message:"皮重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.tareweight)))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}}),Object(l["b"])(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.create.dialogFormVisible=!1,t.getList())}))}))}}))},handleRevoke:function(t){},handleSee:function(t){var e=this;this.$nextTick((function(){e.$refs.createTemp.resetFields()})),this.dialogFull=!1,this.create.dialogStatus="see",this.create.dialogFormVisible=!0,-1==t.providerid&&(t.providerid="",t.providername=""),this.create.createTemp=Object.assign({},t)},handleInitial:function(){this.dialogFull=!1,this.initial.dialogStatus="initial",this.initial.dialogFormVisible=!0,this.getInitialList()},getInitialList:function(){var t=this;this.initial.listLoading=!0,Object(l["c"])(this.initial.getdataListParm).then((function(e){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(){var t=[{tHeader:["饲料名称","库存重量"],filterVal:["fname","stockweight"],tableDatas:this.initial.list,sheetName:"初始化库存"}];Object(p["c"])(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,m;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(p["e"])(i);case 5:for(s=a.sent,r=g.a.read(s,{type:"binary"}),s=g.a.utils.sheet_to_json(r.Sheets[r.SheetNames[0]]),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)})),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(d=0;d<l.length;d++)e.$set(l[d],"msg","饲料名称与系统不匹配");e.$message({title:"成功",message:"导入成功:"+n+"条!",type:"success",duration:2e3}),e.$notify({title:"失败",message:"导入失败:"+l.length+"条!",type:"danger",duration:2e3}),l.length>0&&(m=[{tHeader:["饲料名称","库存重量","报错信息"],filterVal:["fname","stockweight","msg"],tableDatas:l,sheetName:"ExcelDatas1"}],Object(p["c"])(m,"初始化库存报错信息",!0,"xlsx"));case 16:case"end":return a.stop()}}),a)})))()},initialData:function(){var t=this;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?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/库存管理/入库导入模板.xlsx";u()({method:"GET",url:i,data:a,headers:{token:Object(h["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="入库管理导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(p["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(p["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(l["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["入库日期","送货单编号","饲料名称","供应商","合同编号","入库重量(kg)","单价(元)","总价","毛重(kg)","皮重(kg)","许可证号","批号","创建人","创建日期","备注"],filterVal:["laiddate","wagonnumber","feedname","providername","contractcode","operateweight","pricenew","sumprice","grossweight","tareweight","licence","pcpde","createemp","createdate","remark"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(p["c"])(a,"入库管理",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["入库日期","送货单编号","饲料名称","供应商","合同编号","入库重量(kg)","单价(元)","总价(元)","毛重(kg)","皮重(kg)","许可证号","批号","创建人","创建日期","备注","错误信息"],r=["入库日期","送货单编号","饲料名称","供应商","合同编号","入库重量(kg)","单价(元)","总价(元)","毛重(kg)","皮重(kg)","许可证号","批号","创建人","创建日期","备注","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"入库管理导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(p["d"])(e[t]):e[t]}))}))}}},w=f,y=a("2877"),v=Object(y["a"])(w,i,s,!1,null,null,null);e["default"]=v.exports},"44dec":function(t,e,a){"use strict";a("ff60")},"453b":function(t,e,a){},4548: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(t.myComponent1,{ref:"detail",tag:"component"})],1),a("el-tab-pane",{attrs:{label:"牧场",name:"second"}},[a(t.myComponent2,{ref:"detail",tag:"component"})],1)],1)],1)},s=[],r=(a("d3b7"),a("3ca3"),a("ddb0"),{name:"OperationManagement",data:function(){return{activeName:"first",myComponent1:null,myComponent2:null}},mounted:function(){this.detailComponent()},methods:{detailComponent:function(){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"0384"))};return t.myComponent1=e},handleClick:function(t){if("first"==t){var e=this,i=function(){return Promise.resolve().then(a.bind(null,"0384"))};return e.myComponent1=i}var s=this,r=function(){return Promise.resolve().then(a.bind(null,"7c37"))};return s.myComponent2=r}}}),l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);e["default"]=o.exports},"456b":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:"120px"},attrs:{filterable:"",placeholder:"班次"},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)],1),a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增车次 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleReduceTrains}},[t._v(" 减少车次")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{float:"left","margin-left":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v(" 生效")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v(" 禁用")]):t._e()],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",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:"50px",align:"center","class-name":"small-padding fixed-width",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",width:"110px",align:"center","class-name":"small-padding fixed-width",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrname))])]}}])}),a("el-table-column",{attrs:{label:"描述",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.display))])]}}])}),a("el-table-column",{attrs:{label:"生效",width:"70px",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.sel,callback:function(a){t.$set(e.row,"sel",a)},expression:"scope.row.sel"}})]}}])}),a("el-table-column",{attrs:{label:"班次",width:"65px",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:"时间",width:"55px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.begintime))])]}}])}),a("el-table-column",{attrs:{label:"最大重量",width:"75px",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:"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ftname))])]}}])}),a("el-table-column",{directives:[{name:"show",rawName:"v-show",value:t.isInforvalue,expression:"isInforvalue"}],attrs:{label:"是否提前小料拆分",width:"70px",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.issplit,callback:function(a){t.$set(e.row,"issplit",a)},expression:"scope.row.issplit"}})]}}])}),a("el-table-column",{attrs:{label:"撒料","min-width":"250px",align:"left","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.arrList,(function(e){return a("div",{key:e.name,staticClass:"list"},[a("el-tooltip",{attrs:{placement:"top","open-delay":1e3}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("div",[t._v(" 栏舍全称:"+t._s(e.barname)+" ")]),a("div",[t._v(" 饲料重量:"+t._s(e.weight)+" ")]),a("div",[t._v(" 撒料车:"+t._s(e.tmrname)+" ")])]),a("div",{staticClass:"tmrname",style:{background:e.background}},[t._v(t._s(e.barname))])])],1)}))}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"70","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e()]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.create.dialogFormVisible,"before-close":t.close,"close-on-click-modal":!1,width:"90%","modal-append-to-body":!1,"append-to-body":!0},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"create"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 10px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"135px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"生效:",prop:"sel"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.temp.sel,callback:function(e){t.$set(t.create.temp,"sel",e)},expression:"create.temp.sel"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"TMR编号:",prop:"tmrid2"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"TMR编号"},on:{change:t.changeTMRNumber},model:{value:t.create.temp.tmrid2,callback:function(e){t.$set(t.create.temp,"tmrid2",e)},expression:"create.temp.tmrid2"}},t._l(t.TMRNumberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tclassname+"/"+t.eqcode,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.create.list2.length>0,placeholder:"班次"},on:{change:t.changeTimes},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:8}},[a("el-form-item",{attrs:{label:"提前小料拆分:",prop:"issplit"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.temp.issplit,callback:function(e){t.$set(t.create.temp,"issplit",e)},expression:"create.temp.issplit"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"时间:",prop:"begintime"}},[a("el-time-picker",{staticStyle:{width:"100%"},attrs:{clearable:!1,type:"datetime",placeholder:"时间",format:"HH:mm","value-format":"HH:mm"},model:{value:t.create.temp.begintime,callback:function(e){t.$set(t.create.temp,"begintime",e)},expression:"create.temp.begintime"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"模板配方:",prop:"ftid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.create.list2.length>0,placeholder:"模板配方"},on:{change:t.changeTemplateFormulation},model:{value:t.create.temp.ftid,callback:function(e){t.$set(t.create.temp,"ftid",e)},expression:"create.temp.ftid"}},t._l(t.templateFormulationList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"描述:",prop:"display"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"描述",maxlength:"255"},model:{value:t.create.temp.display,callback:function(e){t.$set(t.create.temp,"display",e)},expression:"create.temp.display"}})],1)],1)],1)],1),"update"===t.create.dialogStatus||t.isDispaly?t._e():a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.distributionAndSpreading()}}},[t._v("分配撒料")]):t._e()],1),"update"==t.create.dialogStatus||t.isDispaly?a("div",{staticClass:"bottom",staticStyle:{"border-top":"1px solid #009C69"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("div",{staticClass:"fenceHouse"},[a("ul",{directives:[{name:"loading",rawName:"v-loading",value:t.create.listLoadingTimes,expression:"create.listLoadingTimes"}],staticClass:"fenceHouseList"},t._l(t.create.list1,(function(e){return a("li",{key:e.arrid},[e.isShowTitle?a("span",{staticClass:"fenceHouseTitle"},[t._v(t._s(e.ftname)+":")]):t._e(),t._l(e.arrList,(function(e){return a("div",{key:e.id,staticClass:"colorBlock"},[a("div",{staticStyle:{position:"relative"}},[a("el-tooltip",{staticStyle:{height:"18px","line-height":"18px"},style:{background:e.background},attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.barname))]),a("div",{staticClass:"barname"},[a("span",{staticStyle:{float:"left",width:"70px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[t._v(t._s(e.barname))]),a("button",{staticStyle:{background:"red",float:"right",width:"18px",color:"#fff","font-size":"18px",border:"none","text-align":"center"},attrs:{disabled:t.isokDisable},on:{click:function(a){return t.clickBar(e)}}},[t._v("√")])])]),a("div",{staticClass:"barWeight",style:{background:"rgba("+e.background2+",0.1)"}},[t._v(" "+t._s(e.weight)+" ")])],1)])}))],2)})),0)])]),a("el-col",{attrs:{span:4}},[a("div",{staticStyle:{"text-align":"center",height:"100px","margin-top":"40px"}},[a("div",{staticClass:"maxweight",staticStyle:{"line-height":"20px"}},[a("b",[t._v("最大重量:")]),t._v(t._s(t.create.temp.maxweight)+" (KG)")]),a("div",{staticClass:"sumweight",staticStyle:{"line-height":"20px","margin-top":"10px"}},[a("b",[t._v("合计重量:")]),t._v(t._s(t.create.temp.sumweight)+" (KG) ")])])])],1),a("div",{staticClass:"spreadingMaterial"},[a("div",[t._v("撒料:"),a("el-button",{attrs:{type:"danger"},on:{click:t.handleEmpty}},[t._v("清空")])],1),a("div",{staticClass:"spreadingMaterialList"},[a("draggable",{staticClass:"list-group1",attrs:{disabled:t.isDropState,id:"1","data-source":"juju",list:t.create.list2,draggable:".item",group:"a",animation:"500","force-fallback":"true",move:t.move1},on:{change:t.changeLog1,start:t.start1,end:t.end1}},t._l(t.create.list2,(function(e){return a("div",{key:e.name,staticClass:"list-group-item2 item"},[a("div",{staticClass:"arr-l",style:{background:e.tbackground}},[a("div",{staticClass:"arr-l-t"},[a("div",{staticClass:"arr-l-t-t"}),a("el-select",{staticClass:"arr-l-t-b el-icon-arrow-down",attrs:{placeholder:"撒料设备"},on:{change:function(a){t.changeEquipment(a,e.fttype,e.id)}},model:{value:e.tmrid,callback:function(a){t.$set(e,"tmrid",a)},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("div",{staticClass:"arr-l-b"},[a("el-tooltip",{staticClass:"list-group-item1 item",staticStyle:{height:"18px","line-height":"18px"},attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.tmrname))]),a("div",{staticClass:"tmrname"},[t._v(t._s(e.tmrname))])])],1),0==e.fttype?a("div",{staticStyle:{background:"#009C69",position:"absolute",bottom:"0",left:"0"}},[t._v("补")]):t._e()]),a("div",{staticClass:"arr-r"},[a("div",{staticClass:"arr-r-l"},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.barname))]),a("div",{staticClass:"barname"},[t._v(t._s(e.barname))])])],1),a("div",{staticClass:"arr-r-c"},[t._v("-")]),a("div",{staticClass:"arr-r-r"},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.weight))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.weight,expression:"element.weight"}],ref:"weight",refInFor:!0,staticClass:"filter-item2",staticStyle:{display:"inline-block",height:"25px",padding:"4px 4px 4px 0","text-align":"right","font-size":"12px",width:"95%",border:"1px solid #e6e6e6"},attrs:{autofocus:e.focusState,type:"number",placeholder:"重量",step:"0.01"},domProps:{value:e.weight},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.target.blur.apply(null,arguments)},focus:t.focusWeight,blur:function(a){return t.blurWeight(e)},input:function(a){a.target.composing||t.$set(e,"weight",a.target.value)}}})])],1)]),a("div",{staticClass:"arr-t",style:{background:e.background}},[a("i",{staticClass:"el-icon-close",staticStyle:{position:"absolute",right:"0"},on:{click:function(a){return t.handleFLDelete(e)}}})])])})),0)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{height:"55px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{top:"40px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.close()}}},[t._v("关闭")]),a("el-button",{staticClass:"save",staticStyle:{top:"40px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData()}}},[t._v("确认")])],1)],1):t._e()],1)],2)],1)},s=[],r=a("ade3"),l=(a("7db0"),a("d3b7"),a("b0c0"),a("159b"),a("ac1f"),a("00b4"),a("99af"),a("fb6a"),a("a15b"),a("4e82"),a("b680"),a("a434"),a("a78e")),n=a.n(l),o=a("aa47"),c=a("b76a"),d=a.n(c),p=a("2934"),m=a("5c96"),u={components:{draggable:d.a},name:"MaterialIssuancePlan",directives:{focus:{update:function(t,e){var a=e.value;a&&t.focus()}}},props:{show:{type:Boolean,default:!1},parentDate:{type:String,defalut:""}},data:function(){return{date:"",isRoleEdit:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},height:document.body.clientHeight-220,table:{getdataListParm:{page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),times:1,refresh:1}},tableKey:0,list:[],total:0,listLoading:!1},frequencyList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}},isInforvalue:!1,selectList:[],textMap:{create:"新增",update:"编辑"},dialogFull:!1,isOrder:!0,requestParam:{},isokDisable:!1,create:{dialogFormVisible:!1,dialogStatus:"",temp:Object(r["a"])({sel:1,tmrid:"",tmrid2:"",maxweight:"",issplit:1,begintime:"",sumweight:0,display:"",times:1,ftid:"",ftname:"",tmrname:""},"maxweight",""),rules:{tmrid2:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"number",required:!0,message:"必填",trigger:"blur"}],ftid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},listLoadingTimes:!1,list1:[],list2:[],checkBarList:[]},TMRNumberList:[],equipmentList:[],templateFormulationList:[],isDispaly:!1,isDropState:!1}},watch:{show:{immediate:!0,handler:function(t,e){}},parentDate:{immediate:!0,handler:function(t,e){this.date=t}}},created:function(){this.getButtons(),this.getIsDisplay(),this.getList()},methods:{getButtons:function(){var t="DailyExecutionPlan",e=Object(p["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this,e="authdata/GetDataByName",a={name:"getTMRListEnableType",offset:0,parammaps:{pastureid:n.a.get("pastureid"),eqtype:"1"}};Object(p["n"])(e,a).then((function(e){null!==e.data?t.TMRNumberList=e.data.list:t.TMRNumberList=[]}));var i={name:"getTMRListEnableTypeAll",offset:0,parammaps:{pastureid:n.a.get("pastureid"),eqtype:"1"}};Object(p["n"])(e,i).then((function(e){null!==e.data?(t.equipmentList=e.data.list,"update"==t.create.dialogStatus&&(t.create.temp.tclassname=t.equipmentList.find((function(e){return e.id==t.create.temp.tmrid})).tclassname)):t.equipmentList=[]}));var s={name:"getFTSWList",offset:0,parammaps:{pastureid:n.a.get("pastureid")}};Object(p["n"])(e,s).then((function(e){null!==e.data?t.templateFormulationList=e.data.list:t.templateFormulationList=[]}));var r={name:"getSysoptEnable",offset:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"isSmallMaterial"}};Object(p["n"])(e,r).then((function(e){null!==e.data?0==e.data.list[0].inforvalue?t.isInforvalue=!1:t.isInforvalue=!0:t.isInforvalue=!1}))},getIsDisplay:function(){var t=this,e="authdata/GetDataByName",a=this.maxTime.getMaxTimesParm;Object(p["n"])(e,a).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;var e="authdata/spillage/day";this.table.getdataListParm.parammaps.date=this.date;var a=this.table.getdataListParm;Object(p["n"])(e,a).then((function(e){if(void 0!==e.data.list)if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)null==e.data.list[a].arrList&&t.$set(e.data.list[a],"arrList",[]);t.table.list=e.data.list,t.table.total=e.data.list.length,setTimeout((function(){t.$refs.table.doLayout()}),100)}else t.table.list=[];t.table.listLoading=!1}))},changeFrequency:function(t){this.getList()},handleRowDelete:function(t){var e=this;if(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="deleteLppdate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,e.requestParam.parammaps.date=e.date;var a="authdata/PostDataByName",i=e.requestParam;Object(p["n"])(a,i).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.table.getdataListParm.parammaps.refresh=1,e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelect:function(t){this.selectList=t},changeTemplateFormulation:function(t){this.create.temp.ftname=this.templateFormulationList.find((function(e){return e.id===t})).tname,this.getCreateList1()},changeTimes:function(t){this.getCreateList1()},changeTMRNumber:function(t){var e=this;this.create.list2.length>0?m["MessageBox"].confirm("更换TMR撒料设备,会清空撒料车,是否更换?",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}).then((function(){e.create.temp.tmrid=e.create.temp.tmrid2,e.create.temp.tmrname=e.TMRNumberList.find((function(e){return e.id===t})).eqcode,e.create.temp.maxweight=e.TMRNumberList.find((function(e){return e.id===t})).maxstirfeed,e.create.temp.mytmrid=e.create.temp.tmrid,e.create.temp.mytmrname=e.create.temp.tmrname,(e.isDispaly||"update"==e.create.dialogStatus)&&e.getClearList()})).catch((function(){e.create.temp.tmrid2=e.create.temp.tmrid,e.create.temp.tmrname=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).eqcode,e.create.temp.maxweight=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).maxstirfeed,e.create.temp.tclassname=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).tclassname,e.create.temp.mytmrid=e.create.temp.tmrid2,e.create.temp.mytmrname=e.create.temp.tmrname,(e.isDispaly||"update"==e.create.dialogStatus)&&e.getClearList(),e.$message({type:"info",message:"已取消"})})):(this.create.temp.tmrid=this.create.temp.tmrid2,this.create.temp.tmrname=this.TMRNumberList.find((function(e){return e.id===t})).eqcode,this.create.temp.maxweight=this.TMRNumberList.find((function(e){return e.id===t})).maxstirfeed,this.create.temp.tclassname=this.TMRNumberList.find((function(e){return e.id===t})).tclassname,this.create.temp.mytmrid=this.create.temp.tmrid,this.create.temp.mytmrname=this.create.temp.tmrname)},getClearList:function(){var t=this,e="authdata/lpplandtl/del/day",a=[];this.create.list2.forEach((function(e,i){var s={};s.pastureid=e.pastureid,s.lpplandtlid=e.id,s.fttype=e.fttype,s.lweight=e.lweight,s.fpdid=e.fpdid,s.date=t.date,a.push(s)})),Object(p["n"])(e,a).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.getCreateList1())}))},colorRgb:function(t){t=t.toLowerCase();var e=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t&&e.test(t)){if(4===t.length){for(var a="#",i=1;i<4;i+=1)a+=t.slice(i,i+1).concat(t.slice(i,i+1));t=a}var s=[];for(i=1;i<7;i+=2)s.push(parseInt("0x"+t.slice(i,i+2)));return s.join(",")}return"rgba("+s.join(",")+")"},dbclickWeight:function(t){this.$set(t,"isWeight",!0),this.$set(t,"focusState",!0)},focusWeight:function(){this.isDropState=!0},blurWeight:function(t){var e=this;if(this.isDropState=!1,parseFloat(t.weight)<=0)return this.$message({type:"error",message:"重量不可输入小于0的数据",duration:2e3}),!1;""==t.weight&&(t.weight=0);var a=String(parseFloat(t.weight)-parseFloat(t.lweight)),i=0;if(this.create.list2.forEach((function(t,e){i+=parseFloat(t.weight)})),i>this.create.temp.maxweight)return this.$message({type:"error",message:"撒料车总重量大于最大重量",duration:2e3}),!1;this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkFPdLeftWdate",type:"v",parammaps:{pastureid:t.pastureid,fpdid:t.fpdid,fttype:t.fttype,lweight:a,date:this.date}},this.requestParam.data[1]={name:"updateLppddate",type:"e",parammaps:{pastureid:this.create.temp.pastureid,lppid:this.create.temp.id,barid:t.barid,barname:t.barname,fpdid:t.fpdid,fttype:t.fttype,lweight:t.weight,sort:t.sort,tmrid:t.tmrid,tmrname:t.tmrname,background:t.background,id:t.id,date:this.date}},this.requestParam.data[2]={name:"updateFpdetailUsedate",type:"e",parammaps:{pastureid:t.pastureid,id:t.fpdid,fttype:t.fttype,lweight:a,date:this.date}};var s="authdata/ExecDataByConfig",r=this.requestParam;Object(p["n"])(s,r).then((function(t){"fail"===t.msg&&e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}),e.getCreateList1()}))},handleFLDelete:function(t){var e=this;this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deleteLppddate",type:"e",parammaps:{pastureid:t.pastureid,id:t.id,date:this.date}},this.requestParam.data[1]={name:"updateFpdetailUsedate",type:"e",parammaps:{pastureid:t.pastureid,id:t.fpdid,fttype:t.fttype,lweight:"-"+parseFloat(t.weight),date:this.date}};var a="authdata/ExecDataByConfig",i=this.requestParam;Object(p["n"])(a,i).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.getCreateList1())}))},handleCreate:function(){this.create.temp=Object(r["a"])({sel:1,tmrid:"",tmrid2:"",maxweight:"",issplit:1,begintime:"",sumweight:0,display:"",times:1,ftid:"",ftname:"",tmrname:""},"maxweight",""),this.create.temp.times=this.table.getdataListParm.parammaps.times,this.getDownList(),this.isDispaly=!1,this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.create.list1=[],this.create.list2=[],this.create.checkBarList=[]},distributionAndSpreading:function(){var t=this;this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a="authdata/lpplandtl/add/day",i={};t.create.temp.pastureid=n.a.get("pastureid"),t.create.temp.times=parseInt(t.create.temp.times),t.create.temp.date=t.date,i.parammaps=t.create.temp,Object(p["n"])(a,i).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.temp.id=e.data.Id,t.isDispaly=!0):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})})),t.getCreateList1()}}))},getCreateList1:function(){var t=this;this.create.listLoadingTimes=!0;var e="authdata/spillage/day",a={page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),times:this.create.temp.times,refresh:2,ftid:this.create.temp.ftid,date:this.date}};Object(p["n"])(e,a).then((function(e){if(null!==e.data.ftlist){for(var a=0;a<e.data.ftlist.length;a++)if(t.$set(e.data.ftlist[a],"isShowTitle",!0),null==e.data.ftlist[a].arrList)t.$set(e.data.ftlist[a],"isShowTitle",!1);else for(var i=0;i<e.data.ftlist[a].arrList.length;i++)t.$set(e.data.ftlist[a].arrList[i],"background2",t.colorRgb(e.data.ftlist[a].arrList[i].background));t.create.list1=e.data.ftlist}else t.create.list1=[];t.create.listLoadingTimes=!1})),this.getCreateList2()},getCreateList2:function(){var t=this,e="authdata/lpplandtl/day",a={parammaps:{}};a.parammaps.pastureid=n.a.get("pastureid"),a.parammaps.id=this.create.temp.id,a.parammaps.date=this.date,Object(p["n"])(e,a).then((function(e){if(null!==e.data){t.create.list2=e.data;for(var a=0,i=0;i<t.create.list2.length;i++)a+=parseFloat(t.create.list2[i].weight),t.$set(t.create.list2[i],"isWeight",!1),t.$set(t.create.list2[i],"focusState",!1);t.create.temp.sumweight=a.toFixed(2)}else t.create.list2=[],t.create.temp.sort=0,t.create.temp.sumweight=0}))},clickBar:function(t){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.create.temp.sumweight=parseFloat(this.create.temp.sumweight),"固定式"==this.create.temp.tclassname&&void 0!==this.equipmentList.find((function(t){return"任意车"==t.tclassname}))&&(this.create.temp.tmrname=this.equipmentList.find((function(t){return"任意车"==t.tclassname})).eqcode,this.create.temp.tmrid=this.equipmentList.find((function(t){return"任意车"==t.tclassname})).id);var a=this.create.temp;if(parseFloat(a.maxweight)-parseFloat(a.sumweight)<parseFloat(t.weight)&&parseFloat(a.sumweight)+parseFloat(t.weight)>parseFloat(a.maxweight)&&this.$set(t,"weight",(parseFloat(a.maxweight)-parseFloat(a.sumweight)).toFixed(2)),parseFloat(a.maxweight)==parseFloat(a.sumweight)||parseFloat(a.maxweight)<parseFloat(a.sumweight))return this.$message({type:"error",message:"计划配方已经是最大容量",duration:2e3}),void this.getCreateList1();this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertLppddate",type:"e",parammaps:{pastureid:t.pastureid,lppid:a.id,barid:t.barid,barname:t.barname,fpdid:t.id,tmrid:a.tmrid,tmrname:a.tmrname,fttype:t.fttype,background:t.background,cowcount:t.cowcount,ccountradio:t.ccountradio,lweight:t.weight,date:this.date}},Object(p["b"])(this.requestParam).then((function(a){e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"updateFpdetailUsedate",type:"e",parammaps:{pastureid:t.pastureid,id:t.id,fttype:t.fttype,lweight:t.weight,date:e.date}};var i="authdata/ExecDataByConfig",s=e.requestParam;Object(p["n"])(i,s).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.getCreateList1()}))}))},handleUpdate:function(t){this.getDownList(),this.dialogFull=!1,this.create.dialogStatus="update",this.create.dialogFormVisible=!0,t.tmrid2=t.tmrid,this.create.temp=Object.assign({},t),this.create.temp.mytmrname=t.tmrname,this.create.temp.mytmrid=t.tmrid,this.create.checkBarList=[],this.getCreateList1()},updateData:function(){var t=this;this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a="authdata/PostDataByName",i={name:"updateLppdate"};t.create.temp.pastureid=n.a.get("pastureid"),t.create.temp.times=parseInt(t.create.temp.times),t.create.temp.sumcowcount=0,t.create.temp.date=t.date,i.parammaps=t.create.temp,i.parammaps.tmrid=t.create.temp.mytmrid,i.parammaps.tmrname=t.create.temp.mytmrname,Object(p["n"])(a,i).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},close:function(){var t=this;if("create"==this.create.dialogStatus){this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);for(var e="authdata/lpplandtl/restore/day",a={old:[]},i=0;i<this.create.list2.length;i++)this.$set(this.create.list2[i],"date",this.date);a.new=this.create.list2,Object(p["n"])(e,a).then((function(e){"fail"!==e.msg&&(t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList())}))}else{this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);for(var s="authdata/lpplandtl/restore/day",r={},l=0;l<this.create.temp.arrList.length;l++)this.$set(this.create.temp.arrList[l],"date",this.date);for(var n=0;n<this.create.list2.length;n++)this.$set(this.create.list2[n],"date",this.date);r.old=this.create.temp.arrList,r.new=this.create.list2,Object(p["n"])(s,r).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}},changeEquipment:function(t,e,a){var i=this,s=this.equipmentList.find((function(e){return e.id==t})).tclassname,r=this.equipmentList.find((function(e){return e.id==t})).maxstirfeed;if("固定式"==s)return this.$message({type:"error",message:"固定式设备无法撒料,请选择撒料设备",duration:2e3}),void this.getCreateList2();for(var l={},n=0;n<this.create.list2.length;n++)this.create.list2[n].fttype==e&&this.create.list2[n].id==a&&(this.create.list2[n].tmrname=this.equipmentList.find((function(e){return e.id===t})).tname,l=this.create.list2[n],parseFloat(this.create.list2[n].weight)>parseFloat(r)&&(l.weight=r));this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateLpplandtl1Tmrdate",type:"e",parammaps:{tmrid:l.tmrid,tmrname:l.tmrname,id:l.id,pastureid:this.create.temp.pastureid,date:this.date}},Object(p["b"])(this.requestParam).then((function(t){"fail"===t.msg?i.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(i.getCreateList2(),i.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},move1:function(t,e){},changeLog1:function(t){for(var e=this,a=[],i=0;i<this.create.list2.length;i++){var s={};s.sort=i+1,s.id=this.create.list2[i].id,s.pastureid=this.create.list2[i].pastureid,a.push(s)}this.requestParam={},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:"updateLpplandtlSortonedate",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",sort:"@insertSpotList.sort",date:this.date}},Object(p["b"])(this.requestParam).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getCreateList2(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},start1:function(t){},end1:function(t,e){},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(){for(var e=0;e<t.selectList.length;e++)t.$set(t.selectList[e],"date",t.date);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:"deleteLppdate",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",date:"@insertSpotList.date"}};var a="authdata/ExecDataByConfig",i=t.requestParam;Object(p["n"])(a,i).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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},rowDrop:function(){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&&1!=e.isOrder||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)}})},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a+1,i.date=this.date,i.id=this.table.list[a].id,i.pastureid=this.table.list[a].pastureid,e.push(i)}var s="authdata/trains/day",r=e;Object(p["n"])(s,r).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.table.getdataListParm.parammaps.refresh=1,t.getList(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.table.getdataListParm.parammaps.refresh=1,this.getList(),this.isOrder=!0},handleTakeEffect:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否生效?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].sel=1;var a={common:{returnmap:"0"},data:[]};a.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},a.data[0].children=[],a.data[0].children[0]={name:"UpdateLpplandateSel",type:"e",parammaps:{sel:"@insertSpotList.sel",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}};var i="authdata/ExecDataByConfig";Object(p["n"])(i,a).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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleDisable:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否禁用?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].sel=0;var a={common:{returnmap:"0"},data:[]};a.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},a.data[0].children=[],a.data[0].children[0]={name:"UpdateLpplandateSel",type:"e",parammaps:{sel:"@insertSpotList.sel",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}};var i="authdata/ExecDataByConfig";Object(p["n"])(i,a).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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleEmpty:function(){for(var t=this,e=[],a=0;a<this.create.list2.length;a++){var i={};i.pastureid=this.create.list2[a].pastureid,i.id=this.create.list2[a].fpdid,i.fttype=this.create.list2[a].fttype,i.lweight="-"+this.create.list2[a].weight,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deleteLpplandtl1DateByLppid",type:"e",parammaps:{lppid:this.create.temp.id,pastureid:n.a.get("pastureid"),date:this.date}},this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"updateFpdetailUsedate",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",id:"@insertSpotList.id",fttype:"@insertSpotList.fttype",lweight:"@insertSpotList.lweight",date:this.date}},Object(p["b"])(this.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.getCreateList1())}))}}},h=u,b=(a("dc7d"),a("3d65"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"f0b8ee9a",null);e["default"]=g.exports},"457e":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",staticStyle:{width:"100%",height:"385px"}})},s=[],r=a("313e"),l=a.n(r);a("2934"),a("b76a"),a("a78e"),a("ed08"),a("333d");a("817d");var n={name:"LineChart",props:{chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.renderChart(t)}}},mounted:function(){this.renderChart(this.chartData),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,a={title:{text:"Stacked Line"},tooltip:{trigger:"axis"},legend:{data:t.legendArr,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"8%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:t.xAxisArr}],yAxis:[{type:"value",name:"kg"}],series:function(e){for(var a=[],i=0;i<t.xAxisArr.length;i++){var s={name:t.legendArr[i],data:t.dataArr[i],type:"line",emphasis:{label:{show:!0,position:"inside"}}};a.push(s)}return a}()};setTimeout((function(){e.chart||(e.chart=l.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(a),e.chart.setOption(e.chartOpt)}),0)}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);e["a"]=d.exports},4651:function(t,e,a){},"467b":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="M471.478 760.017v-13.86c0-3.691 0.296-8.036 0.933-12.959H243.917c-16.022 0-29.751-5.494-41.142-16.573-11.433-11.071-17.129-24.604-17.129-40.599 0-15.998 5.696-29.695 17.129-41.096 11.391-11.397 25.12-17.06 41.142-17.06h269.168c23.417-36.341 54.446-65.292 92.954-86.781 38.55-21.573 80.966-32.318 127.21-32.318 4.934 0 10.159 0.165 15.725 0.493 5.527 0.246 11.09 0.737 16.661 1.395V271.732h-135.07c-17.256 0-32.046-3.856-44.414-11.566-12.326-7.711-22.315-17.225-30.05-28.626-7.692-11.319-13.389-23.787-17.086-37.32-3.702-13.535-5.571-26.166-5.571-37.895V41H104.725c-8.882 0-17.768 3.363-24.523 10.09-6.802 6.807-10.159 15.666-10.159 24.524v680.875H70v116.473c0 8.857 3.4 17.72 10.158 24.527 6.759 6.727 15.641 10.085 24.524 10.085h82.115c0.851 0.082 1.701 0.082 2.551 0.082h328.375c-14.792-20.916-26.185-43.799-34.217-68.735-8.036-24.933-12.028-51.262-12.028-78.904z m-268.7-356.309c11.391-11.072 25.119-16.568 41.142-16.568h346.862c16.025 0 29.754 5.497 41.185 16.568 11.391 11.074 17.088 24.607 17.088 40.602 0 15.994-5.696 29.692-17.088 41.09-11.431 11.401-25.16 17.062-41.185 17.062H243.92c-16.024 0-29.751-5.661-41.142-17.062-11.434-11.398-17.129-25.098-17.129-41.09 0-15.995 5.695-29.529 17.129-40.602z" p-id="190636" /><path d="M660.996 212.676h104.64V75.614c0-8.858-3.399-17.717-10.156-24.525C748.676 44.363 739.796 41 730.913 41H591.633v102.447c0 17.717 6.759 35.434 20.317 48.968 13.558 13.453 31.324 20.261 49.046 20.261z" p-id="190637" /><path d="M738.836 530.99c-131.967 0-238.946 103.31-238.946 230.749s106.98 230.749 238.946 230.749 238.946-103.31 238.946-230.749S870.803 530.99 738.836 530.99z m108.141 249.043l-148.011 95.299c-15.599 10.021-28.4 3.428-28.4-14.702V662.846c0-18.13 12.801-24.723 28.4-14.669l148.011 95.299c15.599 10.021 15.599 26.503 0 36.557z" p-id="190638" /></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){},"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",staticStyle:{position:"relactive"}},[a("div",[t._v(t._s(t.messagechart))]),t.isChart?a("el-button",{staticStyle:{"z-index":"1",position:"absolute",top:"10px",right:"100px"},attrs:{type:"text"},on:{click:function(e){return t.handleTable()}}},[t._v("切换表格")]):t._e(),t.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",height:"100%",background:"#fff","z-index":"1",position:"absolute",top:"0px",right:"0px"}},[a("el-button",{staticStyle:{float:"right","margin-right":"100px","line-height":"30px"},attrs:{type:"text"},on:{click:function(e){return t.handleChart()}}},[t._v("切换图表")]),a("el-button",{staticStyle:{"z-index":"1",position:"absolute",top:"7px",right:"200px"},attrs:{type:"text"},on:{click:function(e){return t.handleExport()}}},[t._v("导出")]),a("el-table",{staticStyle:{width:"100%"},attrs:{height:"310",border:"true",fit:"","highlight-current-row":"",data:t.data}},[t._l(t.schema,(function(t,e){return[a("el-table-column",{key:e,attrs:{prop:t.Column,label:t.Comment}})]}))],2)],1):t._e(),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"),a("d3b7"),a("159b"),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("a630"),a("3ca3"),a("6062"),a("ddb0"),a("d81d"),a("b0c0"),a("caad"),a("07ac"),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:"74px",right:"30px",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)}}}},p=d,m=a("2877"),u=Object(m["a"])(p,r,l,!1,null,null,null),h=u.exports,b=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=[],f={props:{data:{type:Array,default:function(){return[]}},schema:{type:Array,default:function(){return[]}},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}}},w=f,y=Object(m["a"])(w,b,g,!1,null,null,null),v=y.exports,L=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},x=[];a("817d");var P={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={};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,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)),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 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 p={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:"74px",right:"30px",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(p),e.chartOpt&&e.chart.setOption(e.chartOpt)}),0)}}}},k=P,_=Object(m["a"])(k,L,x,!1,null,null,null),S=_.exports,C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},F=[];a("817d");var D={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:"74px",right:"30px",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)}}}},T=D,O=Object(m["a"])(T,C,F,!1,null,null,null),j=O.exports,$=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},R=[];a("817d");var N={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)}}}},E=N,M=Object(m["a"])(E,$,R,!1,null,null,null),I=M.exports,W=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},q=[];a("817d");var B={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)}}}},A=B,z=Object(m["a"])(A,W,q,!1,null,null,null),H=z.exports,V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",style:t.chartStyle})},U=[];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:"74px",right:"30px",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)}}}},Y=K,G=Object(m["a"])(Y,V,U,!1,null,null,null),J=G.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:"74px",right:"30px",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(m["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("ed08"),ct=a("3537"),dt={inject:["reload"],components:{lineChart:h,DataTable:v,BarChart:S,StackBarChart:j,PieChart:H,HorizontalBar:I,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},messagechart:{type:String,required:!0}},data:function(){return{chartTypeList:nt,isTable:!1,isChart:!1}},computed:{allSelected:function(){return ct["a"].state.caculCols.concat(ct["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:{messagechart:function(t,e){},allSelected:{deep:!0,immediate:!0,handler:function(t){this.currentType.matchRule.isUsable(ct["a"].state.dimensions,ct["a"].state.caculCols),"table"===this.chartType?(this.isChart=!1,this.isTable=!1):(this.isChart=!0,this.isTable=!1)}}},methods:{handleTable:function(){this.isTable=!0,this.isChart=!1},handleChart:function(){this.isChart=!0,this.isTable=!1},handleExport:function(){var t=this.schema,e=this.data,a=[],i=[];t.forEach((function(t){a.push(t.Comment),i.push(t.Column)}));var s=[{tHeader:a,filterVal:i,tableDatas:e,sheetName:"自定义图表"}];Object(ot["c"])(s,"自定义图表",!0,"xlsx")},isUsable:function(t){return t.matchRule.isUsable(ct["a"].state.dimensions,ct["a"].state.caculCols)},switchChartType:function(t){t.matchRule.isUsable(ct["a"].state.dimensions,ct["a"].state.caculCols)&&this.$emit("update:chartType",t.type)}}},pt=dt,mt=(a("81cc"),Object(m["a"])(pt,i,s,!1,null,"07982d0e",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="M915.032 629.085c5.078-25.766 7.73-52.467 7.73-79.762 0-177.374-112.437-328.497-269.945-386.004-21.176-59.594-77.572-99.405-140.816-99.405s-119.64 39.811-140.816 99.405C213.639 220.826 101.24 371.949 101.24 549.323c0 27.259 2.65 53.96 7.73 79.762-50.418 49.047-59.786 126.622-22.491 186.26 37.294 59.638 111.143 85.176 177.312 61.317a408.967 408.967 0 0 0 248.211 83.422c93.243 0 179.241-31.068 248.212-83.46 66.168 23.86 140.016-1.677 177.311-61.315 37.294-59.639 27.927-137.214-22.49-186.26v0.036h-0.003zM675.445 799.402A297.34 297.34 0 0 1 512 848.057a297.35 297.35 0 0 1-163.446-48.655c21.511-45.899 18.277-99.575-8.591-142.557-26.867-42.984-73.7-69.408-124.382-70.18-15.92-126.121 49.721-248.502 163.595-305.009C404.774 331.421 456.039 362.7 512 362.7c55.96 0 107.227-31.28 132.825-81.044C758.7 338.163 824.34 460.544 808.421 586.665c-50.683 0.772-97.516 27.196-124.384 70.18-26.868 42.982-30.102 96.658-8.592 142.557z" p-id="197998" /></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="M630.21056 756.48H949.76v64h-319.54944v-64zM629.76 627.2h319.54944V691.2H629.76v-64z m0.45056 258.56H949.76v64h-319.54944V885.76z" p-id="219230" /><path d="M541.86496 948.4032v-169.30816c0-13.312 0.34304-58.19904 0.34304-58.19904s-0.75776-34.77504 0.57344-60.10368c1.29024-24.51968 45.696-30.66368 45.696-30.66368 0-22.52288 1.85344-41.83552 21.30944-58.21952 0.51712-4.096 1.024-7.68 1.54112-11.776 1.01888-7.168 3.072-12.8 5.12-17.92 2.04288-5.12 5.12-8.704 8.69888-12.288 3.584-3.584 7.68-6.656 12.288-9.728 4.608-3.072 9.216-7.16288 14.848-11.776 4.60288-4.096 8.69888-9.728 12.28288-16.896s7.168-14.336 9.728-22.016c3.072-8.192 5.632-17.408 7.68-26.624 5.632-1.536 11.264-4.608 16.384-9.216 4.60288-4.096 8.69888-9.728 12.28288-16.896s6.656-16.896 8.19712-28.672c1.01888-9.216 1.01888-16.896-0.51712-23.552-1.536-6.656-3.584-11.264-5.632-15.36a22.6816 22.6816 0 0 0-9.216-10.24c0.512-23.04-1.024-46.08-4.608-69.12-2.56-19.456-7.68-40.448-14.848-62.464-7.16288-22.016-17.92-42.496-32.256-60.928-6.656-8.192-14.84288-15.872-25.08288-24.064-10.24-7.68-22.02112-14.848-35.328-20.992-13.312-6.656-27.648-11.264-42.496-15.36-15.36-4.096-31.23712-6.144-48.128-6.144-13.312 0-27.136 1.536-40.96 3.584-14.336 2.56-28.16 6.656-41.984 12.288-13.824 5.632-27.648 13.824-40.96 24.064s-25.6 23.04-36.864 38.4c-11.264 16.384-20.48 35.328-26.112 56.32-6.144 20.992-10.24 40.448-12.288 58.88-3.072 22.016-4.096 44.032-3.584 65.536-4.608 6.144-8.192 11.776-10.24 18.432-2.56 5.632-4.096 12.288-4.608 20.48-1.024 7.68 0 16.896 3.072 26.112 3.072 9.728 6.656 17.408 10.24 22.528 4.096 5.12 7.68 9.216 11.264 12.288 4.096 3.072 8.192 5.12 12.288 6.144 3.072 9.216 5.632 17.92 8.704 26.624 3.072 7.68 6.144 14.848 9.216 22.016 3.584 7.168 7.68 12.8 12.288 16.896 9.728 8.192 18.432 15.872 26.112 23.552s12.288 17.92 13.312 31.744c0.512 8.704 1.024 16.896 1.024 24.576s-1.536 14.848-4.096 21.504c-2.56 7.168-7.168 13.824-13.824 20.992-6.656 7.168-15.872 14.34112-28.16 21.504-14.848 9.728-32.256 17.408-52.224 22.528s-107.008 35.32288-125.44 41.472-34.816 14.848-48.64 25.6c-13.824 10.75712-22.528 27.136-25.6 48.128-5.632 36.864-7.168 42.496-4.096 66.56 3.072 23.552 7.68 37.376 14.336 41.984 5.12 4.096 19.968 8.69888 45.056 14.336 24.576 5.632 180.224 34.816 360.448 34.816-2.03776-3.58912 33.4592 0.68608 33.4592-1.36192z" p-id="219231" /></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},"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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增合同")]):t._e(),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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:"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,"max-height":t.myHeight}},[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:"100","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}}),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:"50","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:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleFeedDelete(i)}}})]}}],null,!1,1135091533)}):t._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["see"==t.create.dialogStatus?a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]):t._e(),"see"!==t.create.dialogStatus?a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]):t._e(),"see"!==t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2)],1)},s=[],r=(a("7db0"),a("d3b7"),a("a434"),a("ac1f"),a("00b4"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("b0c0"),a("d81d"),a("2934")),l=a("333d"),n=a("ed08"),o=a("5c96"),c=a("a78e"),d=a.n(c),p=a("bc3a"),m=a.n(p),u=a("5f87"),h={name:"FeedContract",components:{Pagination:l["a"]},data:function(){return{dialogFull:!1,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:parseInt(d.a.get("pageCount")),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["d"])(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:{},download:{getdataListParm:{name:"getBigContractList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inputDatetime:"",startTime:"",stopTime:""}},list:[]},isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkFeed,checkProvider,insertBigContractUpload,insertContractupload",importParams:"合同编号,供应商,饲料名称,饲料价格(元),录入日期",sheetname:"Sheet1",pastureid:d.a.get("pastureid"),dateParams:"录入日期",requiredParams:"合同编号,供应商,饲料名称,饲料价格(元)",numParams:"饲料价格(元)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(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["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(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["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,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["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(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.offset=1,this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.providerid="",this.getList()},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),providerid:"",providername:"",emp:d.a.get("employename"),enable:1,operatetime:Object(n["d"])(new Date,"{y}-{m}-{d}")},this.create.list=[]},handleCreate:function(){this.resetCreateTemp(),this.dialogFull=!1,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(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;this.$refs["createTemp"].validate((function(e){if(e){if(t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),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.create.createTemp.operatetime=Object(n["d"])(t.create.createTemp.operatetime,"{y}-{m}-{d}"),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){if("fail"==e.msg){var a=new RegExp("key 'contractcode'");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.create.dialogFormVisible=!1,t.getList()}))}}))},handleUpdate:function(t){this.create.dialogStatus="update",this.dialogFull=!1,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;this.$refs["createTemp"].validate((function(e){if(e){if(t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),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.create.createTemp.operatetime=Object(n["d"])(t.create.createTemp.operatetime,"{y}-{m}-{d}"),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,enable:t.create.createTemp.enable}},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?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList())}))}}))},handleSee:function(t){this.dialogFull=!1,this.create.dialogStatus="see",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()},getSeeList:function(){var t=this;this.create.listLoading=!0,Object(r["c"])(this.create.getdataListParm).then((function(e){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(){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?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:"已取消删除"})}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/库存管理/饲料合同导入模板.xlsx";m()({method:"GET",url:i,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="饲料合同导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.name="DownloadContractList",this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(n["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(n["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["合同编号","供应商","饲料名称","饲料价格(元)","录入日期"],filterVal:["contractcode","providername","feedname","price","operatetime"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(n["c"])(a,"饲料合同",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["合同编号","供应商","饲料名称","饲料价格(元)","录入日期","错误信息"],r=["合同编号","供应商","饲料名称","饲料价格(元)","录入日期","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"合同管理导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(n["d"])(e[t]):e[t]}))}))}}},b=h,g=(a("b3ea"),a("317d"),a("2877")),f=Object(g["a"])(b,i,s,!1,null,"0d11720c",null);e["default"]=f.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 1329 1024",content:'<symbol class="icon" viewBox="0 0 1329 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="M710.675 190.286c-6.82 0-12.822-2.455-17.869-7.23-5.047-4.773-9.412-10.639-12.822-17.323-3.41-6.82-6.002-13.777-7.639-21.006-1.637-7.23-2.591-13.095-2.591-17.87V0h2.046c5.456 0 11.049 0.818 16.914 2.592 5.865 1.637 12.686 4.91 20.46 9.685 7.776 4.774 17.324 11.73 28.646 21.006s25.372 21.28 42.422 36.284c18.415 16.369 32.874 30.282 43.514 41.877 10.503 11.594 18.688 21.28 24.553 29.19s9.412 14.46 10.776 19.916 2.046 10.23 2.046 14.323v15.413H710.675zM829.35 573.86c31.373 0 60.7 5.73 87.981 17.324s51.153 27.554 71.614 48.151c20.46 20.46 36.556 44.332 48.151 71.613 11.594 27.281 17.324 56.609 17.324 87.982s-5.73 60.7-17.324 87.982-27.554 51.152-48.151 71.613c-20.461 20.461-44.332 36.557-71.614 48.151-27.28 11.595-56.608 17.324-87.981 17.324-30.692 0-59.61-5.73-86.891-17.324s-51.152-27.554-71.613-48.15-36.693-44.333-48.56-71.614c-11.868-27.281-17.87-56.609-17.87-87.982s6.002-60.7 17.87-87.982c12.003-27.281 28.099-51.152 48.56-71.613s44.332-36.557 71.613-48.151c27.281-11.458 56.336-17.324 86.89-17.324z m127.948 260.945c6.139 0 11.595-3.41 16.37-10.23s7.229-15.005 7.229-24.554-2.456-17.732-7.23-24.553-10.23-10.23-16.369-10.23H860.04V675.21c0-5.456-2.865-10.23-8.73-14.323-5.865-4.092-13.777-6.138-24.007-6.138-10.23 0-17.87 2.046-23.053 6.138-5.184 4.092-7.639 8.867-7.639 14.323v112.535c-1.364 5.456-2.046 9.548-2.046 12.276 0 9.549 2.455 17.733 7.23 24.553s10.23 10.23 16.368 10.23h139.134zM537.85 768.239c-0.682 4.774-0.955 9.548-0.955 14.322v15.414c0 30.692 4.365 59.61 13.231 86.89 8.867 27.282 21.143 52.926 36.83 76.797H224.797c-12.958 0-27.145-3.819-42.422-11.321-15.278-7.503-29.737-17.46-42.968-29.6s-24.417-26.19-33.283-41.877-13.231-32.055-13.231-49.106V131.905c0-14.323 3.41-29.191 10.23-44.469 6.684-15.277 15.55-29.463 26.463-42.422 10.912-12.959 23.462-23.735 37.784-32.192C181.693 4.365 196.697 0 212.384 0H604.28v127.812c0 13.641 2.046 27.827 6.138 42.423 4.092 14.732 10.64 28.509 19.506 41.467 8.866 12.959 20.052 23.598 33.692 31.783s29.737 12.276 48.152 12.276H861.13v254.67c-5.456-1.364-11.185-2.046-17.323-2.046h-18.552c-51.152 0-97.94 12.004-140.089 35.875-42.285 23.871-76.387 55.926-102.304 96.166H285.089c-17.733 0-32.874 6.139-45.56 18.415s-18.96 27.281-18.96 45.014 6.274 32.874 18.96 45.56c12.55 12.685 27.827 18.96 45.56 18.96l252.76-0.136z m-252.76-384.665c-17.733 0-32.874 6.274-45.56 18.96s-18.96 27.827-18.96 45.56 6.274 32.737 18.96 45.014c12.55 12.276 27.827 18.415 45.56 18.415h383.71c17.733 0 32.737-6.139 45.014-18.415s18.415-27.281 18.415-45.014-6.139-32.874-18.415-45.56c-12.277-12.686-27.281-18.96-45.014-18.96h-383.71z" p-id="190494" /></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:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备编号",clearable:""},model:{value:t.table.getdataListParm.parammaps.Code,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"Code",e)},expression:"table.getdataListParm.parammaps.Code"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"设备名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.name,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"name",e)},expression:"table.getdataListParm.parammaps.name"}}),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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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[t.table.pageNum?a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))]):a("span",[t._v("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.tclassname))]):t._e(),e.row.Edit?a("el-select",{on:{change:t.changeTclass},model:{value:e.row.tclassid,callback:function(a){t.$set(e.row,"tclassid",a)},expression:"scope.row.tclassid"}},t._l(t.equipmentTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.label,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[e.row.NoEdit?a("span",[t._v(t._s(e.row.Code))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{placeholder:"1-32个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.Code,callback:function(a){t.$set(e.row,"Code",a)},expression:"scope.row.Code"}}):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.name))]):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.name,callback:function(a){t.$set(e.row,"name",a)},expression:"scope.row.name"}}):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.infoCode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number",step:"0.01"},model:{value:e.row.infoCode,callback:function(a){t.$set(e.row,"infoCode",a)},expression:"scope.row.infoCode"}}):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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("b0c0"),a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("a434"),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:"否"}],equipmentTypeList:[{id:"0",name:"设备"},{id:"6",name:"推料车"},{id:"7",name:"推粪车"}],getdownListParm:{name:"getDictByName",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{dictname:"其他设备管理"}},table:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getTmrEquipment",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureId:n.a.get("pastureid"),Code:"",tclassname:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons(),this.getDownList()},methods:{getDownList:function(){var t=this;Object(r["c"])(this.getdownListParm).then((function(e){t.equipmentTypeList=e.data.list}))},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["c"])(this.table.getdataListParm).then((function(e){if(null!==e.data&&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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},changeTclass:function(t){this.table.temp.tclassname=this.equipmentTypeList.find((function(e){return e.id==t})).name},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.Code="",this.table.getdataListParm.parammaps.name="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){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,Code:"",name:"",infoCode:""})},createData:function(t){var e=this;if(this.table.temp.pastureId=n.a.get("pastureid"),this.table.temp.Code=t.Code,this.table.temp.name=t.name,this.table.temp.infoCode=t.infoCode,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,this.table.temp.tclassid=t.tclassid,""==this.table.temp.tclassid&&""==this.table.temp.Code&&""==this.table.temp.name&&""==this.table.temp.infoCode)return this.$message({type:"error",message:"设备类型/设备编号/设备名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.Code&&""==this.table.temp.name&&""==this.table.temp.infoCode)return this.$message({type:"error",message:"设备编号/设备名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.name&&""==this.table.temp.infoCode)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.name)return this.$message({type:"error",message:"设备名称不能为空",duration:2e3}),!1;if(""==this.table.temp.Code)return this.$message({type:"error",message:"设备编号不能为空",duration:2e3}),!1;if(""==this.table.temp.infoCode)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseInt(this.table.temp.infoCode)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return i.test(this.table.temp.Code)?(this.$message({type:"error",message:"设备编号不可输入特殊字符",duration:2e3}),!1):i.test(this.table.temp.name)?(this.$message({type:"error",message:"设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertTmrEquipment",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){if("fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("Duplicate entry :code"),i=new RegExp("Duplicate entry :infocode");if(a.test(t.data))return e.$notify({type:"error",message:"设备编号不可重复,请重新录入",duration:2e3}),!1;if(i.test(t.data))return e.$notify({type:"error",message:"数据采集编号不可重复,请重新录入",duration:2e3}),!1;e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}})))},createCancel:function(t){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(this.table.temp.pastureId=n.a.get("pastureid"),this.table.temp.Code=t.Code,this.table.temp.name=t.name,this.table.temp.infoCode=t.infoCode,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,this.table.temp.tclassid=t.tclassid,this.table.temp.tclassname=t.tclassname,this.table.temp.id=t.id,""==this.table.temp.tclassid&&""==this.table.temp.Code&&""==this.table.temp.name&&""==this.table.temp.infoCode)return this.$message({type:"error",message:"设备类型/设备编号/设备名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.Code&&""==this.table.temp.name&&""==this.table.temp.infoCode)return this.$message({type:"error",message:"设备编号/设备名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.name&&""==this.table.temp.infoCode)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.name)return this.$message({type:"error",message:"设备名称不能为空",duration:2e3}),!1;if(""==this.table.temp.Code)return this.$message({type:"error",message:"设备编号不能为空",duration:2e3}),!1;if(""==this.table.temp.infoCode)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseInt(this.table.temp.infoCode)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return i.test(this.table.temp.Code)?(this.$message({type:"error",message:"设备编号不可输入特殊字符",duration:2e3}),!1):i.test(this.table.temp.name)?(this.$message({type:"error",message:"设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateTmrEquipment",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){if("fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("Duplicate entry :code"),i=new RegExp("Duplicate entry :infocode");if(a.test(t.data))return e.$notify({type:"error",message:"设备编号不可重复,请重新录入",duration:2e3}),!1;if(i.test(t.data))return e.$notify({type:"error",message:"数据采集编号不可重复,请重新录入",duration:2e3}),!1;e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}})))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.name="deleteTmrEquipment",e.requestParam.parammaps={},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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择设备信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){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:"deleteTmrEquipment",type:"e",parammaps:{id:"@insertSpotList.id"}},Object(r["b"])(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())}))}))}}},p=d,m=(a("44dec"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"20a29454",null);e["default"]=u.exports},"4fe7":function(t,e,a){"use strict";a("22db")},5090:function(t,e,a){"use strict";a("7ab10")},"51a7":function(t,e,a){"use strict";a("b3dc")},"51ff":function(t,e,a){var i={"./GPS管理.svg":"7367","./SQL管理.svg":"e015","./TMR设备.svg":"6602","./Up.svg":"db76","./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","./down.svg":"d681","./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","./stack_bar.svg":"7bc6","./stack_bar_disabled.svg":"890a","./star.svg":"708a","./steam.svg":"26c4","./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":"5c67","./宾州筛.svg":"86e0","./库存管理.svg":"0ee2","./库存管理1.svg":"f5d5","./库存统计.svg":"7a8b","./库存预警.svg":"7971","./撒料计划.svg":"8f12","./操作日志.svg":"941a","./日执行计划.svg":"4770","./标准参数.svg":"bca1","./标签管理.svg":"b897","./栏舍剩料记录.svg":"2e2e","./栏舍生产.svg":"da07","./栏舍生产性能.svg":"83d2","./栏舍配方.svg":"4c14","./牧场信息.svg":"79dd","./牲畜类别.svg":"09c4","./用户管理.svg":"00b7","./盘点单.svg":"6071","./硬件测试.svg":"23ea","./粪便筛.svg":"caf8","./粪便评分.svg":"e178","./系统用量.svg":"523d","./系统管理.svg":"9ae9","./统计分析.svg":"ba5d","./自定义报表.svg":"5dec","./舍组栏.svg":"53da","./角色管理.svg":"4d638","./设备运行轨迹管理.svg":"eaa3","./过程分析.svg":"aad2","./运营管理.svg":"6f5e","./通知管理.svg":"f38c","./配方下发.svg":"a470","./配方干物质.svg":"7501","./配方模板.svg":"cbee","./配方计划.svg":"4faf","./配方评估.svg":"1113","./铲车管理.svg":"f764","./集团信息.svg":"4148","./预混计划.svg":"9f50","./饲喂效率.svg":"a445","./饲料分类.svg":"a762","./饲料合同.svg":"8642","./饲料表.svg":"7403","./首页.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="M951.4 451.9L545 77.5c-17.9-18-46.8-18-64.7 0L72.4 451.9c-14.4 14.5-8.3 42.8 0.4 60.1H176v419.8c0 15.5 12.7 28.2 28.2 28.2h615.6c15.5 0 28.2-12.7 28.2-28.2V512h103.2c8.9-17.4 14.5-45.6 0.2-60.1z m-223.5 178L588 769.8c-5.3 5.3-12.4 8.2-19.9 8.2h-2.6c-6.3 0-11.4-5.1-11.4-11.4V666H316.3c-15.6 0-28.2-12.6-28.2-28.2v-55.7c0-15.6 12.6-28.2 28.2-28.2h237.9V453.4c0-6.3 5.1-11.4 11.4-11.4h2.6c7.5 0 14.6 3 19.9 8.2L728 590.1c10.9 11 10.9 28.8-0.1 39.8z" p-id="216655" /></symbol>'});l.a.add(n);e["default"]=n},"52cd":function(t,e,a){"use strict";a("8636")},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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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:"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,"max-height":t.myHeight},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":"95px",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":"80px",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":"58px",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":"50px",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":"50px",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":"58px",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":"50px",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":"80px",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":"50px",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":"60px",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":"58px",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":"70px",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":"58px",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":"50px",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":"58px",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":"83px",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:"80","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",["create"==t.create.dialogStatus?a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{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):a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barname"}},[a("el-input",{ref:"barname",staticClass:"filter-item",attrs:{disabled:"",placeholder:"barname"},model:{value:t.create.temp.barname,callback:function(e){t.$set(t.create.temp,"barname",e)},expression:"create.temp.barname"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牲畜类别:",prop:"cowclassid"}},["create"==t.create.dialogStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"牲畜类别"},on:{change:t.changeParent},model:{value:t.create.temp.cowclassid,callback:function(e){t.$set(t.create.temp,"cowclassid",e)},expression:"create.temp.cowclassid"}},t._l(t.parentList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1):t._e()],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:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",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:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2)],1)},s=[],r=a("ade3"),l=(a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),n=a("a78e"),o=a.n(n),c=a("ed08"),d=a("333d"),p=a("5c96"),m=a("bc3a"),u=a.n(m),h=a("5f87"),b={name:"Performance",components:{Pagination:d["a"]},data:function(){var t;return t={dialogFull:!1,isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],houseNameList:[],livestockList:[],parentList:[]},Object(r["a"])(t,"livestockList",[]),Object(r["a"])(t,"table",{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:50,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),barid:"",cowclass:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(t,"create",{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:o.a.get("pastureid"),productdate:Object(c["d"])(new Date,"{y}-{m}-{d}"),emp:o.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:o.a.get("pastureid")}},noteTakerList:[]}),Object(r["a"])(t,"textMap",{create:"新增",update:"编辑"}),Object(r["a"])(t,"requestParam",{}),Object(r["a"])(t,"download",{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),barid:"",cowclass:"",startTime:"",stopTime:"",inputDatetime:""}},list:[]}),Object(r["a"])(t,"isokDisable",!1),Object(r["a"])(t,"selectList",[]),Object(r["a"])(t,"rowStyle",{maxHeight:"30px",height:"30px"}),Object(r["a"])(t,"cellStyle",{padding:"0px"}),Object(r["a"])(t,"myHeight",document.documentElement.clientHeight-85-150-45),t},computed:{headers:function(){return{token:Object(h["a"])()}},uploadData:function(){return{name:"checkbarname,checkclassname,insertBarmilkUpload",importParams:"栏舍名称,牲畜类别,牛头数,环境温度(℃),平均月龄,体重(kg),日增重(kg),怀孕天数,胎次,平均泌乳天数,产奶量(kg/头),乳脂率(%),乳蛋白率(%),乳糖率(%),记录人,生效日期",sheetname:"Sheet1",pastureid:o.a.get("pastureid"),dateParams:"生效日期",requiredParams:"栏舍名称",numParams:"牛头数,环境温度(℃),平均月龄,体重(kg),日增重(kg),怀孕天数,胎次,平均泌乳天数,产奶量(kg/头),乳脂率(%),乳蛋白率(%),乳糖率(%)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},created:function(){this.getList(),this.getDownList(),this.getDownList2(),this.getButtons()},methods:{getButtons:function(){var t="Performance",e=Object(l["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(l["d"])(this.requestParams).then((function(e){t.houseNameList=e.data.getBarListEnable.list,t.livestockList=e.data.getCowclassListEnable.list}))},getDownList2:function(){var t=this;Object(l["d"])([{name:"getDictByName",offset:0,pagecount:0,params:["牲畜父类"]}]).then((function(e){t.parentList=e.data.getDictByName.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["c"])(this.table.getdataListParm).then((function(e){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(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(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.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:o.a.get("pastureid"),productdate:Object(c["d"])(new Date,"{y}-{m}-{d}"),emp:o.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},changeParent:function(t){this.create.temp.cowclass=this.parentList.find((function(t){return t.id===item})).label,this.create.temp.bigcowclass=this.parentList.find((function(t){return t.id===item})).label},getNoteTakerList:function(){var t=this;Object(l["c"])(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}else t.create.noteTakerList=[]}))},handleCreate:function(){this.dialogFull=!1,this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData: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=/^(([1-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 r=/^(?:[1-9]|1[0-9])$/;if(""!==t.create.temp.fetal&&!r.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(l["f"])(t.requestParam).then((function(e){if("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}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),"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;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=/^(([1-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 r=/^(?:[1-9]|1[0-9])$/;if(""!==t.create.temp.fetal&&!r.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(l["f"])(t.requestParam).then((function(e){if("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}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),"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){this.dialogFull=!1,t.barid=String(t.barid),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=""),"0"==this.create.temp.dayspre&&(this.create.temp.dayspre=""),"0"==this.create.temp.fetal&&(this.create.temp.fetal=""),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=/^(([1-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 r=/^(?:[1-9]|1[0-9])$/;if(""!==t.create.temp.fetal&&!r.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(l["f"])(t.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):(t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),"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;p["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(l["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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍",duration:2e3}):p["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{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:"deleteBarmilk",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(l["b"])(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())}))}))},handleCopy:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍",duration:2e3}):1==this.selectList.length?p["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(l["f"])(t.requestParam).then((function(e){if("fail"===e.msg){var a=new RegExp("key 'barid'");if(a.test(e.data))return void t.$notify({type:"warning",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){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/栏舍生产/栏舍生产性能导入模板.xlsx";u()({method:"GET",url:i,data:a,headers:{token:Object(h["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="栏舍生产性能导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(c["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(c["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(l["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["栏舍名称","牲畜类别","牛头数","环境温度(℃)","平均月龄","体重(kg)","日增重(kg)","怀孕天数","胎次","平均泌乳天数","产奶量(kg/头)","乳脂率(%)","乳蛋白率(%)","乳糖率(%)","记录人","生效日期"],filterVal:["barname","cowclass","cowsum","tem","avgmonthage","bw","dayw","dayspre","fetal","avgdim","product","fat","pro","lactose","emp","productdate"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(c["c"])(a,"栏舍生产性能",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","牲畜类别","牛头数","环境温度(℃)","平均月龄","体重(kg)","日增重(kg)","怀孕天数","胎次","平均泌乳天数","产奶量(kg/头)","乳脂率(%)","乳蛋白率(%)","乳糖率(%)","记录人","生效日期","错误信息"],r=["栏舍名称","牲畜类别","牛头数","环境温度(℃)","平均月龄","体重(kg)","日增重(kg)","怀孕天数","胎次","平均泌乳天数","产奶量(kg/头)","乳脂率(%)","乳蛋白率(%)","乳糖率(%)","记录人","生效日期","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"栏舍生产性能导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(c["d"])(e[t]):e[t]}))}))}}},g=b,f=a("2877"),w=Object(f["a"])(g,i,s,!1,null,null,null);e["default"]=w.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.apply(null,arguments)}},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("4e82"),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:"30px",height:"30px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"deptname"},nodeKey:"id",defaultCheckedKeys:[]}},created:function(){this.getList()},methods:{popoverHide:function(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["c"])(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["q"])(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})):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})})))}))},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})}))}))}}},p=d,m=a("2877"),u=Object(m["a"])(p,i,s,!1,null,null,null);e["default"]=u.exports},"53ca7":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:"GPS编号",clearable:""},model:{value:t.table.getdataListParm.parammaps.gpsCode,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"gpsCode",e)},expression:"table.getdataListParm.parammaps.gpsCode"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"GPS名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.gpsName,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"gpsName",e)},expression:"table.getdataListParm.parammaps.gpsName"}}),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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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[t.table.pageNum?a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))]):a("span",[t._v("1")])]}}])}),a("el-table-column",{attrs:{label:"GPS编号","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.gpsCode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{placeholder:"1-32个字符",type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:e.row.gpsCode,callback:function(a){t.$set(e.row,"gpsCode",a)},expression:"scope.row.gpsCode"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"GPS名称","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.gpsName))]):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.gpsName,callback:function(a){t.$set(e.row,"gpsName",a)},expression:"scope.row.gpsName"}}):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-select",{on:{change:function(a){t.handleAssociatedDevicesChange(a,e.row)}},model:{value:e.row.tmrId,callback:function(a){t.$set(e.row,"tmrId",a)},expression:"scope.row.tmrId"}},t._l(t.associatedDevicesList,(function(t){return a("el-option",{key:t.id,attrs:{label:"名称:"+t.tname+" 编号:"+t.eqcode+"类型:"+t.tclassname,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[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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("b0c0"),a("7db0"),a("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("a434"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"ManagementGPS",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],associatedDevicesList:[{id:0,name:"设备001",name2:"00123",name3:"铲车"},{id:1,name:"设备002",name2:"00124",name3:"铲车"},{id:2,name:"设备003",name2:"00125",name3:"铲车"}],getDownListParm:{name:"getTMRList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),eqtype:"1"}},table:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getGps",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),gpsCode:"",tclassname:"",enable:"",eqtype:"1"}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getDownList(),this.getList(),this.getButtons()},methods:{getButtons:function(){var t="ForkliftManagement",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["c"])(this.getDownListParm).then((function(e){null!==e.data.list?t.associatedDevicesList=e.data.list:t.associatedDevicesList=[]}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(null!==e.data&&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=[];t.table.total=t.table.list.length,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.gpsCode="",this.table.getdataListParm.parammaps.gpsName="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},handleAssociatedDevicesChange:function(t,e){e.associatedDevices=this.associatedDevicesList.find((function(e){return e.id===t})).name},handleCreate:function(){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,gpsCode:"",gpsName:"",tmrId:"",remark:""})},createData:function(t){var e=this;if(this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.gpsCode=t.gpsCode,this.table.temp.gpsName=t.gpsName,this.table.temp.tmrId=t.tmrId,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,""==this.table.temp.gpsCode&&""==this.table.temp.gpsName)return this.$message({type:"error",message:"GPS编号/GPS名称不能为空",duration:2e3}),!1;if(""==this.table.temp.gpsCode&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"GPS编号不能为空",duration:2e3}),!1;if(""==this.table.temp.gpsName)return this.$message({type:"error",message:"GPS名称不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return a.test(this.table.temp.gpsCode)?(this.$message({type:"error",message:"GPS编号不可输入特殊字符",duration:2e3}),!1):a.test(this.table.temp.tname)?(this.$message({type:"error",message:"GPS名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="insertGps",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},createCancel:function(t){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(this.table.temp.gpsCode=t.gpsCode,this.table.temp.gpsName=t.gpsName,this.table.temp.tmrId=t.tmrId,this.table.temp.enable=t.enable,this.table.temp.remark=t.remark,this.table.temp.id=t.id,""==this.table.temp.gpsCode&&""==this.table.temp.gpsName)return this.$message({type:"error",message:"GPS编号/GPS名称不能为空",duration:2e3}),!1;if(""==this.table.temp.gpsCode&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"GPS编号不能为空",duration:2e3}),!1;if(""==this.table.temp.gpsName)return this.$message({type:"error",message:"GPS名称不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return a.test(this.table.temp.gpsCode)?(this.$message({type:"error",message:"GPS编号不可输入特殊字符",duration:2e3}),!1):a.test(this.table.temp.tname)?(this.$message({type:"error",message:"GPS名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updateGps",this.requestParam.parammaps=this.table.temp,void Object(r["f"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.name="deleteGps",e.requestParam.parammaps={},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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{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:"deleteGps",type:"e",parammaps:{id:"@insertSpotList.id"}},Object(r["b"])(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())}))}))}}},p=d,m=(a("6ab7"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"3e827e22",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 1371 1024",content:'<symbol class="icon" viewBox="0 0 1371 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-舍组栏"><defs><style type="text/css"></style></defs><path d="M836.266667 796.444444h-62.577778c-11.377778 0-22.755556 11.377778-22.755556 22.755556v176.355556c0 17.066667-11.377778 28.444444-28.444444 28.444444H443.733333c-17.066667 0-28.444444-11.377778-28.444444-28.444444v-176.355556c0-11.377778-11.377778-22.755556-22.755556-22.755556h-34.133333c-11.377778 0-22.755556 11.377778-22.755556 22.755556v176.355556c0 17.066667-11.377778 28.444444-28.444444 28.444444H51.2c-28.444444 0-51.2-22.755556-51.2-51.2V164.977778c0-5.688889 5.688889-17.066667 11.377778-22.755556L147.911111 11.377778c11.377778-11.377778 28.444444-11.377778 39.822222-5.688889l136.533334 136.533333c5.688889 5.688889 5.688889 11.377778 5.688889 17.066667v102.4c0 17.066667 11.377778 22.755556 28.444444 22.755555H398.222222c11.377778 0 22.755556-11.377778 22.755556-22.755555V164.977778c0-5.688889 5.688889-17.066667 11.377778-22.755556L568.888889 11.377778c11.377778-11.377778 28.444444-11.377778 39.822222 0L739.555556 142.222222c5.688889 5.688889 5.688889 11.377778 5.688888 17.066667v102.4c0 11.377778 11.377778 22.755556 22.755556 22.755555h39.822222c11.377778 0 22.755556-11.377778 22.755556-22.755555V164.977778c0-5.688889 5.688889-17.066667 11.377778-22.755556L978.488889 11.377778c11.377778-11.377778 28.444444-11.377778 39.822222 0l136.533333 136.533333c5.688889 5.688889 5.688889 11.377778 5.688889 17.066667v398.222222M329.955556 705.422222h62.577777c11.377778 0 22.755556-11.377778 22.755556-22.755555V403.911111c0-11.377778-11.377778-22.755556-22.755556-22.755555h-34.133333c-17.066667-5.688889-28.444444 5.688889-28.444444 22.755555v301.511111z m420.977777 0h62.577778c11.377778 0 22.755556-11.377778 22.755556-22.755555V403.911111c0-11.377778-11.377778-22.755556-22.755556-22.755555h-39.822222c-11.377778 0-22.755556 11.377778-22.755556 22.755555v301.511111z" p-id="218224" /><path d="M1365.333333 716.8c0-11.377778-11.377778-22.755556-22.755555-22.755556H1308.444444c-28.444444 0-51.2-11.377778-68.266666-39.822222-17.066667-22.755556-11.377778-56.888889 0-79.644444l17.066666-28.444445c5.688889-11.377778 0-28.444444-11.377777-34.133333l-45.511111-22.755556c-11.377778-5.688889-28.444444-5.688889-34.133334 5.688889l-17.066666 28.444445c-11.377778 22.755556-39.822222 39.822222-68.266667 39.822222s-51.2-17.066667-68.266667-39.822222l-17.066666-28.444445c-5.688889-11.377778-22.755556-17.066667-34.133334-5.688889l-45.511111 22.755556c-11.377778 5.688889-17.066667 22.755556-11.377778 34.133333l17.066667 28.444445c17.066667 22.755556 17.066667 51.2 0 79.644444-17.066667 22.755556-39.822222 39.822222-68.266667 39.822222h-34.133333c-11.377778 0-22.755556 11.377778-22.755556 22.755556v51.2c0 11.377778 11.377778 22.755556 22.755556 22.755556h34.133333c28.444444 0 51.2 11.377778 68.266667 39.822222 17.066667 22.755556 11.377778 56.888889 0 79.644444l-17.066667 28.444445c-5.688889 11.377778 0 28.444444 11.377778 34.133333l45.511111 22.755556c11.377778 5.688889 28.444444 5.688889 34.133334-5.688889l17.066666-28.444445c11.377778-22.755556 39.822222-39.822222 68.266667-39.822222s51.2 17.066667 68.266667 39.822222l17.066666 28.444445c5.688889 11.377778 22.755556 17.066667 34.133334 5.688889l45.511111-22.755556c11.377778-5.688889 17.066667-22.755556 11.377777-34.133333l-11.377777-28.444445c-17.066667-22.755556-17.066667-51.2 0-79.644444 17.066667-22.755556 39.822222-39.822222 68.266666-39.822222h34.133334c11.377778 0 22.755556-11.377778 22.755555-22.755556l-5.688889-51.2z m-273.066666 130.844444c-56.888889 0-102.4-45.511111-102.4-102.4s45.511111-102.4 102.4-102.4 102.4 45.511111 102.4 102.4c-5.688889 56.888889-51.2 102.4-102.4 102.4z" p-id="218225" /></symbol>'});l.a.add(n);e["default"]=n},"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-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(t.myComponent1,{ref:"detail1",tag:"component"})],1),a("el-tab-pane",{attrs:{label:"预警参数",name:"second"}},[a(t.myComponent2,{ref:"detail2",tag:"component"})],1)],1)],1)},s=[],r=(a("d3b7"),a("3ca3"),a("ddb0"),a("75ce")),l=a("d88a"),n={name:"DefaultParameter",components:{Function:r["default"],EarlyWarning:l["default"]},data:function(){return{activeName:"first",myComponent1:null,myComponent2:null}},created:function(){this.detailComponent()},methods:{detailComponent:function(){if("first"==this.activeName){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"75ce"))};return t.myComponent1=e}if("second"==this.activeName){var i=this,s=function(){return Promise.resolve().then(a.bind(null,"d88a"))};return i.myComponent2=s}},handleTabClick:function(){if("first"==this.activeName){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"75ce"))};return t.myComponent1=e}if("second"==this.activeName){var i=this,s=function(){return Promise.resolve().then(a.bind(null,"d88a"))};return i.myComponent2=s}}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,"111351bb",null);e["default"]=d.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:"200","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",staticClass:"save",on:{click:function(e){return t.createData_again()}}},[t._v(" 确认新增 ")]):t._e(),a("el-button",{staticClass:"save",on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{staticClass:"minCancel",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",{staticClass:"save",on:{click:function(e){return t.updateDataRole()}}},[t._v(" 确认 ")]),a("el-button",{staticClass:"minCancel",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",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateMenu()}}},[t._v(" 确认 ")]),a("el-button",{staticClass:"minCancel",on:{click:function(e){t.dialogMenuVisible=!1}}},[t._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("d3b7"),a("ddb0"),a("b0c0"),a("4e82"),a("3de8")),l=a("6724"),n=a("61f7"),o=a("2934"),c=a("333d"),d=a("5c96"),p=a("a78e"),m=a.n(p),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:m.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:"30px",height:"30px"},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["m"])(this.getMenuParm).then((function(e){t.parentMenu=e.data}))},getList:function(){var t=this;this.listLoading=!0,Object(o["c"])(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["c"])(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["c"])(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){"fail"!==e.msg?(t.getList(),t.dialogDataRoleVisible=!1,t.$notify({title:"成功",message:"设置成功",type:"success",duration:2e3})):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})})))}))}}},h=u,b=a("2877"),g=Object(b["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},5697:function(t,e,a){"use strict";a("cef2")},"56d7":function(t,e,a){"use strict";a.r(e);var i={};a.r(i),a.d(i,"parseTime",(function(){return B["d"]})),a.d(i,"formatTime",(function(){return B["b"]})),a.d(i,"timeAgo",(function(){return z})),a.d(i,"numberFormatter",(function(){return H})),a.d(i,"toThousandFilter",(function(){return V})),a.d(i,"uppercaseFirst",(function(){return U}));a("e260"),a("e6cf"),a("cca6"),a("a79d"),a("d3b7"),a("159b"),a("b64b"),a("4de4");var s=a("2b0e"),r=a("8c4f"),l=(a("f5df1"),a("5c96")),n=a.n(l),o=(a("0fae"),a("299f")),c=a.n(o),d=(a("4ba7"),a("f0d9"),a("be35"),a("b20f"),a("dc21")),p=a("e594"),m=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)},u=[],h={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}))}}},b=h,g=(a("5c0b"),a("2877")),f=Object(g["a"])(b,m,u,!1,null,null,null),w=f.exports,y=a("4360"),v=a("a18c"),L=a("9225"),x=(a("d81d"),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}})])}),P=[],k=a("61f7"),_={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(k["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%")}}}},S=_,C=(a("68fa"),Object(g["a"])(S,x,P,!1,null,"f9f7fefc",null)),F=C.exports;s["default"].component("svg-icon",F);var D=a("51ff"),T=function(t){return t.keys().map(t)};T(D);var O=a("5530"),j=a("1da1"),$=(a("96cf"),a("323e")),R=a.n($),N=(a("a5d8"),a("5f87")),E=(a("99af"),a("83d6")),M=a.n(E),I=M.a.title||"Vue Admin Template";function W(t){return t?"".concat(t," - ").concat(I):"".concat(I)}R.a.configure({showSpinner:!1});var q=["/login"];v["b"].beforeEach(function(){var t=Object(j["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(R.a.start(),document.title=W(e.meta.title),s=Object(N["a"])(),!s){t.next=35;break}if("/login"!==e.path){t.next=9;break}i({path:"/"}),R.a.done(),t.next=33;break;case 9:if(r=y["a"].getters.roles&&y["a"].getters.roles.length>0,!r){t.next=14;break}i(),t.next=33;break;case 14:return t.prev=14,t.next=17,y["a"].dispatch("user/getInfo");case 17:return n=t.sent,o=n.roles,t.next=21,y["a"].dispatch("permission/generateRoutes",o);case 21:c=t.sent,v["b"].addRoutes(c),i(Object(O["a"])(Object(O["a"])({},e),{},{replace:!0})),t.next=33;break;case 26:return t.prev=26,t.t0=t["catch"](14),t.next=30,y["a"].dispatch("user/resetToken");case 30:l["Message"].error(t.t0||"Has Error"),i("/login"),R.a.done();case 33:t.next=36;break;case 35:-1!==q.indexOf(e.path)?i():(i({path:"/login"}),R.a.done());case 36:case"end":return t.stop()}}),t,null,[[14,26]])})));return function(e,a,i){return t.apply(this,arguments)}}()),v["b"].afterEach((function(){R.a.done()}));a("a9e3"),a("ac1f"),a("5319"),a("b680"),a("25f0"),a("fb6a");var B=a("ed08");function A(t,e){return 1===t?t+e:t+e+"s"}function z(t){var e=Date.now()/1e3-Number(t);return e<3600?A(~~(e/60)," minute"):e<86400?A(~~(e/3600)," hour"):A(~~(e/86400)," day")}function H(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 V(t){return(+t||0).toString().replace(/^-?\d+/g,(function(t){return t.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function U(t){return t.charAt(0).toUpperCase()+t.slice(1)}var K=a("313e"),Y=a.n(K);s["default"].config.productionTip=!1;var G=50;d["a"]({release:"vislib@"+Object({NODE_ENV:"production",VUE_APP_BASE_API:"/",BASE_URL:"/"}).npm_package_version,dsn:"https://9d8ee0ea1a2749949dd1e641b0f7c071@o286322.ingest.sentry.io/5217806",integrations:[new p["a"]({Vue:s["default"],attachProps:!0})]}),s["default"].use(r["a"]),s["default"].use(G),s["default"].use(n.a,{i18n:function(t,e){return L["a"].t(t,e)}}),s["default"].use(c.a),Object.keys(i).forEach((function(t){s["default"].filter(t,i[t])})),s["default"].use(Y.a),new s["default"]({el:"#app",router:v["b"],store:y["a"],i18n:L["a"],render:function(t){return t(w)}}),s["default"].directive("loadmore",{bind:function(t,e){var a=t.querySelector(".el-table__body-wrapper");a.addEventListener("scroll",(function(){var t=0,a=this.scrollHeight-this.scrollTop-this.clientHeight;a<=t&&e.value()}))}})},"56e7":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-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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增盘点单")]):t._e(),a("el-button",{staticClass:"success",attrs:{icon:"el-icon-upload2"},on:{click:t.handleInventoryList}},[t._v("下载盘点单")]),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-button",{staticClass:"import",staticStyle:{float:"right","margin-right":"10px"},attrs:{icon:"el-icon-upload2"},on:{click:function(e){return t.handleExport(1)}}},[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:"100","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,icon:"el-icon-search"},on:{click:function(a){return t.handleSee(e.row)}}}),e.$index+(t.table.pageNum-1)*t.table.pageSize+1==1&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),e.$index+(t.table.pageNum-1)*t.table.pageSize+1==1&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(a){return t.handleUpdate(e.row)}}}):t._e(),e.$index+(t.table.pageNum-1)*t.table.pageSize+1==1&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),e.$index+(t.table.pageNum-1)*t.table.pageSize+1==1&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(a){return t.handleRowDelete(e.row)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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||"update"==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"},["see"===t.create.dialogStatus?a("el-button",{staticClass:"import",attrs:{icon:"el-icon-upload2",disabled:t.isokDisable},on:{click:function(e){return t.handleExport(2)}}},[t._v("导出")]):t._e(),"see"===t.create.dialogStatus?a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]):t._e(),"create"==t.create.dialogStatus||"update"==t.create.dialogStatus?a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]):t._e(),"create"==t.create.dialogStatus||"update"==t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2)],1)},s=[],r=(a("ac1f"),a("00b4"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("2934")),l=a("333d"),n=a("ed08"),o=a("5c96"),c=a("a78e"),d=a.n(c),p=(a("bc3a"),a("5f87")),m={name:"InventoryList",components:{Pagination:l["a"]},data:function(){return{dialogFull:!1,table:{getdataListParm:{name:"getBigInventoryList",page:1,offset:1,pagecount:parseInt(d.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{create:"新增",see:"查看盘点单",update:"编辑"},create:{pickerOptions1:{disabledDate:this.disabledDate},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:d.a.get("pastureid"),remark:"",inventorydate:Object(n["d"])(new Date,"{y}-{m}-{d}"),createuser:d.a.get("employename")},rules:{},getdataListParm:{name:"getFeedstorageWeightList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),emp:d.a.get("employename")}},tableKey:0,list:[],total:0,listLoading:!0,getMaxdataParm:{name:"getInventoryMaxdate",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},maxDate:""},see:{getdataListParm:{name:"getInventoryList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{}}},requestParam:{},download:{getdataListParm:{name:"getBigInventoryList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},list:[]},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},computed:{headers:function(){return{token:Object(p["a"])()}},uploadData:function(){return{name:"checkFeed,insertBigInventoryUpload,insertInventoryUpload",importParams:"盘点日期,盘点人,备注,饲料名称,库存重量(kg),实际重量(kg)",sheetname:"Sheet1",pastureid:d.a.get("pastureid"),dateParams:"盘点日期",requiredParams:"盘点日期,饲料名称,库存重量(kg),实际重量(kg)",numParams:"实际重量(kg)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},created:function(){this.getButtons(),this.getList()},methods:{getButtons:function(){var t="InventoryList",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},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["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(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["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},handleSearch:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(n["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["d"])(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["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),remark:"",inventorydate:Object(n["d"])(new Date,"{y}-{m}-{d}"),createuser:d.a.get("employename")}},handleCreate:function(){this.resetCreateTemp(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.getMaxDate(),this.getCreateList()},disabledDate:function(t){return t.getTime()<new Date(this.create.maxDate)||t.getTime()>Date.now()},getMaxDate:function(){var t=this;Object(r["c"])(this.create.getMaxdataParm).then((function(e){t.create.maxDate=e.data.list[0].maxdate}))},getCreateList:function(){var t=this;this.create.listLoading=!0,Object(r["c"])(this.create.getdataListParm).then((function(e){if(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.factweight&&""!==t.stockweight&&(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]);for(var s=0;s<a.length;s++){var l=/^\d+(\.\d{1,2})?$/;if(!l.test(parseFloat(a[s].factweight)))return t.$message({type:"error",message:"实际重量请输入自然数并保留两位小数",duration:2e3}),!1}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["d"])(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){if("fail"===e.msg){var a=new RegExp("key 'inventorydate'");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.create.dialogFormVisible=!1,t.getList()}))}}))},handleSee:function(t){this.dialogFull=!1,this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},t),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["c"])(this.see.getdataListParm).then((function(e){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:"已取消删除"})}))},handleUpdate:function(t){this.dialogFull=!1,this.create.dialogStatus="update",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},t),this.see.getdataListParm.parammaps.pastureid=t.pastureid,this.see.getdataListParm.parammaps.id=t.id,this.getSeeList()},updateData:function(){},handleInventoryList:function(){var t=this;this.download.getdataListParm.name="getFeedstorageWeightList",this.download.getdataListParm.parammaps={},this.download.getdataListParm.parammaps.pastureid=d.a.get("pastureid"),this.download.getdataListParm.parammaps.emp=d.a.get("employename"),Object(r["c"])(this.download.getdataListParm).then((function(e){null!==e.data.list?t.download.list=e.data.list:t.download.list=[];var a=[{obj1:"1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;"},{obj1:"2、底部工作表名称不可更改,默认为:Sheet1;"},{obj1:"3、盘点日期,饲料名称为必填;"},{obj1:"4、饲料名称必须与系统基础数据-饲料表中匹配;"},{obj1:"5、实际重量为非负数,至多保留俩位小数;"},{obj1:"6、盘点日期为文本格式的年-月-日,例:2020-10-10,盘点日期不可与系统已存在日期重复;盘点日期需保持一致"},{obj1:"7、库存重量仅做参考,不与系统现有库存做校验;"},{obj1:"8、实际重量可仅填写部分,导入已填写实际重量的饲料生成盘点单。"},{obj1:"9、若有备注则填写在表格内容中第一个饲料行内即可;"}],i=[{tHeader:["盘点日期","盘点人","备注","饲料名称","库存重量(kg)","实际重量(kg)"],filterVal:["nowdate","emp","","feedname","stockweight",""],tableDatas:t.download.list,sheetName:"Sheet1"},{tHeader:["填写规范:"],filterVal:["obj1"],tableDatas:a,sheetName:"Sheet2"}];Object(n["c"])(i,"盘点单导入模板",!0,"xlsx")}))},handleExport:function(t){var e=this;1==t?(this.download.getdataListParm.parammaps.inputDatetime=this.table.getdataListParm.parammaps.inputDatetime,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(n["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(n["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),this.download.getdataListParm.name="getBigInventoryList",Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["盘点日期","盘点人","盘盈库存(kg)","盘亏库存(kg)","盈亏净值(kg)","备注"],filterVal:["inventorydate","createuser","moreWeight","lessWeight","differWeight","remark"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(n["c"])(a,"盘点单",!0,"xlsx")}))):(this.download.getdataListParm.name="getInventoryList",this.download.getdataListParm.parammaps=this.see.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(t){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"inventorydate",e.create.createTemp.inventorydate),e.$set(t.data.list[a],"createuser",e.create.createTemp.createuser),e.$set(t.data.list[a],"remark",e.create.createTemp.remark);null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var i=[{tHeader:["盘点日期","盘点人","备注","饲料名称","库存重量(kg)","实际重量(kg)","差值(kg)"],filterVal:["inventorydate","createuser","remark","feedname","stockweight","factweight","differ"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(n["c"])(i,"盘点-查看",!0,"xlsx")})))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["盘点日期","盘点人","备注","饲料名称","库存重量(kg)","实际重量(kg)","错误信息"],r=["盘点日期","盘点人","备注","饲料名称","库存重量(kg)","实际重量(kg)","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"盘点单报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(n["d"])(e[t]):e[t]}))}))}}},u=m,h=(a("c7d3"),a("3d1b"),a("2877")),b=Object(h["a"])(u,i,s,!1,null,"1433df47",null);e["default"]=b.exports},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},"57b2":function(t,e,a){},5811:function(t,e,a){"use strict";a("3012")},"586f":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-table"},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tableObj.listLoading,expression:"tableObj.listLoading"}],key:t.tableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tableObj.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[t.tableObj.pageNum?a("span",[t._v(t._s(e.$index+(t.tableObj.pageNum-1)*t.tableObj.pageSize+1))]):a("span",[t._v("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.date))])]}}])}),t._l(t.tableHead,(function(e,i){return a("el-table-column",{attrs:{label:e.label,"min-width":"130px",align:"center"}},t._l(e.children,(function(i,s){return a("el-table-column",{attrs:{label:i.label,property:e.value,"min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row[i.value]))])]}}],null,!0)})})),1)}))],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tableObj.total>0,expression:"tableObj.total>0"}],attrs:{total:t.tableObj.total,page:t.tableObj.getDataParameters.offset,limit:t.tableObj.getDataParameters.pagecount},on:{"update:page":function(e){return t.$set(t.tableObj.getDataParameters,"offset",e)},"update:limit":function(e){return t.$set(t.tableObj.getDataParameters,"pagecount",e)},pagination:t.getList}})],1)])},s=[],r=(a("2934"),a("b76a"),a("a78e")),l=a.n(r),n=(a("ed08"),a("333d")),o={name:"ChartTable",components:{Pagination:n["a"]},props:{},data:function(){return{tableHead:[{value:"txt1",label:"混料数据",children:[{value:"txt11",label:"理论重量-合计"},{value:"txt12",label:"理论重量-平均"},{value:"txt13",label:"理论重量-最大值"}]},{value:"txt2",label:"撒料数据",children:[{value:"txt21",label:"理论重量-合计"},{value:"txt22",label:"理论重量-平均"},{value:"txt23",label:"理论重量-最大值"}]}],tableObj:{getDataParameters:{name:"getDriverList",page:1,offset:1,pagecount:parseInt(l.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:l.a.get("pastureid"),dateType:"",type:"",dimension:"",mixture:[],spread:[]}},tableKey:0,list:[{id:1,date:1212,txt11:11,txt12:12,txt13:13,txt21:21,txt22:22,txt23:23},{id:1,date:1212,txt11:11,txt12:12,txt13:13,txt21:21,txt22:22,txt23:23},{id:1,date:1212,txt11:11,txt12:12,txt13:13,txt21:21,txt22:22,txt23:23}],total:0,listLoading:!1,temp:{}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{getList:function(){this.tableObj.listLoading=!1}}},c=o,d=(a("7f05"),a("2877")),p=Object(d["a"])(c,i,s,!1,null,"9d5c8b08",null);e["a"]=p.exports},"58ea":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-container1"},[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:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"统计类型"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},t._l(t.statisticalTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-checkbox",{staticStyle:{"margin-right":"10px"},on:{change:t.changeChecked},model:{value:t.tab.checked,callback:function(e){t.$set(t.tab,"checked",e)},expression:"tab.checked"}},[t._v("按日期统计")]),t.tab.isDriver?a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"驾驶员"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isFormulaName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"配方名称"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"栏舍名称"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牲畜名称"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"车次"},model:{value:t.tab.table.getdataListParm.parammaps.projname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"projname",e)},expression:"tab.table.getdataListParm.parammaps.projname"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"班次"},model:{value:t.tab.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"times",e)},expression:"tab.table.getdataListParm.parammaps.times"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"TMR名称"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isTMRName?a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"请选择TMR设备"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}},t._l(t.tab.TMRNameList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tmrloadname,value:t.tmrloadname}})})),1):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"},on:{click:t.handleDownload}},[t._v("导出")]),a("svg-icon",{staticClass:"down",staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpChart}})],1),a("div",{staticClass:"table",attrs:{id:"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,"max-height":t.myHeight2}},[t.tab.checked?a("el-table-column",{key:0,attrs:{sortable:"",label:"日期","min-width":"70px",align:"center",prop:"计划时间"}}):t._e(),t.tab.isDriver?a("el-table-column",{key:1,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),t.tab.isFormulaName?a("el-table-column",{key:2,attrs:{sortable:"",label:"配方名称","min-width":"70px",align:"center",prop:"配方名称"}}):t._e(),t.tab.isHouseName?a("el-table-column",{key:3,attrs:{sortable:"",label:"栏舍名称","min-width":"70px",align:"center",prop:"栏舍名称"}}):t._e(),t.tab.isLivestockType?a("el-table-column",{key:4,attrs:{sortable:"",label:"牲畜类别","min-width":"70px",align:"center",prop:"牲畜类别"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:5,attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:6,attrs:{sortable:"",label:"车次","min-width":"70px",align:"center",prop:"车次"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:7,attrs:{sortable:"",label:"班次","min-width":"70px",align:"center",prop:"班次"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:8,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:9,attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:10,attrs:{sortable:"",label:"班次","min-width":"70px",align:"center",prop:"班次"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:11,attrs:{sortable:"",label:"车次","min-width":"70px",align:"center",prop:"车次"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:12,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),a("el-table-column",{key:13,attrs:{sortable:"",label:"理论重量","min-width":"60px",align:"center",prop:"理论重量"}}),a("el-table-column",{key:14,attrs:{sortable:"",label:"实际重量","min-width":"60px",align:"center",prop:"实际重量"}}),a("el-table-column",{key:15,attrs:{sortable:"",label:"计划混料操作数","min-width":"60px",align:"center",prop:"计划混料操作数"}}),a("el-table-column",{key:16,attrs:{sortable:"",label:"已混料操作数","min-width":"50px",align:"center",prop:"已混料操作数"}}),a("el-table-column",{key:17,attrs:{sortable:"",label:"混料操作率","min-width":"60px",align:"center",prop:"混料操作率"}}),a("el-table-column",{key:18,attrs:{sortable:"",label:"混料误差值","min-width":"60px",align:"center",prop:"混料误差值"}}),a("el-table-column",{key:19,attrs:{sortable:"",label:"混料准确率","min-width":"60px",align:"center",prop:"混料准确率"}}),t.tab.isTrainNumber?a("el-table-column",{key:20,attrs:{sortable:"",label:"混料时间","min-width":"70px",align:"center",prop:"混料时间"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:21,attrs:{sortable:"",label:"等待时间","min-width":"70px",align:"center",prop:"等待时间"}}):t._e(),a("el-table-column",{key:22,attrs:{sortable:"",label:"混料自动跳转次数","min-width":"65px",align:"center",prop:"混料自动跳转次数"}}),a("el-table-column",{key:23,attrs:{sortable:"",label:"混料手动跳转次数","min-width":"65px",align:"center",prop:"混料手动跳转次数"}}),a("el-table-column",{key:24,attrs:{sortable:"",label:"取消次数","min-width":"70px",align:"center",prop:"取消次数"}}),a("el-table-column",{key:25,attrs:{sortable:"",label:"混料正确数","min-width":"70px",align:"center",prop:"混料正确数"}}),a("el-table-column",{key:26,attrs:{sortable:"",label:"混料正确率","min-width":"70px",align:"center",prop:"混料正确率"}}),a("el-table-column",{key:27,attrs:{sortable:"",label:"去除取消正确率","min-width":"60px",align:"center",prop:"去除取消正确率"}}),a("el-table-column",{key:28,attrs:{sortable:"",label:"标准差","min-width":"60px",align:"center",prop:"方差"}}),a("el-table-column",{key:29,attrs:{align:"center",width:"70",label:"操作","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee("1",i)}}})]}}])})],1),0==t.tab.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab.table.total)+"条")]):t._e(),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,"max-height":t.myHeight2}},[t.tab.checked?a("el-table-column",{key:0,attrs:{sortable:"",label:"日期","min-width":"70px",align:"center",prop:"计划时间"}}):t._e(),t.tab.isDriver?a("el-table-column",{key:1,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),t.tab.isFormulaName?a("el-table-column",{key:2,attrs:{sortable:"",label:"配方名称","min-width":"70px",align:"center",prop:"配方名称"}}):t._e(),t.tab.isHouseName?a("el-table-column",{key:3,attrs:{sortable:"",label:"栏舍名称","min-width":"70px",align:"center",prop:"栏舍名称"}}):t._e(),t.tab.isLivestockType?a("el-table-column",{key:4,attrs:{sortable:"",label:"牲畜类别","min-width":"70px",align:"center",prop:"牲畜类别"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:5,attrs:{sortable:"",label:"车次","min-width":"70px",align:"center",prop:"车次"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:6,attrs:{sortable:"",label:"班次","min-width":"70px",align:"center",prop:"班次"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:7,attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:8,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:9,attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:10,attrs:{sortable:"",label:"班次","min-width":"70px",align:"center",prop:"班次"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:11,attrs:{sortable:"",label:"车次","min-width":"70px",align:"center",prop:"车次"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:12,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),a("el-table-column",{key:13,attrs:{sortable:"",label:"理论重量","min-width":"60px",align:"center",prop:"理论重量"}}),a("el-table-column",{key:14,attrs:{sortable:"",label:"实际重量","min-width":"60px",align:"center",prop:"实际重量"}}),a("el-table-column",{key:15,attrs:{sortable:"",label:"计划撒料操作数","min-width":"60px",align:"center",prop:"计划撒料操作数"}}),a("el-table-column",{key:16,attrs:{sortable:"",label:"已撒料操作数","min-width":"50px",align:"center",prop:"已撒料操作数"}}),a("el-table-column",{key:17,attrs:{sortable:"",label:"撒料操作率","min-width":"60px",align:"center",prop:"撒料操作率"}}),a("el-table-column",{key:18,attrs:{sortable:"",label:"撒料误差值","min-width":"60px",align:"center",prop:"撒料误差值"}}),a("el-table-column",{key:19,attrs:{sortable:"",label:"撒料准确率","min-width":"60px",align:"center",prop:"撒料准确率"}}),t.tab.isTrainNumber?a("el-table-column",{key:20,attrs:{sortable:"",label:"撒料时间","min-width":"70px",align:"center",prop:"撒料时间"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:21,attrs:{sortable:"",label:"等待时间","min-width":"70px",align:"center",prop:"等待时间"}}):t._e(),a("el-table-column",{key:22,attrs:{sortable:"",label:"撒料自动跳转次数",width:"65px",align:"center",prop:"撒料自动跳转次数"}}),a("el-table-column",{key:23,attrs:{sortable:"",label:"撒料手动跳转次数",width:"65px",align:"center",prop:"撒料手动跳转次数"}}),a("el-table-column",{key:24,attrs:{sortable:"",label:"取消次数","min-width":"70px",align:"center",prop:"取消次数"}}),a("el-table-column",{key:25,attrs:{sortable:"",label:"撒料正确数","min-width":"70px",align:"center",prop:"撒料正确数"}}),a("el-table-column",{key:26,attrs:{sortable:"",label:"撒料正确率","min-width":"70px",align:"center",prop:"撒料正确率"}}),a("el-table-column",{key:27,attrs:{sortable:"",label:"去除取消正确率","min-width":"65px",align:"center",prop:"去除取消正确率"}}),a("el-table-column",{key:28,attrs:{sortable:"",label:"标准差","min-width":"60px",align:"center",prop:"方差"}}),a("el-table-column",{key:29,attrs:{align:"center",width:"70",label:"操作","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee("2",i)}}})]}}])})],1),0==t.tab.table2.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab.table2.total)+"条")]):t._e()],1),a("div",{staticClass:"AnalysisChart",attrs:{id:"AnalysisChart"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{"margin-bottom":"10px","margin-top":"10px"},attrs:{span:24}},[a("span",[t._v("图表查询时间:")]),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:t.changeAllSpecificDate},model:{value:t.tab.specificDate,callback:function(e){t.$set(t.tab,"specificDate",e)},expression:"tab.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.specificDate,expression:"tab.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},model:{value:t.tab.chartDate,callback:function(e){t.$set(t.tab,"chartDate",e)},expression:"tab.chartDate"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.specificDate,expression:"tab.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"130px","margin-right":"10px"},attrs:{placeholder:"请选择年份"},on:{change:t.changeAllYear},model:{value:t.tab.selectYear,callback:function(e){t.$set(t.tab,"selectYear",e)},expression:"tab.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"170px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.selectWeek,callback:function(e){t.$set(t.tab,"selectWeek",e)},expression:"tab.selectWeek"}},t._l(t.tab.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.specificDate,expression:"tab.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chartMonth,callback:function(e){t.$set(t.tab,"chartMonth",e)},expression:"tab.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:t.handleAllDate}},[t._v("确认")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpTop}})],1)],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("计划统计")]),t.tab.chart2.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart2")}},model:{value:t.tab.chart2.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart2.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart2")}},model:{value:t.tab.chart2.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart2.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart2.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart2.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart2.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,format:"yyyy-MM","value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart2.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart2.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart2")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart2")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart2.isChart?a("div",{staticStyle:{width:"100%",height:"385px",background:"#fff"},attrs:{id:"chartLine2"}}):t._e(),t.tab.chart2.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"85px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"计划执行重量(kg)",sortable:"","min-width":"80px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"配方理论重量(kg)",sortable:"","min-width":"80px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"计划准确率",sortable:"","min-width":"85px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"计划取消重量(kg)",sortable:"","min-width":"80px",align:"center",prop:"计划取消重量"}}),a("el-table-column",{attrs:{label:"计划准确率(去除取消重量)",sortable:"","min-width":"100px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"计划正确数",sortable:"","min-width":"85px",align:"center",prop:"正确数"}}),a("el-table-column",{attrs:{label:"计划数",sortable:"","min-width":"60px",align:"center",prop:"计划数"}}),a("el-table-column",{attrs:{label:"计划正确率",sortable:"","min-width":"75px",align:"center",prop:"field2"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("配方准确率")]),t.tab.chart1.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart1.getdataListParm.parammaps.statisticsList,option:t.tab.chart1.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart1}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart1")}},model:{value:t.tab.chart1.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart1.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart1")}},model:{value:t.tab.chart1.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart1.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart1.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart1.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart1.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart1.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart1.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart1")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart1")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart1.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine1"}}):t._e(),t.tab.chart1.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"90px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"配方名称",sortable:"","min-width":"90px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"计划重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"实际重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"准确率",sortable:"","min-width":"90px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("牛群准确率")]),t.tab.chart3.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart3.getdataListParm.parammaps.statisticsList,option:t.tab.chart3.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart3}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart3")}},model:{value:t.tab.chart3.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart3.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart3")}},model:{value:t.tab.chart3.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart3.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart3.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart3.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart3.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart3.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart3.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart3")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart3")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart3.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine3"}}):t._e(),t.tab.chart3.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"90px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牲畜类别",sortable:"","min-width":"90px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"计划重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"实际重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"准确率",sortable:"","min-width":"90px",align:"center",prop:"准确率"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("车辆准确率(重量)")]),t.tab.chart4.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart4.getdataListParm.parammaps.statisticsList,option:t.tab.chart4.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart4}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart4")}},model:{value:t.tab.chart4.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart4.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart4")}},model:{value:t.tab.chart4.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart4.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart4.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart4.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart4.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart4.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart4.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart4")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart4")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart4.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine4"}}):t._e(),t.tab.chart4.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"90px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"车次",sortable:"","min-width":"90px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"计划重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"实际重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"准确率",sortable:"","min-width":"90px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("混料统计")]),t.tab.chart5.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart5")}},model:{value:t.tab.chart5.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart5.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart5")}},model:{value:t.tab.chart5.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart5.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart5.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart5.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart5.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart5.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart5.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart5")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart5")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart5.isChart?a("div",{staticClass:"button",staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine5"}}):t._e(),t.tab.chart5.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"100px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"自动跳转次数",sortable:"","min-width":"130px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"手动跳转次数",sortable:"","min-width":"130px",align:"center",prop:"field2"}}),a("el-table-column",{attrs:{label:"自动跳转理论重量",sortable:"","min-width":"110px",align:"center",prop:"理论自动"}}),a("el-table-column",{attrs:{label:"自动跳转实际重量",sortable:"","min-width":"110px",align:"center",prop:"实际自动"}}),a("el-table-column",{attrs:{label:"自动跳转准确率",sortable:"","min-width":"110px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"手动跳转理论重量",sortable:"","min-width":"110px",align:"center",prop:"理论手动"}}),a("el-table-column",{attrs:{label:"手动跳转实际重量",sortable:"","min-width":"110px",align:"center",prop:"实际手动"}}),a("el-table-column",{attrs:{label:"手动跳转准确率",sortable:"","min-width":"110px",align:"center",prop:"field4"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("混料计划取消次数")]),t.tab.chart6.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart6")}},model:{value:t.tab.chart6.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart6.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart6.getdataListParm.parammaps.specificDate,expression:"tab.chart6.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart6.getdataListParm.parammaps.specificDate,expression:"tab.chart6.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart6")}},model:{value:t.tab.chart6.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart6.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart6.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart6.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart6.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart6.getdataListParm.parammaps.specificDate,expression:"tab.chart6.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart6.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart6.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart6")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart6")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart6")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart6.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine6"}}):t._e(),t.tab.chart6.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart6")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"混料计划取消次数",sortable:"","min-width":"110px",align:"center",prop:"field1"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",staticStyle:{"margin-bottom":"30px"},attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("栏舍撒料时间统计")]),t.tab.chart7.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect7",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart7.getdataListParm.parammaps.statisticsList,option:t.tab.chart7.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart7}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart7")}},model:{value:t.tab.chart7.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart7.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart7.getdataListParm.parammaps.specificDate,expression:"tab.chart7.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart7.getdataListParm.parammaps.specificDate,expression:"tab.chart7.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart7")}},model:{value:t.tab.chart7.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart7.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart7.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart7.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart7.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart7.getdataListParm.parammaps.specificDate,expression:"tab.chart7.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart7.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart7.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart7")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart7")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart7")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart7.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine7"}}):t._e(),t.tab.chart7.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart7")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"栏舍",sortable:"","min-width":"110px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"撒料时间",sortable:"","min-width":"110px",align:"center",prop:"撒料时间"}})],1)],1):t._e()])])],1)],1)]),a("el-tab-pane",{attrs:{label:"混料统计",name:"second"}},[a("div",{ref:"myHeightSecond",staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"140px","margin-top":"5px"},attrs:{clearable:!1,type:"date",placeholder:"选择日期"},model:{value:t.tab2.table.getdataListParm.parammaps.inputDatetime2,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"inputDatetime2",e)},expression:"tab2.table.getdataListParm.parammaps.inputDatetime2"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",staticStyle:{display:"inline-block","margin-top":"5px"},attrs:{disabled:t.Beforedisabled2},on:{click:t.handleBefore2}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",staticStyle:{display:"inline-block","margin-top":"5px"},attrs:{disabled:t.Nextdisabled2},on:{click:t.handleNext2}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",filterable:"",placeholder:"TMR设备"},model:{value:t.tab2.table.getdataListParm.parammaps.tmrtname,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"tmrtname",e)},expression:"tab2.table.getdataListParm.parammaps.tmrtname"}},t._l(t.tab2.TMRNameList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tmrloadname,value:t.tmrloadname}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"车次",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.projname,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"projname",e)},expression:"tab2.table.getdataListParm.parammaps.projname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"times",e)},expression:"tab2.table.getdataListParm.parammaps.times"}},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:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"配方名称",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.templetname,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"templetname",e)},expression:"tab2.table.getdataListParm.parammaps.templetname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"130px"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.buttontype,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"buttontype",e)},expression:"tab2.table.getdataListParm.parammaps.buttontype"}},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:{"margin-top":"5px"},on:{click:t.handleSearch2}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-top":"5px"},on:{click:t.handleRefresh2}},[t._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px","margin-top":"5px"},attrs:{icon:"el-icon-upload2"},on:{click:t.handleExport2}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table.listLoading,expression:"tab2.table.listLoading"}],key:t.tab2.table.tableKey,ref:"plTable2",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,"max-height":t.myHeightSecond}},[a("u-table-column",{attrs:{sortable:"",label:"日期","min-width":"70px",align:"center",prop:"日期"}}),a("u-table-column",{attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}),a("u-table-column",{attrs:{sortable:"",label:"车次","min-width":"50px",align:"center",prop:"车次"}}),a("u-table-column",{attrs:{sortable:"",label:"班次","min-width":"50px",align:"center",prop:"班次"}}),a("u-table-column",{attrs:{sortable:"",label:"配方名称","min-width":"90px",align:"center",prop:"配方名称"}}),a("u-table-column",{attrs:{sortable:"",label:"饲料","min-width":"70px",align:"center",prop:"饲料"}}),a("u-table-column",{attrs:{sortable:"",label:"理论重量","min-width":"55px",align:"center",prop:"理论重量"}}),a("u-table-column",{attrs:{sortable:"",label:"实际重量","min-width":"55px",align:"center",prop:"实际重量"}}),a("u-table-column",{attrs:{sortable:"",label:"误差值","min-width":"45px",align:"center",prop:"误差值"}}),a("u-table-column",{attrs:{sortable:"",label:"准确率","min-width":"45px",align:"center",prop:"准确率"}}),a("u-table-column",{attrs:{sortable:"",label:"计划时间","min-width":"55px",align:"center",prop:"计划时间"}}),a("u-table-column",{attrs:{sortable:"",label:"开始时间","min-width":"55px",align:"center",prop:"开始时间"}}),a("u-table-column",{attrs:{sortable:"",label:"结束时间","min-width":"55px",align:"center",prop:"结束时间"}}),a("u-table-column",{attrs:{sortable:"",label:"搅拌时间","min-width":"55px",align:"center",prop:"搅拌时间"}}),a("u-table-column",{attrs:{sortable:"",label:"跳转方式","min-width":"55px",align:"center",prop:"跳转方式"}}),a("u-table-column",{attrs:{sortable:"",label:"开始重量","min-width":"55px",align:"center",prop:"开始重量"}}),a("u-table-column",{attrs:{sortable:"",label:"结束重量","min-width":"55px",align:"center",prop:"结束重量"}})],1),0==t.tab2.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab2.table.total)+"条")]):t._e()],1)]),a("el-tab-pane",{attrs:{label:"撒料统计",name:"third"}},[a("div",{ref:"myHeightThird",staticClass:"search"},[a("el-date-picker",{staticStyle:{"margin-top":"5px",width:"140px"},attrs:{clearable:!1,type:"date",placeholder:"选择日期"},model:{value:t.tab3.table.getdataListParm.parammaps.inputDatetime2,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"inputDatetime2",e)},expression:"tab3.table.getdataListParm.parammaps.inputDatetime2"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",staticStyle:{dispaly:"inline-block","margin-top":"5px"},attrs:{disabled:t.Beforedisabled3},on:{click:t.handleBefore3}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",staticStyle:{dispaly:"inline-block","margin-top":"5px"},attrs:{disabled:t.Nextdisabled3},on:{click:t.handleNext3}}),a("el-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"120px"},attrs:{placeholder:"TMR设备",clearable:"",filterable:""},model:{value:t.tab3.table.getdataListParm.parammaps.tmrtname,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"tmrtname",e)},expression:"tab3.table.getdataListParm.parammaps.tmrtname"}},t._l(t.tab3.TMRNameList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tmrloadname,value:t.tmrloadname}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"车次",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.projname,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"projname",e)},expression:"tab3.table.getdataListParm.parammaps.projname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"100px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"times",e)},expression:"tab3.table.getdataListParm.parammaps.times"}},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:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"配方名称",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.templetname,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"templetname",e)},expression:"tab3.table.getdataListParm.parammaps.templetname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"栏舍名称",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-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.buttontype,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"buttontype",e)},expression:"tab3.table.getdataListParm.parammaps.buttontype"}},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:{"margin-top":"5px"},on:{click:t.handleSearch3}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-top":"5px"},on:{click:t.handleRefresh3}},[t._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px","margin-top":"5px"},attrs:{icon:"el-icon-upload2"},on:{click:t.handleExport3}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab3.table.listLoading,expression:"tab3.table.listLoading"}],key:t.tab3.table.tableKey,ref:"plTable3",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,"max-height":t.myHeightThird}},[a("u-table-column",{attrs:{sortable:"",label:"日期","min-width":"70px",align:"center",prop:"日期"}}),a("u-table-column",{attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}),a("u-table-column",{attrs:{sortable:"",label:"车次","min-width":"45px",align:"center",prop:"车次"}}),a("u-table-column",{attrs:{sortable:"",label:"班次","min-width":"45px",align:"center",prop:"班次"}}),a("u-table-column",{attrs:{sortable:"",label:"配方名称","min-width":"90px",align:"center",prop:"配方名称"}}),a("u-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"90px",align:"center",prop:"栏舍"}}),a("u-table-column",{attrs:{sortable:"",label:"理论重量","min-width":"55px",align:"center",prop:"理论重量"}}),a("u-table-column",{attrs:{sortable:"",label:"实际重量","min-width":"55px",align:"center",prop:"实际重量"}}),a("u-table-column",{attrs:{sortable:"",label:"误差值","min-width":"45px",align:"center",prop:"误差值"}}),a("u-table-column",{attrs:{sortable:"",label:"准确率","min-width":"45px",align:"center",prop:"准确率"}}),a("u-table-column",{attrs:{sortable:"",label:"开始时间","min-width":"55px",align:"center",prop:"开始时间"}}),a("u-table-column",{attrs:{sortable:"",label:"结束时间","min-width":"55px",align:"center",prop:"结束时间"}}),a("u-table-column",{attrs:{sortable:"",label:"跳转方式","min-width":"55px",align:"center",prop:"跳转方式"}}),a("u-table-column",{attrs:{sortable:"",label:"开始重量","min-width":"55px",align:"center",prop:"开始重量"}}),a("u-table-column",{attrs:{sortable:"",label:"结束重量","min-width":"55px",align:"center",prop:"结束重量"}})],1),0==t.tab3.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab3.table.total)+"条")]):t._e()],1)])],1),a("el-dialog",{attrs:{title:t.textMap[t.exportList.dialogStatus],visible:t.exportList.dialogFormVisible,"close-on-click-modal":!1,width:"20%"},on:{"update:visible":function(e){return t.$set(t.exportList,"dialogFormVisible",e)}}},[a("div",[a("span",[t._v("导出时间范围:")]),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"230px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},model:{value:t.exportList.inputDatetime,callback:function(e){t.$set(t.exportList,"inputDatetime",e)},expression:"exportList.inputDatetime"}})],1),a("div",{staticClass:"dialog-footer",staticStyle:{"margin-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.exportList.dialogFormVisible=!1}}},[t._v("关闭")]),"second"==t.activeName?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.exportList2()}}},[t._v("确认")]):"third"==t.activeName?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.exportList3()}}},[t._v("确认")]):t._e()],1)]),a("See",{attrs:{show:t.isShowDialog,"row-pid":t.rowPid,"start-time":t.startTime,"stop-time":t.stopTime,optdevice:t.optdevice,"title-fname":t.titlefname,"method-name":t.methodName},on:{"update:show":function(e){t.isShowDialog=e}}})],1)},s=[],r=a("ade3"),l=(a("ac1f"),a("1276"),a("b0c0"),a("4e82"),a("7db0"),a("d3b7"),a("5319"),a("313e")),n=a.n(l),o=a("9eac"),c=a("2934"),d=a("a78e"),p=a.n(d),m=a("ed08"),u=a("333d"),h=a("5c96"),b=a("664b");a("817d");var g={name:"PastureErrorAnalysis",components:{Pagination:u["a"],mySelect:b["a"],See:o["default"]},data:function(){var t,e=this;return{pickerMinMonth:"",pickerOptionsMonth:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.pickerMinMonth=i.getTime(),a&&(e.pickerMinMonth="")},disabledDate:function(t){if(""!==e.pickerMinMonth){var a=15768e7,i=e.pickerMinMonth-0,s=e.pickerMinMonth+a;return s>new Date&&(s=new Date),t.getTime()<i||t.getTime()>s}return t.getTime()>=Date.now()}},pickerMinDate:"",pickerOptionsDate:{showWeekNumber:!1,onPick:function(t){var a=t.maxDate,i=t.minDate;e.pickerMinDate=i.getTime(),a&&(e.pickerMinDate="")},disabledDate:function(t){if(""!==e.pickerMinDate){var a=26784e5,i=e.pickerMinDate-a,s=e.pickerMinDate+a;return s>new Date&&(s=new Date),t.getTime()<i||t.getTime()>s}return t.getTime()>Date.now()}},Beforedisabled:!1,Nextdisabled:!1,Beforedisabled2:!1,Nextdisabled2:!1,Beforedisabled3:!1,Nextdisabled3:!1,pickerOptions:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.pickerMinDate=i.getTime(),a&&(e.pickerMinDate="")},disabledDate:function(t){if(""!==e.pickerMinDate){var a=26784e5,i=e.pickerMinDate-a,s=e.pickerMinDate+a;return s>new Date&&(s=new Date),t.getTime()<i||t.getTime()>s}return t.getTime()>Date.now()}},maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),inforname:"times"}}},activeName:"first",tab:(t={TMRNameList:[],radio:"0",isDriver:!0,isFormulaName:!1,isHouseName:!1,isLivestockType:!1,isTrainNumber:!1,isTMRName:!1,checked:!1,chartDate:[],selectWeek:[],chartMonth:[],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),yearList:[],weekList:[],table:{getdataListParm:{name:"getAccuracyHFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:"",sort:"",times:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getAccuracySFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:"",sort:"",times:""}},tableKey:2,list:[],total:0,listLoading:!0,temp:{}}},Object(r["a"])(t,"chartDate",[]),Object(r["a"])(t,"chart1",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart1Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart2",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllJH",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart3",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllNQ",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart1Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart4",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllCC",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart4Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart5",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart6",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllQX",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart7",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllLS",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart7Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),t),tab2:{TMRNameList:[],table:{getdataListParm:{name:"getStatisticsHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],inputDatetime2:new Date,tmrtname:"",projname:"",times:"",buttontype:"",templetname:"",isuse:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},frequencyList:[],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}],isuseList:[{id:"0",name:"未完成"},{id:"2",name:"部分完成"},{id:"1",name:"全部完成"}]},tab3:{TMRNameList:[],table:{getdataListParm:{name:"getStatisticsSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],inputDatetime2:new Date,tmrtname:"",projname:"",times:"",templetname:"",fname:"",buttontype:"",isuse:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},frequencyList:[],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}],isuseList:[{id:"0",name:"未完成"},{id:"2",name:"部分完成"},{id:"1",name:"全部完成"}]},titlefname:"",methodName:"",rowPid:"",optdevice:"",startTime:"",stopTime:"",isShowDialog:!1,statisticalTypeList:[{id:"0",name:"驾驶员"},{id:"1",name:"配方名称"},{id:"2",name:"栏舍名称"},{id:"3",name:"牲畜类别"},{id:"4",name:"车次"},{id:"5",name:"TMR名称"}],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},exportList:{dialogFormVisible:!1,inputDatetime:[new Date,new Date]},textMap:{exportList:"导出"},isokDisable:!1,myHeight2:document.documentElement.clientHeight-85-150,myHeightSecond:"",myHeightThird:""}},created:function(){this.getTimeFn(),this.getAllYear(),this.getIsDisplay(),this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7()},mounted:function(){},methods:{getAllYear:function(){var t=new Date,e=t.getFullYear(),a=e-2001;this.tab.yearList=[];for(var i=0;i<=a;i++)this.tab.yearList.push(e--)},changeAllYear:function(){this.tab.weekList=[],this.tab.selectWeek=[];for(var t=Object(c["s"])(this.tab.selectYear),e=0;e<=t.length;e++){var a={},i=e+1;a.name="第"+i+"周("+t[e].month+"."+t[e].date+"~"+t[e].last.month+"."+t[e].last.date+")",a.id=e,this.tab.weekList.push(a)}},changeAllSpecificDate:function(){var t="",e="";"2"==this.tab.specificDate?(this.tab.selectYear=Object(m["d"])(new Date,"{y}"),this.changeAllYear()):"3"==this.tab.specificDate&&(t=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",e=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chartMonth=[],this.tab.chartMonth.push(t,e))},handleAllDate:function(){var t=this;h["MessageBox"].confirm("是否调整以下所有图表查询时间?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e="",a="",i="";if("1"==t.tab.specificDate)e=Object(m["d"])(t.tab.chartDate[0],"{y}-{m}-{d}"),a=Object(m["d"])(t.tab.chartDate[1],"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart2.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart3.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart4.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart5.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart6.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart7.getdataListParm.parammaps.inputDatetime=[e,a],i=0;else if("2"==t.tab.specificDate){if(""==t.tab.selectYear)return void t.$message({type:"error",message:"请输入年",duration:2e3});if(2!==t.tab.selectWeek.length)return void t.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=t.tab.selectYear+"-"+Object(c["s"])(t.tab.selectYear)[t.tab.selectWeek[0]].month+"-"+Object(c["s"])(t.tab.selectYear)[t.tab.selectWeek[0]].date,a=t.tab.selectYear+"-"+Object(c["s"])(t.tab.selectYear)[t.tab.selectWeek[1]].last.month+"-"+Object(c["s"])(t.tab.selectYear)[t.tab.selectWeek[1]].last.date,i=1,t.tab.chart1.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart1.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart1.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart2.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart2.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart2.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart3.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart3.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart3.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart4.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart4.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart4.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart5.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart5.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart5.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart6.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart6.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart6.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart7.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart7.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart7.getdataListParm.parammaps.weekList=t.tab.weekList}else if("3"==t.tab.specificDate)if(t.tab.chartMonth.length>0){e=t.tab.chartMonth[0];var s=t.tab.chartMonth[1].substring(0,7).split("-"),r=new Date(s[0],s[1],0),l=r.getDate();a=t.tab.chartMonth[1].substring(0,8)+l,i=2,t.tab.chart1.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart2.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart3.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart4.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart5.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart6.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart7.getdataListParm.parammaps.chartMonth=[e,a]}else t.$message({type:"error",message:"请输入月",duration:2e3});t.tab.chart1.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart1.getdataListParm.parammaps.startTime=e,t.tab.chart1.getdataListParm.parammaps.stopTime=a,t.tab.chart1.getdataListParm.parammaps.status=i,t.tab.chart2.getdataListParm.parammaps.startTime=e,t.tab.chart2.getdataListParm.parammaps.stopTime=a,t.tab.chart2.getdataListParm.parammaps.status=i,t.tab.chart2.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart3.getdataListParm.parammaps.startTime=e,t.tab.chart3.getdataListParm.parammaps.stopTime=a,t.tab.chart3.getdataListParm.parammaps.status=i,t.tab.chart3.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart4.getdataListParm.parammaps.startTime=e,t.tab.chart4.getdataListParm.parammaps.stopTime=a,t.tab.chart4.getdataListParm.parammaps.status=i,t.tab.chart4.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart5.getdataListParm.parammaps.startTime=e,t.tab.chart5.getdataListParm.parammaps.stopTime=a,t.tab.chart5.getdataListParm.parammaps.status=i,t.tab.chart5.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart6.getdataListParm.parammaps.startTime=e,t.tab.chart6.getdataListParm.parammaps.stopTime=a,t.tab.chart6.getdataListParm.parammaps.status=i,t.tab.chart6.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart7.getdataListParm.parammaps.startTime=e,t.tab.chart7.getdataListParm.parammaps.stopTime=a,t.tab.chart7.getdataListParm.parammaps.status=i,t.tab.chart7.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.getChart1(),t.getChart2(),t.getChart3(),t.getChart4(),t.getChart5(),t.getChart6(),t.getChart7()}))},changeChartSpecificDate:function(t){var e="",a="";"chart1"==t?"2"==this.tab.chart1.getdataListParm.parammaps.specificDate?(this.tab.chart1.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart1.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.weekList=[],this.tab.chart1.getdataListParm.parammaps.chartMonth=[],this.tab.chart1.getdataListParm.parammaps.chartMonth.push(e,a)):"chart2"==t?"2"==this.tab.chart2.getdataListParm.parammaps.specificDate?(this.tab.chart2.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart2.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.weekList=[],this.tab.chart2.getdataListParm.parammaps.chartMonth=[],this.tab.chart2.getdataListParm.parammaps.chartMonth.push(e,a)):"chart3"==t?"2"==this.tab.chart3.getdataListParm.parammaps.specificDate?(this.tab.chart3.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart3.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.weekList=[],this.tab.chart3.getdataListParm.parammaps.chartMonth=[],this.tab.chart3.getdataListParm.parammaps.chartMonth.push(e,a)):"chart4"==t?"2"==this.tab.chart4.getdataListParm.parammaps.specificDate?(this.tab.chart4.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart4.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.weekList=[],this.tab.chart4.getdataListParm.parammaps.chartMonth=[],this.tab.chart4.getdataListParm.parammaps.chartMonth.push(e,a)):"chart5"==t?"2"==this.tab.chart5.getdataListParm.parammaps.specificDate?(this.tab.chart5.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart5.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.weekList=[],this.tab.chart5.getdataListParm.parammaps.chartMonth=[],this.tab.chart5.getdataListParm.parammaps.chartMonth.push(e,a)):"chart6"==t?"2"==this.tab.chart6.getdataListParm.parammaps.specificDate?(this.tab.chart6.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart6.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart6.getdataListParm.parammaps.weekList=[],this.tab.chart6.getdataListParm.parammaps.chartMonth=[],this.tab.chart6.getdataListParm.parammaps.chartMonth.push(e,a)):"chart7"==t&&("2"==this.tab.chart7.getdataListParm.parammaps.specificDate?(this.tab.chart7.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart7.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart7.getdataListParm.parammaps.weekList=[],this.tab.chart7.getdataListParm.parammaps.chartMonth=[],this.tab.chart7.getdataListParm.parammaps.chartMonth.push(e,a)))},changeChartYear:function(t){var e="";if("chart1"==t){this.tab.chart1.getdataListParm.parammaps.weekList=[],this.tab.chart1.getdataListParm.parammaps.selectWeek=[],e=Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear);for(var a=0;a<=e.length;a++){var i={},s=a+1;i.name="第"+s+"周("+e[a].month+"."+e[a].date+"~"+e[a].last.month+"."+e[a].last.date+")",i.id=a,this.tab.chart1.getdataListParm.parammaps.weekList.push(i)}}else if("chart2"==t){this.tab.chart2.getdataListParm.parammaps.selectWeek=[],this.tab.chart2.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear);for(var r=0;r<=e.length;r++){i={},s=r+1;i.name="第"+s+"周("+e[r].month+"."+e[r].date+"~"+e[r].last.month+"."+e[r].last.date+")",i.id=r,this.tab.chart2.getdataListParm.parammaps.weekList.push(i)}}else if("chart3"==t){this.tab.chart3.getdataListParm.parammaps.selectWeek=[],this.tab.chart3.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear);for(var l=0;l<=e.length;l++){i={},s=l+1;i.name="第"+s+"周("+e[l].month+"."+e[l].date+"~"+e[l].last.month+"."+e[l].last.date+")",i.id=l,this.tab.chart3.getdataListParm.parammaps.weekList.push(i)}}else if("chart4"==t){this.tab.chart4.getdataListParm.parammaps.selectWeek=[],this.tab.chart4.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear);for(var n=0;n<=e.length;n++){i={},s=n+1;i.name="第"+s+"周("+e[n].month+"."+e[n].date+"~"+e[n].last.month+"."+e[n].last.date+")",i.id=n,this.tab.chart4.getdataListParm.parammaps.weekList.push(i)}}else if("chart5"==t){this.tab.chart5.getdataListParm.parammaps.selectWeek=[],this.tab.chart5.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear);for(var o=0;o<=e.length;o++){i={},s=o+1;i.name="第"+s+"周("+e[o].month+"."+e[o].date+"~"+e[o].last.month+"."+e[o].last.date+")",i.id=o,this.tab.chart5.getdataListParm.parammaps.weekList.push(i)}}else if("chart6"==t){this.tab.chart6.getdataListParm.parammaps.selectWeek=[],this.tab.chart6.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear);for(var d=0;d<=e.length;d++){i={},s=d+1;i.name="第"+s+"周("+e[d].month+"."+e[d].date+"~"+e[d].last.month+"."+e[d].last.date+")",i.id=d,this.tab.chart6.getdataListParm.parammaps.weekList.push(i)}}else if("chart7"==t){this.tab.chart7.getdataListParm.parammaps.selectWeek=[],this.tab.chart7.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear);for(var p=0;p<=e.length;p++){i={},s=p+1;i.name="第"+s+"周("+e[p].month+"."+e[p].date+"~"+e[p].last.month+"."+e[p].last.date+")",i.id=p,this.tab.chart7.getdataListParm.parammaps.weekList.push(i)}}},handleChartDate:function(t){var e="",a="";if("chart1"==t){if("1"==this.tab.chart1.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart1.getdataListParm.parammaps.specificDate){if(""==this.tab.chart1.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart1.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart1.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart1.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart1.getdataListParm.parammaps.status=1}else"3"==this.tab.chart1.getdataListParm.parammaps.specificDate&&(e=this.tab.chart1.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart1.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart1.getdataListParm.parammaps.status=2);this.tab.chart1.getdataListParm.parammaps.startTime=e,this.tab.chart1.getdataListParm.parammaps.stopTime=a,this.getChart1()}else if("chart2"==t){if("1"==this.tab.chart2.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart2.getdataListParm.parammaps.specificDate){if(""==this.tab.chart2.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart2.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart2.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart2.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart2.getdataListParm.parammaps.status=1}else"3"==this.tab.chart2.getdataListParm.parammaps.specificDate&&(e=this.tab.chart2.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart2.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart2.getdataListParm.parammaps.status=2);this.tab.chart2.getdataListParm.parammaps.startTime=e,this.tab.chart2.getdataListParm.parammaps.stopTime=a,this.getChart2()}else if("chart3"==t){if("1"==this.tab.chart3.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart3.getdataListParm.parammaps.specificDate){if(""==this.tab.chart3.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart3.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart3.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart3.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart3.getdataListParm.parammaps.status=1}else"3"==this.tab.chart3.getdataListParm.parammaps.specificDate&&(e=this.tab.chart3.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart3.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart3.getdataListParm.parammaps.status=2);this.tab.chart3.getdataListParm.parammaps.startTime=e,this.tab.chart3.getdataListParm.parammaps.stopTime=a,this.getChart3()}else if("chart4"==t){if("1"==this.tab.chart4.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart4.getdataListParm.parammaps.specificDate){if(""==this.tab.chart4.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart4.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart4.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart4.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart4.getdataListParm.parammaps.status=1}else"3"==this.tab.chart4.getdataListParm.parammaps.specificDate&&(e=this.tab.chart4.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart4.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart4.getdataListParm.parammaps.status=2);this.tab.chart4.getdataListParm.parammaps.startTime=e,this.tab.chart4.getdataListParm.parammaps.stopTime=a,this.getChart4()}else if("chart5"==t){if("1"==this.tab.chart5.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart5.getdataListParm.parammaps.specificDate){if(""==this.tab.chart5.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart5.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart5.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart5.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart5.getdataListParm.parammaps.status=1}else"3"==this.tab.chart5.getdataListParm.parammaps.specificDate&&(e=this.tab.chart5.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart5.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart5.getdataListParm.parammaps.status=2);this.tab.chart5.getdataListParm.parammaps.startTime=e,this.tab.chart5.getdataListParm.parammaps.stopTime=a,this.getChart5()}else if("chart6"==t){if("1"==this.tab.chart6.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart6.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart6.getdataListParm.parammaps.specificDate){if(""==this.tab.chart6.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart6.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart6.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear)[this.tab.chart6.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear)[this.tab.chart6.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart6.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear)[this.tab.chart6.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear)[this.tab.chart6.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart6.getdataListParm.parammaps.status=1}else"3"==this.tab.chart6.getdataListParm.parammaps.specificDate&&(e=this.tab.chart6.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart6.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart6.getdataListParm.parammaps.status=2);this.tab.chart6.getdataListParm.parammaps.startTime=e,this.tab.chart6.getdataListParm.parammaps.stopTime=a,this.getChart6()}else if("chart7"==t){if("1"==this.tab.chart7.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart7.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart7.getdataListParm.parammaps.specificDate){if(""==this.tab.chart7.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart7.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart7.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear)[this.tab.chart7.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear)[this.tab.chart7.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart7.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear)[this.tab.chart7.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear)[this.tab.chart7.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart7.getdataListParm.parammaps.status=1}else"3"==this.tab.chart7.getdataListParm.parammaps.specificDate&&(e=this.tab.chart7.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart7.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart7.getdataListParm.parammaps.status=2);this.tab.chart7.getdataListParm.parammaps.startTime=e,this.tab.chart7.getdataListParm.parammaps.stopTime=a,this.getChart7()}},getTimeFn:function(){var t=this,e=new Date,a=new Date,i=new Date,s=new Date;i.setTime(i.getTime()-864e5),s.setTime(s.getTime()-864e5),t.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(i,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(s,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.inputDatetime=[i,s],t.tab.table2.getdataListParm.parammaps.startTime=Object(m["d"])(i,"{y}-{m}-{d}"),t.tab.table2.getdataListParm.parammaps.stopTime=Object(m["d"])(s,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.inputDatetime=[i,s],t.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(i,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(s,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.inputDatetime=[i,s],t.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(i,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(s,"{y}-{m}-{d}"),e.setTime(e.getTime()-864e6),a.setTime(a.getTime()-864e5),t.tab.chartDate[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chartDate[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart6.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart6.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart6.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart6.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart7.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart7.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart7.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart7.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}")},getIsDisplay:function(){var t=this;Object(c["c"])(this.maxTime.getMaxTimesParm).then((function(e){1==e.data.list[0].inforvalue?(t.tab2.frequencyList=[{id:"1",name:"第一班"}],t.tab3.frequencyList=[{id:"1",name:"第一班"}]):2==e.data.list[0].inforvalue?(t.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}],t.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]):3==e.data.list[0].inforvalue?(t.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}],t.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}],t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]):4==e.data.list[0].inforvalue&&(t.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}],t.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},handleDownload:function(){if(1==this.tab.checked){if("0"==this.tab.radio){var t=[{tHeader:["日期","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","标准差"],filterVal:["计划时间","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","驾驶员","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","撒料正确数","撒料正确率","去除取消正确率","标准差"],filterVal:["计划时间","驾驶员","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","撒料正确数","撒料正确率","去除取消正确率","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(t,"准确性分析—汇总统计",!0,"xlsx")}else if("1"==this.tab.radio){var e=[{tHeader:["日期","配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","标准差"],filterVal:["计划时间","配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","撒料正确数","撒料正确率","去除取消正确率","标准差"],filterVal:["计划时间","配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","撒料正确数","撒料正确率","去除取消正确率","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(e,"准确性分析—汇总统计",!0,"xlsx")}else if("2"==this.tab.radio){var a=[{tHeader:["日期","栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(a,"汇总统计-栏舍名称",!0,"xlsx")}else if("3"==this.tab.radio){var i=[{tHeader:["日期","牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(i,"汇总统计-牲畜类别",!0,"xlsx")}else if("4"==this.tab.radio){var s=[{tHeader:["日期","车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(s,"汇总统计-车次",!0,"xlsx")}}else if("0"==this.tab.radio){t=[{tHeader:["驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["驾驶员","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["驾驶员","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(t,"准确性分析—汇总统计",!0,"xlsx")}else if("1"==this.tab.radio){e=[{tHeader:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(e,"准确性分析—汇总统计",!0,"xlsx")}else if("2"==this.tab.radio){a=[{tHeader:["栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(a,"汇总统计-栏舍名称",!0,"xlsx")}else if("3"==this.tab.radio){i=[{tHeader:["牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(i,"汇总统计-牲畜类别",!0,"xlsx")}else if("4"==this.tab.radio){s=[{tHeader:["车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料时间","等待时间","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料时间","等待时间","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料时间","等待时间","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料时间","等待时间","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(s,"汇总统计-车次",!0,"xlsx")}},handleTabClick:function(){var t=this;if("first"==this.activeName){var e=new Date,a=new Date;e.setTime(e.getTime()-864e5),a.setTime(a.getTime()-864e5),this.tab.table.getdataListParm.parammaps.inputDatetime=[e,a],this.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.table2.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table2.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.fname="",this.tab.table.getdataListParm.parammaps.sort="",this.tab.table.getdataListParm.parammaps.times="",this.tab.table2.getdataListParm.parammaps.fname="",this.tab.table2.getdataListParm.parammaps.sort="",this.tab.table2.getdataListParm.parammaps.times="",this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7()}else if("second"==this.activeName){setTimeout((function(){t.myHeightSecond=document.documentElement.clientHeight-40-t.$refs.myHeightSecond.offsetHeight-150}),100);var i=new Date;i.setTime(i.getTime()-864e5),this.tab2.table.getdataListParm.parammaps.inputDatetime2=i,this.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.tmrtname="",this.tab2.table.getdataListParm.parammaps.projname="",this.tab2.table.getdataListParm.parammaps.times="",this.tab2.table.getdataListParm.parammaps.buttontype="",this.tab2.table.getdataListParm.parammaps.templetname="",this.getTab2List(),this.getTMRNameList2()}else if("third"==this.activeName){setTimeout((function(){t.myHeightThird=document.documentElement.clientHeight-40-t.$refs.myHeightThird.offsetHeight-150}),100);var s=new Date;s.setTime(s.getTime()-864e5),this.tab3.table.getdataListParm.parammaps.inputDatetime2=s,this.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.tmrtname="",this.tab3.table.getdataListParm.parammaps.projname="",this.tab3.table.getdataListParm.parammaps.times="",this.tab3.table.getdataListParm.parammaps.templetname="",this.tab3.table.getdataListParm.parammaps.buttontype="",this.getTab3List(),this.getTMRNameList3()}},changeRadio:function(){this.tab.table.getdataListParm.parammaps.sort="",this.tab.table.getdataListParm.parammaps.times="",this.tab.table.getdataListParm.parammaps.fname="",this.tab.table2.getdataListParm.parammaps.sort="",this.tab.table2.getdataListParm.parammaps.times="",this.tab.table2.getdataListParm.parammaps.fname="","0"==this.tab.radio?(this.tab.isDriver=!0,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"1"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"2"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"3"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"5"==this.tab.radio&&(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!0,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2(),this.getTMRNameList())},changeChecked:function(){this.handleSearch()},getTabList:function(){var t=this;this.tab.table.listLoading=!0,this.tab.table.getdataListParm.parammaps.status=this.tab.radio,this.tab.table.getdataListParm.parammaps.genre=0,""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(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="");var e="authdata/summary",a={};0==this.tab.checked?this.tab.table.getdataListParm.parammaps.isdate=0:this.tab.table.getdataListParm.parammaps.isdate=1,a.parammaps=this.tab.table.getdataListParm.parammaps,Object(c["n"])(e,a).then((function(e){null!==e.data.list?t.tab.table.list=e.data.list:t.tab.table.list=[],t.tab.table.total=e.data.total,setTimeout((function(){t.tab.table.listLoading=!1}),100)}))},getTabList2:function(){var t=this;this.tab.table2.listLoading=!0,this.tab.table2.getdataListParm.parammaps.status=this.tab.radio,this.tab.table2.getdataListParm.parammaps.genre=1,this.tab.table2.getdataListParm.parammaps.startTime=this.tab.table.getdataListParm.parammaps.startTime,this.tab.table2.getdataListParm.parammaps.stopTime=this.tab.table.getdataListParm.parammaps.stopTime;var e="authdata/summary",a={};0==this.tab.checked?this.tab.table2.getdataListParm.parammaps.isdate=0:this.tab.table2.getdataListParm.parammaps.isdate=1,a.parammaps=this.tab.table2.getdataListParm.parammaps,Object(c["n"])(e,a).then((function(e){null!==e.data.list?t.tab.table2.list=e.data.list:t.tab.table2.list=[],t.tab.table2.total=e.data.total,setTimeout((function(){t.tab.table2.listLoading=!1}),100)}))},handleSearch:function(){"0"==this.tab.radio?(this.tab.isDriver=!0,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"1"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"2"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"3"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"5"==this.tab.radio&&(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!0,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2(),this.getTMRNameList()),this.tab.table2.getdataListParm.parammaps.fname=this.tab.table.getdataListParm.parammaps.fname},handleBefore:function(){if(this.$forceUpdate(),""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList(),this.tab.table2.getdataListParm.parammaps.startTime=this.tab.table.getdataListParm.parammaps.startTime,this.tab.table2.getdataListParm.parammaps.stopTime=this.tab.table.getdataListParm.parammaps.stopTime,this.getTabList2(),this.getTMRNameList()},handleNext:function(){if(this.$forceUpdate(),""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList(),this.tab.table2.getdataListParm.parammaps.startTime=this.tab.table.getdataListParm.parammaps.startTime,this.tab.table2.getdataListParm.parammaps.stopTime=this.tab.table.getdataListParm.parammaps.stopTime,this.getTabList2(),this.getTMRNameList()},handleBefore2:function(){if(this.$forceUpdate(),""!==this.tab2.table.getdataListParm.parammaps.inputDatetime2&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime2){var t=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime2.getDate()-1));t>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.table.getdataListParm.parammaps.inputDatetime2=t,this.$forceUpdate()}this.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTMRNameList2()},handleNext2:function(){if(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime2&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime2){var t=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime2.getDate()+1));t>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.table.getdataListParm.parammaps.inputDatetime2=t,this.$forceUpdate()}this.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTMRNameList2()},handleBefore3:function(){if(this.$forceUpdate(),""!==this.tab3.table.getdataListParm.parammaps.inputDatetime2&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime2){var t=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime2.getDate()-1));t>Date.now()-864e5?(this.Nextdisabled3=!0,this.Beforedisabled3=!1):(this.Nextdisabled3=!1,this.Beforedisabled3=!1),this.tab3.table.getdataListParm.parammaps.inputDatetime2=t,this.$forceUpdate()}this.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.getTab3List(),this.getTMRNameList3()},handleNext3:function(){if(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime2&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime2){var t=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime2.getDate()+1));t>Date.now()-864e5?(this.Nextdisabled3=!0,this.Beforedisabled3=!1):(this.Nextdisabled3=!1,this.Beforedisabled3=!1),this.tab3.table.getdataListParm.parammaps.inputDatetime2=t,this.$forceUpdate()}this.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.getTab3List(),this.getTMRNameList3()},handleQuickJumpChart:function(){var t=document.getElementById("table").offsetHeight+120;window.scrollTo(t,t)},handleQuickJumpTop:function(){window.scrollTo(0,0)},changeStatisticChart1:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart1.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart1.statisticsList.find((function(a){return a.name==e.tab.chart1.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart1.chart1Data3.length;i++)i==a&&s.push(e.tab.chart1.chart1Data3[i])},l=0;l<this.tab.chart1.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart1.chartLine_data.data3=s,this.tab.chart1.chartLine_data.data1=this.tab.chart1.getdataListParm.parammaps.statisticsList,this.roadChartLine1(this.tab.chart1.chartLine_data)},getChart1:function(){var t=this;this.tab.chart1.listLoading=!0;var e="authdata/chart/accuracyAllFT",a={parammaps:{}};"1"==this.tab.chart2.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart2.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart2.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)for(var i=0;i<e.data.data.length;i++)""!==e.data.data[i].准确率&&void 0!==e.data.data[i].准确率&&(e.data.data[i].准确率=parseFloat(e.data.data[i].准确率)+"%"),""!==e.data.data[i].理论量&&void 0!==e.data.data[i].理论量&&(e.data.data[i].理论量=parseFloat(e.data.data[i].理论量)),""!==e.data.data[i].实际量&&void 0!==e.data.data[i].实际量&&(e.data.data[i].实际量=parseFloat(e.data.data[i].实际量));t.tab.chart1.table.list=e.data.data,t.tab.chart1.chartLine_data=e.data.list,t.tab.chart1.statisticsList=[],t.tab.chart1.getdataListParm.parammaps.statisticsList=[];for(var s=0;s<e.data.list.data1.length;s++){t.tab.chart1.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[s]);var r={};r.id=s,r.name=e.data.list.data1[s],t.tab.chart1.statisticsList.push(r)}t.tab.chart1.chart1Data3=e.data.list.data3,t.tab.chart1.total=e.data.total;for(var l=[],n=function(e){for(var a=t.tab.chart1.statisticsList.find((function(a){return a.name==t.tab.chart1.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart1.chart1Data3.length;i++)i==a&&(t.tab.chart1.chart1Data3[i].checkedState=!0,l.push(t.tab.chart1.chart1Data3[i]))},o=0;o<t.tab.chart1.getdataListParm.parammaps.statisticsList.length;o++)n(o);t.tab.chart1.chartLine_data.data3=l,t.tab.chart1.chartLine_data.data1=t.tab.chart1.getdataListParm.parammaps.statisticsList,t.roadChartLine1(t.tab.chart1.chartLine_data)}else t.tab.chart1.list=[];setTimeout((function(){t.tab.chart1.listLoading=!1}),100)}))},roadChartLine1:function(t){null!=this.tab.chart1.chartLine&&this.tab.chart1.chartLine.dispose(),this.tab.chart1.chartLine=n.a.init(document.getElementById("chartLine1"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,right:10,show:!0,type:"scroll"},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},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;var e="authdata/chart/accuracyAllJH",a={parammaps:{}};"1"==this.tab.chart2.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart2.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart2.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].实际量&&void 0!==e.data.data[a].实际量&&(e.data.data[a].实际量=parseFloat(e.data.data[a].实际量)),""!==e.data.data[a].理论量&&void 0!==e.data.data[a].理论量&&(e.data.data[a].理论量=parseFloat(e.data.data[a].理论量)),""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].计划取消重量&&void 0!==e.data.data[a].计划取消重量&&(e.data.data[a].计划取消重量=parseFloat(e.data.data[a].计划取消重量)),""!==e.data.data[a].field3&&void 0!==e.data.data[a].field3&&(e.data.data[a].field3=parseFloat(e.data.data[a].field3)),""!==e.data.data[a].正确数&&void 0!==e.data.data[a].正确数&&(e.data.data[a].正确数=parseFloat(e.data.data[a].正确数)),""!==e.data.data[a].计划数&&void 0!==e.data.data[a].计划数&&(e.data.data[a].计划数=parseFloat(e.data.data[a].计划数)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2));t.tab.chart2.table.list=e.data.data,t.tab.chart2.chartLine_data=e.data.list,t.tab.chart2.total=e.data.total,t.roadChartLine2(t.tab.chart2.chartLine_data)}else t.tab.chart2.list=[];setTimeout((function(){t.tab.chart2.listLoading=!1}),100)}))},roadChartLine2:function(t){null!=this.tab.chart2.chartLine&&this.tab.chart2.chartLine.dispose(),this.tab.chart2.chartLine=n.a.init(document.getElementById("chartLine2"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:["计划准确率","计划正确率","计划准确率(去除取消重量)"],right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data1,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:[{name:"计划准确率",type:"line",data:t.data2},{name:"计划正确率",type:"line",data:t.data3},{name:"计划准确率(去除取消重量)",type:"line",data:t.data4}]};this.tab.chart2.chartLine.setOption(e),window.onresize=function(){this.tab.chart2.chartLine.resize()}},changeStatisticChart3:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart3.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart3.statisticsList.find((function(a){return a.name==e.tab.chart3.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart3.chart3Data3.length;i++)i==a&&s.push(e.tab.chart3.chart3Data3[i])},l=0;l<this.tab.chart3.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart3.chartLine_data.data3=s,this.tab.chart3.chartLine_data.data1=this.tab.chart3.getdataListParm.parammaps.statisticsList,this.roadChartLine3(this.tab.chart3.chartLine_data)},getChart3:function(){var t=this;this.tab.chart3.listLoading=!0;var e="authdata/chart/accuracyAllNQ",a={parammaps:{}};"1"==this.tab.chart3.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart3.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart3.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart3.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart3.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart3.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart3.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].理论量&&void 0!==e.data.data[a].理论量&&(e.data.data[a].理论量=parseFloat(e.data.data[a].理论量)),""!==e.data.data[a].实际量&&void 0!==e.data.data[a].实际量&&(e.data.data[a].实际量=parseFloat(e.data.data[a].实际量)),""!==e.data.data[a].准确率&&void 0!==e.data.data[a].准确率&&(e.data.data[a].准确率=parseFloat(e.data.data[a].准确率)+"%");t.tab.chart3.table.list=e.data.data,t.tab.chart3.chartLine_data=e.data.list,t.tab.chart3.total=e.data.total,t.tab.chart3.statisticsList=[],t.tab.chart3.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<e.data.list.data1.length;i++){t.tab.chart3.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[i]);var s={};s.id=i,s.name=e.data.list.data1[i],t.tab.chart3.statisticsList.push(s)}t.tab.chart3.chart3Data3=e.data.list.data3,t.tab.chart3.total=e.data.total;for(var r=[],l=function(e){for(var a=t.tab.chart3.statisticsList.find((function(a){return a.name==t.tab.chart3.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart3.chart3Data3.length;i++)i==a&&r.push(t.tab.chart3.chart3Data3[i])},n=0;n<t.tab.chart3.getdataListParm.parammaps.statisticsList.length;n++)l(n);t.tab.chart3.chartLine_data.data3=r,t.tab.chart3.chartLine_data.data1=t.tab.chart3.getdataListParm.parammaps.statisticsList,t.roadChartLine3(t.tab.chart3.chartLine_data)}else t.tab.chart3.list=[];setTimeout((function(){t.tab.chart3.listLoading=!1}),100)}))},roadChartLine3:function(t){null!=this.tab.chart3.chartLine&&this.tab.chart3.chartLine.dispose(),this.tab.chart3.chartLine=n.a.init(document.getElementById("chartLine3"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,right:10,show:!0,type:"scroll"},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},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()}},changeStatisticChart4:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart4.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart4.statisticsList.find((function(a){return a.name==e.tab.chart4.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart4.chart4Data3.length;i++)i==a&&s.push(e.tab.chart4.chart4Data3[i])},l=0;l<this.tab.chart4.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart4.chartLine_data.data3=s,this.tab.chart4.chartLine_data.data1=this.tab.chart4.getdataListParm.parammaps.statisticsList,this.roadChartLine4(this.tab.chart4.chartLine_data)},getChart4:function(){var t=this;this.tab.chart4.listLoading=!0;var e="authdata/chart/accuracyAllCC",a={parammaps:{}};"1"==this.tab.chart4.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart4.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart4.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart4.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart4.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart4.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart4.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].理论量&&void 0!==e.data.data[a].理论量&&(e.data.data[a].理论量=parseFloat(e.data.data[a].理论量)),""!==e.data.data[a].实际量&&void 0!==e.data.data[a].实际量&&(e.data.data[a].实际量=parseFloat(e.data.data[a].实际量)),""!==e.data.data[a].准确率&&void 0!==e.data.data[a].准确率&&(e.data.data[a].准确率=parseFloat(e.data.data[a].准确率)+"%");t.tab.chart4.table.list=e.data.data,t.tab.chart4.chartLine_data=e.data.list,t.tab.chart4.total=e.data.total,t.tab.chart4.statisticsList=[],t.tab.chart4.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<e.data.list.data1.length;i++){t.tab.chart4.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[i]);var s={};s.id=i,s.name=e.data.list.data1[i],t.tab.chart4.statisticsList.push(s)}t.tab.chart4.chart4Data3=e.data.list.data3,t.tab.chart4.total=e.data.total;for(var r=[],l=function(e){for(var a=t.tab.chart4.statisticsList.find((function(a){return a.name==t.tab.chart4.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart4.chart4Data3.length;i++)i==a&&r.push(t.tab.chart4.chart4Data3[i])},n=0;n<t.tab.chart4.getdataListParm.parammaps.statisticsList.length;n++)l(n);t.tab.chart4.chartLine_data.data3=r,t.tab.chart4.chartLine_data.data1=t.tab.chart4.getdataListParm.parammaps.statisticsList,t.roadChartLine4(t.tab.chart4.chartLine_data)}else t.tab.chart4.list=[];setTimeout((function(){t.tab.chart4.listLoading=!1}),100)}))},roadChartLine4:function(t){null!=this.tab.chart4.chartLine&&this.tab.chart4.chartLine.dispose(),this.tab.chart4.chartLine=n.a.init(document.getElementById("chartLine4"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,right:10,show:!0,type:"scroll"},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},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;var e="authdata/chart/accuracyAllHL",a={parammaps:{}};"1"==this.tab.chart5.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart5.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart5.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart5.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart5.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart5.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart5.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2)),""!==e.data.data[a].理论自动&&void 0!==e.data.data[a].理论自动&&(e.data.data[a].理论自动=parseFloat(e.data.data[a].理论自动)),""!==e.data.data[a].实际自动&&void 0!==e.data.data[a].实际自动&&(e.data.data[a].实际自动=parseFloat(e.data.data[a].实际自动)),""!==e.data.data[a].field3&&void 0!==e.data.data[a].field3&&(e.data.data[a].field3=parseFloat(e.data.data[a].field3)),""!==e.data.data[a].理论手动&&void 0!==e.data.data[a].理论手动&&(e.data.data[a].理论手动=parseFloat(e.data.data[a].理论手动)),""!==e.data.data[a].实际手动&&void 0!==e.data.data[a].实际手动&&(e.data.data[a].实际手动=parseFloat(e.data.data[a].实际手动)),""!==e.data.data[a].field4&&void 0!==e.data.data[a].field4&&(e.data.data[a].field4=parseFloat(e.data.data[a].field4));t.tab.chart5.table.list=e.data.data,t.tab.chart5.chartLine_data=e.data.list,t.tab.chart5.total=e.data.total,t.roadChartLine5(t.tab.chart5.chartLine_data)}else t.tab.chart5.list=[];setTimeout((function(){t.tab.chart5.listLoading=!1}),100)}))},roadChartLine5:function(t){null!=this.tab.chart5.chartLine&&this.tab.chart5.chartLine.dispose(),this.tab.chart5.chartLine=n.a.init(document.getElementById("chartLine5"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},toolbox:{feature:{}},legend:{data:["自动跳转次数","手动跳转次数","自动跳转准确率","手动跳转准确率"]},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{splitLine:{show:!1},type:"value",name:"跳转次数",axisLabel:{formatter:"{value}"}},{splitLine:{show:!1},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;var e="authdata/chart/accuracyAllQX",a={parammaps:{}};"1"==this.tab.chart6.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart6.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart6.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart6.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart6.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart6.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart6.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1));t.tab.chart6.table.list=e.data.data,t.tab.chart6.chartLine_data=e.data.list,t.tab.chart6.total=e.data.total,t.roadChartLine6(t.tab.chart6.chartLine_data)}else t.tab.chart6.list=[];setTimeout((function(){t.tab.chart6.listLoading=!1}),100)}))},roadChartLine6:function(t){null!=this.tab.chart6.chartLine&&this.tab.chart6.chartLine.dispose(),this.tab.chart6.chartLine=n.a.init(document.getElementById("chartLine6"));var e={color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["取消次数"],right:10,show:!0,type:"scroll"},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},xAxis:[{name:"日期",type:"category",data:t.data1,axisTick:{alignWithLabel:!0}}],yAxis:[{name:"次数",interval:1,min:0,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()}},changeStatisticChart7:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart7.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart7.statisticsList.find((function(a){return a.name==e.tab.chart7.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart7.chart7Data3.length;i++)i==a&&s.push(e.tab.chart7.chart7Data3[i])},l=0;l<this.tab.chart7.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart7.chartLine_data.data3=s,this.tab.chart7.chartLine_data.data1=this.tab.chart7.getdataListParm.parammaps.statisticsList,this.roadChartLine7(this.tab.chart7.chartLine_data)},getChart7:function(){var t=this;this.tab.chart7.listLoading=!0;var e="authdata/chart/accuracyAllLS",a={parammaps:{}};"1"==this.tab.chart7.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart7.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart7.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart7.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart7.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart7.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart7.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++){for(var i=[],s=0;s<=e.data.data[a].准确率.length;s++)"."==e.data.data[a].准确率.charAt(s)&&(i[s]=e.data.data[a].准确率.replace(".",":"));e.data.data[a].准确率=i[i.length-1],e.data.data[a].撒料时间=e.data.data[a].准确率}t.tab.chart7.table.list=e.data.data,t.tab.chart7.chartLine_data=e.data.list,t.tab.chart7.statisticsList=[],t.tab.chart7.getdataListParm.parammaps.statisticsList=[];for(var r=0;r<e.data.list.data1.length;r++){t.tab.chart7.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[r]);var l={};l.id=r,l.name=e.data.list.data1[r],t.tab.chart7.statisticsList.push(l)}t.tab.chart7.chart7Data3=e.data.list.data3,t.tab.chart7.total=e.data.total;for(var n=[],o=function(e){for(var a=t.tab.chart7.statisticsList.find((function(a){return a.name==t.tab.chart7.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart7.chart7Data3.length;i++)i==a&&n.push(t.tab.chart7.chart7Data3[i])},c=0;c<t.tab.chart7.getdataListParm.parammaps.statisticsList.length;c++)o(c);t.tab.chart7.chartLine_data.data3=n,t.tab.chart7.chartLine_data.data1=t.tab.chart7.getdataListParm.parammaps.statisticsList,t.roadChartLine7(t.tab.chart7.chartLine_data)}else t.tab.chart7.list=[];setTimeout((function(){t.tab.chart7.listLoading=!1}),100)}))},roadChartLine7:function(t){null!=this.tab.chart7.chartLine&&this.tab.chart7.chartLine.dispose(),this.tab.chart7.chartLine=n.a.init(document.getElementById("chartLine7"));var e={title:{text:""},tooltip:{trigger:"axis",formatter:function(t){for(var e=t[0].name,a=0;a<t.length;a++){for(var i=[],s=0;s<=t[a].value.length;s++)""!==t[a].value?"."==t[a].value.charAt(s)&&(i[s]=t[a].value.replace(".",":")):i[s]="";e+="<br>"+t[a].seriesName+": "+i[i.length-1]}return e}},legend:{data:t.data1,top:10,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"5%",right:"8%",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),null!=this.tab.chart7.chartLine&&(window.onresize=function(){this.tab.chart7.chartLine.resize()})},handleExport:function(t){if("chart1"==t){var e=[{tHeader:["日期","配方名称","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart1.table.list,sheetName:"配方准确率"}];Object(m["c"])(e,"配方准确率",!0,"xlsx")}else if("chart2"==t){var a=[{tHeader:["日期","计划执行重量(kg)","配方理论重量(kg)","计划准确率","计划取消重量(kg)","计划准确率(去除取消重量)","计划正确数","计划数","计划正确率"],filterVal:["日期","实际量","理论量","field1","计划取消重量","field3","正确数","计划数","field2"],tableDatas:this.tab.chart2.table.list,sheetName:"计划统计"}];Object(m["c"])(a,"计划统计",!0,"xlsx")}else if("chart3"==t){var i=[{tHeader:["日期","牲畜类别","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart3.table.list,sheetName:"牛群准确率"}];Object(m["c"])(i,"牛群准确率",!0,"xlsx")}else if("chart4"==t){var s=[{tHeader:["日期","车次","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart4.table.list,sheetName:"车辆准确率(重量)"}];Object(m["c"])(s,"车辆准确率(重量)",!0,"xlsx")}else if("chart5"==t){var r=[{tHeader:["日期","自动跳转次数","手动跳转次数","自动跳转理论重量","自动跳转实际重量","自动跳转准确率","手动跳转理论重量","手动跳转实际重量","手动跳转准确率"],filterVal:["日期","field1","field2","理论自动","实际自动","field3","理论手动","实际手动","field4"],tableDatas:this.tab.chart5.table.list,sheetName:"混料统计"}];Object(m["c"])(r,"混料统计",!0,"xlsx")}else if("chart6"==t){var l=[{tHeader:["日期","混料计划取消次数"],filterVal:["日期","field1"],tableDatas:this.tab.chart6.table.list,sheetName:"混料计划取消次数"}];Object(m["c"])(l,"混料计划取消次数",!0,"xlsx")}else if("chart7"==t){var n=[{tHeader:["日期","栏舍","撒料时间"],filterVal:["日期","fname","准确率"],tableDatas:this.tab.chart7.table.list,sheetName:"栏舍撒料时间统计"}];Object(m["c"])(n,"栏舍撒料时间统计",!0,"xlsx")}},handleTable:function(t){"chart1"==t?(this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1):"chart2"==t?(this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1):"chart3"==t?(this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1):"chart4"==t?(this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1):"chart5"==t?(this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1):"chart6"==t?(this.tab.chart6.isTable=!0,this.tab.chart6.isChart=!1):"chart7"==t&&(this.tab.chart7.isTable=!0,this.tab.chart7.isChart=!1)},handleChart:function(t){"chart1"==t?(this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0,this.getChart1()):"chart2"==t?(this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0,this.getChart2()):"chart3"==t?(this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0,this.getChart3()):"chart4"==t?(this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0,this.getChart4()):"chart5"==t?(this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0,this.getChart5()):"chart6"==t?(this.tab.chart6.isTable=!1,this.tab.chart6.isChart=!0,this.getChart6()):"chart7"==t&&(this.tab.chart7.isTable=!1,this.tab.chart7.isChart=!0,this.getChart7())},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,Object(c["c"])(this.tab2.table.getdataListParm).then((function(e){null!==e.data.list?(t.$refs.plTable2.reloadData(e.data.list),t.tab2.table.total=e.data.total):(t.$refs.plTable2.reloadData([]),t.tab2.table.total=0),setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},handleSearch2:function(){this.tab2.table.getdataListParm.name="getStatisticsHL",this.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.offset=1,this.getTab2List(),this.getTMRNameList2()},handleRefresh2:function(){this.tab2.table.getdataListParm.parammaps.tmrtname="",this.tab2.table.getdataListParm.parammaps.projname="",this.tab2.table.getdataListParm.parammaps.times="",this.tab2.table.getdataListParm.parammaps.templetname="",this.tab2.table.getdataListParm.parammaps.buttontype="",this.getTab2List()},handleExport2:function(){this.exportList.dialogFormVisible=!0,this.exportList.dialogStatus="exportList"},exportList2:function(){var t=this;this.isokDisable=!0;var e="authdata/GetDataByName",a={name:"getStatisticsHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:"",stopTime:"",templetname:"",isuse:""}};a.parammaps.startTime=Object(m["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.tmrtname=this.tab2.table.getdataListParm.parammaps.tmrtname,a.parammaps.projname=this.tab2.table.getdataListParm.parammaps.projname,a.parammaps.times=this.tab2.table.getdataListParm.parammaps.times,a.parammaps.buttontype=this.tab2.table.getdataListParm.parammaps.buttontype,a.parammaps.templetname=this.tab2.table.getdataListParm.parammaps.templetname,a.parammaps.isuse=this.tab2.table.getdataListParm.parammaps.isuse,Object(c["n"])(e,a).then((function(e){var a=[];a=null!==e.data.list?e.data.list:[];var i=[{tHeader:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","准确率","计划时间","开始时间","结束时间"," 跳转方式","开始重量","结束重量","搅拌时间"],filterVal:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","准确率","计划时间","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],tableDatas:a,sheetName:"混料统计"}];Object(m["c"])(i,"混料统计",!0,"xlsx"),t.isokDisable=!1,t.exportList.dialogFormVisible=!1}))},getTab3List:function(){var t=this;this.tab3.table.listLoading=!0,Object(c["c"])(this.tab3.table.getdataListParm).then((function(e){null!==e.data.list?(t.$refs.plTable3.reloadData(e.data.list),t.tab3.table.total=e.data.total):(t.$refs.plTable3.reloadData([]),t.tab3.table.total=0),setTimeout((function(){t.tab3.table.listLoading=!1}),100)}))},handleSearch3:function(){this.tab3.table.getdataListParm.name="getStatisticsSL",this.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.offset=1,this.getTab3List(),this.getTMRNameList3()},handleRefresh3:function(){this.tab3.table.getdataListParm.parammaps.tmrtname="",this.tab3.table.getdataListParm.parammaps.projname="",this.tab3.table.getdataListParm.parammaps.times="",this.tab3.table.getdataListParm.parammaps.templetname="",this.tab3.table.getdataListParm.parammaps.buttontype="",this.tab3.table.getdataListParm.parammaps.fname="",this.getTab3List()},handleExport3:function(){this.exportList.dialogFormVisible=!0,this.exportList.dialogStatus="exportList"},exportList3:function(){var t=this;this.isokDisable=!0;var e="authdata/GetDataByName",a={name:"getStatisticsSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:"",stopTime:"",templetname:"",isuse:""}};a.parammaps.startTime=Object(m["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.tmrtname=this.tab3.table.getdataListParm.parammaps.tmrtname,a.parammaps.projname=this.tab3.table.getdataListParm.parammaps.projname,a.parammaps.times=this.tab3.table.getdataListParm.parammaps.times,a.parammaps.buttontype=this.tab3.table.getdataListParm.parammaps.buttontype,a.parammaps.templetname=this.tab3.table.getdataListParm.parammaps.templetname,a.parammaps.isuse=this.tab3.table.getdataListParm.parammaps.isuse,Object(c["n"])(e,a).then((function(e){var a=[];a=null!==e.data.list?e.data.list:[];var i=[{tHeader:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","准确率","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],filterVal:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","准确率","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],tableDatas:a,sheetName:"撒料统计"}];Object(m["c"])(i,"撒料统计",!0,"xlsx"),t.isokDisable=!1,t.exportList.dialogFormVisible=!1}))},handleSee:function(t,e){1==t?0==this.tab.radio?(this.methodName="getDownloadedplanByJsyHL",this.optdevice=e.驾驶员,this.titlefname="准确性详情——驾驶员:"+e.驾驶员):1==this.tab.radio?(this.methodName="getDownloadedplanByTemHL",this.optdevice=e.配方名称,this.titlefname="准确性详情——配方名称:"+e.配方名称):2==this.tab.radio?(this.methodName="getDownloadedplanByBarHL",this.optdevice=e.栏舍名称,this.titlefname="准确性详情——栏舍名称:"+e.栏舍名称):3==this.tab.radio?(this.methodName="getDownloadedplanBySCHL",this.optdevice=e.牲畜类别,this.titlefname="准确性详情——牲畜类别:"+e.牲畜类别):4==this.tab.radio?(this.methodName="getDownloadedplanByTrainsHL",this.optdevice=e.车次,this.titlefname="准确性详情——车次:"+e.车次):5==this.tab.radio&&(this.methodName="getDownloadedplanByTmrHL",this.optdevice=e.TMR名称,this.titlefname="准确性详情——TMR名称:"+e.TMR名称):0==this.tab.radio?(this.methodName="getDownloadedplanByJsySL",this.optdevice=e.驾驶员,this.titlefname="准确性详情——驾驶员:"+e.驾驶员):1==this.tab.radio?(this.methodName="getDownloadedplanByTemSL",this.optdevice=e.配方名称,this.titlefname="准确性详情——配方名称:"+e.配方名称):2==this.tab.radio?(this.methodName="getDownloadedplanByBarSL",this.optdevice=e.栏舍名称,this.titlefname="准确性详情——栏舍名称:"+e.栏舍名称):3==this.tab.radio?(this.methodName="getDownloadedplanBySCSL",this.optdevice=e.牲畜类别,this.titlefname="准确性详情——牲畜类别:"+e.牲畜类别):4==this.tab.radio?(this.methodName="getDownloadedplanByTrainsSL",this.optdevice=e.车次,this.titlefname="准确性详情——车次:"+e.车次):5==this.tab.radio&&(this.methodName="getDownloadedplanByTmrSL",this.optdevice=e.TMR名称,this.titlefname="准确性详情——TMR名称:"+e.TMR名称),this.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.isShowDialog=!0},getTMRNameList:function(){var t=this,e={name:"getAccuracyMCTmrName",parammaps:{}};e.parammaps.pastureid=p.a.get("pastureid"),e.parammaps.startTime=this.tab.table.getdataListParm.parammaps.startTime,e.parammaps.stopTime=this.tab.table.getdataListParm.parammaps.stopTime,Object(c["c"])(e).then((function(e){null!==e.data.list?t.tab.TMRNameList=e.data.list:t.tab.TMRNameList=[]}))},getTMRNameList2:function(){var t=this,e={name:"getAccuracyMCTmrName",parammaps:{}};e.parammaps.pastureid=p.a.get("pastureid"),e.parammaps.startTime=this.tab2.table.getdataListParm.parammaps.startTime,e.parammaps.stopTime=this.tab2.table.getdataListParm.parammaps.stopTime,Object(c["c"])(e).then((function(e){null!==e.data.list?t.tab2.TMRNameList=e.data.list:t.tab2.TMRNameList=[]}))},getTMRNameList3:function(){var t=this,e={name:"getAccuracyMCTmrName",parammaps:{}};e.parammaps.pastureid=p.a.get("pastureid"),e.parammaps.startTime=this.tab3.table.getdataListParm.parammaps.startTime,e.parammaps.stopTime=this.tab3.table.getdataListParm.parammaps.stopTime,Object(c["c"])(e).then((function(e){null!==e.data.list?t.tab3.TMRNameList=e.data.list:t.tab3.TMRNameList=[]}))}}},f=g,w=(a("1a07"),a("2877")),y=Object(w["a"])(f,i,s,!1,null,"2ab84609",null);e["default"]=y.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:"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.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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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"},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,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,"max-height":t.myHeight},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:"80","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",["create"==t.create.dialogStatus?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:{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:"barname"}},[a("el-input",{ref:"barname",staticClass:"filter-item",attrs:{disabled:"",placeholder:"barname"},model:{value:t.create.temp.barname,callback:function(e){t.$set(t.create.temp,"barname",e)},expression:"create.temp.barname"}})],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:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",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:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.historyRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.historyRecord,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.historyRecord.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"historyRecord"},[a("keep-alive",[a(t.historyRecord.myComponent,{ref:"historyRecord",tag:"component"})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.historyRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2)],1)},s=[],r=(a("7db0"),a("d3b7"),a("b680"),a("ac1f"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),p=a("bc3a"),m=a.n(p),u=a("5f87"),h={name:"FormulaDryMatter",components:{Pagination:c["a"]},data:function(){return{dialogFull:!1,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:parseInt(n.a.get("pageCount")),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["d"])(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:"编辑",historyRecord:"历史记录"},historyRecord:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},requestParam:{},requestParam2:{},download:{getdataListParm:{name:"getFtdryList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},list:[]},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkdryfresh,checkbarname,checktimes,insertFtdryUpload",importParams:"栏舍名称,班次,鲜样重量(g),烘干重量(g),操作人,操作日期",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"操作日期",requiredParams:"栏舍名称,班次,鲜样重量(g),烘干重量(g)",numParams:"鲜样重量(g),烘干重量(g)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){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(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.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["d"])(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["c"])(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["c"])(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}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(){this.resetTemp(),this.getNoteTakerList(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData: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;if(""!==t.create.temp.freshweight&&t.create.temp.dryweight&&parseFloat(t.create.temp.dryweight)>parseFloat(t.create.temp.freshweight))return t.$message({type:"error",message:"烘干重量不可大于鲜样重量",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"));var i="authdata/ftdry/add";Object(r["n"])(i,t.requestParam).then((function(e){if("fail"!==e.msg)t.saveData();else{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})}}))}}))},saveData:function(){var t=this;this.requestParam2.name="insertFtdryHistory",this.create.temp.pastureid=n.a.get("pastureid"),this.create.temp.changetime=Object(o["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),this.requestParam2.parammaps=this.create.temp,Object(r["f"])(this.requestParam2).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},createDataAgain: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;if(""!==t.create.temp.freshweight&&t.create.temp.dryweight&&parseFloat(t.create.temp.dryweight)>parseFloat(t.create.temp.freshweight))return t.$message({type:"error",message:"烘干重量不可大于鲜样重量",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"));var i="authdata/ftdry/add";Object(r["n"])(i,t.requestParam).then((function(e){if("fail"!==e.msg)t.saveData(),t.resetTemp(),t.getList(),t.getNoteTakerList();else{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})}}))}}))},handleUpdate:function(t){t.barid=String(t.barid),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.dialogFull=!1,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;if(""!==t.create.temp.freshweight&&t.create.temp.dryweight&&parseFloat(t.create.temp.dryweight)>parseFloat(t.create.temp.freshweight))return t.$message({type:"error",message:"烘干重量不可大于鲜样重量",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"));var i="authdata/ftdry/add";Object(r["n"])(i,t.requestParam).then((function(e){"fail"!==e.msg?(t.saveData(),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},handleRowDelete:function(t){var e=this;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){this.selectList=t},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(){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){"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}):d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e={common:{returnmap:"0"},data:[{name:"insertSpotList",resultmaps:{list:t.selectList},children:[{name:"copyFtdry",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}}]}]};Object(r["b"])(e).then((function(e){if("fail"===e.msg){var a=new RegExp("key 'barid'");if(a.test(e.data))return void t.$notify({type:"warning",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:"已取消复制"})}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/栏舍生产/配方干物质导入模板.xlsx";m()({method:"GET",url:i,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="配方干物质导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["栏舍名称","班次","鲜样重量(g)","烘干重量(g)","理论干物质","实际干物质","操作人","操作日期"],filterVal:["barname","timesstr","freshweight","dryweight","thoweight","actweight","emp","operatetime"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(o["c"])(a,"配方干物质",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","班次","鲜样重量(g)","烘干重量(g)","操作人","操作日期","错误信息"],r=["栏舍名称","班次","鲜样重量(g)","烘干重量(g)","操作人","操作日期","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"配方干物质导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))},handleHistoryRecord:function(){this.dialogFull=!1,this.historyRecord.dialogStatus="historyRecord",this.historyRecord.dialogFormVisible=!0;var t=this,e=function(){return Promise.resolve().then(a.bind(null,"2f08"))};return t.historyRecord.myComponent=e}}},b=h,g=a("2877"),f=Object(g["a"])(b,i,s,!1,null,null,null);e["default"]=f.exports},"5c0b":function(t,e,a){"use strict";a("9c0c")},"5c67":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="M900.8128 188.416v712.192H253.44c-71.7824 0.1024-130.1504-57.7536-130.56-129.536V253.952c-0.1024-34.6112 13.6192-67.8912 38.1952-92.3648 24.4736-24.4736 57.7536-38.1952 92.4672-38.0928h517.7344v518.144h-517.12c-36.864-0.1024-66.8672 29.5936-66.9696 66.4576v62.1568c0.2048 36.5568 29.9008 66.1504 66.4576 66.3552H835.584V188.416h65.2288zM771.1744 706.3552H252.6208v64.9216h518.5536v-64.9216z m0 0" p-id="23817" /></symbol>'});l.a.add(n);e["default"]=n},"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="M651.18 491.22h82.438l166.571-143.46c-7.275-17.114-15.429-33.572-24.684-49.402L654.597 488.23l-3.418 2.99zM531.947 90.281v67.565l67.818-58.518c-22.08-4.63-44.65-7.953-67.818-9.047z m348.8 400.937l48.087-41.392c-2.92-20.213-7.669-39.825-13.417-58.99l-116.724 100.39h82.054v-0.008zM743.066 159.083l-211.12 181.459v70.952l254.772-219.553c-13.832-11.909-28.44-22.834-43.652-32.858z m-93.72-46.35L531.948 213.735v70.963l172.017-148.306c-17.584-8.974-35.662-17.13-54.62-23.659z m202.502 149.795c-10.533-14.338-21.887-28.007-34.115-40.86L531.946 467.37v23.85h54.435l265.468-228.692zM492.052 90.282c-223.666 10.48-401.91 194.644-401.91 420.845 0 97.936 33.635 187.826 89.62 259.388l312.29-268.522V90.282z m27.276 440.776L205.744 800.714c76.952 81.328 185.508 132.318 306.272 132.318 226.224 0 410.376-178.273 420.878-401.974H519.326z m0 0" p-id="229665" /></symbol>'});l.a.add(n);e["default"]=n},"5e6a":function(t,e,a){},"5ea1":function(t,e,a){},"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)}},"5f89":function(t,e,a){"use strict";a("c195")},"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:"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-autocomplete",{staticClass:"inline-input filter-item",staticStyle:{width:"250px"},attrs:{"value-key":"feedname","fetch-suggestions":t.tableFeedNameSearch,placeholder:"饲料名称"},on:{select:t.handleSelectTableFeedName},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",[t._v(t._s(i.feedname))])]}}]),model:{value:t.table.getdataListParm.parammaps.feedname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"feedname",e)},expression:"table.getdataListParm.parammaps.feedname"}}),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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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:"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,"max-height":t.myHeight}},[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:"50","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:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleSee(i)}}})]}}])})],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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:{"picker-options":t.create.pickerOptions1,clearable:!1,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:"feedname"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{disabled:"see"===t.create.dialogStatus,"value-key":"feedname","fetch-suggestions":t.feedNameSearch,placeholder:"请选择饲料名称"},on:{select:t.handleSelectFeedName,blur:t.blurFeedName},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",[t._v(t._s(i.feedname))])]}}]),model:{value:t.create.createTemp.feedname,callback:function(e){t.$set(t.create.createTemp,"feedname",e)},expression:"create.createTemp.feedname"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牲畜类别:",prop:"cowclassid"}},["see"===t.create.dialogStatus?a("el-input",{ref:"cowclass",staticClass:"filter-item",attrs:{disabled:"",placeholder:"请选择牲畜类别",type:"text",disabled:""},model:{value:t.create.createTemp.cowclass,callback:function(e){t.$set(t.create.createTemp,"cowclass",e)},expression:"create.createTemp.cowclass"}}):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),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作人:",prop:"createemp"}},[a("el-input",{ref:"createemp",staticClass:"filter-item",attrs:{placeholder:"1-255字符",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)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["see"===t.create.dialogStatus?a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]):t._e(),"create"===t.create.dialogStatus?a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]):t._e(),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData()}}},[t._v("确认")]):t._e()],1)],1)],2)],1)},s=[],r=(a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),l=a("333d"),n=a("a78e"),o=a.n(n),c=a("ed08"),d=a("bc3a"),p=a.n(d),m=a("5f87"),u={name:"LaborConsumption",components:{Pagination:l["a"]},data:function(){return{dialogFull:!1,isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["人工用量操作类型"]},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],operationTypeList:[],feedNameList:[],livestockList:[],table:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:parseInt(o.a.get("pageCount")),returntype:"Map",parammaps:{inputDatetime:"",pastureid:o.a.get("pastureid"),startTime:"",stopTime:"",usetype:"",feedid:"",cowclassid:""}},tableKey:0,list:[],total:0,listLoading:!0},create:{pickerOptions1:{disabledDate:function(t){return t.getTime()>Date.now()}},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:o.a.get("pastureid"),usedate:Object(c["d"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",cowclassid:"",cowclass:"",usetype:"",operateweight:"",repertoryweight:"",createemp:"",remark:"",price:"",operator:o.a.get("employename")},getfeedNameParm:{name:"getFeedstorageuse",offset:0,pagecount:"",parammaps:{pastureid:o.a.get("pastureid")}},rules:{usetype:[{type:"string",required:!0,message:"必填",trigger:"blur"}],usedate:[{type:"string",required:!0,message:"必填",trigger:"blur"}],feedname:[{type:"string",required:!0,message:"必填",trigger:"change"}],operateweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]}},textMap:{create:"新增",see:"查看"},requestParam:{},download:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{inputDatetime:"",pastureid:o.a.get("pastureid"),startTime:"",stopTime:"",usetype:"",feedid:"",cowclassid:""}},list:[]},isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"checkFeed,checkclassname,checkfeedusetype,insertFeeduseUpload,insertFeedstorageUseUpload",importParams:"出库日期,操作类型,牲畜类别,饲料名称,操作重量(kg),备注,操作人",sheetname:"Sheet1",pastureid:o.a.get("pastureid"),dateParams:"出库日期",requiredParams:"出库日期,操作类型,饲料名称,操作重量(kg)",numParams:"操作重量(kg)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(this.requestParams).then((function(e){t.operationTypeList=e.data.getDictByName.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.table.getdataListParm.parammaps.startTime=Object(c["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(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["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,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(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(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="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.cowclassid="",this.table.getdataListParm.parammaps.ischarge="",this.table.getdataListParm.parammaps.usetype="",this.table.getdataListParm.parammaps.feedname="",this.table.getdataListParm.parammaps.cowclassid="",this.getList()},changeUsetype:function(t){"损耗"==t?(this.create.createTemp.cowclassid="/",this.create.createTemp.cowclass="/"):(this.create.createTemp.cowclassid="",this.create.createTemp.cowclass="")},tableFeedNameSearch:function(t,e){this.create.getfeedNameParm.parammaps["feedname"]=t,Object(r["c"])(this.create.getfeedNameParm).then((function(t){null==t.data.list?e([]):e(t.data.list)}))},handleSelectTableFeedName:function(t){this.table.getdataListParm.parammaps.feedid=t.feedid},feedNameSearch:function(t,e){this.create.getfeedNameParm.parammaps["feedname"]=t,Object(r["c"])(this.create.getfeedNameParm).then((function(t){null==t.data.list?e([]):e(t.data.list)}))},handleSelectFeedName:function(t){this.create.createTemp.feedname=t.feedname,this.create.createTemp.feedid=t.feedid,this.create.createTemp.price=t.price,this.create.createTemp.pcpde=t.pcpde,this.create.createTemp.repertoryweight=t.stockweight},blurFeedName:function(){this.create.createTemp.feedname="",this.create.createTemp.feedid="",this.create.createTemp.price="",this.create.createTemp.pcpde="",this.create.createTemp.repertoryweight=""},changeLivestock:function(t){this.create.createTemp.cowclass=this.livestockList.find((function(e){return e.id==t})).classname},resetCreateTemp:function(){this.create.createTemp={cowclassid1:"-1",pastureid:o.a.get("pastureid"),usedate:Object(c["d"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",cowclassid:"",cowclass:"",usetype:"",operateweight:"",repertoryweight:"",createemp:o.a.get("employename"),remark:"",price:"",operator:o.a.get("employename")}},handleCreate:function(){var t=this;this.create.dialogStatus="create",this.dialogFull=!1,this.create.dialogFormVisible=!0,this.$nextTick((function(){t.resetCreateTemp(),t.$refs.createTemp.resetFields()}))},createData:function(){var t=this;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;var a=/^\d+(\.\d{1,2})?$/;if(0==t.create.createTemp.operateweight)return t.$message({type:"error",message:"操作重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.operateweight)))return t.$message({type:"error",message:"操作重量请输入自然数并保留两位小数",duration:2e3}),!1;"/"==t.create.createTemp.cowclassid&&"/"==t.create.createTemp.cowclass&&(t.create.createTemp.cowclassid="",t.create.createTemp.cowclass=""),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:"insertFeedstorageUse",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,feedid:t.create.createTemp.feedid,operateweight:t.create.createTemp.operateweight,fname:t.create.createTemp.feedname,pcpde:t.create.createTemp.pcpde,price:t.create.createTemp.price}},Object(r["b"])(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.create.dialogFormVisible=!1,t.getList())}))}}))},handleSee:function(t){var e=this;this.$nextTick((function(){e.$refs.createTemp.resetFields()})),this.dialogFull=!1,this.create.dialogStatus="see",this.create.dialogFormVisible=!0,-1==t.cowclassid&&(t.cowclassid="",t.cowclass=""),this.create.createTemp=Object.assign({},t)},handleRowDelete:function(t){},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/库存管理/人工用量导入模板.xlsx";p()({method:"GET",url:i,data:a,headers:{token:Object(m["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="人工用量导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(c["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(c["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["出库日期","操作类型","牲畜类别","饲料名称","操作重量(kg)","备注","操作人"],filterVal:["usedate","usetype","cowclass","feedname","operateweight","remark","createemp"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(c["c"])(a,"人工用量",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["出库日期","操作类型","牲畜类别","饲料名称","操作重量(kg)","备注","操作人","错误信息"],r=["出库日期","操作类型","牲畜类别","饲料名称","操作重量(kg)","备注","操作人","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"人工用量导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(c["d"])(e[t]):e[t]}))}))}}},h=u,b=(a("24495"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,null,null);e["default"]=g.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 1074 1024",content:'<symbol class="icon" viewBox="0 0 1074 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="M1062.643 948.933L955.892 841.694a233.975 233.975 0 1 0-175.97 80.917 233 233 0 0 0 129.175-38.996l109.188 109.676a31.684 31.684 0 0 0 44.846 0 31.684 31.684 0 0 0 0-44.846z m-282.72-76.53a184.256 184.256 0 1 1 183.279-184.255 183.768 183.768 0 0 1-183.28 184.255zM936.88 238.721c0-6.824-11.211-10.724-19.498-15.111L476.243 2.796a23.885 23.885 0 0 0-22.424 0L78.972 191.438a27.297 27.297 0 0 0 0 48.745L475.755 475.62a74.58 74.58 0 0 0 75.067 0l326.59-183.767v115.524a24.372 24.372 0 0 0 24.373 24.373h6.337a24.372 24.372 0 0 0 24.372-24.373v-164.27a4.387 4.387 0 0 0 0-3.411zM633.688 900.675a24.86 24.86 0 0 0-34.609-9.26l-97.49 57.518-10.236 5.362V594.558a66.293 66.293 0 0 0-34.12-58.982L36.562 287.953a24.372 24.372 0 0 0-36.56 20.96v421.643a24.86 24.86 0 0 0 11.7 21.448s429.93 261.272 438.703 264.197a32.66 32.66 0 0 0 31.684 0l141.848-80.917a23.885 23.885 0 0 0 9.749-34.12zM310.509 538.501a24.86 24.86 0 0 1-33.634 8.287L130.642 458.56a24.86 24.86 0 0 1-8.287-34.12 24.86 24.86 0 0 1 33.634-8.288l146.235 88.228a24.86 24.86 0 0 1 8.286 34.122z m0 0" p-id="216939" /></symbol>'});l.a.add(n);e["default"]=n},"609a":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-select",{staticClass:"filter-item",staticStyle:{"margin-right":"10px","margin-bottom":"10px",width:"150px"},attrs:{filterable:"",placeholder:"牧场",clearable:""},model:{value:t.tab.table.getdataListParm.parammaps.pastureid,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"pastureid",e)},expression:"tab.table.getdataListParm.parammaps.pastureid"}},t._l(t.pastureList,(function(t){return a("el-option",{key:t.pastureid,attrs:{label:t.pasturename,value:t.pastureid}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{float:"left",width:"250px","margin-bottom":"10px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px","margin-bottom":"10px"},attrs:{placeholder:"饲料名称"},model:{value:t.tab.table.getdataListParm.parammaps.feedname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"feedname",e)},expression:"tab.table.getdataListParm.parammaps.feedname"}}),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px","margin-bottom":"10px"},on:{click:function(e){return t.handleSearch("first")}}},[t._v("查询")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},on:{click:function(e){return t.handleExport(t.tab1)}}},[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:{sortable:"",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"}},[a("el-table-column",{attrs:{sortable:"",prop:"startsum",align:"center",label:"期初库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"startprice",align:"center",label:"期初金额(元)","min-width":"120"}})],1),a("el-table-column",{attrs:{label:"用量","min-width":"110px",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"laidsum",align:"center",label:"入库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"usesumXT",align:"center",label:"系统出库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"usesumRG",align:"center",label:"人工用料重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"usesumXH",align:"center",label:"损耗重量(kg)","min-width":"120"}})],1),a("el-table-column",{attrs:{label:"期末","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"stopsum",align:"center",label:"期末库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"stopprice",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-select",{staticClass:"filter-item",staticStyle:{"margin-right":"10px","margin-bottom":"10px",width:"130px"},attrs:{filterable:"",placeholder:"牧场",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.pastureid,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"pastureid",e)},expression:"tab2.table.getdataListParm.parammaps.pastureid"}},t._l(t.pastureList,(function(t){return a("el-option",{key:t.pastureid,attrs:{label:t.pasturename,value:t.pastureid}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",attrs:{disabled:t.Beforedisabled2},on:{click:t.handleBefore2}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled2},on:{click:t.handleNext2}}),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 filter-item1",staticStyle:{width:"170px"},attrs:{placeholder:"牲畜类别"},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"}}):t._e(),t.tab2.isRadio2?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"170px"},attrs:{placeholder:"栏舍名称"},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"}}):t._e(),t.tab2.isRadio3?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"170px"},attrs:{placeholder:"日期"},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"}}):t._e(),t.tab2.isRadio4?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"170px"},attrs:{placeholder:"TMR设备编号"},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"}}):t._e(),t.tab2.isRadio5?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"170px"},attrs:{placeholder:"班次"},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"}}):t._e(),t.tab2.isRadio6?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"170px"},attrs:{placeholder:"车次"},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"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:function(e){return t.handleSearch("second")}}},[t._v("查询")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"5px"},on:{click:function(e){return t.handleExport("tab2")}}},[t._v("导出")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table.listLoading,expression:"tab2.table.listLoading"}],key:t.tab2.table.tableKey,ref:"elTable1",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,height:t.myHeight2}},t._l(t.tab2.table.tableConfig,(function(e){return a("el-table-column",{attrs:{align:"center",label:e.label,prop:e.prop}},t._l(e.children,(function(i){return e.children||e.children.length>0?a("el-table-column",{attrs:{align:"center",label:i.label,prop:i.prop}},t._l(i.children,(function(e){return i.children||i.children.length>0?a("el-table-column",{attrs:{label:e.label,prop:e.prop}}):t._e()})),1):t._e()})),1)})),1),0==t.tab2.table.listLoading&&t.tab2.table.list.length>0?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab2.table.total)+"条")]):t._e()],1),a("el-tab-pane",{attrs:{label:"价格分析",name:"third"}},[a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{"margin-right":"10px","margin-bottom":"10px",width:"150px"},attrs:{filterable:"",placeholder:"牧场",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.pastureid,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"pastureid",e)},expression:"tab3.table.getdataListParm.parammaps.pastureid"}},t._l(t.pastureList,(function(t){return a("el-option",{key:t.pastureid,attrs:{label:t.pasturename,value:t.pastureid}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",attrs:{disabled:t.Beforedisabled3},on:{click:t.handleBefore3}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled3},on:{click:t.handleNext3}}),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设备编号")]),t.tab3.isRadio1?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"180px"},attrs:{placeholder:"牲畜类别"},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"}}):t._e(),t.tab3.isRadio2?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"180px"},attrs:{placeholder:"栏舍名称"},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"}}):t._e(),t.tab3.isRadio3?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"180px"},attrs:{placeholder:"日期"},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"}}):t._e(),t.tab3.isRadio4?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"180px"},attrs:{placeholder:"TMR设备编号"},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"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:function(e){return t.handleSearch("third")}}},[t._v("查询")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"5px"},on:{click:function(e){return t.handleExport("tab3")}}},[t._v("导出")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab3.table.listLoading,expression:"tab3.table.listLoading"}],key:t.tab3.table.tableKey,ref:"elTable2",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,height:t.myHeight2}},t._l(t.tab3.table.tableConfig,(function(e){return a("el-table-column",{attrs:{align:"center",label:e.label,prop:e.prop}},t._l(e.children,(function(i){return e.children||e.children.length>0?a("el-table-column",{attrs:{align:"center",label:i.label,prop:i.prop}},t._l(i.children,(function(e){return i.children||i.children.length>0?a("el-table-column",{attrs:{label:e.label,prop:e.prop}}):t._e()})),1):t._e()})),1)})),1),0==t.tab3.table.listLoading&&t.tab3.table.list.length>0?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab3.table.total)+"条")]):t._e()],1)],1)],1)},s=[],r=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d={name:"GroupInventoryManagement",components:{Pagination:c["a"]},data:function(){var t=this;return{Beforedisabled:!1,Nextdisabled:!1,Beforedisabled2:!1,Nextdisabled2:!1,pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},requestParams:[{name:"getPastureListJT",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),pasturename:""}}],pastureList:[],fileComment:[{label:"商务文件评分",children:[{label:"1"},{label:"2"},{label:"管理员"}]}],activeName:"first",tab:{chartDate:[],table:{getdataListParm:{name:"getfsStaticlist",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],feedname:""}},tableKey:1,list:[],total:0,listLoading:!1}},tab2:{chartDate:[],table:{getdataListParm:{name:"getMaterialAnalysisSC",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:"",startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:""}},tableKey:1,list:[],tableConfig:[],total:0,listLoading:!1},radio:"1",isRadio1:!0,isRadio2:!1,isRadio3:!1,isRadio4:!1,isRadio5:!1,isRadio6:!1},tab3:{chartDate:[],table:{getdataListParm:{name:"getPriceAnalysisSC",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:""}},tableKey:1,list:[],tableConfig:[],total:0,listLoading:!1},radio:"1",isRadio1:!0,isRadio2:!1,isRadio3:!1,isRadio4:!1},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight2:document.documentElement.clientHeight-85-200}},updated:function(){this.$refs["elTable1"].doLayout(),this.$refs["elTable2"].doLayout()},created:function(){this.getDownList(),this.getTimeFn()},methods:{getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.pastureList=e.data.getPastureListJT.list,t.tab.table.getdataListParm.parammaps.pastureid=e.data.getPastureListJT.list[0].pastureid,t.getTabList()}))},getTimeFn:function(){var t=this,e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.setTime(e.getTime()-864e5),t.tab.chartDate[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab.chartDate[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.stopTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.inputDatetime=[a,e],t.tab2.chartDate[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab2.chartDate[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.inputDatetime=[a,e],t.tab3.chartDate[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab3.chartDate[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.inputDatetime=[a,e]},handleTabClick:function(){if("first"==this.activeName){var t=new Date,e=new Date;t.setTime(t.getTime()-864e5),e.setTime(e.getTime()-864e5),this.tab.table.getdataListParm.parammaps.inputDatetime=[t,e],this.getTabList()}else if("second"==this.activeName){var a=new Date,i=new Date;a.setTime(a.getTime()-864e5),i.setTime(i.getTime()-864e5),this.tab2.table.getdataListParm.parammaps.inputDatetime=[a,i],this.tab2.table.getdataListParm.parammaps.pastureid=this.pastureList[0].pastureid,this.getTab2List()}else if("third"==this.activeName){var s=new Date,r=new Date;s.setTime(s.getTime()-864e5),r.setTime(r.getTime()-864e5),this.tab3.table.getdataListParm.parammaps.inputDatetime=[s,r],this.tab3.table.getdataListParm.parammaps.pastureid=this.pastureList[0].pastureid,this.getTab3List()}},getTabList:function(){var t=this;this.tab.table.listLoading=!0,Object(r["c"])(this.tab.table.getdataListParm).then((function(e){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(t){"first"==t?(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.getTabList()):"second"==t?(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime?(this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab2.table.getdataListParm.parammaps.inputDatetime="",this.tab2.table.getdataListParm.parammaps.startTime="",this.tab2.table.getdataListParm.parammaps.stopTime=""),this.getTab2List()):"third"==t&&(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime?(this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab3.table.getdataListParm.parammaps.inputDatetime="",this.tab3.table.getdataListParm.parammaps.startTime="",this.tab3.table.getdataListParm.parammaps.stopTime=""),this.getTab3List())},handleExport:function(t){var e=this;if("tab1"==t);else if("tab2"==t){for(var i=[],s=[],r=0;r<this.tab2.table.tableConfig.length;r++){i.push(this.tab2.table.tableConfig[r].label);for(var l=0;l<this.tab2.table.tableConfig[r].children.length;l++)s.push(this.tab2.table.tableConfig[r].children[l].label)}for(var n=[],o=0;o<i.length;o++)o>0?n.push(i[o],"","",""):n.push(i[o]);for(var c=[],d=0;d<s.length;d++)0==d?c.push("A"):c.push("a"+[d-1]);n.length>0&&Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-5c4dc4a9")]).then(a.bind(null,"0e87")).then((function(t){var a=[n],i=[],r=s,l=c,o=e.tab2.table.list.map((function(t){return l.map((function(e){return t[e]}))})),d=["A1:A1"];t.export_json_to_excel({multiHeader:a,multiHeader2:i,header:r,data:o,filename:"用料分析",merges:d})}))}else if("tab3"==t){i=[],s=[];for(var p=0;p<this.tab3.table.tableConfig.length;p++){i.push(this.tab3.table.tableConfig[p].label);for(var m=0;m<this.tab3.table.tableConfig[p].children.length;m++)s.push(this.tab3.table.tableConfig[p].children[m].label)}n=[];for(var u=0;u<i.length;u++)u>0?n.push(i[u],""):n.push(i[u]);c=[];for(var h=0;h<s.length;h++)0==h?c.push("A"):c.push("a"+[h-1]);n.length>0&&Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-5c4dc4a9")]).then(a.bind(null,"0e87")).then((function(t){var a=[n],i=[],r=s,l=c,o=e.tab3.table.list.map((function(t){return l.map((function(e){return t[e]}))})),d=["A1:A1"];t.export_json_to_excel({multiHeader:a,multiHeader2:i,header:r,data:o,filename:"价格分析",merges:d})}))}},format:function(t){for(var e=[],a=0;a<t.length;a++){var i=[];i.push(t[a].index),i.push(t[a].Personel),i.push(t[a].address);for(var s=0;s<t[0]["time"].length;s++)i.push(t[a]["time"][s].morning),i.push(t[a]["time"][s].afternoon);e.push(i)}return e},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,Object(r["e"])(this.tab2.table.getdataListParm).then((function(e){null!==e.data&&null!==e.data.data&&null!==e.data.data1?(t.tab2.table.list=e.data.list.data1,t.tab2.table.tableConfig=e.data.list.data2,t.tab2.table.total=e.data.total):t.tab2.table.list=[],setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},changeRadio2:function(){"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.getdataListParm.name="getMaterialAnalysisSC",this.tab2.table.getdataListParm.offset=1,this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisLS",this.tab2.table.getdataListParm.offset=1,this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisRQ",this.tab2.table.getdataListParm.offset=1,this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisTMR",this.tab2.table.getdataListParm.offset=1,this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisBC",this.tab2.table.getdataListParm.offset=1,this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisCC",this.tab2.table.getdataListParm.offset=1,this.getTab2List())},getTab3List:function(){var t=this;this.tab3.table.listLoading=!0,Object(r["e"])(this.tab3.table.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list.data1&&null!==e.data.list.data2?(t.tab3.table.list=e.data.list.data1,t.tab3.table.tableConfig=e.data.list.data2,t.tab3.table.total=e.data.total):t.tab3.table.list=[],setTimeout((function(){t.tab3.table.listLoading=!1}),100)}))},changeRadio3:function(){"1"==this.tab3.radio?(this.tab3.isRadio1=!0,this.tab3.isRadio2=!1,this.tab3.isRadio3=!1,this.tab3.isRadio4=!1,this.tab3.table.getdataListParm.name="getPriceAnalysisSC",this.tab3.table.getdataListParm.offset=1,this.getTab3List()):"2"==this.tab3.radio?(this.tab3.isRadio1=!1,this.tab3.isRadio2=!0,this.tab3.isRadio3=!1,this.tab3.isRadio4=!1,this.tab3.table.getdataListParm.name="getPriceAnalysisLS",this.tab3.table.getdataListParm.offset=1,this.getTab3List()):"3"==this.tab3.radio?(this.tab3.isRadio1=!1,this.tab3.isRadio2=!1,this.tab3.isRadio3=!0,this.tab3.isRadio4=!1,this.tab3.table.getdataListParm.name="getPriceAnalysisRQ",this.tab3.table.getdataListParm.offset=1,this.getTab3List()):"4"==this.tab3.radio&&(this.tab3.isRadio1=!1,this.tab3.isRadio2=!1,this.tab3.isRadio3=!1,this.tab3.isRadio4=!0,this.tab3.table.getdataListParm.name="getPriceAnalysisTMR",this.tab3.table.getdataListParm.offset=1,this.getTab3List())},handleBefore:function(){if(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList()},handleNext:function(){if(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList()},handleBefore2:function(){if(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));e>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab2.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()},handleNext2:function(){if(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));e>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab2.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()},handleBefore3:function(){if(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));e>Date.now()-864e5?(this.Nextdisabled3=!0,this.Beforedisabled3=!1):(this.Nextdisabled3=!1,this.Beforedisabled3=!1),this.tab3.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab3.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List()},handleNext3:function(){if(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));e>Date.now()-864e5?(this.Nextdisabled3=!0,this.Beforedisabled3=!1):(this.Nextdisabled3=!1,this.Beforedisabled3=!1),this.tab3.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab3.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List()}}},p=d,m=(a("7ece"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"172f8b17",null);e["default"]=u.exports},"60b1":function(t,e,a){"use strict";a("4996")},"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("53ca"),a("ac1f"),a("00b4"),a("e9c4"),a("d9e2"),a("a9e3");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("d3b7"),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",staticStyle:{position:"relative"}},["first"==t.activeName?a("div",{staticClass:"operation",staticStyle:{position:"absolute",top:"-5px",right:"10px","z-index":"1"}},[a("el-button",{staticClass:"import",attrs:{icon:"el-icon-upload2"},on:{click:function(e){return t.handleExport("tab1")}}},[t._v("导出")])],1):t._e(),"second"==t.activeName?a("div",{staticClass:"operation",staticStyle:{position:"absolute",top:"-5px",right:"10px","z-index":"1"}},[a("el-button",{staticClass:"import",attrs:{icon:"el-icon-upload2"},on:{click:function(e){return t.handleExport("tab2")}}},[t._v("导出")])],1):t._e(),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:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab1.listLoading,expression:"tab1.listLoading"}],key:t.tab1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.tab1.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"预混配方","min-width":"130px",align:"center",prop:"pftname"}}),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.stockweight))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"number"},model:{value:e.row.stockweight,callback:function(a){t.$set(e.row,"stockweight",a)},expression:"scope.row.stockweight"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"预计使用天数","min-width":"130px",align:"center",prop:"days"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"80","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isUpdate&&t.isRoleEdit?a("a",{staticClass:"correcting",on:{click:function(e){return t.handleUpdate(i)}}},[t._v("校正")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1),0==t.tab1.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab1.total)+"条")]):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.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:"50","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,icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}})]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1)])],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.see.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:"cancelClose cancelClose1",on:{click:function(e){t.see.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2)],1)},s=[],r=(a("b0c0"),a("ac1f"),a("00b4"),a("2934")),l=a("333d"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"Warning",components:{Pagination:l["a"]},data:function(){return{dialogFull:!1,isRoleEdit:[],activeName:"first",tab1:{getdataListParm:{name:"getPreMixStorageLsit",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0},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},download:{getdataListParm:{name:"",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},list:[]},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-110}},created:function(){this.getButtons(),void 0==this.$route.params.jmp?this.getTab1List():(this.activeName="second",this.getTab2List())},methods:{getButtons:function(){var t="Warning",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},handleClick:function(t){"first"==t.name?this.getTab1List():this.getTab2List()},getTab1List:function(){var t=this;this.tab1.listLoading=!0,Object(r["c"])(this.tab1.getdataListParm).then((function(e){if(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.tab1.list=e.data.list,t.tab1.pageNum=e.data.pageNum,t.tab1.pageSize=e.data.pageSize,t.tab1.total=e.data.total}else t.tab1.list=[];setTimeout((function(){t.tab1.listLoading=!1}),100)}))},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(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),""==t.stockweight)return this.$message({type:"error",message:"当前配方剩余重量不能为空",duration:2e3}),!1;var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(t.stockweight)))return this.$message({type:"error",message:"当前配方剩余重量请输入自然数并保留两位小数",duration:2e3}),!1;this.requestParam.name="updatePreMixStorage",this.requestParam.parammaps={},this.requestParam.parammaps.pastureid=t.pastureid,this.requestParam.parammaps.id=t.id,this.requestParam.parammaps.stockweight=t.stockweight,Object(r["f"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getTab1List()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getTab1List()},getTab2List:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?t.table.list=e.data.list:t.table.list=[],t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSee:function(t){this.see.dialogStatus="see",this.dialogFull=!1,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["c"])(this.see.getdataListParm).then((function(e){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(t){var e=this;if("tab1"==t){var a=[{tHeader:["预混配方","当前剩余量","预计使用天数"],filterVal:["pftname","stockweight","days"],tableDatas:this.tab1.list,sheetName:"Sheet1"}];Object(c["c"])(a,"预混记录",!0,"xlsx")}else this.download.getdataListParm.name="getFsWarnList",Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["饲料名称","库存量(kg)","近七天平均计划量(kg)","剩余使用天数","最新预警日期"],filterVal:["feedname","stockweight","avgweight","ldays","lastdate"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(c["c"])(a,"库存预警",!0,"xlsx")}))}}},p=d,m=a("2877"),u=Object(m["a"])(p,i,s,!1,null,null,null);e["default"]=u.exports},"626e":function(t,e,a){"use strict";a("be62")},"63c1":function(t,e,a){"use strict";a("649f")},"649f":function(t,e,a){},"64e3":function(t,e,a){"use strict";a("892a")},"64ec":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("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增车次")]),a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[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":"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",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number"},model:{value:e.row.sort,callback:function(a){t.$set(e.row,"sort","string"===typeof a?a.trim():a)},expression:"scope.row.sort"}}):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.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":"120px",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":"100px",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:"",clearable:"",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":"80px",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.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":"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:"混料重量","min-width":"90px",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","min-width":"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:1==i.havebutton,icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",attrs:{disabled:1==i.havebutton,icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1)],1)])},s=[],r=(a("7db0"),a("d3b7"),a("a434"),a("4e82"),a("ac1f"),a("00b4"),a("b0c0"),a("2934")),l=a("aa47"),n=a("333d"),o=a("a78e"),c=a.n(o),d=a("5c96"),p={name:"PremixedPlan",components:{Pagination:n["a"]},props:{show:{type:Boolean,default:!1},parentDate:{type:String,defalut:""}},data:function(){return{date:"",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:"getLPPCodeListdate",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:""}},carFollowList:[],table:{getdataListParm:{name:"getPremixplanListdate",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0},selectList:[],isokDisable:!1,requestParam:{},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},dropState:!1}},watch:{show:{immediate:!0,handler:function(t,e){}},parentDate:{immediate:!0,handler:function(t,e){this.date=t}}},created:function(){this.getDownList(),this.getIsDisplay(),this.getList()},methods:{getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.TMRNumberList=e.data.getTMRYHList.list,t.formulaNameList=e.data.getFTYHList.list}))},getIsDisplay:function(){var t=this;Object(r["c"])(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,this.table.getdataListParm.parammaps.date=this.date,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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=""==t?"":this.carFollowList.find((function(e){return e.id==t})).lppcode},changeTimes:function(t,e){this.getCarFollowParm.parammaps.times=t,this.getCarFollowList(e)},getCarFollowList:function(t){var e=this;this.getCarFollowParm.parammaps.date=this.date,Object(r["c"])(this.getCarFollowParm).then((function(a){null!==a.data.list&&(e.carFollowList=a.data.list,t.lppid=e.carFollowList[0].id,t.lppcode=e.carFollowList[0].lppcode)}))},handleEnableChange:function(){},rowDrop:function(){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)}})},handleCreate:function(){this.dropState=!0;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;var e=1;e=this.table.list.length>0?parseInt(this.table.list[this.table.list.length-1].sort)+1:1,this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,sort:e,ftid:"",ftname:"",tmrcode:"",tmrid:"",times:"",lppcode:"",lppid:"",ptime:"",maxweight:"",operateweight:""})},createData:function(t){var e=this;if(""==t.sort&&""==t.ftid&&""==t.tmrid&&""==t.times&&""==t.operateweight)return this.$message({type:"error",message:"车次/配方名称/TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==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.sort||0==t.sort)return this.$message({type:"error",message:"车次不能为空且大于0",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&&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(""!==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="insertPremixplandate",t.date=this.date,this.requestParam.parammaps=t,this.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["f"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},createCancel:function(t){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=this,a=0;a<this.table.list.length;a++)if(1==this.table.list[a].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),"第一班"==t.times?(this.getCarFollowParm.parammaps.times="1",t.times="1"):"第二班"==t.times?(this.getCarFollowParm.parammaps.times="2",t.times="2"):"第三班"==t.times?(this.getCarFollowParm.parammaps.times="3",t.times="3"):"第四班"==t.times&&(this.getCarFollowParm.parammaps.times="4",t.times="4"),Object(r["c"])(this.getCarFollowParm).then((function(t){null!==t.data.list&&(e.carFollowList=t.data.list)})),this.dropState=!0},updateData:function(t){var e=this;if(""==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+$/;return""===t.sort||i.test(parseFloat(t.sort))?""==t.sort||0==t.sort?(this.$message({type:"error",message:"车次不能为空且大于0",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updatePremixplandate",t.date=this.date,this.requestParam.parammaps=t,void Object(r["f"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))):(this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1)},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList(),this.dropState=!1},handleSelect:function(t){this.selectList=t},handleRowDelete:function(t){var e=this;d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.name="deletePremixplandate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,e.requestParam.parammaps.date=e.date,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(){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:"deletePremixplandate",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",date:t.date}},Object(r["b"])(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())}))}))}}},m=p,u=a("2877"),h=Object(u["a"])(m,i,s,!1,null,null,null);e["default"]=h.exports},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},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 1097 1024",content:'<symbol class="icon" viewBox="0 0 1097 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="M1046.984411 467.748571h-142.336V47.396571c0-26.038857-22.601143-47.396571-50.176-47.396571H460.305554c-27.574857 0-50.176 21.357714-50.176 47.396571l-50.249143 420.352H239.633554c-27.648 0-50.249143 21.284571-50.249143 47.323429l-40.448 324.315429-55.734857-4.022858 45.568-336.091428a35.547429 35.547429 0 0 0-0.877714-11.337143 39.716571 39.716571 0 0 0-36.205714-29.257143 42.057143 42.057143 0 0 0-2.633143 0l-0.365714-0.073143H98.102126a39.058286 39.058286 0 0 0-1.974857 0.073143l-0.950858 0.073143-1.024 0.073143-0.877714 0.146286-1.097143 0.146285-0.804571 0.146286-1.097143 0.219429-0.804571 0.146285-1.097143 0.292572-0.731429 0.146285-1.170286 0.365715-0.731428 0.219428-1.170286 0.365715-0.585143 0.219428a41.837714 41.837714 0 0 0-1.389714 0.585143l-0.365714 0.146286a40.667429 40.667429 0 0 0-1.755429 0.731428l-0.073143 0.073143a42.788571 42.788571 0 0 0-1.609143 0.804572l-0.438857 0.292571-1.170285 0.731429-0.512 0.292571-1.024 0.658286-0.585143 0.365714a38.765714 38.765714 0 0 0-0.950857 0.731429l-0.585143 0.365714-0.877715 0.731428-0.585142 0.438858a34.669714 34.669714 0 0 0-0.804572 0.731428l-0.585143 0.512a36.205714 36.205714 0 0 0-7.460571 9.435429l-0.438857 0.731428a35.108571 35.108571 0 0 0-0.438857 0.877715l-0.365715 0.731428a35.620571 35.620571 0 0 0-0.438857 0.950857l-0.292571 0.731429a36.571429 36.571429 0 0 0-0.365715 0.950857l-0.292571 0.731429-0.365714 1.024c0 0.292571-0.146286 0.512-0.219429 0.731428l-0.292571 1.097143-0.146286 0.731429-0.292571 1.097142-0.146286 0.731429c0 0.438857-0.146286 0.877714-0.219429 1.243429v0.585142A36.059429 36.059429 0 0 0 58.604983 493.714286l-58.441143 430.811428a35.84 35.84 0 0 0 4.388571 19.894857 40.374857 40.374857 0 0 0 35.401143 20.699429H40.904411a40.301714 40.301714 0 0 0 3.949715-0.219429l0.877714-0.073142 1.097143-0.146286 0.804571-0.146286 1.097143-0.219428 0.804572-0.219429 1.097142-0.219429 0.731429-0.219428 1.170286-0.292572 0.731428-0.219428 1.170286-0.438857 0.585143-0.219429a41.837714 41.837714 0 0 0 1.462857-0.585143c0.073143 0 0.219429 0 0.292571-0.146285a40.96 40.96 0 0 0 3.364572-1.609143l0.512-0.219429a42.130286 42.130286 0 0 0 1.170286-0.731428l0.512-0.292572 1.024-0.731428 0.585142-0.365715 0.950858-0.658285 0.585142-0.438858 0.877715-0.731428 0.585143-0.438857a41.910857 41.910857 0 0 0 0.804571-0.731429l0.585143-0.512a37.156571 37.156571 0 0 0 2.048-2.048l0.512-0.512a34.889143 34.889143 0 0 0 5.778286-8.411428l0.365714-0.731429 0.438857-0.950857 0.292571-0.731429a36.571429 36.571429 0 0 0 0.365715-1.024l0.292571-0.731428 0.365714-1.024 0.219429-0.731429 0.292571-1.024 0.146286-0.731428 0.292572-1.170286 0.146285-0.731429 0.146286-1.243428 0.146286-0.585143a34.816 34.816 0 0 0 0.146285-1.901714l2.486858-18.212572 56.612571 4.096-0.292571 2.048c0 26.038857 22.674286 47.396571 50.249142 47.396572h102.253715c17.554286 23.405714 42.569143 41.398857 71.899428 50.907428 15.140571 4.973714 31.451429 7.753143 48.347429 7.753143 49.444571 0 93.110857-23.186286 119.442286-58.660571h141.312c25.161143 32.402286 65.097143 54.052571 110.445714 56.100571l3.510857 0.146286H790.545554c48.274286 0 91.136-22.162286 117.613715-56.32h138.825142c27.648 0 50.249143-21.211429 50.249143-47.323429V515.072c0-26.038857-22.674286-47.323429-50.249143-47.323429zM411.884983 948.150857c-35.986286 0-65.243429-27.648-65.243429-61.586286 0-33.938286 29.257143-61.586286 65.243429-61.586285 36.059429 0 65.316571 27.648 65.316571 61.586285 0 33.938286-29.257143 61.586286-65.316571 61.586286z m112.054857-425.398857c-13.750857 0-25.088-10.678857-25.088-23.698286l50.249143-348.891428c0-13.019429 11.264-23.625143 25.088-23.625143h181.394286c13.897143 0 25.161143 10.605714 25.161142 23.698286L768.090697 499.053714c0 13.019429-11.264 23.698286-25.088 23.698286H523.93984z m266.605714 423.058286c-35.986286 0-65.316571-27.648-65.316571-61.586286 0-34.011429 29.257143-61.659429 65.316571-61.659429s65.316571 27.648 65.316572 61.659429c0 33.938286-29.257143 61.586286-65.316572 61.586286z" p-id="217796" /></symbol>'});l.a.add(n);e["default"]=n},"664b":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.isAll?"isAll":"",attrs:{id:"mySelect"}},[a("el-select",{attrs:{multiple:"",filterable:"",placeholder:"请选择","popper-class":"cheng"},on:{change:t.selectChange,"visible-change":t.vselectChange},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}},t._l(t.selectOption,(function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1)},s=[],r=(a("d81d"),a("a434"),{name:"MySelect",components:{},props:{option:{type:Array,default:[]},label:{type:String,default:"label"},value:{type:String,default:"value"}},data:function(){return{searchSelect:[],oldSearchSelect:[],selectOption:[],isAll:!0,checkedIds:[]}},computed:{},watch:{option:function(){var t=this;if(0!=this.option.length&&this.value in this.option[0]&&this.label in this.option[0]){this.selectOption=[],this.selectOption.push({value:"all",label:"全部"}),this.option.map((function(e){t.selectOption.push({value:e[t.value],label:e[t.label]})}));var e=[],a=[];this.selectOption.map((function(t){e.push(t.value),a.push(t.value)})),this.searchSelect=e,this.oldSearchSelect=a}}},mounted:function(){},methods:{selectChange:function(){var t=this,e=this.oldSearchSelect.indexOf("all"),a=this.searchSelect.indexOf("all");if(-1!=e&&-1!=a)this.searchSelect.splice(a,1),this.isAll=!1,this.saveNewSearchSelect();else if(-1==e&&-1!=a)this.searchSelect.splice(0),this.oldSearchSelect.splice(0),this.isAll=!0,this.selectOption.map((function(e){t.searchSelect.push(e.value),t.oldSearchSelect.push(e.value)}));else if(-1!=e&&-1==a)this.searchSelect.splice(0),this.oldSearchSelect.splice(0),this.isAll=!1;else if(-1==e&&-1==a){var i=[];this.selectOption.map((function(t){"all"!=t.value&&i.push(t.value)})),i.length==this.searchSelect.length&&(this.isAll=!0,this.searchSelect.splice(0,0,"all"),this.saveNewSearchSelect())}},saveNewSearchSelect:function(){var t=this;this.oldSearchSelect.splice(0),this.searchSelect.map((function(e){t.oldSearchSelect.push(e)}))},vselectChange:function(){this.$emit("searchSelect",this.searchSelect)}}}),l=r,n=(a("ba33"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,null,null);e["a"]=o.exports},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},"672d":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-container1"},[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:"140px","margin-top":"5px"},attrs:{clearable:!1,type:"date",placeholder:"选择日期"},on:{change:t.changeTab1Date},model:{value:t.tab.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"date",e)},expression:"tab.table.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",attrs:{disabled:t.Beforedisabled1},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled1},on:{click:t.handleNext}}),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.ftname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"ftname",e)},expression:"tab.table.getdataListParm.parammaps.ftname"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"栏舍"},model:{value:t.tab.table.getdataListParm.parammaps.barname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"barname",e)},expression:"tab.table.getdataListParm.parammaps.barname"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"配方模板"},model:{value:t.tab.table.getdataListParm.parammaps.ftname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"ftname",e)},expression:"tab.table.getdataListParm.parammaps.ftname"}}):t._e(),t.tab.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牲畜类别"},model:{value:t.tab.table.getdataListParm.parammaps.cowclass,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"cowclass",e)},expression:"tab.table.getdataListParm.parammaps.cowclass"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"},on:{click:t.handleDownload}},[t._v("导出")]),a("svg-icon",{staticClass:"down",staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpChart}})],1),a("div",{staticClass:"table",attrs:{id:"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,"max-height":t.myHeight}},[t.tab.isFormulaName?a("el-table-column",{attrs:{sortable:"",label:"配方模板","min-width":"70px",align:"center",prop:"配方模板"}}):t._e(),t.tab.isHouseName?a("el-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"70px",align:"center",prop:"栏舍"}}):t._e(),t.tab.isHouseName?a("el-table-column",{attrs:{sortable:"",label:"配方模板","min-width":"70px",align:"center",prop:"配方模板"}}):t._e(),t.tab.isLivestockType?a("el-table-column",{attrs:{sortable:"",label:"牲畜类别","min-width":"70px",align:"center",prop:"牲畜类别"}}):t._e(),a("el-table-column",{attrs:{sortable:"",label:"实际牛头数","min-width":"60px",align:"center",prop:"实际牛头数"}}),a("el-table-column",{attrs:{sortable:"",label:"应混料量(kg)","min-width":"60px",align:"center",prop:"应混料量"}}),a("el-table-column",{attrs:{sortable:"",label:"实际混料量(kg)","min-width":"70px",align:"center",prop:"实际混料量"}}),a("el-table-column",{attrs:{sortable:"",label:"撒料量(kg)","min-width":"60px",align:"center",prop:"撒料量"}}),a("el-table-column",{attrs:{sortable:"",label:"平均混料时间","min-width":"70px",align:"center",prop:"混料时间"}}),a("el-table-column",{attrs:{sortable:"",label:"转投剩料量(kg)","min-width":"70px",align:"center",prop:"转投剩料量"}}),a("el-table-column",{attrs:{sortable:"",label:"今日剩料量(kg)","min-width":"70px",align:"center",prop:"今日剩料量"}}),a("el-table-column",{attrs:{sortable:"",label:"剩料率(%)","min-width":"60px",align:"center",prop:"剩料率"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR干物质(%)","min-width":"65px",align:"center",prop:"TMR干物质"}}),a("el-table-column",{attrs:{sortable:"",label:"配方干物质采食量(kg/头)","min-width":"80px",align:"center",prop:"配方干物质采食量"}}),a("el-table-column",{attrs:{sortable:"",label:"实际干物质采食量(kg/头)","min-width":"80px",align:"center",prop:"实际干物质采食量"}}),a("el-table-column",{attrs:{sortable:"",label:"采食率(%)","min-width":"60px",align:"center",prop:"采食率"}}),a("el-table-column",{attrs:{sortable:"",label:"配方成本(元/头)","min-width":"65px",align:"center",prop:"配方成本"}}),a("el-table-column",{attrs:{sortable:"",label:"实际成本(元/头)","min-width":"65px",align:"center",prop:"实际成本"}}),a("el-table-column",{attrs:{sortable:"",label:"产奶量(kg/头)","min-width":"65px",align:"center",prop:"产奶量"}}),a("el-table-column",{attrs:{sortable:"",label:"饲料转化率(%)","min-width":"60px",align:"center",prop:"饲料转化率"}}),a("el-table-column",{attrs:{sortable:"",label:"公斤奶饲料成本","min-width":"60px",align:"center",prop:"公斤奶饲料成本"}})],1),0==t.tab.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab.table.total)+"条")]):t._e()],1),a("div",{staticClass:"AnalysisChart"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:23}},[a("span",[t._v("图表查询时间:")]),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:t.changeAllSpecificDate},model:{value:t.tab.specificDate,callback:function(e){t.$set(t.tab,"specificDate",e)},expression:"tab.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.specificDate,expression:"tab.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},model:{value:t.tab.chartDate,callback:function(e){t.$set(t.tab,"chartDate",e)},expression:"tab.chartDate"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.specificDate,expression:"tab.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"130px","margin-right":"10px"},attrs:{placeholder:"请选择年份"},on:{change:t.changeAllYear},model:{value:t.tab.selectYear,callback:function(e){t.$set(t.tab,"selectYear",e)},expression:"tab.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"170px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.selectWeek,callback:function(e){t.$set(t.tab,"selectWeek",e)},expression:"tab.selectWeek"}},t._l(t.tab.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.specificDate,expression:"tab.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chartMonth,callback:function(e){t.$set(t.tab,"chartMonth",e)},expression:"tab.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:t.handleAllDate}},[t._v("确认")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpTop}})],1)],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("泌乳牛干物质采食量")]),t.tab.chart1.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart1")}},model:{value:t.tab.chart1.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart1.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart1")}},model:{value:t.tab.chart1.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart1.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart1.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart1.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart1.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart1.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart1.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart1")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart1")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart1.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine1"}}):t._e(),t.tab.chart1.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"泌乳牛采食量(kg)",sortable:"","min-width":"110px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"泌乳牛产奶量(kg)",sortable:"","min-width":"110px",align:"center",prop:"field2"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("牛栏剩料率")]),t.tab.chart2.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart2.getdataListParm.parammaps.statisticsList,option:t.tab.chart2.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart2}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart2")}},model:{value:t.tab.chart2.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart2.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart2")}},model:{value:t.tab.chart2.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart2.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart2.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart2.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart2.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart2.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart2.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart2")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart2")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart2.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine2"}}):t._e(),t.tab.chart2.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"栏舍名称",sortable:"","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"剩料量",sortable:"","min-width":"110px",align:"center",prop:"剩料量"}}),a("el-table-column",{attrs:{label:"撒料量",sortable:"","min-width":"110px",align:"center",prop:"撒料量"}}),a("el-table-column",{attrs:{label:"剩料率",sortable:"","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("混料时间统计")]),t.tab.chart3.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart3")}},model:{value:t.tab.chart3.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart3.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart3")}},model:{value:t.tab.chart3.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart3.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart3.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart3.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart3.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart3.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart3.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart3")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart3")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart3.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine3"}}):t._e(),t.tab.chart3.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{sortable:"",label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{sortable:"",label:"混料时间(分钟)","min-width":"110px",align:"center",prop:"field1"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("转化率")]),t.tab.chart4.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart4.getdataListParm.parammaps.statisticsList,option:t.tab.chart4.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart4}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart4")}},model:{value:t.tab.chart4.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart4.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart4")}},model:{value:t.tab.chart4.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart4.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart4.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart4.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart4.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart4.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart4.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart4")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart4")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart4.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine4"}}):t._e(),t.tab.chart4.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{sortable:"",label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{sortable:"",label:"配方名称","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{sortable:"",label:"饲料转化率","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",staticStyle:{"margin-bottom":"30px"},attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("成本分析")]),t.tab.chart5.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart5.getdataListParm.parammaps.statisticsList,option:t.tab.chart5.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart5}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart5")}},model:{value:t.tab.chart5.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart5.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart5")}},model:{value:t.tab.chart5.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart5.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart5.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart5.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart5.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart5.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart5.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart5")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart5")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart5.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine5"}}):t._e(),t.tab.chart5.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{sortable:"",label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{sortable:"",label:"牲畜类别","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{sortable:"",label:"公斤奶饲料成本(元)","min-width":"110px",align:"center",prop:"准确率"}})],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:{clearable:!1,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeTab2Date},model:{value:t.tab2.date,callback:function(e){t.$set(t.tab2,"date",e)},expression:"tab2.date"}}),a("el-button",{staticClass:"export",staticStyle:{float:"right"},attrs:{icon:"el-icon-upload2"},on:{click:t.handleDownload2}},[t._v("导出")])],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,height:"400px"}},[a("el-table-column",{attrs:{sortable:"",label:"宾州筛","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{sortable:"",label:"第一层重量","min-width":"60px",align:"center",prop:"oneweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第一层百分比","min-width":"60px",align:"center",prop:"onerate"}}),a("el-table-column",{attrs:{sortable:"",label:"第二层重量","min-width":"60px",align:"center",prop:"twoweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第二层百分比","min-width":"60px",align:"center",prop:"tworate"}}),a("el-table-column",{attrs:{sortable:"",label:"第三层重量","min-width":"60px",align:"center",prop:"threeweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第三层百分比","min-width":"60px",align:"center",prop:"threerate"}}),a("el-table-column",{attrs:{sortable:"",label:"第四层重量","min-width":"60px",align:"center",prop:"fourweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第四层百分比","min-width":"60px",align:"center",prop:"fourrate"}}),a("el-table-column",{attrs:{sortable:"",label:"参考标准","min-width":"50px",align:"center",prop:"standard"}})],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,height:"400px"}},[a("el-table-column",{attrs:{sortable:"",label:"粪便筛","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{sortable:"",label:"第一层重量","min-width":"60px",align:"center",prop:"oneweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第一层百分比","min-width":"60px",align:"center",prop:"onerate"}}),a("el-table-column",{attrs:{sortable:"",label:"第二层重量","min-width":"60px",align:"center",prop:"twoweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第二层百分比","min-width":"60px",align:"center",prop:"tworate"}}),a("el-table-column",{attrs:{sortable:"",label:"第三层重量","min-width":"60px",align:"center",prop:"threeweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第三层百分比","min-width":"60px",align:"center",prop:"threerate"}}),a("el-table-column",{attrs:{sortable:"",label:"参考标准","min-width":"50px",align:"center",prop:"standard"}})],1)],1)],1),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.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,height:"400px"}},[a("el-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{sortable:"",label:"抽查样本数","min-width":"60px",align:"center",prop:"sumcowcount"}}),a("el-table-column",{attrs:{sortable:"",label:"单产","min-width":"60px",align:"center",prop:"product"}}),a("el-table-column",{attrs:{sortable:"",label:"干物质采食量","min-width":"60px",align:"center",prop:"dryweight"}}),a("el-table-column",{attrs:{sortable:"",label:"泌乳天数","min-width":"50px",align:"center",prop:"avgdim"}}),a("el-table-column",{attrs:{sortable:"",label:"标准分数","min-width":"50px",align:"center",prop:"standardscore"}}),a("el-table-column",{attrs:{sortable:"",label:"2.5-分(数量、百分比)","min-width":"100px",align:"center",prop:"score25"}}),a("el-table-column",{attrs:{sortable:"",label:"2.75分(数量、百分比)","min-width":"100px",align:"center",prop:"score275"}}),a("el-table-column",{attrs:{sortable:"",label:"3分(数量、百分比)","min-width":"90px",align:"center",prop:"score3"}}),a("el-table-column",{attrs:{sortable:"",label:"3.25分(数量、百分比)","min-width":"100px",align:"center",prop:"score325"}}),a("el-table-column",{attrs:{sortable:"",label:"3.5分(数量、百分比)","min-width":"100px",align:"center",prop:"score35"}}),a("el-table-column",{attrs:{sortable:"",label:"3.75分(数量、百分比)","min-width":"100px",align:"center",prop:"score375"}}),a("el-table-column",{attrs:{sortable:"",label:"4+分(数量、百分比)","min-width":"100px",align:"center",prop:"score4"}})],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,height:"400px"}},[a("el-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{sortable:"",label:"抽查样本数","min-width":"60px",align:"center",prop:"sumcowcount"}}),a("el-table-column",{attrs:{sortable:"",label:"单产","min-width":"60px",align:"center",prop:"product"}}),a("el-table-column",{attrs:{sortable:"",label:"干物质采食量","min-width":"60px",align:"center",prop:"dryweight"}}),a("el-table-column",{attrs:{sortable:"",label:"泌乳天数","min-width":"60px",align:"center",prop:"avgdim"}}),a("el-table-column",{attrs:{sortable:"",label:"标准分数","min-width":"60px",align:"center",prop:"standardscore"}}),a("el-table-column",{attrs:{sortable:"",label:"1分(数量、百分比)","min-width":"90px",align:"center",prop:"score1"}}),a("el-table-column",{attrs:{sortable:"",label:"2分(数量、百分比)","min-width":"90px",align:"center",prop:"score2"}}),a("el-table-column",{attrs:{sortable:"",label:"3分(数量、百分比)","min-width":"90px",align:"center",prop:"score3"}}),a("el-table-column",{attrs:{sortable:"",label:"4分(数量、百分比)","min-width":"90px",align:"center",prop:"score4"}}),a("el-table-column",{attrs:{sortable:"",label:"5分(数量、百分比)","min-width":"90px",align:"center",prop:"score5"}})],1)],1)],1)],1)])],1),a("el-dialog",{attrs:{title:t.textMap[t.exportList.dialogStatus],visible:t.exportList.dialogFormVisible,"close-on-click-modal":!1,width:"20%"},on:{"update:visible":function(e){return t.$set(t.exportList,"dialogFormVisible",e)}}},[a("div",[a("span",[t._v("导出时间范围:")]),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"230px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},model:{value:t.exportList.inputDatetime,callback:function(e){t.$set(t.exportList,"inputDatetime",e)},expression:"exportList.inputDatetime"}})],1),a("div",{staticClass:"dialog-footer",staticStyle:{"margin-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.exportList.dialogFormVisible=!1}}},[t._v("关闭")]),"first"==t.activeName?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.exportList1()}}},[t._v("确认")]):a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.exportList2()}}},[t._v("确认")])],1)])],1)},s=[],r=(a("ac1f"),a("1276"),a("b0c0"),a("7db0"),a("d3b7"),a("313e")),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08"),p=a("333d"),m=a("5c96"),u=a("664b");a("817d");var h={name:"PastureFeedingEfficiency",components:{Pagination:p["a"],mySelect:u["a"]},data:function(){var t=this;return{Beforedisabled1:!1,Nextdisabled1:!1,Beforedisabled2:!1,Nextdisabled2:!1,pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},pickerMinMonth:"",pickerOptionsMonth:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinMonth=i.getTime(),a&&(t.pickerMinMonth="")},disabledDate:function(e){if(""!==t.pickerMinMonth){var a=15768e7,i=t.pickerMinMonth-0,s=t.pickerMinMonth+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>=Date.now()}},pickerMinDate:"",pickerOptionsDate:{showWeekNumber:!1,onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},activeName:"first",tab:{radio:"1",isFormulaName:!0,isHouseName:!1,isLivestockType:!1,chartDate:[],selectWeek:[],chartMonth:[],specificDate:"1",selectYear:Object(d["d"])(new Date,"{y}"),yearList:[],weekList:[],table:{getdataListParm:{name:"getFeedEfficiencyFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:Object(d["d"])(new Date,"{y}-{m}-{d}"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),ftname:"",barname:"",cowclass:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffMR",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(d["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(d["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart2Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart3:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(d["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart4:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffZH",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(d["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart4Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart5:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffCBFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(d["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart5Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}},tab2:{date:Object(d["d"])(new Date,"{y}-{m}-{d}"),table:{getdataListParm:{name:"getAssessCowPenn",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}")}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getAssessCowDung",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table3:{getdataListParm:{name:"getAssessBodyscore",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table4:{getdataListParm:{name:"getAssessDungscore",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}}},exportList:{dialogFormVisible:!1,inputDatetime:[new Date,new Date]},textMap:{exportList:"导出"},isokDisable:!1,tab2Download2List1:[],tab2Download2List2:[],tab2Download2List3:[],tab2Download2List4:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-210}},created:function(){this.getAllYear(),this.getTabList(),this.getTimeFn(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()},methods:{getAllYear:function(){var t=new Date,e=t.getFullYear(),a=e-2001;this.tab.yearList=[];for(var i=0;i<=a;i++)this.tab.yearList.push(e--)},changeAllYear:function(){this.tab.weekList=[],this.tab.selectWeek=[];for(var t=Object(n["s"])(this.tab.selectYear),e=0;e<=t.length;e++){var a={},i=e+1;a.name="第"+i+"周("+t[e].month+"."+t[e].date+"~"+t[e].last.month+"."+t[e].last.date+")",a.id=e,this.tab.weekList.push(a)}},changeAllSpecificDate:function(){var t="",e="";"2"==this.tab.specificDate?(this.tab.selectYear=Object(d["d"])(new Date,"{y}"),this.changeAllYear()):"3"==this.tab.specificDate&&(t=Object(d["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",e=Object(d["d"])(new Date,"{y}-{m}-{d}"),this.tab.chartMonth=[],this.tab.chartMonth.push(t,e))},handleAllDate:function(){var t=this;m["MessageBox"].confirm("是否调整以下所有图表查询时间?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e="",a="",i="";if("1"==t.tab.specificDate)e=Object(d["d"])(t.tab.chartDate[0],"{y}-{m}-{d}"),a=Object(d["d"])(t.tab.chartDate[1],"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart2.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart3.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart4.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart5.getdataListParm.parammaps.inputDatetime=[e,a],i=0;else if("2"==t.tab.specificDate){if(""==t.tab.selectYear)return void t.$message({type:"error",message:"请输入年",duration:2e3});if(2!==t.tab.selectWeek.length)return void t.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=t.tab.selectYear+"-"+Object(n["s"])(t.tab.selectYear)[t.tab.selectWeek[0]].month+"-"+Object(n["s"])(t.tab.selectYear)[t.tab.selectWeek[0]].date,a=t.tab.selectYear+"-"+Object(n["s"])(t.tab.selectYear)[t.tab.selectWeek[1]].last.month+"-"+Object(n["s"])(t.tab.selectYear)[t.tab.selectWeek[1]].last.date,i=1,t.tab.chart1.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart1.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart1.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart2.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart2.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart2.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart3.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart3.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart3.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart4.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart4.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart4.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart5.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart5.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart5.getdataListParm.parammaps.weekList=t.tab.weekList}else if("3"==t.tab.specificDate)if(t.tab.chartMonth.length>0){e=t.tab.chartMonth[0];var s=t.tab.chartMonth[1].substring(0,7).split("-"),r=new Date(s[0],s[1],0),l=r.getDate();a=t.tab.chartMonth[1].substring(0,8)+l,i=2,t.tab.chart1.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart2.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart3.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart4.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart5.getdataListParm.parammaps.chartMonth=[e,a]}else t.$message({type:"error",message:"请输入月",duration:2e3});t.tab.chart1.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart1.getdataListParm.parammaps.startTime=e,t.tab.chart1.getdataListParm.parammaps.stopTime=a,t.tab.chart1.getdataListParm.parammaps.status=i,t.tab.chart2.getdataListParm.parammaps.startTime=e,t.tab.chart2.getdataListParm.parammaps.stopTime=a,t.tab.chart2.getdataListParm.parammaps.status=i,t.tab.chart2.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart3.getdataListParm.parammaps.startTime=e,t.tab.chart3.getdataListParm.parammaps.stopTime=a,t.tab.chart3.getdataListParm.parammaps.status=i,t.tab.chart3.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart4.getdataListParm.parammaps.startTime=e,t.tab.chart4.getdataListParm.parammaps.stopTime=a,t.tab.chart4.getdataListParm.parammaps.status=i,t.tab.chart4.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart5.getdataListParm.parammaps.startTime=e,t.tab.chart5.getdataListParm.parammaps.stopTime=a,t.tab.chart5.getdataListParm.parammaps.status=i,t.tab.chart5.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.getChart1(),t.getChart2(),t.getChart3(),t.getChart4(),t.getChart5()}))},changeChartSpecificDate:function(t){var e="",a="";"chart1"==t?"2"==this.tab.chart1.getdataListParm.parammaps.specificDate?(this.tab.chart1.getdataListParm.parammaps.selectYear=Object(d["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart1.getdataListParm.parammaps.specificDate&&(e=Object(d["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(d["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.weekList=[],this.tab.chart1.getdataListParm.parammaps.chartMonth=[],this.tab.chart1.getdataListParm.parammaps.chartMonth.push(e,a)):"chart2"==t?"2"==this.tab.chart2.getdataListParm.parammaps.specificDate?(this.tab.chart2.getdataListParm.parammaps.selectYear=Object(d["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart2.getdataListParm.parammaps.specificDate&&(e=Object(d["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(d["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.weekList=[],this.tab.chart2.getdataListParm.parammaps.chartMonth=[],this.tab.chart2.getdataListParm.parammaps.chartMonth.push(e,a)):"chart3"==t?"2"==this.tab.chart3.getdataListParm.parammaps.specificDate?(this.tab.chart3.getdataListParm.parammaps.selectYear=Object(d["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart3.getdataListParm.parammaps.specificDate&&(e=Object(d["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(d["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.weekList=[],this.tab.chart3.getdataListParm.parammaps.chartMonth=[],this.tab.chart3.getdataListParm.parammaps.chartMonth.push(e,a)):"chart4"==t?"2"==this.tab.chart4.getdataListParm.parammaps.specificDate?(this.tab.chart4.getdataListParm.parammaps.selectYear=Object(d["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart4.getdataListParm.parammaps.specificDate&&(e=Object(d["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(d["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.weekList=[],this.tab.chart4.getdataListParm.parammaps.chartMonth=[],this.tab.chart4.getdataListParm.parammaps.chartMonth.push(e,a)):"chart5"==t&&("2"==this.tab.chart5.getdataListParm.parammaps.specificDate?(this.tab.chart5.getdataListParm.parammaps.selectYear=Object(d["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart5.getdataListParm.parammaps.specificDate&&(e=Object(d["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(d["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.weekList=[],this.tab.chart5.getdataListParm.parammaps.chartMonth=[],this.tab.chart5.getdataListParm.parammaps.chartMonth.push(e,a)))},changeChartYear:function(t){var e="";if("chart1"==t){this.tab.chart1.getdataListParm.parammaps.weekList=[],this.tab.chart1.getdataListParm.parammaps.selectWeek=[],e=Object(n["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear);for(var a=0;a<=e.length;a++){var i={},s=a+1;i.name="第"+s+"周("+e[a].month+"."+e[a].date+"~"+e[a].last.month+"."+e[a].last.date+")",i.id=a,this.tab.chart1.getdataListParm.parammaps.weekList.push(i)}}else if("chart2"==t){this.tab.chart2.getdataListParm.parammaps.selectWeek=[],this.tab.chart2.getdataListParm.parammaps.weekList=[],e=Object(n["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear);for(var r=0;r<=e.length;r++){i={},s=r+1;i.name="第"+s+"周("+e[r].month+"."+e[r].date+"~"+e[r].last.month+"."+e[r].last.date+")",i.id=r,this.tab.chart2.getdataListParm.parammaps.weekList.push(i)}}else if("chart3"==t){this.tab.chart3.getdataListParm.parammaps.selectWeek=[],this.tab.chart3.getdataListParm.parammaps.weekList=[],e=Object(n["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear);for(var l=0;l<=e.length;l++){i={},s=l+1;i.name="第"+s+"周("+e[l].month+"."+e[l].date+"~"+e[l].last.month+"."+e[l].last.date+")",i.id=l,this.tab.chart3.getdataListParm.parammaps.weekList.push(i)}}else if("chart4"==t){this.tab.chart4.getdataListParm.parammaps.selectWeek=[],this.tab.chart4.getdataListParm.parammaps.weekList=[],e=Object(n["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear);for(var o=0;o<=e.length;o++){i={},s=o+1;i.name="第"+s+"周("+e[o].month+"."+e[o].date+"~"+e[o].last.month+"."+e[o].last.date+")",i.id=o,this.tab.chart4.getdataListParm.parammaps.weekList.push(i)}}else if("chart5"==t){this.tab.chart5.getdataListParm.parammaps.selectWeek=[],this.tab.chart5.getdataListParm.parammaps.weekList=[],e=Object(n["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear);for(var c=0;c<=e.length;c++){i={},s=c+1;i.name="第"+s+"周("+e[c].month+"."+e[c].date+"~"+e[c].last.month+"."+e[c].last.date+")",i.id=c,this.tab.chart5.getdataListParm.parammaps.weekList.push(i)}}},handleChartDate:function(t){var e="",a="";if("chart1"==t){if("1"==this.tab.chart1.getdataListParm.parammaps.specificDate)e=Object(d["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(d["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart1.getdataListParm.parammaps.specificDate){if(""==this.tab.chart1.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart1.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart1.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(n["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart1.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(n["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart1.getdataListParm.parammaps.status=1}else"3"==this.tab.chart1.getdataListParm.parammaps.specificDate&&(e=this.tab.chart1.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart1.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart1.getdataListParm.parammaps.status=2);this.tab.chart1.getdataListParm.parammaps.startTime=e,this.tab.chart1.getdataListParm.parammaps.stopTime=a,this.getChart1()}else if("chart2"==t){if("1"==this.tab.chart2.getdataListParm.parammaps.specificDate)e=Object(d["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(d["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart2.getdataListParm.parammaps.specificDate){if(""==this.tab.chart2.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart2.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart2.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(n["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart2.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(n["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart2.getdataListParm.parammaps.status=1}else"3"==this.tab.chart2.getdataListParm.parammaps.specificDate&&(e=this.tab.chart2.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart2.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart2.getdataListParm.parammaps.status=2);this.tab.chart2.getdataListParm.parammaps.startTime=e,this.tab.chart2.getdataListParm.parammaps.stopTime=a,this.getChart2()}else if("chart3"==t){if("1"==this.tab.chart3.getdataListParm.parammaps.specificDate)e=Object(d["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(d["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart3.getdataListParm.parammaps.specificDate){if(""==this.tab.chart3.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart3.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart3.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(n["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart3.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(n["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart3.getdataListParm.parammaps.status=1}else"3"==this.tab.chart3.getdataListParm.parammaps.specificDate&&(e=this.tab.chart3.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart3.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart3.getdataListParm.parammaps.status=2);this.tab.chart3.getdataListParm.parammaps.startTime=e,this.tab.chart3.getdataListParm.parammaps.stopTime=a,this.getChart3()}else if("chart4"==t){if("1"==this.tab.chart4.getdataListParm.parammaps.specificDate)e=Object(d["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(d["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart4.getdataListParm.parammaps.specificDate){if(""==this.tab.chart4.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart4.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart4.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(n["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart4.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(n["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart4.getdataListParm.parammaps.status=1}else"3"==this.tab.chart4.getdataListParm.parammaps.specificDate&&(e=this.tab.chart4.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart4.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart4.getdataListParm.parammaps.status=2);this.tab.chart4.getdataListParm.parammaps.startTime=e,this.tab.chart4.getdataListParm.parammaps.stopTime=a,this.getChart4()}else if("chart5"==t){if("1"==this.tab.chart5.getdataListParm.parammaps.specificDate)e=Object(d["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(d["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart5.getdataListParm.parammaps.specificDate){if(""==this.tab.chart5.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart5.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart5.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(n["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart5.getdataListParm.parammaps.selectYear+"-"+Object(n["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(n["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart5.getdataListParm.parammaps.status=1}else"3"==this.tab.chart5.getdataListParm.parammaps.specificDate&&(e=this.tab.chart5.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart5.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart5.getdataListParm.parammaps.status=2);this.tab.chart5.getdataListParm.parammaps.startTime=e,this.tab.chart5.getdataListParm.parammaps.stopTime=a,this.getChart5()}},getTimeFn:function(){var t=this,e=new Date,a=new Date,i=new Date;i.setTime(i.getTime()-864e5),a.setTime(a.getTime()-864e6),e.setTime(e.getTime()-864e5),t.tab.table.getdataListParm.parammaps.date=Object(d["d"])(i,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(i,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(i,"{y}-{m}-{d}"),t.tab.chartDate[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chartDate[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}")},handleDownload:function(){this.exportList.dialogFormVisible=!0,this.exportList.dialogStatus="exportList"},exportList1:function(){var t=this;this.isokDisable=!0;var e="authdata/GetDataByName",a={name:"getFeedEfficiencyFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",barname:"",cowclass:"",ftname:""}};a.parammaps.startTime=Object(d["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.barname=this.tab.table.getdataListParm.parammaps.barname,a.parammaps.ftname=this.tab.table.getdataListParm.parammaps.ftname,a.parammaps.cowclass=this.tab.table.getdataListParm.parammaps.cowclass,Object(n["n"])(e,a).then((function(e){if(null!==e.data.list?e.data.list:[],"1"==t.tab.radio){var a=[{tHeader:["配方模板","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","平均混料时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方干物质采食量(kg/头)","实际干物质采食量(kg/头)","采食率(%)","配方成本(元/头 )","实际成本(元/ 头)","产奶量(kg /头)","饲料转化率","公斤奶饲料成本"],filterVal:["配方模板","实际牛头数","应混料量","实际混料量","撒料量","混料时间","转投剩料量","今日剩料量","剩料率","TMR干物质","配方干物质采食量","实际干物质采食量","采食率","配方成本","实际成本","产奶量","饲料转化率","公斤奶饲料成本"],tableDatas:t.tab.table.list,sheetName:"配方"}];Object(d["c"])(a,"效率统计-配方",!0,"xlsx")}else if("2"==t.tab.radio){var i=[{tHeader:["栏舍","配方模板","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","平均混料时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方干物质采食量(kg/头)"," 实际干物质采食量( kg/头)","采食率 (%)","配方成本( 元/头)","实际成本 (元/头)","产奶量(kg/头)","饲料转化率","公斤奶饲料成本"],filterVal:["栏舍","配方模板","实际牛头数","应混料量","实际混料量","撒料量","混料时间","转投剩料量","今日剩料量","剩料率","TMR干物质","配方干物质采食量","实际干物质采食量","采食率","配方成本","实际成本","产奶量","饲料转化率","公斤奶饲料成本"],tableDatas:t.tab.table.list,sheetName:"栏舍"}];Object(d["c"])(i,"效率统计-栏舍",!0,"xlsx")}else if("3"==t.tab.radio){var s=[{tHeader:["牲畜类别","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","平均混料时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方 物质采食量(kg/ 头)","实际干物质采 食量(kg/头)"," 采食率(%)","配方 成本(元/头)","实际成本(元/头)","产奶量(kg/头)","饲料转化率","公斤奶饲料成本"],filterVal:["牲畜类别","实际牛头数","应混料量","实际混料量","撒料量","混料时间","转投剩料量","今日剩料量","剩料率","TMR干物质","配方干物质采食量","实际干物质采食量"," 采食率","配方成本","实际成本","产奶量","饲料转化率","公斤奶饲料成本"],tableDatas:t.tab.table.list,sheetName:"牲畜类别"}];Object(d["c"])(s,"效率统计-牲畜类别",!0,"xlsx")}t.isokDisable=!1,t.exportList.dialogFormVisible=!1}))},handleDownload2:function(){this.exportList.dialogFormVisible=!0,this.exportList.dialogStatus="exportList"},exportList2:function(){this.isokDisable=!0,this.getTab2Download2List()},getTab2Download2List:function(){var t=this,e="authdata/GetDataByName",a={name:"getAssessCowPenn",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:""}};a.parammaps.startTime=Object(d["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),Object(n["n"])(e,a).then((function(e){null!==e.data.list?t.tab2Download2List1=e.data.list:t.tab2Download2List1=[],t.getTab2Download2List2()}))},getTab2Download2List2:function(){var t=this,e="authdata/GetDataByName",a={name:"getAssessCowDung",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:""}};a.parammaps.startTime=Object(d["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),Object(n["n"])(e,a).then((function(e){null!==e.data.list?t.tab2Download2List2=e.data.list:t.tab2Download2List2=[],t.getTab2Download2List3()}))},getTab2Download2List3:function(){var t=this,e="authdata/GetDataByName",a={name:"getAssessBodyscore",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:""}};a.parammaps.startTime=Object(d["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),Object(n["n"])(e,a).then((function(e){null!==e.data.list?t.tab2Download2List3=e.data.list:t.tab2Download2List3=[],t.getTab2Download2List4()}))},getTab2Download2List4:function(){var t=this,e="authdata/GetDataByName",a={name:"getAssessDungscore",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:"",stopTime:""}};a.parammaps.startTime=Object(d["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),Object(n["n"])(e,a).then((function(e){null!==e.data.list?t.tab2Download2List4=e.data.list:t.tab2Download2List4=[];var a=[{tHeader:["宾州筛","第一层重量","第一层百分比","第二层重量","第二层百分比","第三层重量","第三层百分比","第四层重量","第四层百分比","参考标准"],filterVal:["barname","oneweight","onerate","twoweight","tworate","threeweight","threerate","fourweight","fourrate","standard"],tableDatas:t.tab2Download2List1,sheetName:"宾州筛分析"},{tHeader:["粪便筛","第一层重量","第一层百分比","第二层重量","第二层百分比","第三层重量","第三层百分比","参考标准"],filterVal:["barname","oneweight","onerate","twoweight","tworate","threeweight","threerate","standard"],tableDatas:t.tab2Download2List2,sheetName:"粪便筛分析"},{tHeader:["栏舍","抽查样本数","单产","干物质采食量","泌乳天数","标准分数","2.5-分(数量、百分比)","2.75分(数量、百分比)","3分(数量、百分比)","3.25分(数量、百分比)","3.5分(数量、百分比)","3.75分(数量、百分比)","4+分(数量、百分比)"],filterVal:["barname","sumcowcount","product","dryweight","avgdim","standardscore","score25","score275","score3","score325","score35","score375","score4"],tableDatas:t.tab2Download2List3,sheetName:"体况评分"},{tHeader:["栏舍","抽查样本数","单产","干物质采食量","泌乳天数","标准分数","1分(数量、百分比)","2分(数量、百分比)","3分(数量、百分比)","4分(数量、百分比)","5分(数量、百分比)"],filterVal:["barname","sumcowcount","product","dryweight","avgdim","standardscore","score1","score2","score3","score4","score5"],tableDatas:t.tab2Download2List4,sheetName:"粪便评分"}];Object(d["c"])(a,"饲喂效率—牛群评估",!0,"xlsx"),t.exportList.dialogFormVisible=!1,t.isokDisable=!1}))},handleTabClick:function(){if("first"==this.activeName){var t=new Date;t.setTime(t.getTime()-864e5),this.tab.table.getdataListParm.parammaps.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.getTabList(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()}else if("second"==this.activeName){var e=new Date;e.setTime(e.getTime()-864e5),this.tab2.date=Object(d["d"])(e,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.startTime=Object(d["d"])(e,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},changeRadio:function(){"1"==this.tab.radio?(this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.barname="",this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.cowclass="",this.tab.table.getdataListParm.name="getFeedEfficiencyFT",this.getTabList(),this.tab.chart5.statisticsList=[],this.tab.chart5.getdataListParm.name="getFeedEffCBFT",this.getChart5(),this.tab.chart4.getdataListParm.name="getFeedEffZH",this.getChart4()):"2"==this.tab.radio?(this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.barname="",this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.cowclass="",this.tab.table.getdataListParm.name="getFeedEfficiencyLS",this.getTabList(),this.tab.chart5.statisticsList=[],this.tab.chart5.getdataListParm.name="getFeedEffCBLS",this.getChart5(),this.tab.chart4.getdataListParm.name="getFeedEffZHLS",this.getChart4()):"3"==this.tab.radio&&(this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.barname="",this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.cowclass="",this.tab.table.getdataListParm.name="getFeedEfficiencySC",this.getTabList(),this.tab.chart5.statisticsList=[],this.tab.chart5.getdataListParm.name="getFeedEffCB",this.getChart5(),this.tab.chart4.getdataListParm.name="getFeedEffZHSC",this.getChart4())},getTabList:function(){var t=this;this.tab.table.listLoading=!0,Object(n["c"])(this.tab.table.getdataListParm).then((function(e){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(){"1"==this.tab.radio?(this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getFeedEfficiencyFT",this.getTabList()):"2"==this.tab.radio?(this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getFeedEfficiencyLS",this.getTabList()):"3"==this.tab.radio&&(this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.table.getdataListParm.name="getFeedEfficiencySC",this.getTabList())},changeTab1Date:function(){this.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.table.getdataListParm.parammaps.date,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.table.getdataListParm.parammaps.date,"{y}-{m}-{d}"),this.getTabList()},handleBefore:function(){if(""!==this.tab.table.getdataListParm.parammaps.date&&null!==this.tab.table.getdataListParm.parammaps.date){this.tab.table.getdataListParm.parammaps.date=new Date(this.tab.table.getdataListParm.parammaps.date);var t=new Date(this.tab.table.getdataListParm.parammaps.date.setDate(this.tab.table.getdataListParm.parammaps.date.getDate()-1));t>Date.now()-864e5?(this.Nextdisabled1=!0,this.Beforedisabled1=!1):(this.Nextdisabled1=!1,this.Beforedisabled1=!1),this.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.getTabList()}},handleNext:function(){if(""!==this.tab.table.getdataListParm.parammaps.date&&null!==this.tab.table.getdataListParm.parammaps.date){this.tab.table.getdataListParm.parammaps.date=new Date(this.tab.table.getdataListParm.parammaps.date);var t=new Date(this.tab.table.getdataListParm.parammaps.date.setDate(this.tab.table.getdataListParm.parammaps.date.getDate()+1));t>Date.now()-864e5?(this.Nextdisabled1=!0,this.Beforedisabled1=!1):(this.Nextdisabled1=!1,this.Beforedisabled1=!1),this.tab.table.getdataListParm.parammaps.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.getTabList()}},handleBefore2:function(){if(""!==this.tab2.date&&null!==this.tab2.date){this.tab2.date=new Date(this.tab2.date);var t=new Date(this.tab2.date.setDate(this.tab2.date.getDate()-1));t>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.startTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},handleNext2:function(){if(""!==this.tab2.date&&null!==this.tab2.date){this.tab2.date=new Date(this.tab2.date);var t=new Date(this.tab2.date.setDate(this.tab2.date.getDate()+1));t>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.startTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},handleQuickJumpChart:function(){var t=document.getElementById("table").offsetHeight+120;window.scrollTo(t,t)},handleQuickJumpTop:function(){window.scrollTo(0,0)},getChart1:function(){var t=this;this.tab.chart1.listLoading=!0;var e="authdata/chart/feedEffMR",a={parammaps:{}};"1"==this.tab.chart1.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart1.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(d["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart1.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart1.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart1.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart1.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart1.getdataListParm.parammaps.status),Object(n["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2));t.tab.chart1.table.list=e.data.data,t.tab.chart1.chartLine_data=e.data.list}else t.tab.chart1.list=[],t.tab.chart1.chartLine_data={};t.roadChartLine1(t.tab.chart1.chartLine_data),setTimeout((function(){t.tab.chart1.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",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["泌乳牛干物质采食量","泌乳牛产奶量"],right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"8%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:t.data1}],yAxis:[{splitLine:{show:!1},type:"value",name:"泌乳牛干物质\n采食量",axisLabel:{formatter:"{value} "}},{splitLine:{show:!1},type:"value",name:"泌乳牛产奶量",axisLabel:{formatter:"{value} "}}],series:[{name:"泌乳牛干物质采食量",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:t.data2},{name:"泌乳牛产奶量",type:"line",itemStyle:{normal:{color:"#ff2d2d"}},yAxisIndex:1,data:t.data3}]};this.tab.chart1.chartLine.setOption(e),window.onresize=function(){this.tab.chart1.chartLine.resize()}},changeStatisticChart2:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart2.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart2.statisticsList.find((function(a){return a.name==e.tab.chart2.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart2.chart2Data3.length;i++)i==a&&s.push(e.tab.chart2.chart2Data3[i])},l=0;l<this.tab.chart2.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart2.chartLine_data.data3=s,this.tab.chart2.chartLine_data.data1=this.tab.chart2.getdataListParm.parammaps.statisticsList,this.roadChartLine2(this.tab.chart2.chartLine_data)},getChart2:function(){var t=this;this.tab.chart2.listLoading=!0;var e="authdata/chart/feedEffSL",a={parammaps:{}};"1"==this.tab.chart2.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(d["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart2.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart2.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status),Object(n["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].剩料量&&void 0!==e.data.data[a].剩料量&&(e.data.data[a].剩料量=parseFloat(e.data.data[a].剩料量)),""!==e.data.data[a].撒料量&&void 0!==e.data.data[a].撒料量&&(e.data.data[a].撒料量=parseFloat(e.data.data[a].撒料量)),""!==e.data.data[a].准确率&&void 0!==e.data.data[a].准确率&&(e.data.data[a].准确率=parseFloat(e.data.data[a].准确率));t.tab.chart2.table.list=e.data.data,t.tab.chart2.chartLine_data=e.data.list,t.tab.chart2.total=e.data.total,t.tab.chart2.statisticsList=[],t.tab.chart2.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<e.data.list.data1.length;i++){t.tab.chart2.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[i]);var s={};s.id=i,s.name=e.data.list.data1[i],t.tab.chart2.statisticsList.push(s)}t.tab.chart2.chart2Data3=e.data.list.data3,t.tab.chart2.total=e.data.total;for(var r=[],l=function(e){for(var a=t.tab.chart2.statisticsList.find((function(a){return a.name==t.tab.chart2.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart2.chart2Data3.length;i++)i==a&&r.push(t.tab.chart2.chart2Data3[i])},n=0;n<t.tab.chart2.getdataListParm.parammaps.statisticsList.length;n++)l(n);t.tab.chart2.chartLine_data.data3=r,t.tab.chart2.chartLine_data.data1=t.tab.chart2.getdataListParm.parammaps.statisticsList}else t.tab.chart2.list=[],t.tab.chart2.chartLine_data={};t.roadChartLine2(t.tab.chart2.chartLine_data),setTimeout((function(){t.tab.chart2.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,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"剩料率",axisLabel:{formatter:"{value} %"}},series:function(){var e=[];if(void 0!==t.data3)for(var 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),null!=this.tab.chart2.chartLine&&(window.onresize=function(){this.tab.chart2.chartLine.resize()})},getChart3:function(){var t=this;this.tab.chart3.listLoading=!0;var e="authdata/chart/feedEffHL",a={parammaps:{}};"1"==this.tab.chart3.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart3.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(d["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart3.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart3.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart3.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart3.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart3.getdataListParm.parammaps.status),Object(n["n"])(e,a).then((function(e){null!==e.data&&null!==e.data.list?(t.tab.chart3.table.list=e.data.data,t.tab.chart3.chartLine_data=e.data.list,t.tab.chart3.total=e.data.total,t.tab.chart3.total=e.data.total):(t.tab.chart3.list=[],t.tab.chart3.chartLine_data={}),t.roadChartLine3(t.tab.chart3.chartLine_data),setTimeout((function(){t.tab.chart3.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:["混料时间"],right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data1,name:"日期"},yAxis:{type:"value",name:"分钟",axisLabel:{formatter:"{value}min"}},series:[{name:"混料时间",type:"line",stack:"总量",data:t.data2}]};this.tab.chart3.chartLine.setOption(e),window.onresize=function(){this.tab.chart3.chartLine.resize()}},changeStatisticChart4:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart4.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart4.statisticsList.find((function(a){return a.name==e.tab.chart4.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart4.chart4Data3.length;i++)i==a&&s.push(e.tab.chart4.chart4Data3[i])},l=0;l<this.tab.chart4.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart4.chartLine_data.data3=s,this.tab.chart4.chartLine_data.data1=this.tab.chart4.getdataListParm.parammaps.statisticsList,this.roadChartLine4(this.tab.chart4.chartLine_data)},getChart4:function(){var t=this;this.tab.chart4.listLoading=!0;var e="authdata/chart/feedEffZH",a={parammaps:{}};"1"==this.tab.chart4.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart4.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(d["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart4.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart4.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart4.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart4.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart4.getdataListParm.parammaps.status),Object(n["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list){t.tab.chart4.table.list=e.data.data,t.tab.chart4.chartLine_data=e.data.list,t.tab.chart4.total=e.data.total,t.tab.chart4.statisticsList=[],t.tab.chart4.getdataListParm.parammaps.statisticsList=[];for(var a=0;a<e.data.list.data1.length;a++){t.tab.chart4.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[a]);var i={};i.id=a,i.name=e.data.list.data1[a],t.tab.chart4.statisticsList.push(i)}t.tab.chart4.chart4Data3=e.data.list.data3,t.tab.chart4.total=e.data.total;for(var s=[],r=function(e){for(var a=t.tab.chart4.statisticsList.find((function(a){return a.name==t.tab.chart4.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart4.chart4Data3.length;i++)i==a&&s.push(t.tab.chart4.chart4Data3[i])},l=0;l<t.tab.chart4.getdataListParm.parammaps.statisticsList.length;l++)r(l);t.tab.chart4.chartLine_data.data3=s,t.tab.chart4.chartLine_data.data1=t.tab.chart4.getdataListParm.parammaps.statisticsList}else t.tab.chart4.list=[],t.tab.chart4.chartLine_data={};t.roadChartLine4(t.tab.chart4.chartLine_data),setTimeout((function(){t.tab.chart4.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,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:function(){var e=[];if(void 0!==t.data3)for(var 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()}},changeStatisticChart5:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart5.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart5.statisticsList.find((function(a){return a.name==e.tab.chart5.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart5.chart5Data3.length;i++)i==a&&s.push(e.tab.chart5.chart5Data3[i])},l=0;l<this.tab.chart5.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart5.chartLine_data.data3=s,this.tab.chart5.chartLine_data.data1=this.tab.chart5.getdataListParm.parammaps.statisticsList,this.roadChartLine5(this.tab.chart5.chartLine_data)},getChart5:function(){var t=this;this.tab.chart5.listLoading=!0;var e="authdata/chart/feedEffCBFT",a={parammaps:{}};"1"==this.tab.chart5.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart5.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(d["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(d["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart5.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart5.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart5.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart5.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart5.getdataListParm.parammaps.status),Object(n["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list){t.tab.chart5.table.list=e.data.data,t.tab.chart5.chartLine_data=e.data.list,t.tab.chart5.total=e.data.total,t.tab.chart5.statisticsList=[],t.tab.chart5.getdataListParm.parammaps.statisticsList=[];for(var a=0;a<e.data.list.data1.length;a++){t.tab.chart5.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[a]);var i={};i.id=a,i.name=e.data.list.data1[a],t.tab.chart5.statisticsList.push(i)}t.tab.chart5.chart5Data3=e.data.list.data3,t.tab.chart5.total=e.data.total;for(var s=[],r=function(e){for(var a=t.tab.chart5.statisticsList.find((function(a){return a.name==t.tab.chart5.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart5.chart5Data3.length;i++)i==a&&s.push(t.tab.chart5.chart5Data3[i])},l=0;l<t.tab.chart5.getdataListParm.parammaps.statisticsList.length;l++)r(l);t.tab.chart5.chartLine_data.data3=s,t.tab.chart5.chartLine_data.data1=t.tab.chart5.getdataListParm.parammaps.statisticsList}else t.tab.chart5.list=[];t.roadChartLine5(t.tab.chart5.chartLine_data),setTimeout((function(){t.tab.chart5.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,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"公斤奶饲料成本(元)"},series:function(){var e=[];if(void 0!==t.data3)for(var 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){if("chart1"==t){var e=[{tHeader:["日期","泌乳牛采食量","泌乳牛产奶量"],filterVal:["日期","field1","field2"],tableDatas:this.tab.chart1.table.list,sheetName:"泌乳牛采食量"}];Object(d["c"])(e,"泌乳牛采食量",!0,"xlsx")}else if("chart2"==t){var a=[{tHeader:["日期","栏舍名称","剩料量","撒料量","剩料率"],filterVal:["日期","名称","剩料量","撒料量","准确率"],tableDatas:this.tab.chart2.table.list,sheetName:"牛栏剩料率"}];Object(d["c"])(a,"牛栏剩料率",!0,"xlsx")}else if("chart3"==t){var i=[{tHeader:["日期","混料时间(分钟)"],filterVal:["日期","field1"],tableDatas:this.tab.chart3.table.list,sheetName:"混料时间统计"}];Object(d["c"])(i,"混料时间统计",!0,"xlsx")}else if("chart4"==t){var s=[{tHeader:["日期","配方名称","饲料转化率"],filterVal:["日期","名称","准确率"],tableDatas:this.tab.chart4.table.list,sheetName:"转化率统计"}];Object(d["c"])(s,"转化率",!0,"xlsx")}else if("chart5"==t){var r=[{tHeader:["日期","牲畜类别","公斤奶饲料成本(元)"],filterVal:["日期","名称","准确率"],tableDatas:this.tab.chart5.table.list,sheetName:"成本分析"}];Object(d["c"])(r,"成本分析",!0,"xlsx")}},handleTable:function(t){"chart1"==t?(this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1):"chart2"==t?(this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1):"chart3"==t?(this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1):"chart4"==t?(this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1):"chart5"==t&&(this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1)},handleChart:function(t){"chart1"==t?(this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0,this.getChart1()):"chart2"==t?(this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0,this.getChart2()):"chart3"==t?(this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0,this.getChart3()):"chart4"==t?(this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0,this.getChart4()):"chart5"==t&&(this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0,this.getChart5())},changeTab2Date:function(){this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,this.tab2.table.getdataListParm.parammaps.startTime=this.tab2.date,this.tab2.table.getdataListParm.parammaps.stopTime=this.tab2.date,Object(n["c"])(this.tab2.table.getdataListParm).then((function(e){null!==e.data.list?(t.tab2.table.list=e.data.list,t.tab2.table.total=e.data.total):t.tab2.table.list=[],setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},getTab2List2:function(){var t=this;this.tab2.table2.listLoading=!0,this.tab2.table2.getdataListParm.parammaps.startTime=this.tab2.date,this.tab2.table2.getdataListParm.parammaps.stopTime=this.tab2.date,Object(n["c"])(this.tab2.table2.getdataListParm).then((function(e){null!==e.data.list?(t.tab2.table2.list=e.data.list,t.tab2.table2.total=e.data.total):t.tab2.table2.list=[],setTimeout((function(){t.tab2.table2.listLoading=!1}),100)}))},getTab2List3:function(){var t=this;this.tab2.table3.listLoading=!0,this.tab2.table3.getdataListParm.parammaps.startTime=this.tab2.date,this.tab2.table3.getdataListParm.parammaps.stopTime=this.tab2.date,Object(n["c"])(this.tab2.table3.getdataListParm).then((function(e){null!==e.data.list?(t.tab2.table3.list=e.data.list,t.tab2.table3.total=e.data.total):t.tab2.table3.list=[],setTimeout((function(){t.tab2.table3.listLoading=!1}),100)}))},getTab2List4:function(){var t=this;this.tab2.table4.listLoading=!0,this.tab2.table4.getdataListParm.parammaps.startTime=this.tab2.date,this.tab2.table4.getdataListParm.parammaps.stopTime=this.tab2.date,Object(n["c"])(this.tab2.table4.getdataListParm).then((function(e){null!==e.data.list?(t.tab2.table4.list=e.data.list,t.tab2.table4.total=e.data.total):t.tab2.table4.list=[],setTimeout((function(){t.tab2.table4.listLoading=!1}),100)}))}}},b=h,g=(a("6f2a"),a("2877")),f=Object(g["a"])(b,i,s,!1,null,"2dc08ba9",null);e["default"]=f.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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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:"150","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("a",{staticClass:"correcting",staticStyle:{width:"80px"},attrs:{size:"mini"},on:{click:function(e){return t.handleResetPassword(i)}}},[t._v("重置密码")]):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("d3b7"),a("ac1f"),a("00b4"),a("b0c0"),a("a434"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("5c96"),d=a("333d"),p={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:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},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["d"])(this.requestParams).then((function(e){t.roleList=e.data.getRoleAll.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleSearch:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.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 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["d"])(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(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.table.temp.isgroups=n.a.get("ispastureuse"),this.requestParam.parammaps=this.table.temp,Object(r["f"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},createCancel:function(t){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(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(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择用户信息",duration:2e3}):c["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:"deleteUser",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))},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})}))}))}}},m=p,u=(a("417e"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"1c919e02",null);e["default"]=h.exports},"68fa":function(t,e,a){"use strict";a("eae4")},6944:function(t,e,a){},6965:function(t,e,a){"use strict";a("75f0")},"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("d3b7"),{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},"6a1c":function(t,e,a){},"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:"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-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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"},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,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,"max-height":t.myHeight},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":"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":"65x",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":"65x",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.5分-(头)","min-width":"65px",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":"65px",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":"65px",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":"65px",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":"65px",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":"65px",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":"65px",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:"80","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",["create"==t.create.dialogStatus?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:"barname"}},[a("el-input",{ref:"barname",staticClass:"filter-item",attrs:{disabled:"",placeholder:"barname"},model:{value:t.create.temp.barname,callback:function(e){t.$set(t.create.temp,"barname",e)},expression:"create.temp.barname"}})],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.5分-:",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:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",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:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.historyRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.historyRecord,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.historyRecord.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"historyRecord"},[a("keep-alive",[a(t.historyRecord.myComponent,{ref:"historyRecord",tag:"component"})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.historyRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2)],1)},s=[],r=(a("b680"),a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),p=a("bc3a"),m=a.n(p),u=a("5f87"),h={name:"PhysicalConditionScore",components:{Pagination:c["a"]},data:function(){return{dialogFull:!1,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:parseInt(n.a.get("pageCount")),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["d"])(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:"编辑",historyRecord:"历史记录"},historyRecord:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},requestParam:{},requestParam2:{},download:{getdataListParm:{name:"getBodyscoreList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},list:[]},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkbarname,insertBodyscoreUpload",importParams:"栏舍名称,2.75-分(头),2.75分(头),3分(头),3.25分(头),3.5分(头),3.75分(头),4+分(头),备注,操作人,操作日期",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"操作日期",requiredParams:"栏舍名称,2.75-分(头),2.75分(头),3分(头),3.25分(头),3.5分(头),3.75分(头),4+分(头)",numParams:"2.75-分(头),2.75分(头),3分(头),3.25分(头),3.5分(头),3.75分(头),4+分(头)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},created:function(){this.getButtons(),this.getList(),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["d"])(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["c"])(this.table.getdataListParm).then((function(e){if(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(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.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["d"])(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["c"])(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["c"])(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}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(){this.resetTemp(),this.getNoteTakerList(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData: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="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){if("fail"!==e.msg)t.saveData();else{var a=new RegExp("Duplicate entry :ds");a.test(e.data)?t.$notify({type:"error",message:"同一栏舍不可重复录入",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},saveData:function(){var t=this;this.requestParam2.name="insertDungandbodyhistory2",this.create.temp.pastureid=n.a.get("pastureid"),this.create.temp.changetime=Object(o["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),this.create.temp.species="tkpf",this.create.temp.fourrate="",this.create.temp.fourweight="",this.requestParam2.parammaps=this.create.temp,Object(r["f"])(this.requestParam2).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},createDataAgain: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="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){if("fail"!==e.msg)t.saveData(),t.resetTemp(),t.getList(),t.getNoteTakerList();else{var a=new RegExp("Duplicate entry :ds");a.test(e.data)?t.$notify({type:"error",message:"同一栏舍不可重复录入",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},handleUpdate:function(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.dialogFull=!1,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){if("fail"!==e.msg)t.saveData();else{var a=new RegExp("Duplicate entry :ds");a.test(e.data)?t.$notify({type:"error",message:"同一栏舍不可重复录入",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},handleRowDelete:function(t){var e=this;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){this.selectList=t},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(){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){"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}):d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e={common:{returnmap:"0"},data:[{name:"insertSpotList",resultmaps:{list:t.selectList},children:[{name:"copyBodyscore",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}}]}]};Object(r["b"])(e).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:"已取消复制"})}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/栏舍生产/体况评分导入模板.xlsx";m()({method:"GET",url:i,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="体况评分导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["栏舍名称","标准分数(分)","牛头数(头)","2.75-分(头)","2.75分(头)","3分(头)","3.25分(头)","3.5分(头)","3.75分(头)","4+分(头)","备注","操作人","操作日期"],filterVal:["barname","standardscore","cowsum","score25","score275","score3","score325","score35","score375","score4","remark","emp","operatetime"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(o["c"])(a,"体况评分",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","2.75-分(头)","2.75分(头)","3分(头)","3.25分(头)","3.5分(头)","3.75分(头)","4+分(头)","备注","操作人","操作日期","错误信息"],r=["栏舍名称","2.75-分(头)","2.75分(头)","3分(头)","3.25分(头)","3.5分(头)","3.75分(头)","4+分(头)","备注","操作人","操作日期","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"体况评分导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))},handleHistoryRecord:function(){this.dialogFull=!1,this.historyRecord.dialogStatus="historyRecord",this.historyRecord.dialogFormVisible=!0;var t=this,e=function(){return Promise.resolve().then(a.bind(null,"3c02"))};return t.historyRecord.myComponent=e}}},b=h,g=a("2877"),f=Object(g["a"])(b,i,s,!1,null,null,null);e["default"]=f.exports},"6ab7":function(t,e,a){"use strict";a("7dd4")},"6c06":function(t,e,a){},"6c5b":function(t,e,a){t.exports=a.p+"static/img/logo_u3.3c77f543.png"},"6ef0":function(t,e,a){"use strict";a("b00a")},"6f1c":function(t,e,a){},"6f2a":function(t,e,a){"use strict";a("e23b")},"6f5e":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="M929.207 352.778c-18.876-57.79-50.39-111.914-90.361-155.213-137.7-149.188-357.163-175.253-524.862-65.45L539.598 483.75l389.609-130.972z m-689.71-241.716c-19.875 13.377-38.33 28.233-55.42 44.585-43.951 42.071-77.07 93.374-99.525 151.298l381.815 154.6-226.87-350.483zM918.688 410.76L527.755 540.178 145.958 385.636C87.728 536.8 119.645 708.5 228.478 826.365c155.578 168.61 415.395 178.63 581.538 19.768C926.078 735.218 968.966 564.88 918.688 410.76z" p-id="17052" /></symbol>'});l.a.add(n);e["default"]=n},"6fb6":function(t,e,a){},"6fbc":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(t.myComponent1,{ref:"detail1",tag:"component"})],1),a("el-tab-pane",{attrs:{label:"牛群评估",name:"second"}},[a("keep-alive",[a(t.myComponent2,{ref:"detail2",tag:"component"})],1)],1)],1)],1)},s=[],r=(a("d3b7"),a("3ca3"),a("ddb0"),a("313e"),a("2934"),a("a78e"),a("ed08"),a("333d")),l=(a("5c96"),a("74186")),n=a("0e75");a("817d");var o={name:"GroupFeedingEfficiency",components:{Pagination:r["a"],Tab1:l["default"],Tab2:n["default"]},data:function(){return{activeName:"first",myComponent1:null,myComponent2:null}},created:function(){},mounted:function(){this.detailComponent1()},methods:{detailComponent1:function(){if("first"==this.activeName){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"74186"))};return t.myComponent1=e}},handleTabClick:function(){if("first"==this.activeName){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"74186"))};return t.myComponent1=e}if("second"==this.activeName){var i=this,s=function(){return Promise.resolve().then(a.bind(null,"0e75"))};return i.myComponent2=s}}}},c=o,d=(a("2948"),a("2877")),p=Object(d["a"])(c,i,s,!1,null,"34ab7fda",null);e["default"]=p.exports},"6fc3":function(t,e,a){"use strict";a("364f")},"6fef":function(t,e,a){"use strict";a("963e")},"6ffa":function(t,e,a){"use strict";a("a88e")},"706d":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},"70a1":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-container1"},[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:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"统计类型"},on:{change:t.changeRadio},model:{value:t.tab.radio,callback:function(e){t.$set(t.tab,"radio",e)},expression:"tab.radio"}},t._l(t.statisticalTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-checkbox",{staticStyle:{"margin-right":"10px"},on:{change:t.changeChecked},model:{value:t.tab.checked,callback:function(e){t.$set(t.tab,"checked",e)},expression:"tab.checked"}},[t._v("按日期统计")]),t.tab.isDriver?a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"驾驶员"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isFormulaName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"配方名称"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"栏舍名称"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"牲畜名称"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"车次"},model:{value:t.tab.table.getdataListParm.parammaps.projname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"projname",e)},expression:"tab.table.getdataListParm.parammaps.projname"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"班次"},model:{value:t.tab.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"times",e)},expression:"tab.table.getdataListParm.parammaps.times"}}):t._e(),t.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"TMR名称"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}}):t._e(),t.tab.isTMRName?a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"请选择TMR设备"},model:{value:t.tab.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"fname",e)},expression:"tab.table.getdataListParm.parammaps.fname"}},t._l(t.tab.TMRNameList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tmrloadname,value:t.tmrloadname}})})),1):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"},on:{click:t.handleDownload}},[t._v("导出")]),a("svg-icon",{staticClass:"down",staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpChart}})],1),a("div",{staticClass:"table",attrs:{id:"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,"max-height":t.myHeight2}},[t.tab.checked?a("el-table-column",{key:0,attrs:{sortable:"",label:"日期","min-width":"70px",align:"center",prop:"计划时间"}}):t._e(),t.tab.isDriver?a("el-table-column",{key:1,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),t.tab.isFormulaName?a("el-table-column",{key:2,attrs:{sortable:"",label:"配方名称","min-width":"70px",align:"center",prop:"配方名称"}}):t._e(),t.tab.isHouseName?a("el-table-column",{key:3,attrs:{sortable:"",label:"栏舍名称","min-width":"70px",align:"center",prop:"栏舍名称"}}):t._e(),t.tab.isLivestockType?a("el-table-column",{key:4,attrs:{sortable:"",label:"牲畜类别","min-width":"70px",align:"center",prop:"牲畜类别"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:5,attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:6,attrs:{sortable:"",label:"车次","min-width":"70px",align:"center",prop:"车次"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:7,attrs:{sortable:"",label:"班次","min-width":"70px",align:"center",prop:"班次"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:8,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:9,attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:10,attrs:{sortable:"",label:"班次","min-width":"70px",align:"center",prop:"班次"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:11,attrs:{sortable:"",label:"车次","min-width":"70px",align:"center",prop:"车次"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:12,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),a("el-table-column",{key:13,attrs:{sortable:"",label:"理论重量","min-width":"60px",align:"center",prop:"理论重量"}}),a("el-table-column",{key:14,attrs:{sortable:"",label:"实际重量","min-width":"60px",align:"center",prop:"实际重量"}}),a("el-table-column",{key:15,attrs:{sortable:"",label:"计划混料操作数","min-width":"60px",align:"center",prop:"计划混料操作数"}}),a("el-table-column",{key:16,attrs:{sortable:"",label:"已混料操作数","min-width":"50px",align:"center",prop:"已混料操作数"}}),a("el-table-column",{key:17,attrs:{sortable:"",label:"混料操作率","min-width":"60px",align:"center",prop:"混料操作率"}}),a("el-table-column",{key:18,attrs:{sortable:"",label:"混料误差值","min-width":"60px",align:"center",prop:"混料误差值"}}),a("el-table-column",{key:19,attrs:{sortable:"",label:"混料准确率","min-width":"60px",align:"center",prop:"混料准确率"}}),t.tab.isTrainNumber?a("el-table-column",{key:20,attrs:{sortable:"",label:"混料时间","min-width":"70px",align:"center",prop:"混料时间"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:21,attrs:{sortable:"",label:"等待时间","min-width":"70px",align:"center",prop:"等待时间"}}):t._e(),a("el-table-column",{key:22,attrs:{sortable:"",label:"混料自动跳转次数","min-width":"65px",align:"center",prop:"混料自动跳转次数"}}),a("el-table-column",{key:23,attrs:{sortable:"",label:"混料手动跳转次数","min-width":"65px",align:"center",prop:"混料手动跳转次数"}}),a("el-table-column",{key:24,attrs:{sortable:"",label:"取消次数","min-width":"70px",align:"center",prop:"取消次数"}}),a("el-table-column",{key:25,attrs:{sortable:"",label:"混料正确数","min-width":"70px",align:"center",prop:"混料正确数"}}),a("el-table-column",{key:26,attrs:{sortable:"",label:"混料正确率","min-width":"70px",align:"center",prop:"混料正确率"}}),a("el-table-column",{key:27,attrs:{sortable:"",label:"去除取消正确率","min-width":"60px",align:"center",prop:"去除取消正确率"}}),a("el-table-column",{key:28,attrs:{sortable:"",label:"标准差","min-width":"60px",align:"center",prop:"方差"}}),a("el-table-column",{key:29,attrs:{align:"center",width:"70",label:"操作","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee("1",i)}}})]}}])})],1),0==t.tab.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab.table.total)+"条")]):t._e(),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,"max-height":t.myHeight2}},[t.tab.checked?a("el-table-column",{key:0,attrs:{sortable:"",label:"日期","min-width":"70px",align:"center",prop:"计划时间"}}):t._e(),t.tab.isDriver?a("el-table-column",{key:1,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),t.tab.isFormulaName?a("el-table-column",{key:2,attrs:{sortable:"",label:"配方名称","min-width":"70px",align:"center",prop:"配方名称"}}):t._e(),t.tab.isHouseName?a("el-table-column",{key:3,attrs:{sortable:"",label:"栏舍名称","min-width":"70px",align:"center",prop:"栏舍名称"}}):t._e(),t.tab.isLivestockType?a("el-table-column",{key:4,attrs:{sortable:"",label:"牲畜类别","min-width":"70px",align:"center",prop:"牲畜类别"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:5,attrs:{sortable:"",label:"车次","min-width":"70px",align:"center",prop:"车次"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:6,attrs:{sortable:"",label:"班次","min-width":"70px",align:"center",prop:"班次"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:7,attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:8,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:9,attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:10,attrs:{sortable:"",label:"班次","min-width":"70px",align:"center",prop:"班次"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:11,attrs:{sortable:"",label:"车次","min-width":"70px",align:"center",prop:"车次"}}):t._e(),t.tab.isTMRName?a("el-table-column",{key:12,attrs:{sortable:"",label:"驾驶员","min-width":"70px",align:"center",prop:"驾驶员"}}):t._e(),a("el-table-column",{key:13,attrs:{sortable:"",label:"理论重量","min-width":"60px",align:"center",prop:"理论重量"}}),a("el-table-column",{key:14,attrs:{sortable:"",label:"实际重量","min-width":"60px",align:"center",prop:"实际重量"}}),a("el-table-column",{key:15,attrs:{sortable:"",label:"计划撒料操作数","min-width":"60px",align:"center",prop:"计划撒料操作数"}}),a("el-table-column",{key:16,attrs:{sortable:"",label:"已撒料操作数","min-width":"50px",align:"center",prop:"已撒料操作数"}}),a("el-table-column",{key:17,attrs:{sortable:"",label:"撒料操作率","min-width":"60px",align:"center",prop:"撒料操作率"}}),a("el-table-column",{key:18,attrs:{sortable:"",label:"撒料误差值","min-width":"60px",align:"center",prop:"撒料误差值"}}),a("el-table-column",{key:19,attrs:{sortable:"",label:"撒料准确率","min-width":"60px",align:"center",prop:"撒料准确率"}}),t.tab.isTrainNumber?a("el-table-column",{key:20,attrs:{sortable:"",label:"撒料时间","min-width":"70px",align:"center",prop:"撒料时间"}}):t._e(),t.tab.isTrainNumber?a("el-table-column",{key:21,attrs:{sortable:"",label:"等待时间","min-width":"70px",align:"center",prop:"等待时间"}}):t._e(),a("el-table-column",{key:22,attrs:{sortable:"",label:"撒料自动跳转次数",width:"65px",align:"center",prop:"撒料自动跳转次数"}}),a("el-table-column",{key:23,attrs:{sortable:"",label:"撒料手动跳转次数",width:"65px",align:"center",prop:"撒料手动跳转次数"}}),a("el-table-column",{key:24,attrs:{sortable:"",label:"取消次数","min-width":"70px",align:"center",prop:"取消次数"}}),a("el-table-column",{key:25,attrs:{sortable:"",label:"撒料正确数","min-width":"70px",align:"center",prop:"撒料正确数"}}),a("el-table-column",{key:26,attrs:{sortable:"",label:"撒料正确率","min-width":"70px",align:"center",prop:"撒料正确率"}}),a("el-table-column",{key:27,attrs:{sortable:"",label:"去除取消正确率","min-width":"65px",align:"center",prop:"去除取消正确率"}}),a("el-table-column",{key:28,attrs:{sortable:"",label:"标准差","min-width":"60px",align:"center",prop:"方差"}}),a("el-table-column",{key:29,attrs:{align:"center",width:"70",label:"操作","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee("2",i)}}})]}}])})],1),0==t.tab.table2.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab.table2.total)+"条")]):t._e()],1),a("div",{staticClass:"AnalysisChart",attrs:{id:"AnalysisChart"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{"margin-bottom":"10px","margin-top":"10px"},attrs:{span:24}},[a("span",[t._v("图表查询时间:")]),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:t.changeAllSpecificDate},model:{value:t.tab.specificDate,callback:function(e){t.$set(t.tab,"specificDate",e)},expression:"tab.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.specificDate,expression:"tab.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},model:{value:t.tab.chartDate,callback:function(e){t.$set(t.tab,"chartDate",e)},expression:"tab.chartDate"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.specificDate,expression:"tab.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"130px","margin-right":"10px"},attrs:{placeholder:"请选择年份"},on:{change:t.changeAllYear},model:{value:t.tab.selectYear,callback:function(e){t.$set(t.tab,"selectYear",e)},expression:"tab.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"170px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.selectWeek,callback:function(e){t.$set(t.tab,"selectWeek",e)},expression:"tab.selectWeek"}},t._l(t.tab.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.specificDate,expression:"tab.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chartMonth,callback:function(e){t.$set(t.tab,"chartMonth",e)},expression:"tab.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:t.handleAllDate}},[t._v("确认")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpTop}})],1)],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("计划统计")]),t.tab.chart2.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart2")}},model:{value:t.tab.chart2.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart2.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart2")}},model:{value:t.tab.chart2.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart2.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart2.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart2.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart2.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart2.getdataListParm.parammaps.specificDate,expression:"tab.chart2.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,format:"yyyy-MM","value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart2.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart2.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart2.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart2")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart2")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart2.isChart?a("div",{staticStyle:{width:"100%",height:"385px",background:"#fff"},attrs:{id:"chartLine2"}}):t._e(),t.tab.chart2.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"85px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"计划执行重量(kg)",sortable:"","min-width":"80px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"配方理论重量(kg)",sortable:"","min-width":"80px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"计划准确率",sortable:"","min-width":"85px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"计划取消重量(kg)",sortable:"","min-width":"80px",align:"center",prop:"计划取消重量"}}),a("el-table-column",{attrs:{label:"计划准确率(去除取消重量)",sortable:"","min-width":"100px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"计划正确数",sortable:"","min-width":"85px",align:"center",prop:"正确数"}}),a("el-table-column",{attrs:{label:"计划数",sortable:"","min-width":"60px",align:"center",prop:"计划数"}}),a("el-table-column",{attrs:{label:"计划正确率",sortable:"","min-width":"75px",align:"center",prop:"field2"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("配方准确率")]),t.tab.chart1.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart1.getdataListParm.parammaps.statisticsList,option:t.tab.chart1.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart1}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart1")}},model:{value:t.tab.chart1.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart1.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart1")}},model:{value:t.tab.chart1.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart1.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart1.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart1.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart1.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart1.getdataListParm.parammaps.specificDate,expression:"tab.chart1.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart1.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart1.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart1.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart1")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart1")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart1.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine1"}}):t._e(),t.tab.chart1.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"90px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"配方名称",sortable:"","min-width":"90px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"计划重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"实际重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"准确率",sortable:"","min-width":"90px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("牛群准确率")]),t.tab.chart3.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart3.getdataListParm.parammaps.statisticsList,option:t.tab.chart3.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart3}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart3")}},model:{value:t.tab.chart3.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart3.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart3")}},model:{value:t.tab.chart3.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart3.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart3.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart3.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart3.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart3.getdataListParm.parammaps.specificDate,expression:"tab.chart3.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart3.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart3.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart3.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart3")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart3")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart3.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine3"}}):t._e(),t.tab.chart3.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"90px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牲畜类别",sortable:"","min-width":"90px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"计划重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"实际重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"准确率",sortable:"","min-width":"90px",align:"center",prop:"准确率"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("车辆准确率(重量)")]),t.tab.chart4.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart4.getdataListParm.parammaps.statisticsList,option:t.tab.chart4.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart4}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart4")}},model:{value:t.tab.chart4.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart4.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart4")}},model:{value:t.tab.chart4.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart4.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart4.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart4.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart4.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart4.getdataListParm.parammaps.specificDate,expression:"tab.chart4.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart4.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart4.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart4.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart4")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart4")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart4.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine4"}}):t._e(),t.tab.chart4.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"90px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"车次",sortable:"","min-width":"90px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"计划重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"实际重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"准确率",sortable:"","min-width":"90px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("混料统计")]),t.tab.chart5.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart5")}},model:{value:t.tab.chart5.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart5.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart5")}},model:{value:t.tab.chart5.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart5.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart5.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart5.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart5.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart5.getdataListParm.parammaps.specificDate,expression:"tab.chart5.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart5.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart5.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart5.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart5")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart5")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart5.isChart?a("div",{staticClass:"button",staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine5"}}):t._e(),t.tab.chart5.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"100px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"自动跳转次数",sortable:"","min-width":"130px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"手动跳转次数",sortable:"","min-width":"130px",align:"center",prop:"field2"}}),a("el-table-column",{attrs:{label:"自动跳转理论重量",sortable:"","min-width":"110px",align:"center",prop:"理论自动"}}),a("el-table-column",{attrs:{label:"自动跳转实际重量",sortable:"","min-width":"110px",align:"center",prop:"实际自动"}}),a("el-table-column",{attrs:{label:"自动跳转准确率",sortable:"","min-width":"110px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"手动跳转理论重量",sortable:"","min-width":"110px",align:"center",prop:"理论手动"}}),a("el-table-column",{attrs:{label:"手动跳转实际重量",sortable:"","min-width":"110px",align:"center",prop:"实际手动"}}),a("el-table-column",{attrs:{label:"手动跳转准确率",sortable:"","min-width":"110px",align:"center",prop:"field4"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("混料计划取消次数")]),t.tab.chart6.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart6")}},model:{value:t.tab.chart6.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart6.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart6.getdataListParm.parammaps.specificDate,expression:"tab.chart6.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart6.getdataListParm.parammaps.specificDate,expression:"tab.chart6.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart6")}},model:{value:t.tab.chart6.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart6.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart6.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart6.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart6.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart6.getdataListParm.parammaps.specificDate,expression:"tab.chart6.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart6.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart6.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart6.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart6")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart6")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart6")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart6.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine6"}}):t._e(),t.tab.chart6.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart6")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"混料计划取消次数",sortable:"","min-width":"110px",align:"center",prop:"field1"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",staticStyle:{"margin-bottom":"30px"},attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("栏舍撒料时间统计")]),t.tab.chart7.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"chartButton"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart7.getdataListParm.parammaps.statisticsList,option:t.tab.chart7.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart7}}),a("el-radio-group",{staticClass:"specificDate",staticStyle:{display:"inline-block"},attrs:{size:"mini"},on:{change:function(e){return t.changeChartSpecificDate("chart7")}},model:{value:t.tab.chart7.getdataListParm.parammaps.specificDate,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"specificDate",e)},expression:"tab.chart7.getdataListParm.parammaps.specificDate"}},[a("el-radio-button",{attrs:{label:"1",border:""}},[t._v("日")]),a("el-radio-button",{attrs:{label:"3",border:""}},[t._v("月")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tab.chart7.getdataListParm.parammaps.specificDate,expression:"tab.chart7.getdataListParm.parammaps.specificDate == '1'"}],staticClass:"day",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptionsDate},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"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tab.chart7.getdataListParm.parammaps.specificDate,expression:"tab.chart7.getdataListParm.parammaps.specificDate == '2'"}],staticClass:"week",staticStyle:{display:"inline-block",clear:"both","margin-left":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"年份"},on:{change:function(e){return t.changeChartYear("chart7")}},model:{value:t.tab.chart7.getdataListParm.parammaps.selectYear,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"selectYear",e)},expression:"tab.chart7.getdataListParm.parammaps.selectYear"}},t._l(t.tab.yearList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{multiple:"","multiple-limit":2,placeholder:"请选择周"},model:{value:t.tab.chart7.getdataListParm.parammaps.selectWeek,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"selectWeek",e)},expression:"tab.chart7.getdataListParm.parammaps.selectWeek"}},t._l(t.tab.chart7.getdataListParm.parammaps.weekList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.tab.chart7.getdataListParm.parammaps.specificDate,expression:"tab.chart7.getdataListParm.parammaps.specificDate == '3'"}],staticClass:"month",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"220px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"monthrange","range-separator":"至","picker-options":t.pickerOptionsMonth},model:{value:t.tab.chart7.getdataListParm.parammaps.chartMonth,callback:function(e){t.$set(t.tab.chart7.getdataListParm.parammaps,"chartMonth",e)},expression:"tab.chart7.getdataListParm.parammaps.chartMonth"}})],1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleChartDate("chart7")}}},[t._v("确认")])],1),a("div",[a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleExport("chart7")}}},[t._v("导出")]),a("div",{staticClass:"exportTable2",on:{click:function(e){return t.handleTable("chart7")}}},[t._v("切换表格")])])]):t._e(),t.tab.chart7.isChart?a("div",{staticStyle:{width:"100%",height:"385px"},attrs:{id:"chartLine7"}}):t._e(),t.tab.chart7.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart7")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"385","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"栏舍",sortable:"","min-width":"110px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"撒料时间",sortable:"","min-width":"110px",align:"center",prop:"撒料时间"}})],1)],1):t._e()])])],1)],1)]),a("el-tab-pane",{attrs:{label:"混料统计",name:"second"}},[a("div",{ref:"myHeightSecond",staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"140px","margin-top":"5px"},attrs:{clearable:!1,type:"date",placeholder:"选择日期"},model:{value:t.tab2.table.getdataListParm.parammaps.inputDatetime2,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"inputDatetime2",e)},expression:"tab2.table.getdataListParm.parammaps.inputDatetime2"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",staticStyle:{display:"inline-block","margin-top":"5px"},attrs:{disabled:t.Beforedisabled2},on:{click:t.handleBefore2}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",staticStyle:{display:"inline-block","margin-top":"5px"},attrs:{disabled:t.Nextdisabled2},on:{click:t.handleNext2}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:"",filterable:"",placeholder:"TMR设备"},model:{value:t.tab2.table.getdataListParm.parammaps.tmrtname,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"tmrtname",e)},expression:"tab2.table.getdataListParm.parammaps.tmrtname"}},t._l(t.tab2.TMRNameList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tmrloadname,value:t.tmrloadname}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"车次",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.projname,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"projname",e)},expression:"tab2.table.getdataListParm.parammaps.projname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"times",e)},expression:"tab2.table.getdataListParm.parammaps.times"}},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:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"配方名称",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.templetname,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"templetname",e)},expression:"tab2.table.getdataListParm.parammaps.templetname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"130px"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.buttontype,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"buttontype",e)},expression:"tab2.table.getdataListParm.parammaps.buttontype"}},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:{"margin-top":"5px"},on:{click:t.handleSearch2}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-top":"5px"},on:{click:t.handleRefresh2}},[t._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px","margin-top":"5px"},attrs:{icon:"el-icon-upload2"},on:{click:t.handleExport2}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table.listLoading,expression:"tab2.table.listLoading"}],key:t.tab2.table.tableKey,ref:"plTable2",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,"max-height":t.myHeightSecond}},[a("u-table-column",{attrs:{sortable:"",label:"日期","min-width":"70px",align:"center",prop:"日期"}}),a("u-table-column",{attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}),a("u-table-column",{attrs:{sortable:"",label:"车次","min-width":"50px",align:"center",prop:"车次"}}),a("u-table-column",{attrs:{sortable:"",label:"班次","min-width":"50px",align:"center",prop:"班次"}}),a("u-table-column",{attrs:{sortable:"",label:"配方名称","min-width":"90px",align:"center",prop:"配方名称"}}),a("u-table-column",{attrs:{sortable:"",label:"饲料","min-width":"70px",align:"center",prop:"饲料"}}),a("u-table-column",{attrs:{sortable:"",label:"理论重量","min-width":"55px",align:"center",prop:"理论重量"}}),a("u-table-column",{attrs:{sortable:"",label:"实际重量","min-width":"55px",align:"center",prop:"实际重量"}}),a("u-table-column",{attrs:{sortable:"",label:"误差值","min-width":"45px",align:"center",prop:"误差值"}}),a("u-table-column",{attrs:{sortable:"",label:"准确率","min-width":"45px",align:"center",prop:"准确率"}}),a("u-table-column",{attrs:{sortable:"",label:"计划时间","min-width":"55px",align:"center",prop:"计划时间"}}),a("u-table-column",{attrs:{sortable:"",label:"开始时间","min-width":"55px",align:"center",prop:"开始时间"}}),a("u-table-column",{attrs:{sortable:"",label:"结束时间","min-width":"55px",align:"center",prop:"结束时间"}}),a("u-table-column",{attrs:{sortable:"",label:"搅拌时间","min-width":"55px",align:"center",prop:"搅拌时间"}}),a("u-table-column",{attrs:{sortable:"",label:"跳转方式","min-width":"55px",align:"center",prop:"跳转方式"}}),a("u-table-column",{attrs:{sortable:"",label:"开始重量","min-width":"55px",align:"center",prop:"开始重量"}}),a("u-table-column",{attrs:{sortable:"",label:"结束重量","min-width":"55px",align:"center",prop:"结束重量"}})],1),0==t.tab2.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab2.table.total)+"条")]):t._e()],1)]),a("el-tab-pane",{attrs:{label:"撒料统计",name:"third"}},[a("div",{ref:"myHeightThird",staticClass:"search"},[a("el-date-picker",{staticStyle:{"margin-top":"5px",width:"140px"},attrs:{clearable:!1,type:"date",placeholder:"选择日期"},model:{value:t.tab3.table.getdataListParm.parammaps.inputDatetime2,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"inputDatetime2",e)},expression:"tab3.table.getdataListParm.parammaps.inputDatetime2"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",staticStyle:{dispaly:"inline-block","margin-top":"5px"},attrs:{disabled:t.Beforedisabled3},on:{click:t.handleBefore3}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",staticStyle:{dispaly:"inline-block","margin-top":"5px"},attrs:{disabled:t.Nextdisabled3},on:{click:t.handleNext3}}),a("el-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"120px"},attrs:{placeholder:"TMR设备",clearable:"",filterable:""},model:{value:t.tab3.table.getdataListParm.parammaps.tmrtname,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"tmrtname",e)},expression:"tab3.table.getdataListParm.parammaps.tmrtname"}},t._l(t.tab3.TMRNameList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tmrloadname,value:t.tmrloadname}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"150px"},attrs:{placeholder:"车次",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.projname,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"projname",e)},expression:"tab3.table.getdataListParm.parammaps.projname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"100px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"times",e)},expression:"tab3.table.getdataListParm.parammaps.times"}},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:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"配方名称",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.templetname,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"templetname",e)},expression:"tab3.table.getdataListParm.parammaps.templetname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{placeholder:"栏舍名称",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-select",{staticClass:"filter-item",staticStyle:{"margin-top":"5px",width:"110px"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:t.tab3.table.getdataListParm.parammaps.buttontype,callback:function(e){t.$set(t.tab3.table.getdataListParm.parammaps,"buttontype",e)},expression:"tab3.table.getdataListParm.parammaps.buttontype"}},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:{"margin-top":"5px"},on:{click:t.handleSearch3}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-top":"5px"},on:{click:t.handleRefresh3}},[t._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px","margin-top":"5px"},attrs:{icon:"el-icon-upload2"},on:{click:t.handleExport3}},[t._v("导出")])],1),a("div",{staticClass:"table"},[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab3.table.listLoading,expression:"tab3.table.listLoading"}],key:t.tab3.table.tableKey,ref:"plTable3",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,"max-height":t.myHeightThird}},[a("u-table-column",{attrs:{sortable:"",label:"日期","min-width":"70px",align:"center",prop:"日期"}}),a("u-table-column",{attrs:{sortable:"",label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}),a("u-table-column",{attrs:{sortable:"",label:"车次","min-width":"45px",align:"center",prop:"车次"}}),a("u-table-column",{attrs:{sortable:"",label:"班次","min-width":"45px",align:"center",prop:"班次"}}),a("u-table-column",{attrs:{sortable:"",label:"配方名称","min-width":"90px",align:"center",prop:"配方名称"}}),a("u-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"90px",align:"center",prop:"栏舍"}}),a("u-table-column",{attrs:{sortable:"",label:"配方名称","min-width":"70px",align:"center",prop:"配方名称"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{staticStyle:{"text-decoration":"underline",color:"#0000FF"},on:{click:function(e){return t.clickRecipeName3(i)}}},[t._v(t._s(i.配方名称))])]}}])}),a("u-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"70px",align:"center",prop:"栏舍"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{staticStyle:{"text-decoration":"underline",color:"#0000FF"},on:{click:function(e){return t.clickFence3(i)}}},[t._v(t._s(i.栏舍))])]}}])}),a("u-table-column",{attrs:{sortable:"",label:"理论重量","min-width":"55px",align:"center",prop:"理论重量"}}),a("u-table-column",{attrs:{sortable:"",label:"实际重量","min-width":"55px",align:"center",prop:"实际重量"}}),a("u-table-column",{attrs:{sortable:"",label:"误差值","min-width":"45px",align:"center",prop:"误差值"}}),a("u-table-column",{attrs:{sortable:"",label:"准确率","min-width":"45px",align:"center",prop:"准确率"}}),a("u-table-column",{attrs:{sortable:"",label:"开始时间","min-width":"55px",align:"center",prop:"开始时间"}}),a("u-table-column",{attrs:{sortable:"",label:"结束时间","min-width":"55px",align:"center",prop:"结束时间"}}),a("u-table-column",{attrs:{sortable:"",label:"跳转方式","min-width":"55px",align:"center",prop:"跳转方式"}}),a("u-table-column",{attrs:{sortable:"",label:"开始重量","min-width":"55px",align:"center",prop:"开始重量"}}),a("u-table-column",{attrs:{sortable:"",label:"结束重量","min-width":"55px",align:"center",prop:"结束重量"}})],1),0==t.tab3.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab3.table.total)+"条")]):t._e()],1)])],1),a("el-dialog",{attrs:{title:t.textMap[t.exportList.dialogStatus],visible:t.exportList.dialogFormVisible,"close-on-click-modal":!1,width:"20%"},on:{"update:visible":function(e){return t.$set(t.exportList,"dialogFormVisible",e)}}},[a("div",[a("span",[t._v("导出时间范围:")]),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"230px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},model:{value:t.exportList.inputDatetime,callback:function(e){t.$set(t.exportList,"inputDatetime",e)},expression:"exportList.inputDatetime"}})],1),a("div",{staticClass:"dialog-footer",staticStyle:{"margin-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.exportList.dialogFormVisible=!1}}},[t._v("关闭")]),"second"==t.activeName?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.exportList2()}}},[t._v("确认")]):"third"==t.activeName?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.exportList3()}}},[t._v("确认")]):t._e()],1)]),a("See",{attrs:{show:t.isShowDialog,"row-pid":t.rowPid,"start-time":t.startTime,"stop-time":t.stopTime,optdevice:t.optdevice,"title-fname":t.titlefname,"method-name":t.methodName},on:{"update:show":function(e){t.isShowDialog=e}}}),a("el-dialog",{attrs:{title:t.textMap[t.recipeNameTemp.dialogStatus],visible:t.recipeNameTemp.dialogFormVisible,"close-on-click-modal":!1,width:"98%"},on:{"update:visible":function(e){return t.$set(t.recipeNameTemp,"dialogFormVisible",e)}}},[a("div",{staticClass:"recipeNameTemp"},[a("div",{staticClass:"search"},[a("el-date-picker",{ref:"inputDatetime",staticClass:"filter-item inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.recipeNameTemp.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.recipeNameTemp.getdataListParm.parammaps,"inputDatetime",e)},expression:"recipeNameTemp.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleRecipeNameSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.recipeNameTemp.listLoading,expression:"recipeNameTemp.listLoading"}],key:t.recipeNameTemp.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.recipeNameTemp.list,border:"","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.recipeNameTemp.pageNum-1)*t.recipeNameTemp.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"修改时间",width:"100px",align:"center",prop:"datetime1"}}),a("el-table-column",{attrs:{label:"饲料名称(单位:kg)","min-width":"800px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.arrList,(function(e){return a("div",{key:e.name,staticClass:"list-group-item2 item",staticStyle:{width:"150px",float:"left",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",margin:"5px 5px",padding:"0",height:"30px"}},["red"==e.change?a("el-tooltip",{attrs:{placement:"top","open-delay":1e3}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.name)+"( "+t._s(e.weight)+" / "+t._s(e.Eweight)+" )")]),a("span",{staticStyle:{display:"block",height:"30px","line-height":"30px"},style:{color:e.change}},[t._v(" "+t._s(e.name)+"( "+t._s(e.weight)+" / "+t._s(e.Eweight)+" ) ")])]):a("el-tooltip",{attrs:{placement:"top","open-delay":1e3}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.name)+"( "+t._s(e.weight)+")")]),a("span",{staticStyle:{display:"block",height:"30px","line-height":"30px"},style:{color:e.change}},[t._v(" "+t._s(e.name)+"( "+t._s(e.weight)+") ")])])],1)}))}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.recipeNameTemp.total>0,expression:"recipeNameTemp.total>0"}],attrs:{total:t.recipeNameTemp.total,page:t.recipeNameTemp.getdataListParm.offset,limit:t.recipeNameTemp.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.recipeNameTemp.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.recipeNameTemp.getdataListParm,"pagecount",e)},pagination:function(e){return t.getRecipeNameList()}}})],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.recipeNameTemp.dialogFormVisible=!1}}},[t._v("关闭")])],1)]),a("el-dialog",{attrs:{title:t.textMap[t.feedTemp.dialogStatus],visible:t.feedTemp.dialogFormVisible,"close-on-click-modal":!1,width:"98%"},on:{"update:visible":function(e){return t.$set(t.feedTemp,"dialogFormVisible",e)}}},[a("div",{staticClass:"feedTemp"},[a("div",{staticClass:"search"},[a("el-date-picker",{ref:"inputDatetime",staticClass:"filter-item inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.feedTemp.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.feedTemp.getdataListParm.parammaps,"inputDatetime",e)},expression:"feedTemp.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleFeedSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.feedTemp.listLoading,expression:"feedTemp.listLoading"}],key:t.feedTemp.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.feedTemp.list,border:"","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.feedTemp.pageNum-1)*t.feedTemp.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"修改时间","min-width":"100px",align:"center",prop:"datetime1"}}),a("el-table-column",{attrs:{label:"饲料重量(KG)","min-width":"100px",align:"center",prop:"datetime1"}})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.feedTemp.total>0,expression:"feedTemp.total>0"}],attrs:{total:t.feedTemp.total,page:t.feedTemp.getdataListParm.offset,limit:t.feedTemp.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.feedTemp.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.feedTemp.getdataListParm,"pagecount",e)},pagination:function(e){return t.getFeedList()}}})],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.feedTemp.dialogFormVisible=!1}}},[t._v("关闭")])],1)]),a("el-dialog",{attrs:{title:t.textMap[t.fenceTemp.dialogStatus],visible:t.fenceTemp.dialogFormVisible,"close-on-click-modal":!1,width:"98%"},on:{"update:visible":function(e){return t.$set(t.fenceTemp,"dialogFormVisible",e)}}},[a("div",{staticClass:"fenceTemp"},[a("el-tabs",{on:{"tab-click":t.handleFenceTabClick},model:{value:t.fenceTemp.activeName,callback:function(e){t.$set(t.fenceTemp,"activeName",e)},expression:"fenceTemp.activeName"}},[a("el-tab-pane",{attrs:{label:"班次重量",name:"first"}},[a("div",{staticClass:"search"},[a("el-date-picker",{ref:"inputDatetime",staticClass:"filter-item inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.fenceTemp.tab1.getdataListParm.parammaps,"inputDatetime",e)},expression:"fenceTemp.tab1.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleFenceSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.fenceTemp.tab1.listLoading,expression:"fenceTemp.tab1.listLoading"}],key:t.fenceTemp.tab1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.fenceTemp.tab1.list,border:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod}},[a("u-table-column",{attrs:{label:"序号",width:"50px",align:"center",type:"index"}}),a("u-table-column",{attrs:{label:"修改时间",width:"100px",align:"center",prop:"barname"}}),a("u-table-column",{attrs:{label:"班次","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"实际牛头数","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"系数(%)","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"系数头数","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"配方模板","min-width":"70px",align:"center",prop:"barname"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{staticStyle:{"text-decoration":"underline",color:"#0000FF"},on:{click:function(e){return t.clickRecipeTemplate3(i)}}},[t._v(t._s(i.barname))])]}}])}),a("u-table-column",{attrs:{label:"比例(%)","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"重量(KG)","min-width":"100px",align:"center",prop:"times"}})],1)],1)]),a("el-tab-pane",{attrs:{label:"车次重量",name:"second"}},[a("div",{staticClass:"search"},[a("el-date-picker",{ref:"inputDatetime",staticClass:"filter-item inputDatetime",staticStyle:{width:"250px",top:"-3px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.fenceTemp.tab2.getdataListParm.parammaps,"inputDatetime",e)},expression:"fenceTemp.tab2.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleFenceSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.fenceTemp.tab2.listLoading,expression:"fenceTemp.tab2.listLoading"}],key:t.fenceTemp.tab2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.fenceTemp.tab2.list,border:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod}},[a("u-table-column",{attrs:{label:"序号",width:"50px",align:"center",type:"index"}}),a("u-table-column",{attrs:{label:"修改时间",width:"100px",align:"center",prop:"barname"}}),a("u-table-column",{attrs:{label:"班次","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"第一车","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"第二车","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"第三车","min-width":"100px",align:"center",prop:"times"}}),a("u-table-column",{attrs:{label:"第四车","min-width":"100px",align:"center",prop:"times"}})],1)],1)])],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.fenceTemp.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],1)},s=[],r=a("ade3"),l=(a("ac1f"),a("1276"),a("b0c0"),a("4e82"),a("7db0"),a("d3b7"),a("5319"),a("159b"),a("313e")),n=a.n(l),o=a("9eac"),c=a("2934"),d=a("a78e"),p=a.n(d),m=a("ed08"),u=a("333d"),h=a("5c96"),b=a("664b");a("817d");var g={name:"PastureErrorAnalysis",components:{Pagination:u["a"],mySelect:b["a"],See:o["default"]},data:function(){var t,e=this;return{pickerMinMonth:"",pickerOptionsMonth:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.pickerMinMonth=i.getTime(),a&&(e.pickerMinMonth="")},disabledDate:function(t){if(""!==e.pickerMinMonth){var a=15768e7,i=e.pickerMinMonth-0,s=e.pickerMinMonth+a;return s>new Date&&(s=new Date),t.getTime()<i||t.getTime()>s}return t.getTime()>=Date.now()}},pickerMinDate:"",pickerOptionsDate:{showWeekNumber:!1,onPick:function(t){var a=t.maxDate,i=t.minDate;e.pickerMinDate=i.getTime(),a&&(e.pickerMinDate="")},disabledDate:function(t){if(""!==e.pickerMinDate){var a=26784e5,i=e.pickerMinDate-a,s=e.pickerMinDate+a;return s>new Date&&(s=new Date),t.getTime()<i||t.getTime()>s}return t.getTime()>Date.now()}},Beforedisabled:!1,Nextdisabled:!1,Beforedisabled2:!1,Nextdisabled2:!1,Beforedisabled3:!1,Nextdisabled3:!1,pickerOptions:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.pickerMinDate=i.getTime(),a&&(e.pickerMinDate="")},disabledDate:function(t){if(""!==e.pickerMinDate){var a=26784e5,i=e.pickerMinDate-a,s=e.pickerMinDate+a;return s>new Date&&(s=new Date),t.getTime()<i||t.getTime()>s}return t.getTime()>Date.now()}},maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),inforname:"times"}}},activeName:"first",tab:(t={TMRNameList:[],radio:"0",isDriver:!0,isFormulaName:!1,isHouseName:!1,isLivestockType:!1,isTrainNumber:!1,isTMRName:!1,checked:!1,chartDate:[],selectWeek:[],chartMonth:[],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),yearList:[],weekList:[],table:{getdataListParm:{name:"getAccuracyHFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:"",sort:"",times:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getAccuracySFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:"",sort:"",times:""}},tableKey:2,list:[],total:0,listLoading:!0,temp:{}}},Object(r["a"])(t,"chartDate",[]),Object(r["a"])(t,"chart1",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart1Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart2",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllJH",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart3",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllNQ",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart1Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart4",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllCC",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart4Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart5",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart6",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllQX",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),Object(r["a"])(t,"chart7",{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllLS",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],specificDate:"1",selectYear:Object(m["d"])(new Date,"{y}"),selectWeek:"",chartMonth:"",yearList:[],weekList:[],status:0}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart7Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}),t),tab2:{TMRNameList:[],table:{getdataListParm:{name:"getStatisticsHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],inputDatetime2:new Date,tmrtname:"",projname:"",times:"",buttontype:"",templetname:"",isuse:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},frequencyList:[],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}],isuseList:[{id:"0",name:"未完成"},{id:"2",name:"部分完成"},{id:"1",name:"全部完成"}]},tab3:{TMRNameList:[],table:{getdataListParm:{name:"getStatisticsSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(m["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],inputDatetime2:new Date,tmrtname:"",projname:"",times:"",templetname:"",fname:"",buttontype:"",isuse:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},frequencyList:[],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}],isuseList:[{id:"0",name:"未完成"},{id:"2",name:"部分完成"},{id:"1",name:"全部完成"}]},titlefname:"",methodName:"",rowPid:"",optdevice:"",startTime:"",stopTime:"",isShowDialog:!1,statisticalTypeList:[{id:"0",name:"驾驶员"},{id:"1",name:"配方名称"},{id:"2",name:"栏舍名称"},{id:"3",name:"牲畜类别"},{id:"4",name:"车次"},{id:"5",name:"TMR名称"}],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},exportList:{dialogFormVisible:!1,inputDatetime:[new Date,new Date]},textMap:{exportList:"导出",recipeNameTxt:"配方修改记录",feedTxt:"饲料",fenceTxt:"栏舍"},isokDisable:!1,myHeight2:document.documentElement.clientHeight-85-150,myHeightSecond:"",myHeightThird:"",recipeNameTemp:{dialogStatus:"",dialogFormVisible:!1,getdataListParm:{name:"getFitHistory1",name1:"getFitHistory2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",pastureid:"",fitid:""}},tableKey:0,total:0,listLoading:!0,list:[]},feedTemp:{dialogStatus:"",dialogFormVisible:!1,getdataListParm:{name:"getFitHistory1",name1:"getFitHistory2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",pastureid:"",fitid:""}},tableKey:0,total:0,listLoading:!0,list:[]},fenceTemp:{dialogStatus:"",dialogFormVisible:!1,spanObj:{},mergekeys:["barname","sumweight"],tab1:{getdataListParm:{name:"getPlanModifyFPlist",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{inputDatetime:"",pastureid:"",fitid:""}},tableKey:0,total:0,listLoading:!0,list:[]},tab2:{getdataListParm:{name:"getPlanModifyFPlist",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{inputDatetime:"",pastureid:"",fitid:""}},tableKey:0,total:0,listLoading:!0,list:[]},activeName:"first"}}},created:function(){this.getTimeFn(),this.getAllYear(),this.getIsDisplay(),this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7()},mounted:function(){},methods:{getAllYear:function(){var t=new Date,e=t.getFullYear(),a=e-2001;this.tab.yearList=[];for(var i=0;i<=a;i++)this.tab.yearList.push(e--)},changeAllYear:function(){this.tab.weekList=[],this.tab.selectWeek=[];for(var t=Object(c["s"])(this.tab.selectYear),e=0;e<=t.length;e++){var a={},i=e+1;a.name="第"+i+"周("+t[e].month+"."+t[e].date+"~"+t[e].last.month+"."+t[e].last.date+")",a.id=e,this.tab.weekList.push(a)}},changeAllSpecificDate:function(){var t="",e="";"2"==this.tab.specificDate?(this.tab.selectYear=Object(m["d"])(new Date,"{y}"),this.changeAllYear()):"3"==this.tab.specificDate&&(t=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",e=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chartMonth=[],this.tab.chartMonth.push(t,e))},handleAllDate:function(){var t=this;h["MessageBox"].confirm("是否调整以下所有图表查询时间?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e="",a="",i="";if("1"==t.tab.specificDate)e=Object(m["d"])(t.tab.chartDate[0],"{y}-{m}-{d}"),a=Object(m["d"])(t.tab.chartDate[1],"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart2.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart3.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart4.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart5.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart6.getdataListParm.parammaps.inputDatetime=[e,a],t.tab.chart7.getdataListParm.parammaps.inputDatetime=[e,a],i=0;else if("2"==t.tab.specificDate){if(""==t.tab.selectYear)return void t.$message({type:"error",message:"请输入年",duration:2e3});if(2!==t.tab.selectWeek.length)return void t.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=t.tab.selectYear+"-"+Object(c["s"])(t.tab.selectYear)[t.tab.selectWeek[0]].month+"-"+Object(c["s"])(t.tab.selectYear)[t.tab.selectWeek[0]].date,a=t.tab.selectYear+"-"+Object(c["s"])(t.tab.selectYear)[t.tab.selectWeek[1]].last.month+"-"+Object(c["s"])(t.tab.selectYear)[t.tab.selectWeek[1]].last.date,i=1,t.tab.chart1.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart1.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart1.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart2.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart2.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart2.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart3.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart3.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart3.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart4.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart4.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart4.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart5.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart5.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart5.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart6.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart6.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart6.getdataListParm.parammaps.weekList=t.tab.weekList,t.tab.chart7.getdataListParm.parammaps.selectYear=t.tab.selectYear,t.tab.chart7.getdataListParm.parammaps.selectWeek=t.tab.selectWeek,t.tab.chart7.getdataListParm.parammaps.weekList=t.tab.weekList}else if("3"==t.tab.specificDate)if(t.tab.chartMonth.length>0){e=t.tab.chartMonth[0];var s=t.tab.chartMonth[1].substring(0,7).split("-"),r=new Date(s[0],s[1],0),l=r.getDate();a=t.tab.chartMonth[1].substring(0,8)+l,i=2,t.tab.chart1.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart2.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart3.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart4.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart5.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart6.getdataListParm.parammaps.chartMonth=[e,a],t.tab.chart7.getdataListParm.parammaps.chartMonth=[e,a]}else t.$message({type:"error",message:"请输入月",duration:2e3});t.tab.chart1.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart1.getdataListParm.parammaps.startTime=e,t.tab.chart1.getdataListParm.parammaps.stopTime=a,t.tab.chart1.getdataListParm.parammaps.status=i,t.tab.chart2.getdataListParm.parammaps.startTime=e,t.tab.chart2.getdataListParm.parammaps.stopTime=a,t.tab.chart2.getdataListParm.parammaps.status=i,t.tab.chart2.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart3.getdataListParm.parammaps.startTime=e,t.tab.chart3.getdataListParm.parammaps.stopTime=a,t.tab.chart3.getdataListParm.parammaps.status=i,t.tab.chart3.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart4.getdataListParm.parammaps.startTime=e,t.tab.chart4.getdataListParm.parammaps.stopTime=a,t.tab.chart4.getdataListParm.parammaps.status=i,t.tab.chart4.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart5.getdataListParm.parammaps.startTime=e,t.tab.chart5.getdataListParm.parammaps.stopTime=a,t.tab.chart5.getdataListParm.parammaps.status=i,t.tab.chart5.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart6.getdataListParm.parammaps.startTime=e,t.tab.chart6.getdataListParm.parammaps.stopTime=a,t.tab.chart6.getdataListParm.parammaps.status=i,t.tab.chart6.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.tab.chart7.getdataListParm.parammaps.startTime=e,t.tab.chart7.getdataListParm.parammaps.stopTime=a,t.tab.chart7.getdataListParm.parammaps.status=i,t.tab.chart7.getdataListParm.parammaps.specificDate=t.tab.specificDate,t.getChart1(),t.getChart2(),t.getChart3(),t.getChart4(),t.getChart5(),t.getChart6(),t.getChart7()}))},changeChartSpecificDate:function(t){var e="",a="";"chart1"==t?"2"==this.tab.chart1.getdataListParm.parammaps.specificDate?(this.tab.chart1.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart1.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.weekList=[],this.tab.chart1.getdataListParm.parammaps.chartMonth=[],this.tab.chart1.getdataListParm.parammaps.chartMonth.push(e,a)):"chart2"==t?"2"==this.tab.chart2.getdataListParm.parammaps.specificDate?(this.tab.chart2.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart2.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.weekList=[],this.tab.chart2.getdataListParm.parammaps.chartMonth=[],this.tab.chart2.getdataListParm.parammaps.chartMonth.push(e,a)):"chart3"==t?"2"==this.tab.chart3.getdataListParm.parammaps.specificDate?(this.tab.chart3.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart3.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.weekList=[],this.tab.chart3.getdataListParm.parammaps.chartMonth=[],this.tab.chart3.getdataListParm.parammaps.chartMonth.push(e,a)):"chart4"==t?"2"==this.tab.chart4.getdataListParm.parammaps.specificDate?(this.tab.chart4.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart4.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.weekList=[],this.tab.chart4.getdataListParm.parammaps.chartMonth=[],this.tab.chart4.getdataListParm.parammaps.chartMonth.push(e,a)):"chart5"==t?"2"==this.tab.chart5.getdataListParm.parammaps.specificDate?(this.tab.chart5.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart5.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.weekList=[],this.tab.chart5.getdataListParm.parammaps.chartMonth=[],this.tab.chart5.getdataListParm.parammaps.chartMonth.push(e,a)):"chart6"==t?"2"==this.tab.chart6.getdataListParm.parammaps.specificDate?(this.tab.chart6.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart6.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart6.getdataListParm.parammaps.weekList=[],this.tab.chart6.getdataListParm.parammaps.chartMonth=[],this.tab.chart6.getdataListParm.parammaps.chartMonth.push(e,a)):"chart7"==t&&("2"==this.tab.chart7.getdataListParm.parammaps.specificDate?(this.tab.chart7.getdataListParm.parammaps.selectYear=Object(m["d"])(new Date,"{y}"),this.changeChartYear(t)):"3"==this.tab.chart7.getdataListParm.parammaps.specificDate&&(e=Object(m["d"])((new Date).setTime((new Date).getTime()-321408e5),"{y}-{m}")+"-01",a=Object(m["d"])(new Date,"{y}-{m}-{d}"),this.tab.chart7.getdataListParm.parammaps.weekList=[],this.tab.chart7.getdataListParm.parammaps.chartMonth=[],this.tab.chart7.getdataListParm.parammaps.chartMonth.push(e,a)))},changeChartYear:function(t){var e="";if("chart1"==t){this.tab.chart1.getdataListParm.parammaps.weekList=[],this.tab.chart1.getdataListParm.parammaps.selectWeek=[],e=Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear);for(var a=0;a<=e.length;a++){var i={},s=a+1;i.name="第"+s+"周("+e[a].month+"."+e[a].date+"~"+e[a].last.month+"."+e[a].last.date+")",i.id=a,this.tab.chart1.getdataListParm.parammaps.weekList.push(i)}}else if("chart2"==t){this.tab.chart2.getdataListParm.parammaps.selectWeek=[],this.tab.chart2.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear);for(var r=0;r<=e.length;r++){i={},s=r+1;i.name="第"+s+"周("+e[r].month+"."+e[r].date+"~"+e[r].last.month+"."+e[r].last.date+")",i.id=r,this.tab.chart2.getdataListParm.parammaps.weekList.push(i)}}else if("chart3"==t){this.tab.chart3.getdataListParm.parammaps.selectWeek=[],this.tab.chart3.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear);for(var l=0;l<=e.length;l++){i={},s=l+1;i.name="第"+s+"周("+e[l].month+"."+e[l].date+"~"+e[l].last.month+"."+e[l].last.date+")",i.id=l,this.tab.chart3.getdataListParm.parammaps.weekList.push(i)}}else if("chart4"==t){this.tab.chart4.getdataListParm.parammaps.selectWeek=[],this.tab.chart4.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear);for(var n=0;n<=e.length;n++){i={},s=n+1;i.name="第"+s+"周("+e[n].month+"."+e[n].date+"~"+e[n].last.month+"."+e[n].last.date+")",i.id=n,this.tab.chart4.getdataListParm.parammaps.weekList.push(i)}}else if("chart5"==t){this.tab.chart5.getdataListParm.parammaps.selectWeek=[],this.tab.chart5.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear);for(var o=0;o<=e.length;o++){i={},s=o+1;i.name="第"+s+"周("+e[o].month+"."+e[o].date+"~"+e[o].last.month+"."+e[o].last.date+")",i.id=o,this.tab.chart5.getdataListParm.parammaps.weekList.push(i)}}else if("chart6"==t){this.tab.chart6.getdataListParm.parammaps.selectWeek=[],this.tab.chart6.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear);for(var d=0;d<=e.length;d++){i={},s=d+1;i.name="第"+s+"周("+e[d].month+"."+e[d].date+"~"+e[d].last.month+"."+e[d].last.date+")",i.id=d,this.tab.chart6.getdataListParm.parammaps.weekList.push(i)}}else if("chart7"==t){this.tab.chart7.getdataListParm.parammaps.selectWeek=[],this.tab.chart7.getdataListParm.parammaps.weekList=[],e=Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear);for(var p=0;p<=e.length;p++){i={},s=p+1;i.name="第"+s+"周("+e[p].month+"."+e[p].date+"~"+e[p].last.month+"."+e[p].last.date+")",i.id=p,this.tab.chart7.getdataListParm.parammaps.weekList.push(i)}}},handleChartDate:function(t){var e="",a="";if("chart1"==t){if("1"==this.tab.chart1.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart1.getdataListParm.parammaps.specificDate){if(""==this.tab.chart1.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart1.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart1.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart1.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart1.getdataListParm.parammaps.selectYear)[this.tab.chart1.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart1.getdataListParm.parammaps.status=1}else"3"==this.tab.chart1.getdataListParm.parammaps.specificDate&&(e=this.tab.chart1.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart1.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart1.getdataListParm.parammaps.status=2);this.tab.chart1.getdataListParm.parammaps.startTime=e,this.tab.chart1.getdataListParm.parammaps.stopTime=a,this.getChart1()}else if("chart2"==t){if("1"==this.tab.chart2.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart2.getdataListParm.parammaps.specificDate){if(""==this.tab.chart2.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart2.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart2.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart2.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart2.getdataListParm.parammaps.selectYear)[this.tab.chart2.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart2.getdataListParm.parammaps.status=1}else"3"==this.tab.chart2.getdataListParm.parammaps.specificDate&&(e=this.tab.chart2.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart2.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart2.getdataListParm.parammaps.status=2);this.tab.chart2.getdataListParm.parammaps.startTime=e,this.tab.chart2.getdataListParm.parammaps.stopTime=a,this.getChart2()}else if("chart3"==t){if("1"==this.tab.chart3.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart3.getdataListParm.parammaps.specificDate){if(""==this.tab.chart3.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart3.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart3.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart3.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart3.getdataListParm.parammaps.selectYear)[this.tab.chart3.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart3.getdataListParm.parammaps.status=1}else"3"==this.tab.chart3.getdataListParm.parammaps.specificDate&&(e=this.tab.chart3.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart3.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart3.getdataListParm.parammaps.status=2);this.tab.chart3.getdataListParm.parammaps.startTime=e,this.tab.chart3.getdataListParm.parammaps.stopTime=a,this.getChart3()}else if("chart4"==t){if("1"==this.tab.chart4.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart4.getdataListParm.parammaps.specificDate){if(""==this.tab.chart4.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart4.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart4.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart4.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart4.getdataListParm.parammaps.selectYear)[this.tab.chart4.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart4.getdataListParm.parammaps.status=1}else"3"==this.tab.chart4.getdataListParm.parammaps.specificDate&&(e=this.tab.chart4.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart4.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart4.getdataListParm.parammaps.status=2);this.tab.chart4.getdataListParm.parammaps.startTime=e,this.tab.chart4.getdataListParm.parammaps.stopTime=a,this.getChart4()}else if("chart5"==t){if("1"==this.tab.chart5.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart5.getdataListParm.parammaps.specificDate){if(""==this.tab.chart5.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart5.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart5.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart5.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart5.getdataListParm.parammaps.selectYear)[this.tab.chart5.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart5.getdataListParm.parammaps.status=1}else"3"==this.tab.chart5.getdataListParm.parammaps.specificDate&&(e=this.tab.chart5.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart5.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart5.getdataListParm.parammaps.status=2);this.tab.chart5.getdataListParm.parammaps.startTime=e,this.tab.chart5.getdataListParm.parammaps.stopTime=a,this.getChart5()}else if("chart6"==t){if("1"==this.tab.chart6.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart6.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart6.getdataListParm.parammaps.specificDate){if(""==this.tab.chart6.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart6.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart6.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear)[this.tab.chart6.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear)[this.tab.chart6.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart6.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear)[this.tab.chart6.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart6.getdataListParm.parammaps.selectYear)[this.tab.chart6.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart6.getdataListParm.parammaps.status=1}else"3"==this.tab.chart6.getdataListParm.parammaps.specificDate&&(e=this.tab.chart6.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart6.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart6.getdataListParm.parammaps.status=2);this.tab.chart6.getdataListParm.parammaps.startTime=e,this.tab.chart6.getdataListParm.parammaps.stopTime=a,this.getChart6()}else if("chart7"==t){if("1"==this.tab.chart7.getdataListParm.parammaps.specificDate)e=Object(m["d"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a=Object(m["d"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.chart7.getdataListParm.parammaps.status=0;else if("2"==this.tab.chart7.getdataListParm.parammaps.specificDate){if(""==this.tab.chart7.getdataListParm.parammaps.selectYear)return void this.$message({type:"error",message:"请输入年",duration:2e3});if(2!==this.tab.chart7.getdataListParm.parammaps.selectWeek.length)return void this.$message({type:"error",message:"请输入查询开始周跟结束周",duration:2e3});e=this.tab.chart7.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear)[this.tab.chart7.getdataListParm.parammaps.selectWeek[0]].month+"-"+Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear)[this.tab.chart7.getdataListParm.parammaps.selectWeek[0]].date,a=this.tab.chart7.getdataListParm.parammaps.selectYear+"-"+Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear)[this.tab.chart7.getdataListParm.parammaps.selectWeek[1]].last.month+"-"+Object(c["s"])(this.tab.chart7.getdataListParm.parammaps.selectYear)[this.tab.chart7.getdataListParm.parammaps.selectWeek[1]].last.date,this.tab.chart7.getdataListParm.parammaps.status=1}else"3"==this.tab.chart7.getdataListParm.parammaps.specificDate&&(e=this.tab.chart7.getdataListParm.parammaps.chartMonth[0],a=this.tab.chart7.getdataListParm.parammaps.chartMonth[1].substring(0,8)+"31",this.tab.chart7.getdataListParm.parammaps.status=2);this.tab.chart7.getdataListParm.parammaps.startTime=e,this.tab.chart7.getdataListParm.parammaps.stopTime=a,this.getChart7()}},getTimeFn:function(){var t=this,e=new Date,a=new Date,i=new Date,s=new Date;i.setTime(i.getTime()-864e5),s.setTime(s.getTime()-864e5),t.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(i,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(s,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.inputDatetime=[i,s],t.tab.table2.getdataListParm.parammaps.startTime=Object(m["d"])(i,"{y}-{m}-{d}"),t.tab.table2.getdataListParm.parammaps.stopTime=Object(m["d"])(s,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.inputDatetime=[i,s],t.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(i,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(s,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.inputDatetime=[i,s],t.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(i,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(s,"{y}-{m}-{d}"),e.setTime(e.getTime()-864e6),a.setTime(a.getTime()-864e5),t.tab.chartDate[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chartDate[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart6.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart6.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart6.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart6.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart7.getdataListParm.parammaps.inputDatetime[0]=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart7.getdataListParm.parammaps.inputDatetime[1]=Object(m["d"])(a,"{y}-{m}-{d}"),t.tab.chart7.getdataListParm.parammaps.startTime=Object(m["d"])(e,"{y}-{m}-{d}"),t.tab.chart7.getdataListParm.parammaps.stopTime=Object(m["d"])(a,"{y}-{m}-{d}")},getIsDisplay:function(){var t=this;Object(c["c"])(this.maxTime.getMaxTimesParm).then((function(e){1==e.data.list[0].inforvalue?(t.tab2.frequencyList=[{id:"1",name:"第一班"}],t.tab3.frequencyList=[{id:"1",name:"第一班"}]):2==e.data.list[0].inforvalue?(t.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}],t.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]):3==e.data.list[0].inforvalue?(t.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}],t.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}],t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]):4==e.data.list[0].inforvalue&&(t.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}],t.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},handleDownload:function(){if(1==this.tab.checked){if("0"==this.tab.radio){var t=[{tHeader:["日期","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","标准差"],filterVal:["计划时间","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","驾驶员","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","撒料正确数","撒料正确率","去除取消正确率","标准差"],filterVal:["计划时间","驾驶员","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","撒料正确数","撒料正确率","去除取消正确率","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(t,"准确性分析—汇总统计",!0,"xlsx")}else if("1"==this.tab.radio){var e=[{tHeader:["日期","配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","标准差"],filterVal:["计划时间","配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","撒料正确数","撒料正确率","去除取消正确率","标准差"],filterVal:["计划时间","配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","撒料正确数","撒料正确率","去除取消正确率","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(e,"准确性分析—汇总统计",!0,"xlsx")}else if("2"==this.tab.radio){var a=[{tHeader:["日期","栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(a,"汇总统计-栏舍名称",!0,"xlsx")}else if("3"==this.tab.radio){var i=[{tHeader:["日期","牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(i,"汇总统计-牲畜类别",!0,"xlsx")}else if("4"==this.tab.radio){var s=[{tHeader:["日期","车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["日期","车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["计划时间","车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(s,"汇总统计-车次",!0,"xlsx")}}else if("0"==this.tab.radio){t=[{tHeader:["驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["驾驶员","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["驾驶员","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(t,"准确性分析—汇总统计",!0,"xlsx")}else if("1"==this.tab.radio){e=[{tHeader:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(e,"准确性分析—汇总统计",!0,"xlsx")}else if("2"==this.tab.radio){a=[{tHeader:["栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(a,"汇总统计-栏舍名称",!0,"xlsx")}else if("3"==this.tab.radio){i=[{tHeader:["牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(i,"汇总统计-牲畜类别",!0,"xlsx")}else if("4"==this.tab.radio){s=[{tHeader:["车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料时间","等待时间","混料自动跳转次数","混料手动跳转次数","取消次数","标准差"],filterVal:["车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料时间","等待时间","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料时间","等待时间","撒料自动跳转次数","撒料手动跳转次数","取消次数","标准差"],filterVal:["车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料时间","等待时间","撒料自动跳转次数","撒料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(m["c"])(s,"汇总统计-车次",!0,"xlsx")}},handleTabClick:function(){var t=this;if("first"==this.activeName){var e=new Date,a=new Date;e.setTime(e.getTime()-864e5),a.setTime(a.getTime()-864e5),this.tab.table.getdataListParm.parammaps.inputDatetime=[e,a],this.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.table2.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table2.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.fname="",this.tab.table.getdataListParm.parammaps.sort="",this.tab.table.getdataListParm.parammaps.times="",this.tab.table2.getdataListParm.parammaps.fname="",this.tab.table2.getdataListParm.parammaps.sort="",this.tab.table2.getdataListParm.parammaps.times="",this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7()}else if("second"==this.activeName){setTimeout((function(){t.myHeightSecond=document.documentElement.clientHeight-40-t.$refs.myHeightSecond.offsetHeight-150}),100);var i=new Date;i.setTime(i.getTime()-864e5),this.tab2.table.getdataListParm.parammaps.inputDatetime2=i,this.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.tmrtname="",this.tab2.table.getdataListParm.parammaps.projname="",this.tab2.table.getdataListParm.parammaps.times="",this.tab2.table.getdataListParm.parammaps.buttontype="",this.tab2.table.getdataListParm.parammaps.templetname="",this.getTab2List(),this.getTMRNameList2()}else if("third"==this.activeName){setTimeout((function(){t.myHeightThird=document.documentElement.clientHeight-40-t.$refs.myHeightThird.offsetHeight-150}),100);var s=new Date;s.setTime(s.getTime()-864e5),this.tab3.table.getdataListParm.parammaps.inputDatetime2=s,this.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.tmrtname="",this.tab3.table.getdataListParm.parammaps.projname="",this.tab3.table.getdataListParm.parammaps.times="",this.tab3.table.getdataListParm.parammaps.templetname="",this.tab3.table.getdataListParm.parammaps.buttontype="",this.getTab3List(),this.getTMRNameList3()}},changeRadio:function(){this.tab.table.getdataListParm.parammaps.sort="",this.tab.table.getdataListParm.parammaps.times="",this.tab.table.getdataListParm.parammaps.fname="",this.tab.table2.getdataListParm.parammaps.sort="",this.tab.table2.getdataListParm.parammaps.times="",this.tab.table2.getdataListParm.parammaps.fname="","0"==this.tab.radio?(this.tab.isDriver=!0,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"1"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"2"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"3"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"5"==this.tab.radio&&(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!0,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2(),this.getTMRNameList())},changeChecked:function(){this.handleSearch()},getTabList:function(){var t=this;this.tab.table.listLoading=!0,this.tab.table.getdataListParm.parammaps.status=this.tab.radio,this.tab.table.getdataListParm.parammaps.genre=0,""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(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="");var e="authdata/summary",a={};0==this.tab.checked?this.tab.table.getdataListParm.parammaps.isdate=0:this.tab.table.getdataListParm.parammaps.isdate=1,a.parammaps=this.tab.table.getdataListParm.parammaps,Object(c["n"])(e,a).then((function(e){null!==e.data.list?t.tab.table.list=e.data.list:t.tab.table.list=[],t.tab.table.total=e.data.total,setTimeout((function(){t.tab.table.listLoading=!1}),100)}))},getTabList2:function(){var t=this;this.tab.table2.listLoading=!0,this.tab.table2.getdataListParm.parammaps.status=this.tab.radio,this.tab.table2.getdataListParm.parammaps.genre=1,this.tab.table2.getdataListParm.parammaps.startTime=this.tab.table.getdataListParm.parammaps.startTime,this.tab.table2.getdataListParm.parammaps.stopTime=this.tab.table.getdataListParm.parammaps.stopTime;var e="authdata/summary",a={};0==this.tab.checked?this.tab.table2.getdataListParm.parammaps.isdate=0:this.tab.table2.getdataListParm.parammaps.isdate=1,a.parammaps=this.tab.table2.getdataListParm.parammaps,Object(c["n"])(e,a).then((function(e){null!==e.data.list?t.tab.table2.list=e.data.list:t.tab.table2.list=[],t.tab.table2.total=e.data.total,setTimeout((function(){t.tab.table2.listLoading=!1}),100)}))},handleSearch:function(){"0"==this.tab.radio?(this.tab.isDriver=!0,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"1"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"2"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"3"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.tab.radio?(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.isTMRName=!1,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2()):"5"==this.tab.radio&&(this.tab.isDriver=!1,this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.isTMRName=!0,this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.offset=1,this.getTabList2(),this.getTMRNameList()),this.tab.table2.getdataListParm.parammaps.fname=this.tab.table.getdataListParm.parammaps.fname},handleBefore:function(){if(this.$forceUpdate(),""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList(),this.tab.table2.getdataListParm.parammaps.startTime=this.tab.table.getdataListParm.parammaps.startTime,this.tab.table2.getdataListParm.parammaps.stopTime=this.tab.table.getdataListParm.parammaps.stopTime,this.getTabList2(),this.getTMRNameList()},handleNext:function(){if(this.$forceUpdate(),""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList(),this.tab.table2.getdataListParm.parammaps.startTime=this.tab.table.getdataListParm.parammaps.startTime,this.tab.table2.getdataListParm.parammaps.stopTime=this.tab.table.getdataListParm.parammaps.stopTime,this.getTabList2(),this.getTMRNameList()},handleBefore2:function(){if(this.$forceUpdate(),""!==this.tab2.table.getdataListParm.parammaps.inputDatetime2&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime2){var t=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime2.getDate()-1));t>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.table.getdataListParm.parammaps.inputDatetime2=t,this.$forceUpdate()}this.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTMRNameList2()},handleNext2:function(){if(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime2&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime2){var t=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime2.getDate()+1));t>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.table.getdataListParm.parammaps.inputDatetime2=t,this.$forceUpdate()}this.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTMRNameList2()},handleBefore3:function(){if(this.$forceUpdate(),""!==this.tab3.table.getdataListParm.parammaps.inputDatetime2&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime2){var t=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime2.getDate()-1));t>Date.now()-864e5?(this.Nextdisabled3=!0,this.Beforedisabled3=!1):(this.Nextdisabled3=!1,this.Beforedisabled3=!1),this.tab3.table.getdataListParm.parammaps.inputDatetime2=t,this.$forceUpdate()}this.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.getTab3List(),this.getTMRNameList3()},handleNext3:function(){if(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime2&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime2){var t=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime2.setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime2.getDate()+1));t>Date.now()-864e5?(this.Nextdisabled3=!0,this.Beforedisabled3=!1):(this.Nextdisabled3=!1,this.Beforedisabled3=!1),this.tab3.table.getdataListParm.parammaps.inputDatetime2=t,this.$forceUpdate()}this.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(t,"{y}-{m}-{d}"),this.getTab3List(),this.getTMRNameList3()},handleQuickJumpChart:function(){var t=document.getElementById("table").offsetHeight+120;window.scrollTo(t,t)},handleQuickJumpTop:function(){window.scrollTo(0,0)},changeStatisticChart1:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart1.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart1.statisticsList.find((function(a){return a.name==e.tab.chart1.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart1.chart1Data3.length;i++)i==a&&s.push(e.tab.chart1.chart1Data3[i])},l=0;l<this.tab.chart1.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart1.chartLine_data.data3=s,this.tab.chart1.chartLine_data.data1=this.tab.chart1.getdataListParm.parammaps.statisticsList,this.roadChartLine1(this.tab.chart1.chartLine_data)},getChart1:function(){var t=this;this.tab.chart1.listLoading=!0;var e="authdata/chart/accuracyAllFT",a={parammaps:{}};"1"==this.tab.chart2.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart2.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart2.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)for(var i=0;i<e.data.data.length;i++)""!==e.data.data[i].准确率&&void 0!==e.data.data[i].准确率&&(e.data.data[i].准确率=parseFloat(e.data.data[i].准确率)+"%"),""!==e.data.data[i].理论量&&void 0!==e.data.data[i].理论量&&(e.data.data[i].理论量=parseFloat(e.data.data[i].理论量)),""!==e.data.data[i].实际量&&void 0!==e.data.data[i].实际量&&(e.data.data[i].实际量=parseFloat(e.data.data[i].实际量));t.tab.chart1.table.list=e.data.data,t.tab.chart1.chartLine_data=e.data.list,t.tab.chart1.statisticsList=[],t.tab.chart1.getdataListParm.parammaps.statisticsList=[];for(var s=0;s<e.data.list.data1.length;s++){t.tab.chart1.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[s]);var r={};r.id=s,r.name=e.data.list.data1[s],t.tab.chart1.statisticsList.push(r)}t.tab.chart1.chart1Data3=e.data.list.data3,t.tab.chart1.total=e.data.total;for(var l=[],n=function(e){for(var a=t.tab.chart1.statisticsList.find((function(a){return a.name==t.tab.chart1.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart1.chart1Data3.length;i++)i==a&&(t.tab.chart1.chart1Data3[i].checkedState=!0,l.push(t.tab.chart1.chart1Data3[i]))},o=0;o<t.tab.chart1.getdataListParm.parammaps.statisticsList.length;o++)n(o);t.tab.chart1.chartLine_data.data3=l,t.tab.chart1.chartLine_data.data1=t.tab.chart1.getdataListParm.parammaps.statisticsList,t.roadChartLine1(t.tab.chart1.chartLine_data)}else t.tab.chart1.list=[];setTimeout((function(){t.tab.chart1.listLoading=!1}),100)}))},roadChartLine1:function(t){null!=this.tab.chart1.chartLine&&this.tab.chart1.chartLine.dispose(),this.tab.chart1.chartLine=n.a.init(document.getElementById("chartLine1"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,right:10,show:!0,type:"scroll"},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},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;var e="authdata/chart/accuracyAllJH",a={parammaps:{}};"1"==this.tab.chart2.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart2.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart2.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart2.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart2.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].实际量&&void 0!==e.data.data[a].实际量&&(e.data.data[a].实际量=parseFloat(e.data.data[a].实际量)),""!==e.data.data[a].理论量&&void 0!==e.data.data[a].理论量&&(e.data.data[a].理论量=parseFloat(e.data.data[a].理论量)),""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].计划取消重量&&void 0!==e.data.data[a].计划取消重量&&(e.data.data[a].计划取消重量=parseFloat(e.data.data[a].计划取消重量)),""!==e.data.data[a].field3&&void 0!==e.data.data[a].field3&&(e.data.data[a].field3=parseFloat(e.data.data[a].field3)),""!==e.data.data[a].正确数&&void 0!==e.data.data[a].正确数&&(e.data.data[a].正确数=parseFloat(e.data.data[a].正确数)),""!==e.data.data[a].计划数&&void 0!==e.data.data[a].计划数&&(e.data.data[a].计划数=parseFloat(e.data.data[a].计划数)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2));t.tab.chart2.table.list=e.data.data,t.tab.chart2.chartLine_data=e.data.list,t.tab.chart2.total=e.data.total,t.roadChartLine2(t.tab.chart2.chartLine_data)}else t.tab.chart2.list=[];setTimeout((function(){t.tab.chart2.listLoading=!1}),100)}))},roadChartLine2:function(t){null!=this.tab.chart2.chartLine&&this.tab.chart2.chartLine.dispose(),this.tab.chart2.chartLine=n.a.init(document.getElementById("chartLine2"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:["计划准确率","计划正确率","计划准确率(去除取消重量)"],right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data1,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:[{name:"计划准确率",type:"line",data:t.data2},{name:"计划正确率",type:"line",data:t.data3},{name:"计划准确率(去除取消重量)",type:"line",data:t.data4}]};this.tab.chart2.chartLine.setOption(e),window.onresize=function(){this.tab.chart2.chartLine.resize()}},changeStatisticChart3:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart3.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart3.statisticsList.find((function(a){return a.name==e.tab.chart3.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart3.chart3Data3.length;i++)i==a&&s.push(e.tab.chart3.chart3Data3[i])},l=0;l<this.tab.chart3.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart3.chartLine_data.data3=s,this.tab.chart3.chartLine_data.data1=this.tab.chart3.getdataListParm.parammaps.statisticsList,this.roadChartLine3(this.tab.chart3.chartLine_data)},getChart3:function(){var t=this;this.tab.chart3.listLoading=!0;var e="authdata/chart/accuracyAllNQ",a={parammaps:{}};"1"==this.tab.chart3.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart3.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart3.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart3.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart3.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart3.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart3.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].理论量&&void 0!==e.data.data[a].理论量&&(e.data.data[a].理论量=parseFloat(e.data.data[a].理论量)),""!==e.data.data[a].实际量&&void 0!==e.data.data[a].实际量&&(e.data.data[a].实际量=parseFloat(e.data.data[a].实际量)),""!==e.data.data[a].准确率&&void 0!==e.data.data[a].准确率&&(e.data.data[a].准确率=parseFloat(e.data.data[a].准确率)+"%");t.tab.chart3.table.list=e.data.data,t.tab.chart3.chartLine_data=e.data.list,t.tab.chart3.total=e.data.total,t.tab.chart3.statisticsList=[],t.tab.chart3.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<e.data.list.data1.length;i++){t.tab.chart3.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[i]);var s={};s.id=i,s.name=e.data.list.data1[i],t.tab.chart3.statisticsList.push(s)}t.tab.chart3.chart3Data3=e.data.list.data3,t.tab.chart3.total=e.data.total;for(var r=[],l=function(e){for(var a=t.tab.chart3.statisticsList.find((function(a){return a.name==t.tab.chart3.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart3.chart3Data3.length;i++)i==a&&r.push(t.tab.chart3.chart3Data3[i])},n=0;n<t.tab.chart3.getdataListParm.parammaps.statisticsList.length;n++)l(n);t.tab.chart3.chartLine_data.data3=r,t.tab.chart3.chartLine_data.data1=t.tab.chart3.getdataListParm.parammaps.statisticsList,t.roadChartLine3(t.tab.chart3.chartLine_data)}else t.tab.chart3.list=[];setTimeout((function(){t.tab.chart3.listLoading=!1}),100)}))},roadChartLine3:function(t){null!=this.tab.chart3.chartLine&&this.tab.chart3.chartLine.dispose(),this.tab.chart3.chartLine=n.a.init(document.getElementById("chartLine3"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,right:10,show:!0,type:"scroll"},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},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()}},changeStatisticChart4:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart4.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart4.statisticsList.find((function(a){return a.name==e.tab.chart4.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart4.chart4Data3.length;i++)i==a&&s.push(e.tab.chart4.chart4Data3[i])},l=0;l<this.tab.chart4.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart4.chartLine_data.data3=s,this.tab.chart4.chartLine_data.data1=this.tab.chart4.getdataListParm.parammaps.statisticsList,this.roadChartLine4(this.tab.chart4.chartLine_data)},getChart4:function(){var t=this;this.tab.chart4.listLoading=!0;var e="authdata/chart/accuracyAllCC",a={parammaps:{}};"1"==this.tab.chart4.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart4.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart4.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart4.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart4.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart4.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart4.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].理论量&&void 0!==e.data.data[a].理论量&&(e.data.data[a].理论量=parseFloat(e.data.data[a].理论量)),""!==e.data.data[a].实际量&&void 0!==e.data.data[a].实际量&&(e.data.data[a].实际量=parseFloat(e.data.data[a].实际量)),""!==e.data.data[a].准确率&&void 0!==e.data.data[a].准确率&&(e.data.data[a].准确率=parseFloat(e.data.data[a].准确率)+"%");t.tab.chart4.table.list=e.data.data,t.tab.chart4.chartLine_data=e.data.list,t.tab.chart4.total=e.data.total,t.tab.chart4.statisticsList=[],t.tab.chart4.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<e.data.list.data1.length;i++){t.tab.chart4.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[i]);var s={};s.id=i,s.name=e.data.list.data1[i],t.tab.chart4.statisticsList.push(s)}t.tab.chart4.chart4Data3=e.data.list.data3,t.tab.chart4.total=e.data.total;for(var r=[],l=function(e){for(var a=t.tab.chart4.statisticsList.find((function(a){return a.name==t.tab.chart4.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart4.chart4Data3.length;i++)i==a&&r.push(t.tab.chart4.chart4Data3[i])},n=0;n<t.tab.chart4.getdataListParm.parammaps.statisticsList.length;n++)l(n);t.tab.chart4.chartLine_data.data3=r,t.tab.chart4.chartLine_data.data1=t.tab.chart4.getdataListParm.parammaps.statisticsList,t.roadChartLine4(t.tab.chart4.chartLine_data)}else t.tab.chart4.list=[];setTimeout((function(){t.tab.chart4.listLoading=!1}),100)}))},roadChartLine4:function(t){null!=this.tab.chart4.chartLine&&this.tab.chart4.chartLine.dispose(),this.tab.chart4.chartLine=n.a.init(document.getElementById("chartLine4"));var e={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.data1,right:10,show:!0,type:"scroll"},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},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;var e="authdata/chart/accuracyAllHL",a={parammaps:{}};"1"==this.tab.chart5.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart5.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart5.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart5.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart5.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart5.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart5.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2)),""!==e.data.data[a].理论自动&&void 0!==e.data.data[a].理论自动&&(e.data.data[a].理论自动=parseFloat(e.data.data[a].理论自动)),""!==e.data.data[a].实际自动&&void 0!==e.data.data[a].实际自动&&(e.data.data[a].实际自动=parseFloat(e.data.data[a].实际自动)),""!==e.data.data[a].field3&&void 0!==e.data.data[a].field3&&(e.data.data[a].field3=parseFloat(e.data.data[a].field3)),""!==e.data.data[a].理论手动&&void 0!==e.data.data[a].理论手动&&(e.data.data[a].理论手动=parseFloat(e.data.data[a].理论手动)),""!==e.data.data[a].实际手动&&void 0!==e.data.data[a].实际手动&&(e.data.data[a].实际手动=parseFloat(e.data.data[a].实际手动)),""!==e.data.data[a].field4&&void 0!==e.data.data[a].field4&&(e.data.data[a].field4=parseFloat(e.data.data[a].field4));t.tab.chart5.table.list=e.data.data,t.tab.chart5.chartLine_data=e.data.list,t.tab.chart5.total=e.data.total,t.roadChartLine5(t.tab.chart5.chartLine_data)}else t.tab.chart5.list=[];setTimeout((function(){t.tab.chart5.listLoading=!1}),100)}))},roadChartLine5:function(t){null!=this.tab.chart5.chartLine&&this.tab.chart5.chartLine.dispose(),this.tab.chart5.chartLine=n.a.init(document.getElementById("chartLine5"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},toolbox:{feature:{}},legend:{data:["自动跳转次数","手动跳转次数","自动跳转准确率","手动跳转准确率"]},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{splitLine:{show:!1},type:"value",name:"跳转次数",axisLabel:{formatter:"{value}"}},{splitLine:{show:!1},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;var e="authdata/chart/accuracyAllQX",a={parammaps:{}};"1"==this.tab.chart6.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart6.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart6.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart6.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart6.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart6.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart6.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1));t.tab.chart6.table.list=e.data.data,t.tab.chart6.chartLine_data=e.data.list,t.tab.chart6.total=e.data.total,t.roadChartLine6(t.tab.chart6.chartLine_data)}else t.tab.chart6.list=[];setTimeout((function(){t.tab.chart6.listLoading=!1}),100)}))},roadChartLine6:function(t){null!=this.tab.chart6.chartLine&&this.tab.chart6.chartLine.dispose(),this.tab.chart6.chartLine=n.a.init(document.getElementById("chartLine6"));var e={color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["取消次数"],right:10,show:!0,type:"scroll"},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},xAxis:[{name:"日期",type:"category",data:t.data1,axisTick:{alignWithLabel:!0}}],yAxis:[{name:"次数",interval:1,min:0,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()}},changeStatisticChart7:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart7.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart7.statisticsList.find((function(a){return a.name==e.tab.chart7.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart7.chart7Data3.length;i++)i==a&&s.push(e.tab.chart7.chart7Data3[i])},l=0;l<this.tab.chart7.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart7.chartLine_data.data3=s,this.tab.chart7.chartLine_data.data1=this.tab.chart7.getdataListParm.parammaps.statisticsList,this.roadChartLine7(this.tab.chart7.chartLine_data)},getChart7:function(){var t=this;this.tab.chart7.listLoading=!0;var e="authdata/chart/accuracyAllLS",a={parammaps:{}};"1"==this.tab.chart7.getdataListParm.parammaps.specificDate?(a.parammaps.pastureid=this.tab.chart7.getdataListParm.parammaps.pastureid,a.parammaps.startTime=Object(m["d"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.status=this.tab.chart7.getdataListParm.parammaps.status):(a.parammaps.pastureid=this.tab.chart7.getdataListParm.parammaps.pastureid,a.parammaps.startTime=this.tab.chart7.getdataListParm.parammaps.startTime,a.parammaps.stopTime=this.tab.chart7.getdataListParm.parammaps.stopTime,a.parammaps.status=this.tab.chart7.getdataListParm.parammaps.status),Object(c["n"])(e,a).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++){for(var i=[],s=0;s<=e.data.data[a].准确率.length;s++)"."==e.data.data[a].准确率.charAt(s)&&(i[s]=e.data.data[a].准确率.replace(".",":"));e.data.data[a].准确率=i[i.length-1],e.data.data[a].撒料时间=e.data.data[a].准确率}t.tab.chart7.table.list=e.data.data,t.tab.chart7.chartLine_data=e.data.list,t.tab.chart7.statisticsList=[],t.tab.chart7.getdataListParm.parammaps.statisticsList=[];for(var r=0;r<e.data.list.data1.length;r++){t.tab.chart7.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[r]);var l={};l.id=r,l.name=e.data.list.data1[r],t.tab.chart7.statisticsList.push(l)}t.tab.chart7.chart7Data3=e.data.list.data3,t.tab.chart7.total=e.data.total;for(var n=[],o=function(e){for(var a=t.tab.chart7.statisticsList.find((function(a){return a.name==t.tab.chart7.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart7.chart7Data3.length;i++)i==a&&n.push(t.tab.chart7.chart7Data3[i])},c=0;c<t.tab.chart7.getdataListParm.parammaps.statisticsList.length;c++)o(c);t.tab.chart7.chartLine_data.data3=n,t.tab.chart7.chartLine_data.data1=t.tab.chart7.getdataListParm.parammaps.statisticsList,t.roadChartLine7(t.tab.chart7.chartLine_data)}else t.tab.chart7.list=[];setTimeout((function(){t.tab.chart7.listLoading=!1}),100)}))},roadChartLine7:function(t){null!=this.tab.chart7.chartLine&&this.tab.chart7.chartLine.dispose(),this.tab.chart7.chartLine=n.a.init(document.getElementById("chartLine7"));var e={title:{text:""},tooltip:{trigger:"axis",formatter:function(t){for(var e=t[0].name,a=0;a<t.length;a++){for(var i=[],s=0;s<=t[a].value.length;s++)""!==t[a].value?"."==t[a].value.charAt(s)&&(i[s]=t[a].value.replace(".",":")):i[s]="";e+="<br>"+t[a].seriesName+": "+i[i.length-1]}return e}},legend:{data:t.data1,top:10,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"5%",right:"8%",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),null!=this.tab.chart7.chartLine&&(window.onresize=function(){this.tab.chart7.chartLine.resize()})},handleExport:function(t){if("chart1"==t){var e=[{tHeader:["日期","配方名称","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart1.table.list,sheetName:"配方准确率"}];Object(m["c"])(e,"配方准确率",!0,"xlsx")}else if("chart2"==t){var a=[{tHeader:["日期","计划执行重量(kg)","配方理论重量(kg)","计划准确率","计划取消重量(kg)","计划准确率(去除取消重量)","计划正确数","计划数","计划正确率"],filterVal:["日期","实际量","理论量","field1","计划取消重量","field3","正确数","计划数","field2"],tableDatas:this.tab.chart2.table.list,sheetName:"计划统计"}];Object(m["c"])(a,"计划统计",!0,"xlsx")}else if("chart3"==t){var i=[{tHeader:["日期","牲畜类别","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart3.table.list,sheetName:"牛群准确率"}];Object(m["c"])(i,"牛群准确率",!0,"xlsx")}else if("chart4"==t){var s=[{tHeader:["日期","车次","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart4.table.list,sheetName:"车辆准确率(重量)"}];Object(m["c"])(s,"车辆准确率(重量)",!0,"xlsx")}else if("chart5"==t){var r=[{tHeader:["日期","自动跳转次数","手动跳转次数","自动跳转理论重量","自动跳转实际重量","自动跳转准确率","手动跳转理论重量","手动跳转实际重量","手动跳转准确率"],filterVal:["日期","field1","field2","理论自动","实际自动","field3","理论手动","实际手动","field4"],tableDatas:this.tab.chart5.table.list,sheetName:"混料统计"}];Object(m["c"])(r,"混料统计",!0,"xlsx")}else if("chart6"==t){var l=[{tHeader:["日期","混料计划取消次数"],filterVal:["日期","field1"],tableDatas:this.tab.chart6.table.list,sheetName:"混料计划取消次数"}];Object(m["c"])(l,"混料计划取消次数",!0,"xlsx")}else if("chart7"==t){var n=[{tHeader:["日期","栏舍","撒料时间"],filterVal:["日期","fname","准确率"],tableDatas:this.tab.chart7.table.list,sheetName:"栏舍撒料时间统计"}];Object(m["c"])(n,"栏舍撒料时间统计",!0,"xlsx")}},handleTable:function(t){"chart1"==t?(this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1):"chart2"==t?(this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1):"chart3"==t?(this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1):"chart4"==t?(this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1):"chart5"==t?(this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1):"chart6"==t?(this.tab.chart6.isTable=!0,this.tab.chart6.isChart=!1):"chart7"==t&&(this.tab.chart7.isTable=!0,this.tab.chart7.isChart=!1)},handleChart:function(t){"chart1"==t?(this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0,this.getChart1()):"chart2"==t?(this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0,this.getChart2()):"chart3"==t?(this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0,this.getChart3()):"chart4"==t?(this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0,this.getChart4()):"chart5"==t?(this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0,this.getChart5()):"chart6"==t?(this.tab.chart6.isTable=!1,this.tab.chart6.isChart=!0,this.getChart6()):"chart7"==t&&(this.tab.chart7.isTable=!1,this.tab.chart7.isChart=!0,this.getChart7())},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,Object(c["c"])(this.tab2.table.getdataListParm).then((function(e){null!==e.data.list?(t.$refs.plTable2.reloadData(e.data.list),t.tab2.table.total=e.data.total):(t.$refs.plTable2.reloadData([]),t.tab2.table.total=0),setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},handleSearch2:function(){this.tab2.table.getdataListParm.name="getStatisticsHL",this.tab2.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.offset=1,this.getTab2List(),this.getTMRNameList2()},handleRefresh2:function(){this.tab2.table.getdataListParm.parammaps.tmrtname="",this.tab2.table.getdataListParm.parammaps.projname="",this.tab2.table.getdataListParm.parammaps.times="",this.tab2.table.getdataListParm.parammaps.templetname="",this.tab2.table.getdataListParm.parammaps.buttontype="",this.getTab2List()},handleExport2:function(){this.exportList.dialogFormVisible=!0,this.exportList.dialogStatus="exportList"},exportList2:function(){var t=this;this.isokDisable=!0;var e="authdata/GetDataByName",a={name:"getStatisticsHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:"",stopTime:"",templetname:"",isuse:""}};a.parammaps.startTime=Object(m["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.tmrtname=this.tab2.table.getdataListParm.parammaps.tmrtname,a.parammaps.projname=this.tab2.table.getdataListParm.parammaps.projname,a.parammaps.times=this.tab2.table.getdataListParm.parammaps.times,a.parammaps.buttontype=this.tab2.table.getdataListParm.parammaps.buttontype,a.parammaps.templetname=this.tab2.table.getdataListParm.parammaps.templetname,a.parammaps.isuse=this.tab2.table.getdataListParm.parammaps.isuse,Object(c["n"])(e,a).then((function(e){var a=[];a=null!==e.data.list?e.data.list:[];var i=[{tHeader:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","准确率","计划时间","开始时间","结束时间"," 跳转方式","开始重量","结束重量","搅拌时间"],filterVal:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","准确率","计划时间","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],tableDatas:a,sheetName:"混料统计"}];Object(m["c"])(i,"混料统计",!0,"xlsx"),t.isokDisable=!1,t.exportList.dialogFormVisible=!1}))},getTab3List:function(){var t=this;this.tab3.table.listLoading=!0,Object(c["c"])(this.tab3.table.getdataListParm).then((function(e){null!==e.data.list?(t.$refs.plTable3.reloadData(e.data.list),t.tab3.table.total=e.data.total):(t.$refs.plTable3.reloadData([]),t.tab3.table.total=0),setTimeout((function(){t.tab3.table.listLoading=!1}),100)}))},handleSearch3:function(){this.tab3.table.getdataListParm.name="getStatisticsSL",this.tab3.table.getdataListParm.parammaps.startTime=Object(m["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(m["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime2,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.offset=1,this.getTab3List(),this.getTMRNameList3()},handleRefresh3:function(){this.tab3.table.getdataListParm.parammaps.tmrtname="",this.tab3.table.getdataListParm.parammaps.projname="",this.tab3.table.getdataListParm.parammaps.times="",this.tab3.table.getdataListParm.parammaps.templetname="",this.tab3.table.getdataListParm.parammaps.buttontype="",this.tab3.table.getdataListParm.parammaps.fname="",this.getTab3List()},handleExport3:function(){this.exportList.dialogFormVisible=!0,this.exportList.dialogStatus="exportList"},exportList3:function(){var t=this;this.isokDisable=!0;var e="authdata/GetDataByName",a={name:"getStatisticsSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),startTime:"",stopTime:"",templetname:"",isuse:""}};a.parammaps.startTime=Object(m["d"])(this.exportList.inputDatetime[0],"{y}-{m}-{d}"),a.parammaps.stopTime=Object(m["d"])(this.exportList.inputDatetime[1],"{y}-{m}-{d}"),a.parammaps.tmrtname=this.tab3.table.getdataListParm.parammaps.tmrtname,a.parammaps.projname=this.tab3.table.getdataListParm.parammaps.projname,a.parammaps.times=this.tab3.table.getdataListParm.parammaps.times,a.parammaps.buttontype=this.tab3.table.getdataListParm.parammaps.buttontype,a.parammaps.templetname=this.tab3.table.getdataListParm.parammaps.templetname,a.parammaps.isuse=this.tab3.table.getdataListParm.parammaps.isuse,Object(c["n"])(e,a).then((function(e){var a=[];a=null!==e.data.list?e.data.list:[];var i=[{tHeader:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","准确率","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],filterVal:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","准确率","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],tableDatas:a,sheetName:"撒料统计"}];Object(m["c"])(i,"撒料统计",!0,"xlsx"),t.isokDisable=!1,t.exportList.dialogFormVisible=!1}))},handleSee:function(t,e){1==t?0==this.tab.radio?(this.methodName="getDownloadedplanByJsyHL",this.optdevice=e.驾驶员,this.titlefname="准确性详情——驾驶员:"+e.驾驶员):1==this.tab.radio?(this.methodName="getDownloadedplanByTemHL",this.optdevice=e.配方名称,this.titlefname="准确性详情——配方名称:"+e.配方名称):2==this.tab.radio?(this.methodName="getDownloadedplanByBarHL",this.optdevice=e.栏舍名称,this.titlefname="准确性详情——栏舍名称:"+e.栏舍名称):3==this.tab.radio?(this.methodName="getDownloadedplanBySCHL",this.optdevice=e.牲畜类别,this.titlefname="准确性详情——牲畜类别:"+e.牲畜类别):4==this.tab.radio?(this.methodName="getDownloadedplanByTrainsHL",this.optdevice=e.车次,this.titlefname="准确性详情——车次:"+e.车次):5==this.tab.radio&&(this.methodName="getDownloadedplanByTmrHL",this.optdevice=e.TMR名称,this.titlefname="准确性详情——TMR名称:"+e.TMR名称):0==this.tab.radio?(this.methodName="getDownloadedplanByJsySL",this.optdevice=e.驾驶员,this.titlefname="准确性详情——驾驶员:"+e.驾驶员):1==this.tab.radio?(this.methodName="getDownloadedplanByTemSL",this.optdevice=e.配方名称,this.titlefname="准确性详情——配方名称:"+e.配方名称):2==this.tab.radio?(this.methodName="getDownloadedplanByBarSL",this.optdevice=e.栏舍名称,this.titlefname="准确性详情——栏舍名称:"+e.栏舍名称):3==this.tab.radio?(this.methodName="getDownloadedplanBySCSL",this.optdevice=e.牲畜类别,this.titlefname="准确性详情——牲畜类别:"+e.牲畜类别):4==this.tab.radio?(this.methodName="getDownloadedplanByTrainsSL",this.optdevice=e.车次,this.titlefname="准确性详情——车次:"+e.车次):5==this.tab.radio&&(this.methodName="getDownloadedplanByTmrSL",this.optdevice=e.TMR名称,this.titlefname="准确性详情——TMR名称:"+e.TMR名称),this.startTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.stopTime=Object(m["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.isShowDialog=!0},getTMRNameList:function(){var t=this,e={name:"getAccuracyMCTmrName",parammaps:{}};e.parammaps.pastureid=p.a.get("pastureid"),e.parammaps.startTime=this.tab.table.getdataListParm.parammaps.startTime,e.parammaps.stopTime=this.tab.table.getdataListParm.parammaps.stopTime,Object(c["c"])(e).then((function(e){null!==e.data.list?t.tab.TMRNameList=e.data.list:t.tab.TMRNameList=[]}))},getTMRNameList2:function(){var t=this,e={name:"getAccuracyMCTmrName",parammaps:{}};e.parammaps.pastureid=p.a.get("pastureid"),e.parammaps.startTime=this.tab2.table.getdataListParm.parammaps.startTime,e.parammaps.stopTime=this.tab2.table.getdataListParm.parammaps.stopTime,Object(c["c"])(e).then((function(e){null!==e.data.list?t.tab2.TMRNameList=e.data.list:t.tab2.TMRNameList=[]}))},getTMRNameList3:function(){var t=this,e={name:"getAccuracyMCTmrName",parammaps:{}};e.parammaps.pastureid=p.a.get("pastureid"),e.parammaps.startTime=this.tab3.table.getdataListParm.parammaps.startTime,e.parammaps.stopTime=this.tab3.table.getdataListParm.parammaps.stopTime,Object(c["c"])(e).then((function(e){null!==e.data.list?t.tab3.TMRNameList=e.data.list:t.tab3.TMRNameList=[]}))},clickRecipeName2:function(t){this.recipeNameTemp.temp=Object.assign({},t),this.recipeNameTemp.dialogFormVisible=!0,this.textMap.recipeNameTxt="配方修改记录——配方:"+t.配方名称,this.recipeNameTemp.dialogStatus="recipeNameTxt",this.recipeNameTemp.getdataListParm.parammaps.pastureid=t.pastureid,this.recipeNameTemp.getdataListParm.parammaps.fitid=t.id,this.recipeNameTemp.getdataListParm.parammaps.inputDatetime=[],this.getRecipeNameList()},getRecipeNameList:function(){var t=this;this.recipeNameTemp.listLoading=!0,this.recipeNameTemp.getdataListParm.parammaps.fitid=this.recipeNameTemp.temp.id,null==this.recipeNameTemp.getdataListParm.parammaps.inputDatetime?(this.recipeNameTemp.getdataListParm.parammaps.inputDatetime="",this.recipeNameTemp.getdataListParm.parammaps.startTime="",this.recipeNameTemp.getdataListParm.parammaps.stopTime=""):(this.recipeNameTemp.getdataListParm.parammaps.startTime=this.recipeNameTemp.getdataListParm.parammaps.inputDatetime[0],this.recipeNameTemp.getdataListParm.parammaps.stopTime=this.recipeNameTemp.getdataListParm.parammaps.inputDatetime[1]);var e="authdata/GetArrList",a=this.recipeNameTemp.getdataListParm;Object(c["n"])(e,a).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)null==e.data.list[a].arrList&&t.$set(e.data.list[a],"arrList",[]);t.recipeNameTemp.list=e.data.list,t.recipeNameTemp.pageNum=e.data.pageNum,t.recipeNameTemp.pageSize=e.data.pageSize,t.recipeNameTemp.total=e.data.total}else t.recipeNameTemp.list=[],t.recipeNameTemp.total=0;setTimeout((function(){t.recipeNameTemp.listLoading=!1}),100)}))},handleRecipeNameSearch:function(){this.getRecipeNameList()},clickFeed2:function(t){this.feedTemp.temp=Object.assign({},t),this.feedTemp.dialogFormVisible=!0,this.textMap.feedTxt="配方修改记录——饲料:"+t.饲料,this.feedTemp.dialogStatus="feedTxt",this.feedTemp.getdataListParm.parammaps.pastureid=t.pastureid,this.feedTemp.getdataListParm.parammaps.fitid=t.id,this.feedTemp.getdataListParm.parammaps.inputDatetime=[],this.getFeedList()},getFeedList:function(){var t=this;this.feedTemp.listLoading=!0,this.feedTemp.getdataListParm.parammaps.fitid=this.feedTemp.temp.id,null==this.feedTemp.getdataListParm.parammaps.inputDatetime?(this.feedTemp.getdataListParm.parammaps.inputDatetime="",this.feedTemp.getdataListParm.parammaps.startTime="",this.feedTemp.getdataListParm.parammaps.stopTime=""):(this.feedTemp.getdataListParm.parammaps.startTime=this.feedTemp.getdataListParm.parammaps.inputDatetime[0],this.feedTemp.getdataListParm.parammaps.stopTime=this.feedTemp.getdataListParm.parammaps.inputDatetime[1]);var e="authdata/GetArrList",a=this.feedTemp.getdataListParm;Object(c["n"])(e,a).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)null==e.data.list[a].arrList&&t.$set(e.data.list[a],"arrList",[]);t.feedTemp.list=e.data.list,t.feedTemp.pageNum=e.data.pageNum,t.feedTemp.pageSize=e.data.pageSize,t.feedTemp.total=e.data.total}else t.feedTemp.list=[],t.feedTemp.total=0;setTimeout((function(){t.feedTemp.listLoading=!1}),100)}))},handleFeedSearch:function(){this.getFeedList()},clickRecipeName3:function(t){this.recipeNameTemp.temp=Object.assign({},t),this.recipeNameTemp.dialogFormVisible=!0,this.textMap.recipeNameTxt="配方修改记录——配方:"+t.配方名称,this.recipeNameTemp.dialogStatus="rowRecipeRecordTxt",this.recipeNameTemp.getdataListParm.parammaps.pastureid=t.pastureid,this.recipeNameTemp.getdataListParm.parammaps.fitid=t.id,this.recipeNameTemp.getdataListParm.parammaps.inputDatetime=[],this.getRecipeNameList()},clickFence3:function(t){this.fenceTemp.temp=Object.assign({},t),this.fenceTemp.dialogFormVisible=!0,this.textMap.fenceTxt="配方修改记录——饲料:"+t.饲料,this.fenceTemp.dialogStatus="fenceTxt",this.fenceTemp.activeName="first",this.fenceTemp.tab1.getdataListParm.parammaps.pastureid=t.pastureid,this.fenceTemp.tab1.getdataListParm.parammaps.fitid=t.id,this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime=[],this.getFenceList1()},getFenceList1:function(){var t=this;this.fenceTemp.tab1.listLoading=!0,this.fenceTemp.tab1.getdataListParm.parammaps.fitid=this.fenceTemp.temp.id,null==this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime?(this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime="",this.fenceTemp.tab1.getdataListParm.parammaps.startTime="",this.fenceTemp.tab1.getdataListParm.parammaps.stopTime=""):(this.fenceTemp.tab1.getdataListParm.parammaps.startTime=this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[0],this.fenceTemp.tab1.getdataListParm.parammaps.stopTime=this.fenceTemp.tab1.getdataListParm.parammaps.inputDatetime[1]);var e="authdata/GetDataByName",a=this.fenceTemp.tab1.getdataListParm;this.fenceTemp.tab1.getdataListParm.parammaps.pastureid=p.a.get("pastureid"),this.fenceTemp.tab1.getdataListParm.parammaps.date="2022-05-27",Object(c["n"])(e,a).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)void 0!=e.data.list[a].ptid&&""!=e.data.list[a].ptname||(t.$set(e.data.list[a],"ptid",""),t.$set(e.data.list[a],"ptname",""));t.fenceTemp.tab1.list=e.data.list,t.handleSpan1()}else t.fenceTemp.tab1.list=[],t.fenceTemp.tab1.total=0;setTimeout((function(){t.fenceTemp.tab1.listLoading=!1}),100)}))},getFenceList2:function(){var t=this;this.fenceTemp.tab2.listLoading=!0,this.fenceTemp.tab2.getdataListParm.parammaps.fitid=this.fenceTemp.temp.id,null==this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime?(this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime="",this.fenceTemp.tab2.getdataListParm.parammaps.startTime="",this.fenceTemp.tab2.getdataListParm.parammaps.stopTime=""):(this.fenceTemp.tab2.getdataListParm.parammaps.startTime=this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[0],this.fenceTemp.tab2.getdataListParm.parammaps.stopTime=this.fenceTemp.tab2.getdataListParm.parammaps.inputDatetime[1]);var e="authdata/GetDataByName",a=this.fenceTemp.tab2.getdataListParm;this.fenceTemp.tab2.getdataListParm.parammaps.pastureid=p.a.get("pastureid"),this.fenceTemp.tab2.getdataListParm.parammaps.date="2022-05-27",Object(c["n"])(e,a).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)void 0!=e.data.list[a].ptid&&""!=e.data.list[a].ptname||(t.$set(e.data.list[a],"ptid",""),t.$set(e.data.list[a],"ptname",""));t.fenceTemp.tab2.list=e.data.list,t.handleSpan2()}else t.fenceTemp.tab2.list=[],t.fenceTemp.tab2.total=0;setTimeout((function(){t.fenceTemp.tab2.listLoading=!1}),100)}))},handleFenceSearch:function(){"first"==this.fenceTemp.activeName?this.getFenceList1():this.getFenceList2()},handleFenceTabClick:function(t){"first"==t?this.getFenceList1():this.getFenceList2()},handleSpan1:function(){var t=this;this.fenceTemp.mergekeys.forEach((function(e){t.fenceTemp.spanObj[e]=[];var a=0;t.fenceTemp.tab1.list.forEach((function(i,s){0===s?(t.fenceTemp.spanObj[e].push(1),a=0):"sumweight"==e?t.fenceTemp.tab1.list[s][e]===t.fenceTemp.tab1.list[s-1][e]&&t.fenceTemp.tab1.list[s]["barname"]===t.fenceTemp.tab1.list[s-1]["barname"]?(t.fenceTemp.spanObj[e][a]+=1,t.fenceTemp.spanObj[e].push(0)):(t.fenceTemp.spanObj[e].push(1),a=s):t.fenceTemp.tab1.list[s][e]===t.fenceTemp.tab1.list[s-1][e]?(t.fenceTemp.spanObj[e][a]+=1,t.fenceTemp.spanObj[e].push(0)):(t.fenceTemp.spanObj[e].push(1),a=s)}))}))},handleSpan2:function(){var t=this;this.fenceTemp.mergekeys.forEach((function(e){t.fenceTemp.spanObj[e]=[];var a=0;t.fenceTemp.tab2.list.forEach((function(i,s){0===s?(t.fenceTemp.spanObj[e].push(1),a=0):"sumweight"==e?t.fenceTemp.tab2.list[s][e]===t.fenceTemp.tab2.list[s-1][e]&&t.fenceTemp.tab2.list[s]["barname"]===t.fenceTemp.tab2.list[s-1]["barname"]?(t.fenceTemp.spanObj[e][a]+=1,t.fenceTemp.spanObj[e].push(0)):(t.fenceTemp.spanObj[e].push(1),a=s):t.fenceTemp.tab2.list[s][e]===t.fenceTemp.tab2.list[s-1][e]?(t.fenceTemp.spanObj[e][a]+=1,t.fenceTemp.spanObj[e].push(0)):(t.fenceTemp.spanObj[e].push(1),a=s)}))}))},objectSpanMethod:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.fenceTemp.mergekeys.length;i++)if(e.property===this.fenceTemp.mergekeys[i]){var s=this.fenceTemp.spanObj[this.fenceTemp.mergekeys[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},clickRecipeTemplate3:function(){}}},f=g,w=(a("8c11"),a("2877")),y=Object(w["a"])(f,i,s,!1,null,"11b2d13c",null);e["default"]=y.exports},7108: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.fname,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),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"剩料分配方式:",prop:"remainOptDis"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"剩料分配方式"},model:{value:t.createTemp.remainOptDis,callback:function(e){t.$set(t.createTemp,"remainOptDis",e)},expression:"createTemp.remainOptDis"}},t._l(t.leftoverMaterialList,(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:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],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:[],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:"否"}],leftoverMaterialList:[{id:"0",name:"顶额分配"},{id:"1",name:"平均分配"}],requestParams:[{name:"getRemainFeedList",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],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(),this.getDownList()},methods:{getButtons:function(){var t="DefaultParameter",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.disposalList=e.data.getRemainFeedList.list}))},getList:function(){var t=this;this.listLoading=!0,Object(r["c"])(this.getdataListParm).then((function(e){null!==e.data.list?t.createTemp=e.data.list[0]:t.list=[],setTimeout((function(){t.listLoading=!1}),100)}))},handleSave:function(){var t=this;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,remainOptDis:this.createTemp.remainOptDis,remainOptRate:this.createTemp.remainOptRate}},this.requestParam.data[1]={name:"updateFPbyFTChangeALL",type:"e",parammaps:{pastureid:this.createTemp.pastureid}},Object(r["b"])(this.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},handleRecovery:function(){var t=this;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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}))}}},d=c,p=a("2877"),m=Object(p["a"])(d,i,s,!1,null,"faf2c29a",null);e["default"]=m.exports},"71ac":function(t,e,a){"use strict";a("d3b7");e["a"]={init:function(){return new Promise((function(t,e){window.T?(t(window.T),e("error")):e("error")}))}}},"72aa":function(t,e,a){"use strict";a("0def")},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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("分配")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},attrs:{icon:"el-icon-upload2"},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":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight},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:"50","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",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:"TMR"},[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)]}}])}),a("el-table-column",{attrs:{label:"生效日期","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-date-picker",{staticClass:"filter-item operatetime",staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",placeholder:"生效日期",clearable:!1},on:{focus:function(a){return t.focusOperatetime(e.row)},change:function(a){return t.changeOperatetime(e.row)}},model:{value:e.row.operatetime,callback:function(a){t.$set(e.row,"operatetime",a)},expression:"scope.row.operatetime"}})]}}])})],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"20px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"save",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:"forklift"},[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)]}}])}),a("el-table-column",{attrs:{label:"生效日期","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-date-picker",{staticClass:"filter-item operatetime",staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,placeholder:"生效日期"},on:{focus:function(a){return t.focusOperatetime2(e.row)},change:function(a){return t.changeOperatetime2(e.row)}},model:{value:e.row.operatetime,callback:function(a){t.$set(e.row,"operatetime",a)},expression:"scope.row.operatetime"}})]}}])})],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"20px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData2()}}},[t._v("确认")]):t._e()],1)])])],1)],1)],2)],1)},s=[],r=a("2909"),l=(a("7db0"),a("d3b7"),a("4e82"),a("a434"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("b0c0"),a("2934")),n=a("a78e"),o=a.n(n),c=a("ed08"),d=a("333d"),p=a("5c96"),m={name:"DutyRecord",components:{Pagination:d["a"]},data:function(){return{dialogFull:!1,isRoleEdit:[],requestParams:[{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid"),inforname:"times"}},{name:"getDriverListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],equipmentCategoryList:[{id:"1",name:"TMR设备"},{id:"2",name:"铲车"}],frequencyList:[],driverList:[],table:{getdataListParm:{name:"getDutyrecordList",page:1,offset:1,pagecount:parseInt(o.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),barid:"",startTime:"",stopTime:"",inputDatetime:"",times:"",eqclass:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:o.a.get("pastureid"),operatetime:Object(c["d"])(new Date,"{y}-{m}-{d} {h}:{m}"),emp:o.a.get("employename"),barid:"",barname:"",remain:"",times:""},rules:{},tableKey:0,list:[],createList:[],total:0,listLoading:!0,getdataListParm:{name:"geEqListByDplan",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},tableKey2:0,list2:[],createList2:[],total2:0,listLoading2:!0,getdataListParm2:{name:"geEqListByDplanCC",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},activeName:"first"},textMap:{create:"分配"},requestParam:{},download:{getdataListParm:{name:"getDutyrecordList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),barid:"",startTime:"",stopTime:"",inputDatetime:"",times:"",eqclass:""}},list:[]},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var t="DutyRecord",e=Object(l["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(l["d"])(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(l["c"])(this.table.getdataListParm).then((function(e){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(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(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.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(){this.create.dialogStatus="create",this.dialogFull=!1,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(l["c"])(this.create.getdataListParm).then((function(e){if(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.$set(e.data.list[a],"sort","create"+a);t.create.list=e.data.list}else t.create.list=[];setTimeout((function(){t.create.listLoading=!1}),100)}))},getDialogList2:function(){var t=this;Object(l["c"])(this.create.getdataListParm2).then((function(e){if(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.$set(e.data.list[a],"sort","create2"+a);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},focusOperatetime:function(t){var e=this;Object(l["c"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0!=t.data.list[a].driver&&void 0!=t.data.list[a].driverid||(e.$set(t.data.list[a],"driver",""),e.$set(t.data.list[a],"driverid","")),e.$set(t.data.list[a],"sort","create"+a);e.create.createList=Object(r["a"])(t.data.list)}else e.create.createList=[]}))},changeOperatetime:function(t){for(var e=0;e<this.create.createList.length;e++)t.sort==this.create.createList[e].sort&&new Date(t.operatetime)<new Date(this.create.createList[e].operatetime)&&(t.operatetime=this.create.createList[e].operatetime,this.$message({type:"error",message:"生效日期不可小于上次日期",duration:2e3}))},focusOperatetime2:function(t){var e=this;Object(l["c"])(this.create.getdataListParm2).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0!=t.data.list[a].driver&&void 0!=t.data.list[a].driverid||(e.$set(t.data.list[a],"driver",""),e.$set(t.data.list[a],"driverid","")),e.$set(t.data.list[a],"sort","create2"+a);e.create.createList2=Object(r["a"])(t.data.list)}else e.create.createList2=[]}))},changeOperatetime2:function(t){for(var e=0;e<this.create.createList2.length;e++)t.sort==this.create.createList2[e].sort&&new Date(t.operatetime)<new Date(this.create.createList2[e].operatetime)&&(t.operatetime=this.create.createList2[e].operatetime,this.$message({type:"error",message:"生效日期不可小于上次日期",duration:2e3}))},createData:function(){var t=this;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);for(var a=0;a<this.create.list.length;a++)if(""==this.create.list[a].operatetime||void 0==this.create.list[a].operatetime)return void this.$message({type:"error",message:"生效日期不可为空",duration:2e3});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",operatetime:"@insertSpotList.operatetime",emp:o.a.get("employename")}},Object(l["b"])(this.requestParam).then((function(e){if("fail"===e.msg){var a=new RegExp("key 'dutyrecord-uniq'");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.create.dialogFormVisible=!1,t.getList()}))},createData2:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);for(var e=0;e<this.create.list2.length;e++)""==this.create.list2[e].driverid&&(this.create.list2.splice(e,1),e=0);this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:this.create.list2}},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",operatetime:"@insertSpotList.operatetime",emp:o.a.get("employename")}},Object(l["b"])(this.requestParam).then((function(e){if("fail"===e.msg){var a=new RegExp("key 'dutyrecord-uniq'");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.create.dialogFormVisible=!1,t.getList()}))},handleRowDelete:function(t){var e=this;this.selectList=[],p["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(l["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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择值班记录",duration:2e3}):p["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{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:"deleteDutyrecord",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(l["b"])(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())}))}))},handleExport:function(){var t=this;this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(c["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(c["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(l["c"])(this.download.getdataListParm).then((function(e){null!==e.data.list?t.download.list=e.data.list:t.download.list=[];var a=[{tHeader:["生效日期","班次","设备类别","设备编号","驾驶员","分配人"],filterVal:["operatetime","times","eqclass","eqcode","driver","emp"],tableDatas:t.download.list,sheetName:"Sheet1"}];Object(c["c"])(a,"值班记录",!0,"xlsx")}))}}},u=m,h=(a("0c5a"),a("2877")),b=Object(h["a"])(u,i,s,!1,null,"c822d68e",null);e["default"]=b.exports},7367: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-GPS管理",use:"icon-GPS管理-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-GPS管理"><defs><style type="text/css"></style></defs><path d="M486.208 0C283.328 0 151.04 163.2 151.04 361.6c0 198.4 286.656 489.472 335.168 489.472s335.104-291.072 335.104-489.472c0-198.4-132.288-361.6-335.104-361.6m0 471.808c-79.36 0-145.536-61.696-145.536-141.12a146.816 146.816 0 0 1 145.536-145.472A146.816 146.816 0 0 1 631.68 330.688c0 79.36-66.112 141.12-145.472 141.12M230.4 736.384C106.944 762.88 32 802.56 32 859.904c0 96.96 207.232 154.304 462.976 154.304 255.808 0 463.04-57.344 463.04-154.368 0-61.696-79.36-105.792-211.648-132.288-17.664-4.352-35.264 8.832-39.68 26.496-4.48 17.6 8.768 35.264 26.432 39.68 97.024 17.664 154.368 48.512 154.368 66.112 0 4.48-4.48 8.832-17.664 17.664-17.664 13.248-48.512 22.08-83.84 35.264-74.88 22.08-180.736 35.264-291.008 35.264-110.208 0-216.064-13.184-295.424-35.2a499.2 499.2 0 0 1-79.36-30.912c-13.248-8.832-22.08-13.248-22.08-17.664 0-13.184 52.928-44.096 141.12-61.696 17.664-4.48 30.912-22.08 26.496-39.68 0-22.08-17.664-30.912-35.328-26.496" p-id="10467" /></symbol>'});l.a.add(n);e["default"]=n},7377:function(t,e,a){"use strict";a("eeae")},7385:function(t,e,a){},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 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="M545.3 491.3c-42.5-190.5-213.6-134.1-265.8-363l-0.6 0.2C181.7 251.7 104.4 354 134.4 564.7c18 127.3 204.8 160.8 260.7 331 0 0 203.6-164.7 150.2-404.4z m350.9-0.9l-0.3-0.2c-100.4-3-182.5-3.6-271 103 0 0-0.5 174.6-97.9 281.3 0 0 215.1 53.6 307.6-78.6 73.5-105.1 7.7-214 61.6-305.5z" p-id="218509" /></symbol>'});l.a.add(n);e["default"]=n},74186: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-container1"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"150px"},attrs:{clearable:!1,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.tab.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"date",e)},expression:"tab.table.getdataListParm.parammaps.date"}}),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("查询")]),a("el-button",{staticClass:"export",on:{click:t.handleDownload}},[t._v("导出")]),a("svg-icon",{staticClass:"down",staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpChart}})],1),a("div",{staticClass:"table",attrs:{id:"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.tableCellStyle}},[a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{on:{click:function(e){return t.clickPasture(i)}}},[t._v(t._s(i.pasturename))])]}}])}),a("el-table-column",{attrs:{label:"实际牛头数","min-width":"90px",align:"center",prop:"实际牛头数"}}),a("el-table-column",{attrs:{label:"应混料量(kg)","min-width":"90px",align:"center",prop:"应混料量"}}),a("el-table-column",{attrs:{label:"实际混料量(kg)","min-width":"90px",align:"center",prop:"实际混料量"}}),a("el-table-column",{attrs:{label:"撒料量(kg)","min-width":"90px",align:"center",prop:"撒料量"}}),a("el-table-column",{attrs:{label:"平均混料时间","min-width":"90px",align:"center",prop:"混料时间"}}),a("el-table-column",{attrs:{label:"转投剩料量(kg)","min-width":"90px",align:"center",prop:"转投剩料量"}}),a("el-table-column",{attrs:{label:"今日剩料量(kg)","min-width":"90px",align:"center",prop:"今日剩料量"}}),a("el-table-column",{attrs:{label:"剩料率(%)","min-width":"90px",align:"center",prop:"剩料率"}}),a("el-table-column",{attrs:{label:"TMR干物质(%)","min-width":"90px",align:"center",prop:"TMR干物质"}}),a("el-table-column",{attrs:{label:"配方干物质采食量(kg/头)","min-width":"90px",align:"center",prop:"配方干物质采食量"}}),a("el-table-column",{attrs:{label:"实际干物质采食量(kg/头)","min-width":"90px",align:"center",prop:"实际干物质采食量"}}),a("el-table-column",{attrs:{label:"采食率(%)","min-width":"90px",align:"center",prop:"采食率"}}),a("el-table-column",{attrs:{label:"配方成本(元/头)","min-width":"90px",align:"center",prop:"配方成本"}}),a("el-table-column",{attrs:{label:"实际成本(元/头)","min-width":"90px",align:"center",prop:"实际成本"}}),a("el-table-column",{attrs:{label:"产奶量(kg/头)","min-width":"90px",align:"center",prop:"产奶量"}}),a("el-table-column",{attrs:{label:"饲料转化率","min-width":"90px",align:"center",prop:"饲料转化率"}}),a("el-table-column",{attrs:{label:"公斤奶饲料成本","min-width":"90px",align:"center",prop:"公斤奶饲料成本"}})],1)],1),a("div",{staticClass:"AnalysisChart"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{"margin-bottom":"10px","margin-top":"10px"},attrs:{span:24}},[a("span",[t._v("图表查询时间:")]),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{"margin-left":"10px",width:"250px","margin-right":"10px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},model:{value:t.tab.chartDate,callback:function(e){t.$set(t.tab,"chartDate",e)},expression:"tab.chartDate"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleChartDate}},[t._v("确认")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpTop}})],1)],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("泌乳牛干物质采食量")]),t.tab.chart1.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart1")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart1")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart1.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine1"}}):t._e(),t.tab.chart1.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"泌乳牛干物质采食量(kg)",sortable:"","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("剩料率")]),t.tab.chart2.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart2")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart2")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart2.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine2"}}):t._e(),t.tab.chart2.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"剩料量",sortable:"","min-width":"110px",align:"center",prop:"剩料量"}}),a("el-table-column",{attrs:{label:"撒料量",sortable:"","min-width":"110px",align:"center",prop:"撒料量"}}),a("el-table-column",{attrs:{label:"剩料率",sortable:"","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("混料时间统计")]),t.tab.chart3.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart1")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart3")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart3.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine3"}}):t._e(),t.tab.chart3.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"混料时间(分钟)","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("转化率")]),t.tab.chart4.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart1")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart4")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart4.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine4"}}):t._e(),t.tab.chart4.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"饲料转化率","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("成本分析")]),t.tab.chart5.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart5")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart5")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart5.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine5"}}):t._e(),t.tab.chart5.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"日期"}}),a("el-table-column",{attrs:{label:"牧场","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"公斤奶饲料成本(元)","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1)],1),a("el-dialog",{attrs:{title:t.textMap[t.pasture.dialogStatus],"destroy-on-close":!0,visible:t.pasture.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.pasture,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-pasture"},[a("div",{staticClass:"search"},[a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:t.changeRadio},model:{value:t.pasture.radio,callback:function(e){t.$set(t.pasture,"radio",e)},expression:"pasture.radio"}},[t._v("配方")]),a("el-radio",{attrs:{label:"2"},on:{change:t.changeRadio},model:{value:t.pasture.radio,callback:function(e){t.$set(t.pasture,"radio",e)},expression:"pasture.radio"}},[t._v("栏舍")]),a("el-radio",{attrs:{label:"3"},on:{change:t.changeRadio},model:{value:t.pasture.radio,callback:function(e){t.$set(t.pasture,"radio",e)},expression:"pasture.radio"}},[t._v("牲畜类别")]),t.pasture.isFormulaName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"配方模板"},model:{value:t.pasture.table.getdataListParm.parammaps.ftname,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"ftname",e)},expression:"pasture.table.getdataListParm.parammaps.ftname"}}):t._e(),t.pasture.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"栏舍"},model:{value:t.pasture.table.getdataListParm.parammaps.barname,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"barname",e)},expression:"pasture.table.getdataListParm.parammaps.barname"}}):t._e(),t.pasture.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"配方模板"},model:{value:t.pasture.table.getdataListParm.parammaps.ftname,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"ftname",e)},expression:"pasture.table.getdataListParm.parammaps.ftname"}}):t._e(),t.pasture.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牲畜类别"},model:{value:t.pasture.table.getdataListParm.parammaps.cowclass,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"cowclass",e)},expression:"pasture.table.getdataListParm.parammaps.cowclass"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handlePastureSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pasture.table.listLoading,expression:"pasture.table.listLoading"}],key:t.pasture.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.pasture.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[t.pasture.isFormulaName?a("el-table-column",{attrs:{label:"配方模板","min-width":"110px",align:"center",prop:"配方模板"}}):t._e(),t.pasture.isHouseName?a("el-table-column",{attrs:{label:"栏舍","min-width":"110px",align:"center",prop:"栏舍"}}):t._e(),t.pasture.isHouseName?a("el-table-column",{attrs:{label:"配方模板","min-width":"110px",align:"center",prop:"配方模板"}}):t._e(),t.pasture.isLivestockType?a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"牲畜类别"}}):t._e(),a("el-table-column",{attrs:{label:"实际牛头数","min-width":"110px",align:"center",prop:"实际牛头数"}}),a("el-table-column",{attrs:{label:"应混料量(kg)","min-width":"110px",align:"center",prop:"应混料量"}}),a("el-table-column",{attrs:{label:"实际混料量(kg)","min-width":"110px",align:"center",prop:"实际混料量"}}),a("el-table-column",{attrs:{label:"撒料量(kg)","min-width":"110px",align:"center",prop:"撒料量"}}),a("el-table-column",{attrs:{label:"混料时间","min-width":"110px",align:"center",prop:"混料时间"}}),a("el-table-column",{attrs:{label:"转投剩料量(kg)","min-width":"110px",align:"center",prop:"转投剩料量"}}),a("el-table-column",{attrs:{label:"今日剩料量(kg)","min-width":"110px",align:"center",prop:"今日剩料量"}}),a("el-table-column",{attrs:{label:"剩料率(%)","min-width":"110px",align:"center",prop:"剩料率"}}),a("el-table-column",{attrs:{label:"TMR干物质(%)","min-width":"110px",align:"center",prop:"TMR干物质"}}),a("el-table-column",{attrs:{label:"配方干物质采食量(kg/头)","min-width":"110px",align:"center",prop:"配方干物质采食量"}}),a("el-table-column",{attrs:{label:"实际干物质采食量(kg/头)","min-width":"110px",align:"center",prop:"实际干物质采食量"}}),a("el-table-column",{attrs:{label:"采食率(%)","min-width":"110px",align:"center",prop:"采食率"}}),a("el-table-column",{attrs:{label:"配方成本(元/头)","min-width":"110px",align:"center",prop:"配方成本"}}),a("el-table-column",{attrs:{label:"实际成本(元/头)","min-width":"110px",align:"center",prop:"实际成本"}}),a("el-table-column",{attrs:{label:"产奶量(kg/头)","min-width":"110px",align:"center",prop:"产奶量"}}),a("el-table-column",{attrs:{label:"饲料转化率","min-width":"110px",align:"center",prop:"饲料转化率"}}),a("el-table-column",{attrs:{label:"公斤奶饲料成本","min-width":"110px",align:"center",prop:"公斤奶饲料成本"}})],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.pasture.dialogFormVisible=!1}}},[t._v("关闭")])],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"),p=a("333d"),m=a("5c96");a("817d");var u={name:"GroupFeedingEfficiency",components:{Pagination:p["a"]},data:function(){var t=this;return{pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},tab:{chartDate:[],table:{getdataListParm:{name:"getFeedEfficiencyJT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:Object(d["d"])(new Date,"{y}-{m}-{d}"),ftname:"",barname:"",cowclass:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffMRJT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffSLJT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,chart2Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart3:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffHLJT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart4:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffZHJT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,chart4Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart5:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffCBAllJT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,chart5Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}},pasture:{dialogFormVisible:!1,dialogStatus:"",radio:"1",isFormulaName:!0,isHouseName:!1,isLivestockType:!1,table:{getdataListParm:{name:"getFeedEfficiencyFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:Object(d["d"])(new Date,"{y}-{m}-{d}"),ftname:"",barname:"",cowclass:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}}},textMap:{pasture:"牧场"},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getTimeFn(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()},mounted:function(){},methods:{getTimeFn:function(){var t=this,e=new Date,a=new Date,i=new Date;i.setTime(i.getTime()-864e5),t.tab.table.getdataListParm.parammaps.date=Object(d["d"])(i,"{y}-{m}-{d}"),a.setTime(a.getTime()-6048e5),t.tab.chartDate[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chartDate[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}")},handleDownload:function(){},getList:function(){var t=this;this.tab.table.listLoading=!0,this.tab.table.getdataListParm.parammaps.date=Object(d["d"])(this.tab.table.getdataListParm.parammaps.date,"{y}-{m}-{d}"),Object(n["c"])(this.tab.table.getdataListParm).then((function(e){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(){this.getList()},handleBefore:function(){if(""!==this.tab.table.getdataListParm.parammaps.date&&null!==this.tab.table.getdataListParm.parammaps.date){this.tab.table.getdataListParm.parammaps.date=new Date(this.tab.table.getdataListParm.parammaps.date);var t=new Date(this.tab.table.getdataListParm.parammaps.date.setDate(this.tab.table.getdataListParm.parammaps.date.getDate()-1));this.tab.table.getdataListParm.parammaps.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.getList()}},handleNext:function(){if(""!==this.tab.table.getdataListParm.parammaps.date&&null!==this.tab.table.getdataListParm.parammaps.date){this.tab.table.getdataListParm.parammaps.date=new Date(this.tab.table.getdataListParm.parammaps.date);var t=new Date(this.tab.table.getdataListParm.parammaps.date.setDate(this.tab.table.getdataListParm.parammaps.date.getDate()+1));this.tab.table.getdataListParm.parammaps.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.getList()}},tableCellStyle:function(t){var e=t.row,a=(t.column,t.rowIndex,t.columnIndex);return 0===a&&"-1"!==e.pastureid?{textDecoration:"underline"}:{textDecoration:"none"}},clickPasture:function(t){"-1"!==t.pastureid&&(this.pasture.dialogStatus="pasture",this.pasture.dialogFormVisible=!0,this.pasture.table.getdataListParm.parammaps.pastureid=t.pastureid,this.getTabList())},getTabList:function(){var t=this;this.pasture.table.listLoading=!0,this.pasture.table.getdataListParm.parammaps.date=this.tab.table.getdataListParm.parammaps.date,Object(n["c"])(this.pasture.table.getdataListParm).then((function(e){null!==e.data.list?(t.pasture.table.list=e.data.list,t.pasture.table.total=e.data.total):t.pasture.table.list=[],setTimeout((function(){t.pasture.table.listLoading=!1}),100)}))},changeRadio:function(){"1"==this.pasture.radio?(this.pasture.isFormulaName=!0,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.table.getdataListParm.parammaps.ftname="",this.pasture.table.getdataListParm.parammaps.barname="",this.pasture.table.getdataListParm.parammaps.ftname="",this.pasture.table.getdataListParm.parammaps.cowclass="",this.pasture.table.getdataListParm.name="getFeedEfficiencyFT",this.getTabList()):"2"==this.pasture.radio?(this.pasture.isFormulaName=!1,this.pasture.isHouseName=!0,this.pasture.isLivestockType=!1,this.pasture.table.getdataListParm.parammaps.ftname="",this.pasture.table.getdataListParm.parammaps.barname="",this.pasture.table.getdataListParm.parammaps.ftname="",this.pasture.table.getdataListParm.parammaps.cowclass="",this.pasture.table.getdataListParm.name="getFeedEfficiencyLS",this.getTabList()):"3"==this.pasture.radio&&(this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!0,this.pasture.table.getdataListParm.parammaps.ftname="",this.pasture.table.getdataListParm.parammaps.barname="",this.pasture.table.getdataListParm.parammaps.ftname="",this.pasture.table.getdataListParm.parammaps.cowclass="",this.pasture.table.getdataListParm.name="getFeedEfficiencySC",this.getTabList())},handlePastureSearch:function(){},handleQuickJumpChart:function(){var t=document.getElementById("table").offsetHeight+120;window.scrollTo(t,t)},handleQuickJumpTop:function(){window.scrollTo(0,0)},handleChartDate:function(){var t=this;m["MessageBox"].confirm("是否调整以下所有图表查询时间?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e=t,a=Object(d["d"])(t.tab.chartDate[0],"{y}-{m}-{d}"),i=Object(d["d"])(t.tab.chartDate[1],"{y}-{m}-{d}");e.tab.chart1.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart1.getdataListParm.parammaps.startTime=a,e.tab.chart1.getdataListParm.parammaps.stopTime=i,e.getChart1(),e.tab.chart2.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart2.getdataListParm.parammaps.startTime=a,e.tab.chart2.getdataListParm.parammaps.stopTime=i,e.getChart2(),e.tab.chart3.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart3.getdataListParm.parammaps.startTime=a,e.tab.chart3.getdataListParm.parammaps.stopTime=i,e.getChart3(),e.tab.chart4.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart4.getdataListParm.parammaps.startTime=a,e.tab.chart4.getdataListParm.parammaps.stopTime=i,e.getChart4(),e.tab.chart5.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart5.getdataListParm.parammaps.startTime=a,e.tab.chart5.getdataListParm.parammaps.stopTime=i,e.getChart5()}))},getChart1:function(){var t=this;this.tab.chart1.listLoading=!0,Object(n["e"])(this.tab.chart1.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab.chart1.table.list=e.data.data,t.tab.chart1.chartLine_data=e.data.list):(t.tab.chart1.list=[],t.tab.chart1.chartLine_data={}),t.roadChartLine1(t.tab.chart1.chartLine_data),setTimeout((function(){t.tab.chart1.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,right:10},grid:{top:"20%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"kg",axisLabel:{formatter:"{value}"}},series:function(){if(void 0!==t.data3){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["e"])(this.tab.chart2.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab.chart2.table.list=e.data.data,t.tab.chart2.chartLine_data=e.data.list,t.tab.chart2.total=e.data.total):(t.tab.chart2.list=[],t.tab.chart2.chartLine_data={}),t.roadChartLine2(t.tab.chart2.chartLine_data),setTimeout((function(){t.tab.chart2.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,right:10},grid:{top:"20%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"剩料率",axisLabel:{formatter:"{value} %"}},series:function(){if(void 0!==t.data3){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["e"])(this.tab.chart3.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab.chart3.table.list=e.data.data,t.tab.chart3.chartLine_data=e.data.list,t.tab.chart3.total=e.data.total):(t.tab.chart3.list=[],t.tab.chart3.chartLine_data={}),t.roadChartLine3(t.tab.chart3.chartLine_data),setTimeout((function(){t.tab.chart3.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,right:10},grid:{top:"20%",left:"3%",right:"8%",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:function(){if(void 0!==t.data3){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["e"])(this.tab.chart4.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab.chart4.table.list=e.data.data,t.tab.chart4.chartLine_data=e.data.list,t.tab.chart4.total=e.data.total):(t.tab.chart4.list=[],t.tab.chart4.chartLine_data={}),t.roadChartLine4(t.tab.chart4.chartLine_data),setTimeout((function(){t.tab.chart4.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,right:10},grid:{top:"20%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"饲料转化率",axisLabel:{formatter:"{value} %"}},series:function(){if(void 0!==t.data3){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["e"])(this.tab.chart5.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab.chart5.table.list=e.data.data,t.tab.chart5.chartLine_data=e.data.list,t.tab.chart5.total=e.data.total):(t.tab.chart5.list=[],t.tab.chart5.chartLine_data={}),t.roadChartLine5(t.tab.chart5.chartLine_data),setTimeout((function(){t.tab.chart5.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,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"公斤奶饲料成本(元)"},series:function(){if(void 0!==t.data3){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()}},changeChartDate:function(t){"chart1"==t?""!==this.tab.chart1.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart1.getdataListParm.parammaps.inputDatetime?(this.tab.chart1.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart1()):(this.tab.chart1.getdataListParm.parammaps.inputDatetime="",this.tab.chart1.getdataListParm.parammaps.startTime="",this.tab.chart1.getdataListParm.parammaps.stopTime="",this.getChart1()):"chart2"==t?""!==this.tab.chart2.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart2.getdataListParm.parammaps.inputDatetime?(this.tab.chart2.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart2()):(this.tab.chart2.getdataListParm.parammaps.inputDatetime="",this.tab.chart2.getdataListParm.parammaps.startTime="",this.tab.chart2.getdataListParm.parammaps.stopTime="",this.getChart2()):"chart3"==t?""!==this.tab.chart3.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart3.getdataListParm.parammaps.inputDatetime?(this.tab.chart3.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart3()):(this.tab.chart3.getdataListParm.parammaps.inputDatetime="",this.tab.chart3.getdataListParm.parammaps.startTime="",this.tab.chart3.getdataListParm.parammaps.stopTime="",this.getChart3()):"chart4"==t?""!==this.tab.chart4.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart4.getdataListParm.parammaps.inputDatetime?(this.tab.chart4.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart4()):(this.tab.chart4.getdataListParm.parammaps.inputDatetime="",this.tab.chart4.getdataListParm.parammaps.startTime="",this.tab.chart4.getdataListParm.parammaps.stopTime="",this.getChart4()):"chart5"==t&&(""!==this.tab.chart5.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart5.getdataListParm.parammaps.inputDatetime?(this.tab.chart5.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart5()):(this.tab.chart5.getdataListParm.parammaps.inputDatetime="",this.tab.chart5.getdataListParm.parammaps.startTime="",this.tab.chart5.getdataListParm.parammaps.stopTime="",this.getChart5()))},handleExport:function(t){if("chart1"==t){var e=[{tHeader:["日期","泌乳牛采食量","泌乳牛产奶量"],filterVal:["日期","field1","field2"],tableDatas:this.tab.chart1.table.list,sheetName:"泌乳牛采食量"}];Object(d["c"])(e,"泌乳牛采食量",!0,"xlsx")}else if("chart2"==t){var a=[{tHeader:["日期","栏舍名称","剩料量","撒料量","剩料率"],filterVal:["日期","名称","剩料量","撒料量","准确率"],tableDatas:this.tab.chart2.table.list,sheetName:"牛栏剩料率"}];Object(d["c"])(a,"牛栏剩料率",!0,"xlsx")}else if("chart3"==t){var i=[{tHeader:["日期","混料时间(分钟)"],filterVal:["日期","field1"],tableDatas:this.tab.chart3.table.list,sheetName:"混料时间统计"}];Object(d["c"])(i,"混料时间统计",!0,"xlsx")}else if("chart4"==t){var s=[{tHeader:["日期","配方名称","饲料转化率"],filterVal:["日期","名称","准确率"],tableDatas:this.tab.chart4.table.list,sheetName:"转化率统计"}];Object(d["c"])(s,"转化率",!0,"xlsx")}else if("chart5"==t){var r=[{tHeader:["日期","牲畜类别","公斤奶饲料成本(元)"],filterVal:["日期","名称","准确率"],tableDatas:this.tab.chart5.table.list,sheetName:"成本分析"}];Object(d["c"])(r,"成本分析",!0,"xlsx")}},handleTable:function(t){"chart1"==t?(this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1):"chart2"==t?(this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1):"chart3"==t?(this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1):"chart4"==t?(this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1):"chart5"==t&&(this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1)},handleChart:function(t){"chart1"==t?(this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0,this.getChart1()):"chart2"==t?(this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0,this.getChart2()):"chart3"==t?(this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0,this.getChart3()):"chart4"==t?(this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0,this.getChart4()):"chart5"==t&&(this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0,this.getChart5())}}},h=u,b=(a("5811"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"9337bb88",null);e["default"]=g.exports},"742f":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="M865.792 471.04c-45.568 0-86.528 27.136-99.84 68.608h-81.92c0-9.216 4.608-18.432 4.608-27.136 0-64-36.352-123.392-91.136-150.528L629.76 261.12c9.216 0 18.432 4.608 22.528 4.608 58.88 0 104.448-45.568 104.448-104.96s-45.568-104.96-104.448-104.96S547.84 101.376 547.84 160.768c0 45.568 27.136 81.92 63.488 95.744l-31.744 100.352c-18.432-9.216-40.96-13.824-63.488-13.824-45.568 0-81.92 18.432-113.664 45.568L247.808 229.376c18.432-18.432 27.136-45.568 27.136-73.216 0-59.392-45.568-104.96-104.448-104.96s-104.448 45.568-104.448 104.96S111.616 261.12 170.496 261.12c27.136 0 54.784-9.216 72.704-27.136l-4.608 4.608 154.624 155.136c-27.136 31.744-45.568 68.608-45.568 114.176 0 36.352 13.824 73.216 36.352 104.96L247.808 721.92c-18.432-27.136-50.176-40.96-81.92-40.96-58.88 0-104.448 45.568-104.448 104.96C61.44 844.8 107.008 890.88 165.888 890.88s104.448-45.568 104.448-104.96c0-18.432-4.608-36.352-13.824-50.176l136.192-109.568c31.744 31.744 77.312 54.784 122.88 54.784 27.136 0 50.176-4.608 68.096-13.824l45.568 109.568c-31.744 18.432-54.784 54.784-54.784 91.136 0 59.392 45.568 104.96 104.448 104.96s104.448-45.568 104.448-104.96-45.568-104.96-104.448-104.96c-13.824 0-27.136 4.608-36.352 9.216l-45.568-109.568c36.352-23.04 68.096-59.392 77.312-104.96h77.312v18.432c0 59.392 45.568 104.96 104.448 104.96 58.88 0 104.448-45.568 104.448-104.96 9.728-59.392-35.328-104.96-94.72-104.96z" p-id="210418" /><path d="M199.68 180.224l272.896 272.896L199.68 180.224z m443.904 0l-77.824 239.104 77.824-239.104z m165.888 370.688l-239.104-24.576 239.104 24.576z m-151.04 248.832L575.488 609.28l82.944 190.464z m-253.952-209.92l-199.68 160.768 199.68-160.768z" p-id="210419" /></symbol>'});l.a.add(n);e["default"]=n},7509:function(t,e,a){"use strict";a.r(e);var i=a("2909"),s=a("3835"),r=a("b85c"),l=(a("d3b7"),a("caad"),a("2532"),a("b0c0"),a("ddb0"),a("a434"),a("4de4"),a("fb6a"),{visitedViews:[],cachedViews:[]}),n={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,i=Object(r["a"])(t.visitedViews.entries());try{for(i.s();!(a=i.n()).done;){var l=Object(s["a"])(a.value,2),n=l[0],o=l[1];if(o.path===e.path){t.visitedViews.splice(n,1);break}}}catch(c){i.e(c)}finally{i.f()}},DEL_CACHED_VIEW:function(t,e){var a,i=Object(r["a"])(t.cachedViews);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s===e.name){var l=t.cachedViews.indexOf(s);t.cachedViews.splice(l,1);break}}}catch(n){i.e(n)}finally{i.f()}},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,i=Object(r["a"])(t.cachedViews);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s===e.name){var l=t.cachedViews.indexOf(s);t.cachedViews=t.cachedViews.slice(l,l+1);break}}}catch(n){i.e(n)}finally{i.f()}},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,i=Object(r["a"])(t.visitedViews);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s.path===e.path){s=Object.assign(s,e);break}}}catch(l){i.e(l)}finally{i.f()}}},o={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:l,mutations:n,actions:o}},"753a":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-container1"},[a("div",{staticClass:"search"},[a("el-date-picker",{ref:"inputDatetime",staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.changeDate},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",attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}}),a("el-button",{staticClass:"export",on:{click:t.handleDownload}},[t._v("导出")]),a("svg-icon",{staticClass:"down",staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpChart}})],1),a("div",{staticClass:"table",attrs:{id:"table"}},[a("h4",[t._v("混料")]),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.tableCellStyle}},[a("el-table-column",{attrs:{sortable:"",label:"牧场","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{on:{click:function(e){return t.clickPasture(i)}}},[t._v(t._s(i.pasturename))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"理论重量","min-width":"90px",align:"center",prop:"理论重量"}}),a("el-table-column",{attrs:{sortable:"",label:"实际重量","min-width":"90px",align:"center",prop:"实际重量"}}),a("el-table-column",{attrs:{sortable:"",label:"计划混料操作数","min-width":"100px",align:"center",prop:"计划混料操作数"}}),a("el-table-column",{attrs:{sortable:"",label:"已混料操作数","min-width":"90px",align:"center",prop:"已混料操作数"}}),a("el-table-column",{attrs:{sortable:"",label:"混料操作率","min-width":"90px",align:"center",prop:"混料操作率"}}),a("el-table-column",{attrs:{sortable:"",label:"混料误差值","min-width":"90px",align:"center",prop:"混料误差值"}}),a("el-table-column",{attrs:{sortable:"",label:"混料准确率","min-width":"90px",align:"center",prop:"混料准确率"}}),a("el-table-column",{attrs:{sortable:"",label:"取消次数","min-width":"90px",align:"center",prop:"取消次数"}}),a("el-table-column",{key:20,attrs:{sortable:"",label:"混料正确数","min-width":"90px",align:"center",prop:"混料正确数"}}),a("el-table-column",{key:21,attrs:{sortable:"",label:"混料正确率","min-width":"90px",align:"center",prop:"混料正确率"}}),a("el-table-column",{key:22,attrs:{sortable:"",label:"去除取消正确率","min-width":"90px",align:"center",prop:"去除取消正确率"}}),a("el-table-column",{attrs:{sortable:"",label:"标准差","min-width":"90px",align:"center",prop:"方差"}})],1),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.tableCellStyle}},[a("el-table-column",{attrs:{sortable:"",label:"牧场","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{on:{click:function(e){return t.clickPasture(i)}}},[t._v(t._s(i.pasturename))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"理论重量","min-width":"90px",align:"center",prop:"理论重量"}}),a("el-table-column",{attrs:{sortable:"",label:"实际重量","min-width":"90px",align:"center",prop:"实际重量"}}),a("el-table-column",{attrs:{sortable:"",label:"计划撒料操作数","min-width":"100px",align:"center",prop:"计划撒料操作数"}}),a("el-table-column",{attrs:{sortable:"",label:"已撒料操作数","min-width":"90px",align:"center",prop:"已撒料操作数"}}),a("el-table-column",{attrs:{sortable:"",label:"撒料操作率","min-width":"90px",align:"center",prop:"撒料操作率"}}),a("el-table-column",{attrs:{sortable:"",label:"撒料误差值","min-width":"90px",align:"center",prop:"撒料误差值"}}),a("el-table-column",{attrs:{sortable:"",label:"撒料准确率","min-width":"90px",align:"center",prop:"撒料准确率"}}),a("el-table-column",{attrs:{sortable:"",label:"撒料自动跳转次数","min-width":"90px",align:"center",prop:"撒料自动跳转次数"}}),a("el-table-column",{attrs:{sortable:"",label:"撒料手动跳转次数","min-width":"90px",align:"center",prop:"撒料手动跳转次数"}}),a("el-table-column",{key:20,attrs:{sortable:"",label:"撒料正确数","min-width":"90px",align:"center",prop:"撒料正确数"}}),a("el-table-column",{key:21,attrs:{sortable:"",label:"撒料正确率","min-width":"90px",align:"center",prop:"撒料正确率"}}),a("el-table-column",{key:22,attrs:{sortable:"",label:"去除取消正确率","min-width":"90px",align:"center",prop:"去除取消正确率"}}),a("el-table-column",{attrs:{sortable:"",label:"标准差","min-width":"90px",align:"center",prop:"方差"}})],1)],1),a("div",{staticClass:"AnalysisChart"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{"margin-bottom":"10px","margin-top":"10px"},attrs:{span:24}},[a("span",[t._v("图表查询时间:")]),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{"margin-left":"10px",width:"250px","margin-right":"10px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},model:{value:t.chartDate,callback:function(e){t.chartDate=e},expression:"chartDate"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleChartDate}},[t._v("确认")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpTop}})],1)],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("计划统计")]),t.chart1.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart1")}},model:{value:t.chart1.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.chart1.getdataListParm.parammaps,"inputDatetime",e)},expression:"chart1.getdataListParm.parammaps.inputDatetime"}}),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart1")}}},[t._v("切换表格")])],1):t._e(),t.chart1.isChart?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.chart1.listLoading,expression:"chart1.listLoading"}],staticStyle:{width:"100%",height:"400px",background:"#fff"},attrs:{id:"chartLine1"}}):t._e(),t.chart1.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("chart1")}}},[t._v("切换图表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.chart1.table.listLoading,expression:"chart1.table.listLoading"}],key:t.chart1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"85px",align:"center",prop:"牧场"}}),a("el-table-column",{attrs:{label:"计划执行重量(kg)",sortable:"","min-width":"85px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"配方理论重量(kg)",sortable:"","min-width":"85px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"计划准确率",sortable:"","min-width":"80px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"计划取消重量(kg)",sortable:"","min-width":"85px",align:"center",prop:"计划取消重量"}}),a("el-table-column",{attrs:{label:"计划准确率(去除取消重量)",sortable:"","min-width":"110px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"计划正确数",sortable:"","min-width":"80px",align:"center",prop:"正确数"}}),a("el-table-column",{attrs:{label:"计划数",sortable:"","min-width":"70px",align:"center",prop:"计划数"}}),a("el-table-column",{attrs:{label:"计划正确率",sortable:"","min-width":"80px",align:"center",prop:"field2"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("牛群准确率")]),t.chart2.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":t.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(e){return t.changeChartDate("chart2")}},model:{value:t.chart2.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.chart2.getdataListParm.parammaps,"inputDatetime",e)},expression:"chart2.getdataListParm.parammaps.inputDatetime"}}),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart2")}}},[t._v("切换表格")])],1):t._e(),t.chart2.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine2"}}):t._e(),t.chart2.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("chart2")}}},[t._v("切换图表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.chart2.table.listLoading,expression:"chart2.table.listLoading"}],key:t.chart2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"90px",align:"center",prop:"牧场"}}),a("el-table-column",{attrs:{label:"牲畜类别",sortable:"","min-width":"90px",align:"center",prop:"field5"}}),a("el-table-column",{attrs:{label:"计划重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"实际重量(kg)",sortable:"","min-width":"100px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"准确率",sortable:"","min-width":"90px",align:"center",prop:"field1"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("混料次数统计")]),t.chart3.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":t.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(e){return t.changeChartDate("chart3")}},model:{value:t.chart3.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.chart3.getdataListParm.parammaps,"inputDatetime",e)},expression:"chart3.getdataListParm.parammaps.inputDatetime"}}),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart3")}}},[t._v("切换表格")])],1):t._e(),t.chart3.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine3"}}):t._e(),t.chart3.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("chart3")}}},[t._v("切换图表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.chart3.table.listLoading,expression:"chart3.table.listLoading"}],key:t.chart3.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.chart3.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"90px",align:"center",prop:"牧场"}}),a("el-table-column",{attrs:{label:"自动跳转次数",sortable:"","min-width":"90px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"手动跳转次数",sortable:"","min-width":"100px",align:"center",prop:"field2"}}),a("el-table-column",{attrs:{label:"混料取消次数",sortable:"","min-width":"100px",align:"center",prop:"field5"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("混料准确率统计")]),t.chart4.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":t.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(e){return t.changeChartDate("chart4")}},model:{value:t.chart4.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.chart4.getdataListParm.parammaps,"inputDatetime",e)},expression:"chart4.getdataListParm.parammaps.inputDatetime"}}),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart4")}}},[t._v("切换表格")])],1):t._e(),t.chart4.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine4"}}):t._e(),t.chart4.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("chart4")}}},[t._v("切换图表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.chart4.table.listLoading,expression:"chart4.table.listLoading"}],key:t.chart4.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.chart4.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{sortable:"",label:"牧场",sortable:"","min-width":"90px",align:"center",prop:"牧场"}}),a("el-table-column",{attrs:{label:"自动跳转次数",sortable:"","min-width":"80px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"手动跳转次数",sortable:"","min-width":"80px",align:"center",prop:"field4"}}),a("el-table-column",{attrs:{label:"自动跳转理论重量",sortable:"","min-width":"85px",align:"center",prop:"理论自动"}}),a("el-table-column",{attrs:{label:"自动跳转实际重量",sortable:"","min-width":"85px",align:"center",prop:"实际自动"}}),a("el-table-column",{attrs:{label:"自动跳转准确率",sortable:"","min-width":"85px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"手动跳转理论重量",sortable:"","min-width":"85px",align:"center",prop:"理论手动"}}),a("el-table-column",{attrs:{label:"手动跳转实际重量",sortable:"","min-width":"85px",align:"center",prop:"实际手动"}}),a("el-table-column",{attrs:{label:"手动跳转准确率",sortable:"","min-width":"85px",align:"center",prop:"field2"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("栏舍平均撒料时间统计")]),t.chart5.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":t.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(e){return t.changeChartDate("chart5")}},model:{value:t.chart5.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.chart5.getdataListParm.parammaps,"inputDatetime",e)},expression:"chart5.getdataListParm.parammaps.inputDatetime"}}),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart5")}}},[t._v("切换表格")])],1):t._e(),t.chart5.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine5"}}):t._e(),t.chart5.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("chart5")}}},[t._v("切换图表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.chart5.table.listLoading,expression:"chart5.table.listLoading"}],key:t.chart5.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.chart5.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"85px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"80px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"平均撒料时间",sortable:"","min-width":"80px",align:"center",prop:"准确率"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",[t._v("混料计划取消次数")]),t.chart6.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":t.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(e){return t.changeChartDate("chart6")}},model:{value:t.chart6.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.chart6.getdataListParm.parammaps,"inputDatetime",e)},expression:"chart6.getdataListParm.parammaps.inputDatetime"}}),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart6")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart6")}}},[t._v("切换表格")])],1):t._e(),t.chart6.isChart?a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine6"}}):t._e(),t.chart6.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart6")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("chart6")}}},[t._v("切换图表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.chart6.table.listLoading,expression:"chart6.table.listLoading"}],key:t.chart6.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.chart6.table.list,border:"",fit:"","highlight-current-row":"",height:"400","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"85px",align:"center",prop:"牧场"}}),a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"80px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"取消次数",sortable:"","min-width":"80px",align:"center",prop:"field1"}})],1)],1):t._e()])])],1)],1),a("el-dialog",{attrs:{title:t.textMap[t.pasture.dialogStatus],"destroy-on-close":!0,visible:t.pasture.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.pasture,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-pasture"},[a("div",{staticClass:"search"},[a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"统计类型"},on:{change:t.changeRadio},model:{value:t.pasture.radio,callback:function(e){t.$set(t.pasture,"radio",e)},expression:"pasture.radio"}},t._l(t.statisticalTypeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-checkbox",{staticStyle:{"margin-right":"10px"},on:{change:t.changeChecked},model:{value:t.pasture.checked,callback:function(e){t.$set(t.pasture,"checked",e)},expression:"pasture.checked"}},[t._v("按日期统计")]),t.pasture.isDriver?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"驾驶员"},model:{value:t.pasture.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"fname",e)},expression:"pasture.table.getdataListParm.parammaps.fname"}}):t._e(),t.pasture.isFormulaName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"配方名称"},model:{value:t.pasture.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"fname",e)},expression:"pasture.table.getdataListParm.parammaps.fname"}}):t._e(),t.pasture.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"栏舍名称"},model:{value:t.pasture.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"fname",e)},expression:"pasture.table.getdataListParm.parammaps.fname"}}):t._e(),t.pasture.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"牲畜名称"},model:{value:t.pasture.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"fname",e)},expression:"pasture.table.getdataListParm.parammaps.fname"}}):t._e(),t.pasture.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"车次"},model:{value:t.pasture.table.getdataListParm.parammaps.sort,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"sort",e)},expression:"pasture.table.getdataListParm.parammaps.sort"}}):t._e(),t.pasture.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"班次"},model:{value:t.pasture.table.getdataListParm.parammaps.times,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"times",e)},expression:"pasture.table.getdataListParm.parammaps.times"}}):t._e(),t.pasture.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"TMR名称"},model:{value:t.pasture.table.getdataListParm.parammaps.fname,callback:function(e){t.$set(t.pasture.table.getdataListParm.parammaps,"fname",e)},expression:"pasture.table.getdataListParm.parammaps.fname"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("h4",[t._v("混料")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pasture.table.listLoading,expression:"pasture.table.listLoading"}],key:t.pasture.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.pasture.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[t.pasture.checked?a("el-table-column",{key:0,attrs:{sortable:"",label:"日期","min-width":"110px",align:"center",prop:"计划时间"}}):t._e(),t.pasture.isDriver?a("el-table-column",{key:1,attrs:{sortable:"",label:"驾驶员","min-width":"110px",align:"center",prop:"驾驶员"}}):t._e(),t.pasture.isFormulaName?a("el-table-column",{key:2,attrs:{sortable:"",label:"配方名称","min-width":"110px",align:"center",prop:"配方名称"}}):t._e(),t.pasture.isHouseName?a("el-table-column",{key:3,attrs:{sortable:"",label:"栏舍名称","min-width":"110px",align:"center",prop:"栏舍名称"}}):t._e(),t.pasture.isLivestockType?a("el-table-column",{key:4,attrs:{sortable:"",label:"牲畜类别","min-width":"110px",align:"center",prop:"牲畜类别"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:5,attrs:{sortable:"",label:"车次","min-width":"110px",align:"center",prop:"车次"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:6,attrs:{sortable:"",label:"班次","min-width":"110px",align:"center",prop:"班次"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:7,attrs:{sortable:"",label:"TMR名称","min-width":"110px",align:"center",prop:"TMR名称"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:8,attrs:{sortable:"",label:"驾驶员","min-width":"110px",align:"center",prop:"驾驶员"}}):t._e(),a("el-table-column",{key:9,attrs:{sortable:"",label:"理论重量","min-width":"110px",align:"center",prop:"理论重量"}}),a("el-table-column",{key:10,attrs:{sortable:"",label:"实际重量","min-width":"110px",align:"center",prop:"实际重量"}}),a("el-table-column",{key:11,attrs:{sortable:"",label:"计划混料操作数","min-width":"110px",align:"center",prop:"计划混料操作数"}}),a("el-table-column",{key:12,attrs:{sortable:"",label:"已混料操作数","min-width":"110px",align:"center",prop:"已混料操作数"}}),a("el-table-column",{key:13,attrs:{sortable:"",label:"混料操作率","min-width":"110px",align:"center",prop:"混料操作率"}}),a("el-table-column",{key:14,attrs:{sortable:"",label:"混料误差值","min-width":"110px",align:"center",prop:"混料误差值"}}),a("el-table-column",{key:15,attrs:{sortable:"",label:"混料准确率","min-width":"110px",align:"center",prop:"混料准确率"}}),t.pasture.isTrainNumber?a("el-table-column",{key:16,attrs:{sortable:"",label:"混料时间","min-width":"100px",align:"center",prop:"混料时间"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:17,attrs:{sortable:"",label:"等待时间","min-width":"100px",align:"center",prop:"等待时间"}}):t._e(),a("el-table-column",{key:18,attrs:{sortable:"",label:"混料自动跳转次数","min-width":"110px",align:"center",prop:"混料自动跳转次数"}}),a("el-table-column",{key:19,attrs:{sortable:"",label:"混料手动跳转次数","min-width":"110px",align:"center",prop:"混料手动跳转次数"}}),a("el-table-column",{key:20,attrs:{sortable:"",label:"取消次数","min-width":"110px",align:"center",prop:"取消次数"}}),a("el-table-column",{key:21,attrs:{sortable:"",label:"方差","min-width":"110px",align:"center",prop:"方差"}})],1),a("h4",[t._v("撒料")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pasture.table2.listLoading,expression:"pasture.table2.listLoading"}],key:t.pasture.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.pasture.table2.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[t.pasture.checked?a("el-table-column",{key:0,attrs:{sortable:"",label:"日期","min-width":"110px",align:"center",prop:"计划时间"}}):t._e(),t.pasture.isDriver?a("el-table-column",{key:1,attrs:{sortable:"",label:"驾驶员","min-width":"110px",align:"center",prop:"驾驶员"}}):t._e(),t.pasture.isFormulaName?a("el-table-column",{key:2,attrs:{sortable:"",label:"配方名称","min-width":"110px",align:"center",prop:"配方名称"}}):t._e(),t.pasture.isHouseName?a("el-table-column",{key:3,attrs:{sortable:"",label:"栏舍名称","min-width":"110px",align:"center",prop:"栏舍名称"}}):t._e(),t.pasture.isLivestockType?a("el-table-column",{key:4,attrs:{sortable:"",label:"牲畜类别","min-width":"110px",align:"center",prop:"牲畜类别"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:5,attrs:{sortable:"",label:"车次","min-width":"110px",align:"center",prop:"车次"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:6,attrs:{sortable:"",label:"班次","min-width":"110px",align:"center",prop:"班次"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:7,attrs:{sortable:"",label:"TMR名称","min-width":"110px",align:"center",prop:"TMR"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:8,attrs:{sortable:"",label:"驾驶员","min-width":"110px",align:"center",prop:"驾驶员"}}):t._e(),a("el-table-column",{key:9,attrs:{sortable:"",label:"理论重量","min-width":"110px",align:"center",prop:"理论重量"}}),a("el-table-column",{key:10,attrs:{sortable:"",label:"实际重量","min-width":"110px",align:"center",prop:"实际重量"}}),a("el-table-column",{key:11,attrs:{sortable:"",label:"计划撒料操作数","min-width":"110px",align:"center",prop:"计划撒料操作数"}}),a("el-table-column",{key:12,attrs:{sortable:"",label:"已撒料操作数","min-width":"110px",align:"center",prop:"已撒料操作数"}}),a("el-table-column",{key:13,attrs:{sortable:"",label:"撒料操作率","min-width":"110px",align:"center",prop:"撒料操作率"}}),a("el-table-column",{key:14,attrs:{sortable:"",label:"撒料误差值","min-width":"110px",align:"center",prop:"撒料误差值"}}),a("el-table-column",{key:15,attrs:{sortable:"",label:"撒料准确率","min-width":"110px",align:"center",prop:"撒料准确率"}}),t.pasture.isTrainNumber?a("el-table-column",{key:16,attrs:{sortable:"",label:"撒料时间","min-width":"100px",align:"center",prop:"撒料时间"}}):t._e(),t.pasture.isTrainNumber?a("el-table-column",{key:17,attrs:{sortable:"",label:"等待时间","min-width":"100px",align:"center",prop:"等待时间"}}):t._e(),a("el-table-column",{key:18,attrs:{sortable:"",label:"撒料自动跳转次数","min-width":"110px",align:"center",prop:"撒料自动跳转次数"}}),a("el-table-column",{key:19,attrs:{sortable:"",label:"撒料手动跳转次数","min-width":"110px",align:"center",prop:"撒料手动跳转次数"}})],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.pasture.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],1)},s=[],r=(a("4e82"),a("b0c0"),a("ac1f"),a("5319"),a("313e")),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08"),p=a("333d"),m=a("5c96");a("817d");var u={name:"Tab1",components:{Pagination:p["a"]},data:function(){var t=this;return{Beforedisabled:!1,Nextdisabled:!1,pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},table:{getdataListParm:{name:"getAccuracyJTHALL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:"",sort:"",times:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getAccuracyJTSALL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:"",sort:"",times:""}},tableKey:2,list:[],total:0,listLoading:!0,temp:{}},chartDate:[],chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getJT1AccuracyAllJH",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart1Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getJT1AccuracyAllNQ",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart3:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getJT1AccuracyAllHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart1Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart4:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getJT1AccuracyAllHLRate",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart4Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart5:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllLSJT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart6:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getJT1AccuracyAllQX",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart4Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},pasture:{dialogFormVisible:!1,dialogStatus:"",radio:"0",isDriver:!0,isFormulaName:!1,isHouseName:!1,isLivestockType:!1,isTrainNumber:!1,checked:!1,table:{getdataListParm:{name:"getAccuracyHFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:"",startTime:"",stopTime:"",fname:"",sort:"",times:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getAccuracySFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:"",startTime:"",stopTime:"",fname:"",sort:"",times:""}},tableKey:2,list:[],total:0,listLoading:!0,temp:{}}},textMap:{pasture:"牧场"},statisticalTypeList:[{id:"0",name:"驾驶员"},{id:"1",name:"配方名称"},{id:"2",name:"栏舍名称"},{id:"3",name:"牲畜类别"},{id:"4",name:"车次"}],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getTimeFn(),this.getList(),this.getList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5(),this.getChart6()},methods:{getTimeFn:function(){var t=this,e=new Date,a=new Date,i=new Date,s=new Date;i.setTime(i.getTime()-864e5),s.setTime(s.getTime()-864e5),t.table.getdataListParm.parammaps.inputDatetime=[i,s],t.table.getdataListParm.parammaps.startTime=Object(d["d"])(i,"{y}-{m}-{d}"),t.table.getdataListParm.parammaps.stopTime=Object(d["d"])(s,"{y}-{m}-{d}"),t.table2.getdataListParm.parammaps.inputDatetime=t.table.getdataListParm.parammaps.inputDatetime,t.table2.getdataListParm.parammaps.startTime=t.table.getdataListParm.parammaps.startTime,t.table2.getdataListParm.parammaps.stopTime=t.table.getdataListParm.parammaps.stopTime,t.chartDate[0]=Object(d["d"])(e,"{y}-{m}-{d}"),t.chartDate[1]=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart1.getdataListParm.parammaps.inputDatetime=[e,a],t.chart1.getdataListParm.parammaps.startTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart1.getdataListParm.parammaps.stopTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart2.getdataListParm.parammaps.startTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart2.getdataListParm.parammaps.stopTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart3.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart3.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart3.getdataListParm.parammaps.startTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart3.getdataListParm.parammaps.stopTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart4.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart4.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart4.getdataListParm.parammaps.startTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart4.getdataListParm.parammaps.stopTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart5.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart5.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart5.getdataListParm.parammaps.startTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart5.getdataListParm.parammaps.stopTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart6.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart6.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(a,"{y}-{m}-{d}"),t.chart6.getdataListParm.parammaps.startTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.chart6.getdataListParm.parammaps.stopTime=Object(d["d"])(a,"{y}-{m}-{d}")},getList:function(){var t=this;this.table.listLoading=!0,Object(n["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?t.table.list=e.data.list:t.table.list=[],setTimeout((function(){t.table.listLoading=!1}),100)}))},getList2:function(){var t=this;this.table2.listLoading=!0,Object(n["c"])(this.table2.getdataListParm).then((function(e){null!==e.data.list?t.table2.list=e.data.list:t.table2.list=[],setTimeout((function(){t.table2.listLoading=!1}),100)}))},changeDate:function(){var t=this.$refs.inputDatetime.value[0],e=this.$refs.inputDatetime.value[1];this.table.getdataListParm.parammaps.startTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),this.table2.getdataListParm.parammaps.startTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.table2.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),this.getList(),this.getList2()},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));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList(),this.table2.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.startTime,this.table2.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.stopTime,this.getList2()},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));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList(),this.table2.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.startTime,this.table2.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.stopTime,this.getList2()},tableCellStyle:function(t){var e=t.row,a=(t.column,t.rowIndex,t.columnIndex);return 0===a&&"-1"!==e.pastureid?{textDecoration:"underline"}:{textDecoration:"none"}},clickPasture:function(t){"-1"!==t.pastureid&&(this.pasture.dialogStatus="pasture",this.pasture.dialogFormVisible=!0,this.pasture.table.getdataListParm.parammaps.pastureid=t.pastureid,this.pasture.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.getTabList(),this.getTabList2())},changeRadio:function(){this.pasture.table.getdataListParm.parammaps.sort="",this.pasture.table.getdataListParm.parammaps.times="",this.pasture.table.getdataListParm.parammaps.fname="",this.pasture.table2.getdataListParm.parammaps.sort="",this.pasture.table2.getdataListParm.parammaps.times="",this.pasture.table2.getdataListParm.parammaps.fname="",1==this.pasture.checked?"0"==this.pasture.radio?(this.pasture.isDriver=!0,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHFTDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySFTDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.getTabList2()):"1"==this.pasture.radio?(this.pasture.isDriver=!1,this.pasture.isFormulaName=!0,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHFTDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySFTDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.getTabList2()):"2"==this.pasture.radio?(this.pasture.isDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!0,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHNSDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySNSDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.getTabList2()):"3"==this.pasture.radio?(this.pasture.isDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!0,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHSCDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySSCDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.pasture.radio&&(this.pasture.isDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!0,this.pasture.table.getdataListParm.name="getAccuracyHCCDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySCCDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"0"==this.pasture.radio?(this.pasture.isDriver=!0,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHFT",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySFT",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.getTabList2()):"1"==this.pasture.radio?(this.pasture.isDriver=!1,this.pasture.isFormulaName=!0,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHFT",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySFT",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.getTabList2()):"2"==this.pasture.radio?(this.pasture.isDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!0,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHNS",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySNS",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.getTabList2()):"3"==this.pasture.radio?(this.pasture.isDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!0,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHSC",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySSC",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.pasture.radio&&(this.pasture.isDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!0,this.pasture.table.getdataListParm.name="getAccuracyHCC",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySCC",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2())},changeChecked:function(){this.handleSearch()},handleSearch:function(){1==this.pasture.checked?"0"==this.pasture.radio?(this.pasture.idDriver=!0,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHFTDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySFTDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"1"==this.pasture.radio?(this.pasture.idDriver=!1,this.pasture.isFormulaName=!0,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHFTDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySFTDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"2"==this.pasture.radio?(this.pasture.idDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!0,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHNSDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySNSDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"3"==this.pasture.radio?(this.pasture.idDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!0,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHSCDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySSCDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.pasture.radio&&(this.pasture.idDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!0,this.pasture.table.getdataListParm.name="getAccuracyHCCDate",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySCCDate",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.parammaps.fname=this.pasture.table.getdataListParm.parammaps.fname,this.pasture.table2.getdataListParm.parammaps.times=this.pasture.table.getdataListParm.parammaps.times,this.pasture.table2.getdataListParm.parammaps.projname=this.pasture.table.getdataListParm.parammaps.projname,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"0"==this.pasture.radio?(this.pasture.idDriver=!0,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHFT",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySFT",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"1"==this.pasture.radio?(this.pasture.idDriver=!1,this.pasture.isFormulaName=!0,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHFT",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySFT",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"2"==this.pasture.radio?(this.pasture.idDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!0,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHNS",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySNS",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"3"==this.pasture.radio?(this.pasture.idDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!0,this.pasture.isTrainNumber=!1,this.pasture.table.getdataListParm.name="getAccuracyHSC",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySSC",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.pasture.radio&&(this.pasture.idDriver=!1,this.pasture.isFormulaName=!1,this.pasture.isHouseName=!1,this.pasture.isLivestockType=!1,this.pasture.isTrainNumber=!0,this.pasture.table.getdataListParm.name="getAccuracyHCC",this.pasture.table.getdataListParm.offset=1,this.getTabList(),this.pasture.table2.getdataListParm.name="getAccuracySCC",this.pasture.table2.getdataListParm.parammaps.startTime=this.pasture.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.pasture.table.getdataListParm.parammaps.stopTime,this.pasture.table2.getdataListParm.parammaps.fname=this.pasture.table.getdataListParm.parammaps.fname,this.pasture.table2.getdataListParm.parammaps.times=this.pasture.table.getdataListParm.parammaps.times,this.pasture.table2.getdataListParm.parammaps.projname=this.pasture.table.getdataListParm.parammaps.projname,this.pasture.table2.getdataListParm.offset=1,this.getTabList2()),this.pasture.table2.getdataListParm.parammaps.fname=this.pasture.table.getdataListParm.parammaps.fname},getTabList:function(){var t=this;this.pasture.table.listLoading=!0,this.pasture.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.startTime,this.pasture.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.stopTime,Object(n["c"])(this.pasture.table.getdataListParm).then((function(e){null!==e.data.list?t.pasture.table.list=e.data.list:t.pasture.table.list=[],setTimeout((function(){t.pasture.table.listLoading=!1}),100)}))},getTabList2:function(){var t=this;this.pasture.table2.listLoading=!0,this.pasture.table2.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.startTime,this.pasture.table2.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.stopTime,Object(n["c"])(this.pasture.table2.getdataListParm).then((function(e){null!==e.data.list?t.pasture.table2.list=e.data.list:t.pasture.table2.list=[],setTimeout((function(){t.pasture.table2.listLoading=!1}),100)}))},handleQuickJumpChart:function(){var t=document.getElementById("table").offsetHeight+120;window.scrollTo(t,t)},handleQuickJumpTop:function(){window.scrollTo(0,0)},handleChartDate:function(){var t=this;m["MessageBox"].confirm("是否调整以下所有图表查询时间?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e=t,a=Object(d["d"])(t.chartDate[0],"{y}-{m}-{d}"),i=Object(d["d"])(t.chartDate[1],"{y}-{m}-{d}");e.chart1.getdataListParm.parammaps.inputDatetime=t.chartDate,e.chart1.getdataListParm.parammaps.startTime=a,e.chart1.getdataListParm.parammaps.stopTime=i,e.getChart1(),e.chart2.getdataListParm.parammaps.inputDatetime=t.chartDate,e.chart2.getdataListParm.parammaps.startTime=a,e.chart2.getdataListParm.parammaps.stopTime=i,e.getChart2(),e.chart3.getdataListParm.parammaps.inputDatetime=t.chartDate,e.chart3.getdataListParm.parammaps.startTime=a,e.chart3.getdataListParm.parammaps.stopTime=i,e.getChart3(),e.chart4.getdataListParm.parammaps.inputDatetime=t.chartDate,e.chart4.getdataListParm.parammaps.startTime=a,e.chart4.getdataListParm.parammaps.stopTime=i,e.getChart4(),e.chart5.getdataListParm.parammaps.inputDatetime=t.chartDate,e.chart5.getdataListParm.parammaps.startTime=a,e.chart5.getdataListParm.parammaps.stopTime=i,e.getChart5(),e.chart6.getdataListParm.parammaps.inputDatetime=t.chartDate,e.chart6.getdataListParm.parammaps.startTime=a,e.chart6.getdataListParm.parammaps.stopTime=i,e.getChart6()}))},getChart1:function(){var t=this;this.chart1.listLoading=!0,Object(n["e"])(this.chart1.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.chart1.table.list=e.data.data,t.chart1.total=e.data.total,t.chart1.chartLine_data=e.data.list,t.roadChartLine1(t.chart1.chartLine_data)):(t.chart1.list=[],t.chart1.chartLine_data={},t.roadChartLine1(t.chart1.chartLine_data)),setTimeout((function(){t.chart1.listLoading=!1}),100)}))},roadChartLine1:function(t){null!=this.chart1.chartLine&&this.chart1.chartLine.dispose(),this.chart1.chartLine=l.a.init(document.getElementById("chartLine1"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["计划准确率","计划正确率","计划准确率(去除取消重量)"]},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"百分比",min:0,max:100,interval:20,axisLabel:{formatter:"{value}"}}],series:[{name:"计划准确率",type:"bar",itemStyle:{normal:{color:"#7ecf51"}},data:t.data2,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"计划正确率",type:"bar",itemStyle:{normal:{color:"#ff6600"}},data:t.data3,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"计划准确率(去除取消重量)",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:t.data4,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}}]};this.chart1.chartLine.setOption(e),window.onresize=function(){this.chart1.chartLine.resize()}},getChart2:function(){var t=this;this.chart2.listLoading=!0,Object(n["e"])(this.chart2.getdataListParm).then((function(e){null!==e.data.list?(t.chart2.table.list=e.data.data,t.chart2.chartLine_data=e.data.list,t.chart2.total=e.data.total,t.chart2.chart3Data3=e.data.list.data3,t.chart2.total=e.data.total,t.roadChartLine2(t.chart2.chartLine_data)):(t.chart2.list=[],t.chart2.chartLine_data={},t.roadChartLine2(t.chart2.chartLine_data)),setTimeout((function(){t.chart2.listLoading=!1}),100)}))},roadChartLine2:function(t){null!=this.chart2.chartLine&&this.chart2.chartLine.dispose(),this.chart2.chartLine=l.a.init(document.getElementById("chartLine2"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["泌乳牛","后备牛","干奶牛","围产牛"]},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"准确率",min:0,max:100,interval:20,axisLabel:{formatter:"{value}%"}}],series:[{name:"泌乳牛",type:"bar",itemStyle:{normal:{color:"#7ecf51"}},data:t.data2,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"后备牛",type:"bar",itemStyle:{normal:{color:"#ff6600"}},data:t.data3,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"干奶牛",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:t.data4,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"围产牛",type:"bar",itemStyle:{normal:{color:"#ffff00"}},data:t.data5,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}}]};this.chart2.chartLine.setOption(e),window.onresize=function(){this.chart2.chartLine.resize()}},getChart3:function(){var t=this;this.chart3.listLoading=!0,Object(n["e"])(this.chart3.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.chart3.table.list=e.data.data,t.chart3.chartLine_data=e.data.list,t.chart3.total=e.data.total,t.chart3.total=e.data.total,t.roadChartLine3(t.chart3.chartLine_data)):(t.chart3.list=[],t.chart3.chartLine_data={},t.roadChartLine3(t.chart3.chartLine_data)),setTimeout((function(){t.chart3.listLoading=!1}),100)}))},roadChartLine3:function(t){null!=this.chart3.chartLine&&this.chart3.chartLine.dispose(),this.chart3.chartLine=l.a.init(document.getElementById("chartLine3"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["自动跳转","手动跳转","取消次数"]},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"次数",min:0,max:100,interval:20,axisLabel:{formatter:"{value}"}}],series:[{name:"自动跳转",type:"bar",itemStyle:{normal:{color:"#7ecf51"}},data:t.data2,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"手动跳转",type:"bar",itemStyle:{normal:{color:"#ff6600"}},data:t.data3,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}}]};this.chart3.chartLine.setOption(e),window.onresize=function(){this.chart3.chartLine.resize()}},getChart4:function(){var t=this;this.chart4.listLoading=!0,Object(n["e"])(this.chart4.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.chart4.table.list=e.data.data,t.chart4.chartLine_data=e.data.list,t.chart4.total=e.data.total,t.roadChartLine4(t.chart4.chartLine_data)):(t.chart4.list=[],t.chart4.chartLine_data={},t.roadChartLine4(t.chart4.chartLine_data)),setTimeout((function(){t.chart4.listLoading=!1}),100)}))},roadChartLine4:function(t){null!=this.chart4.chartLine&&this.chart4.chartLine.dispose(),this.chart4.chartLine=l.a.init(document.getElementById("chartLine4"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["自动跳转准确率","手动跳转准确率"]},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"混料准确率",min:0,max:100,interval:20,axisLabel:{formatter:"{value}%"}}],series:[{name:"自动跳转准确率",type:"bar",itemStyle:{normal:{color:"#7ecf51"}},data:t.data2,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"手动跳转准确率",type:"bar",itemStyle:{normal:{color:"#ff6600"}},data:t.data3,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}}]};this.chart4.chartLine.setOption(e),window.onresize=function(){this.chart4.chartLine.resize()}},getChart5:function(){var t=this;this.chart5.listLoading=!0,Object(n["e"])(this.chart5.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.chart5.table.list=e.data.data,t.chart5.chartLine_data=e.data.list,t.chart5.total=e.data.total,t.roadChartLine5(t.chart5.chartLine_data)):(t.chart5.list=[],t.chart5.chartLine_data={},t.roadChartLine5(t.chart5.chartLine_data)),setTimeout((function(){t.chart5.listLoading=!1}),100)}))},roadChartLine5:function(t){null!=this.chart5.chartLine&&this.chart5.chartLine.dispose(),this.chart5.chartLine=l.a.init(document.getElementById("chartLine5"));var e={title:{text:""},tooltip:{trigger:"axis",formatter:function(t){if(t.length>0){for(var e=t[0].name,a=0;a<t.length;a++){for(var i=[],s=0;s<=t[a].value.length;s++)""!==t[a].value?"."==t[a].value.charAt(s)&&(i[s]=t[a].value.replace(".",":")):i[s]="";e+="<br>"+t[a].seriesName+": "+i[i.length-1]}return e}}},legend:{data:t.data1,right:10},grid:{top:"20%",left:"5%",right:"8%",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(){if(void 0!==t.data3){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.chart5.chartLine.setOption(e),window.onresize=function(){this.chart5.chartLine.resize()}},getChart6:function(){var t=this;this.chart6.listLoading=!0,Object(n["e"])(this.chart6.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.chart6.table.list=e.data.data,t.chart6.chartLine_data=e.data.list,t.chart6.total=e.data.total,t.roadChartLine6(t.chart6.chartLine_data)):(t.chart6.list=[],t.chart6.chartLine_data={},t.roadChartLine6(t.chart6.chartLine_data)),setTimeout((function(){t.chart6.listLoading=!1}),100)}))},roadChartLine6:function(t){null!=this.chart6.chartLine&&this.chart6.chartLine.dispose(),this.chart6.chartLine=l.a.init(document.getElementById("chartLine6"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["混料计划取消次数"]},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"次数",min:0,max:100,interval:20,axisLabel:{formatter:"{value}%"}}],series:[{name:"混料计划取消次数",type:"bar",itemStyle:{normal:{color:"#7ecf51"}},data:t.data2,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}}]};this.chart6.chartLine.setOption(e),window.onresize=function(){this.chart6.chartLine.resize()}},handleDownload:function(){var t=[{tHeader:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","标准差"],filterVal:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","混料正确数","混料正确率","去除取消正确率","方差"],tableDatas:this.table.list,sheetName:"混料"},{tHeader:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","撒料正确数","撒料正确率","去除取消正确率","标准差"],filterVal:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数","撒料正确数","撒料正确率","去除取消正确率","方差"],tableDatas:this.table2.list,sheetName:"撒料"}];Object(d["c"])(t,"汇总统计-配方名称",!0,"xlsx")},changeChartDate:function(t){"chart1"==t?""!==this.chart1.getdataListParm.parammaps.inputDatetime&&null!==this.chart1.getdataListParm.parammaps.inputDatetime?(this.chart1.getdataListParm.parammaps.startTime=Object(d["d"])(this.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.chart1.getdataListParm.parammaps.stopTime=Object(d["d"])(this.chart1.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart1()):(this.chart1.getdataListParm.parammaps.inputDatetime="",this.chart1.getdataListParm.parammaps.startTime="",this.chart1.getdataListParm.parammaps.stopTime="",this.getChart1()):"chart2"==t?""!==this.chart2.getdataListParm.parammaps.inputDatetime&&null!==this.chart2.getdataListParm.parammaps.inputDatetime?(this.chart2.getdataListParm.parammaps.startTime=Object(d["d"])(this.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.chart2.getdataListParm.parammaps.stopTime=Object(d["d"])(this.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart2()):(this.chart2.getdataListParm.parammaps.inputDatetime="",this.chart2.getdataListParm.parammaps.startTime="",this.chart2.getdataListParm.parammaps.stopTime="",this.getChart2()):"chart3"==t?""!==this.chart3.getdataListParm.parammaps.inputDatetime&&null!==this.chart3.getdataListParm.parammaps.inputDatetime?(this.chart3.getdataListParm.parammaps.startTime=Object(d["d"])(this.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.chart3.getdataListParm.parammaps.stopTime=Object(d["d"])(this.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart3()):(this.chart3.getdataListParm.parammaps.inputDatetime="",this.chart3.getdataListParm.parammaps.startTime="",this.chart3.getdataListParm.parammaps.stopTime="",this.getChart3()):"chart4"==t?""!==this.chart4.getdataListParm.parammaps.inputDatetime&&null!==this.chart4.getdataListParm.parammaps.inputDatetime?(this.chart4.getdataListParm.parammaps.startTime=Object(d["d"])(this.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.chart4.getdataListParm.parammaps.stopTime=Object(d["d"])(this.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart4()):(this.chart4.getdataListParm.parammaps.inputDatetime="",this.chart4.getdataListParm.parammaps.startTime="",this.chart4.getdataListParm.parammaps.stopTime="",this.getChart4()):"chart5"==t?""!==this.chart5.getdataListParm.parammaps.inputDatetime&&null!==this.chart5.getdataListParm.parammaps.inputDatetime?(this.chart5.getdataListParm.parammaps.startTime=Object(d["d"])(this.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.chart5.getdataListParm.parammaps.stopTime=Object(d["d"])(this.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart5()):(this.chart5.getdataListParm.parammaps.inputDatetime="",this.chart5.getdataListParm.parammaps.startTime="",this.chart5.getdataListParm.parammaps.stopTime="",this.getChart5()):"chart6"==t&&(""!==this.chart6.getdataListParm.parammaps.inputDatetime&&null!==this.chart6.getdataListParm.parammaps.inputDatetime?(this.chart6.getdataListParm.parammaps.startTime=Object(d["d"])(this.chart6.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.chart6.getdataListParm.parammaps.stopTime=Object(d["d"])(this.chart6.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart6()):(this.chart6.getdataListParm.parammaps.inputDatetime="",this.chart6.getdataListParm.parammaps.startTime="",this.chart6.getdataListParm.parammaps.stopTime="",this.getChart6()))},handleExport:function(t){if("chart1"==t){var e=[{tHeader:["日期","配方名称","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.chart1.table.list,sheetName:"配方准确率"}];Object(d["c"])(e,"配方准确率",!0,"xlsx")}else if("chart2"==t){var a=[{tHeader:["日期","计划执行重量(kg)","配方理论重量(kg)","计划准确率","计划取消重量(kg)","计划准确率(去除取消重量)","计划正确数","计划数","计划正确率"],filterVal:["日期","实际量","理论量","field1","计划取消重量","field3","正确数","计划数","field2"],tableDatas:this.chart2.table.list,sheetName:"计划统计"}];Object(d["c"])(a,"计划统计",!0,"xlsx")}else if("chart3"==t){var i=[{tHeader:["日期","牲畜类别","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.chart3.table.list,sheetName:"牛群准确率"}];Object(d["c"])(i,"牛群准确率",!0,"xlsx")}else if("chart4"==t){var s=[{tHeader:["日期","车次","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.chart4.table.list,sheetName:"车辆准确率(重量)"}];Object(d["c"])(s,"车辆准确率(重量)",!0,"xlsx")}else if("chart5"==t){var r=[{tHeader:["日期","自动跳转次数","手动跳转次数","自动跳转理论重量","自动跳转实际重量","自动跳转准确率","手动跳转理论重量","手动跳转实际重量","手动跳转准确率"],filterVal:["日期","field1","field2","理论自动","实际自动","field3","理论手动","实际手动","field4"],tableDatas:this.chart5.table.list,sheetName:"混料统计"}];Object(d["c"])(r,"混料统计",!0,"xlsx")}else if("chart6"==t){r=[{tHeader:["日期","自动跳转次数","手动跳转次数","自动跳转理论重量","自动跳转实际重量","自动跳转准确率","手动跳转理论重量","手动跳转实际重量","手动跳转准确率"],filterVal:["日期","field1","field2","理论自动","实际自动","field3","理论手动","实际手动","field4"],tableDatas:this.chart5.table.list,sheetName:"混料计划取消次数"}];Object(d["c"])(r,"混料计划取消次数",!0,"xlsx")}},handleTable:function(t){"chart1"==t?(this.chart1.isTable=!0,this.chart1.isChart=!1):"chart2"==t?(this.chart2.isTable=!0,this.chart2.isChart=!1):"chart3"==t?(this.chart3.isTable=!0,this.chart3.isChart=!1):"chart4"==t?(this.chart4.isTable=!0,this.chart4.isChart=!1):"chart5"==t?(this.chart5.isTable=!0,this.chart5.isChart=!1):"chart6"==t?(this.chart6.isTable=!0,this.chart6.isChart=!1):"chart7"==t&&(this.chart7.isTable=!0,this.chart7.isChart=!1)},handleChart:function(t){"chart1"==t?(this.chart1.isTable=!1,this.chart1.isChart=!0,this.getChart1()):"chart2"==t?(this.chart2.isTable=!1,this.chart2.isChart=!0,this.getChart2()):"chart3"==t?(this.chart3.isTable=!1,this.chart3.isChart=!0,this.getChart3()):"chart4"==t?(this.chart4.isTable=!1,this.chart4.isChart=!0,this.getChart4()):"chart5"==t?(this.chart5.isTable=!1,this.chart5.isChart=!0,this.getChart5()):"chart6"==t?(this.chart6.isTable=!1,this.chart6.isChart=!0,this.getChart6()):"chart7"==t&&(this.chart7.isTable=!1,this.chart7.isChart=!0,this.getChart7())}}},h=u,b=(a("8efb"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"4d1b19b9",null);e["default"]=g.exports},"75ce":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",staticStyle:{width:"90%"}},[a("div",{staticClass:"el-icon-info",staticStyle:{"font-size":"30px",float:"right",color:"#009C69"},on:{click:t.handleDescription}}),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:"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:"decimalPlaces"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"重量小数点位数"},model:{value:t.createTemp.decimalPlaces,callback:function(e){t.$set(t.createTemp,"decimalPlaces",e)},expression:"createTemp.decimalPlaces"}},t._l(t.weightDecimalPlacesList,(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:"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),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:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"车辆载重超出重量禁止比例(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],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:"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.fname,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"剩料分配方式:",prop:"remainOptDis"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"剩料分配方式"},model:{value:t.createTemp.remainOptDis,callback:function(e){t.$set(t.createTemp,"remainOptDis",e)},expression:"createTemp.remainOptDis"}},t._l(t.leftoverMaterialList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.name}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"剩料分配占比原料(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"小料是否称量:",prop:"isSmallMaterial"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"小料是否称量"},model:{value:t.createTemp.isSmallMaterial,callback:function(e){t.$set(t.createTemp,"isSmallMaterial",e)},expression:"createTemp.isSmallMaterial"}},t._l(t.smallMaterialList,(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:"isDataSync"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:0==t.isRoleEdit,filterable:"",placeholder:"是否启用数据同步"},model:{value:t.createTemp.isDataSync,callback:function(e){t.$set(t.createTemp,"isDataSync",e)},expression:"createTemp.isDataSync"}},t._l(t.dataSynchronizationList,(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:"10px"},attrs:{slot:"footer"},slot:"footer"},[t.isRoleEdit?a("el-button",{staticClass:"save",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),a("el-dialog",{attrs:{title:t.textMap[t.description.dialogStatus],"destroy-on-close":!0,visible:t.description.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.description,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-description dialogMinHeight"},[a("div",{staticClass:"content"},[t._v(" 1、是否可取前一天计划:若选择是,代表在当天过了凌晨12点仍可以取到昨天的料。 "),a("br"),t._v(" 2、是否可取后一天计划:若当天做完全部的料需要预备第二天的料的时候可以选择是。 "),a("br"),t._v(" 3、班次数量:控制栏舍配方,计划等页面班次数量。 "),a("br"),t._v(" 4、重量小数点位数:控制栏舍配方、撒料计划等页面重量小数位数。 "),a("br"),t._v(" 5、是否启用饲料合同:若选择是,则开启库存管理中饲料合同页面。 "),a("br"),t._v(" 6、启用饲料锁定牛头数:开启后则配方模板中饲料表显示此字段。 "),a("br"),t._v(" 7、车辆载重超出重量提醒比例:撒料计划中车次分配栏舍重量,当分配的合计重量超出车辆最大重量*此比例时,进行提示。限制输入正整数。 "),a("br"),t._v(" 8、车辆载重超出重量禁止比例:撒料计划中车次分配栏舍重量,当分配的合计重量超出车辆最大重量*此比例时,禁止分配。限制输入正整数。 "),a("br"),t._v(" 9、是否启用补料:若选择是,则栏舍配方中启用此字段。 "),a("br"),t._v(" 10、是否启用剩料:若选择否则剩料计划不可用,剩料量不影响原计划。 "),a("br"),t._v(" 11、剩料处理选项:①若选择转为饲料,按饲料配方整体替换扣减;②如果选择替换某饲料,则此剩料替换待饲喂中的对应饲料量,扣完为止;③不处理:不做剩料计算处理。 "),a("br"),t._v(" 12、剩料分配方式:①顶额分配:按栏舍原撒料量的百分比进行计算,剩料分配为此值,依次计算分配满栏舍,若剩料量未分配完,则剩余剩料不计入内; "),a("br"),t._v(" ②平均分配,按收集的总剩料量平均分配值,若分配值超出栏舍原料量的百分比,剩余值累加到未分配满的栏舍中,最终剩余剩料不计入内。 "),a("br"),t._v(" 13、剩料分配占比原料:剩料应分配量不超出此比例计算出的值,与剩料分配方式关联使用。限制输入正整数。 "),a("br"),t._v(" 14、小料是否称量:若选择是,则饲料表中饲料可选小料称,撒料计划中可设置是否提前称量。 "),a("br"),t._v(" 15、是否启用数据同步:启用后日执行页面开启数据同步按钮,用于与第三方系统数据对接。 ")])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.description.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],1)},s=[],r=(a("a4d3"),a("e01a"),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:[],numberList:[{id:"0",name:"1"},{id:"1",name:"2"},{id:"2",name:"3"},{id:"3",name:"4"}],feedontractList:[{id:"1",name:"是"},{id:"0",name:"否"}],leftoverMaterialList:[{id:"0",name:"顶额分配"},{id:"1",name:"剩料分配"}],weightDecimalPlacesList:[{id:"0",name:"整数"},{id:"1",name:"一位小数"},{id:"2",name:"两位小数"},{id:"3",name:"三位小数"}],smallMaterialList:[{id:"1",name:"是"},{id:"0",name:"否"}],dataSynchronizationList:[{id:"1",name:"是"},{id:"0",name:"否"}],requestParams:[{name:"getRemainFeedList",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],getdataListParm:{name:"getysoptList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey:0,listLoading:!0,createTemp:{},rules:{},description:{dialogFormVisible:!1,dialogStatus:""},textMap:{description:"参数说明"},isokDisable:!1,requestParam:{}}},created:function(){this.getList(),this.getButtons(),this.getDownList()},methods:{getButtons:function(){var t="DefaultParameter",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.disposalList=e.data.getRemainFeedList.list}))},getList:function(){var t=this;this.listLoading=!0,Object(r["c"])(this.getdataListParm).then((function(e){null!==e.data.list?t.createTemp=e.data.list[0]:t.list=[],setTimeout((function(){t.listLoading=!1}),100)}))},handleSave:function(){var t=this;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,decimalPlaces:this.createTemp.decimalPlaces,isEnableContract:this.createTemp.isEnableContract,remainOptDis:this.createTemp.remainOptDis,remainOptRate:this.createTemp.remainOptRate,isSmallMaterial:this.createTemp.isSmallMaterial,isDataSync:this.createTemp.isDataSync}},this.requestParam.data[1]={name:"updateFPbyFTChangeALL",type:"e",parammaps:{pastureid:this.createTemp.pastureid}},Object(r["b"])(this.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},handleRecovery:function(){var t=this;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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}))},handleDescription:function(){this.description.dialogStatus="description",this.description.dialogFormVisible=!0}}},d=c,p=(a("5090"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"0336c769",null);e["default"]=m.exports},"75f0":function(t,e,a){},"77a8":function(t,e,a){"use strict";a("2e3f")},"77d0":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",staticStyle:{width:"100%",height:"385px"}})},s=[],r=a("313e"),l=a.n(r);a("2934"),a("b76a"),a("a78e"),a("ed08"),a("333d");a("817d");var n={name:"PieChart",props:{chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.renderChart(t)}}},mounted:function(){this.renderChart(this.chartData),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,a={title:{text:"Stacked Line"},tooltip:{trigger:"axis"},legend:{data:t.legendArr,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"8%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:t.xAxisArr}],yAxis:[{type:"value",name:"kg"}],series:function(e){for(var a=[{name:"Access From",type:"pie",radius:"50%",data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}],i=0;i<t.xAxisArr.length;i++){var s={name:t.legendArr[i],value:t.dataArr[i]};a[0].data.push(s)}return a}()};setTimeout((function(){e.chart||(e.chart=l.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(a),e.chart.setOption(e.chartOpt)}),0)}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);e["a"]=d.exports},7855:function(t,e,a){"use strict";a("a04c")},"78b6":function(t,e,a){"use strict";a("4059")},"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},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 1102 1024",content:'<symbol class="icon" viewBox="0 0 1102 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="M687.102943 81.133758l392.585242 686.787867c45.528545 79.556801 21.661505 183.295718-53.326687 231.581182-24.81227 15.990129-53.326687 24.497193-82.392489 24.497193H158.798525C71.049737 1024 0 948.539193 0 855.434105c0-30.877491 7.95568-61.203598 23.079349-87.51248L415.664591 81.133758C461.193137 1.576958 558.788063-23.786696 633.776256 24.498768c21.819043 14.099671 40.093477 33.476872 53.326687 56.63499zM551.383767 236.308904a78.76911 78.76911 0 0 0-78.769109 78.76911v236.307328a78.76911 78.76911 0 1 0 157.538219 0V315.078014a78.76911 78.76911 0 0 0-78.76911-78.76911z m0 472.614658a78.76911 78.76911 0 1 0 0 157.538219 78.76911 78.76911 0 0 0 0-157.538219z" p-id="217081" /></symbol>'});l.a.add(n);e["default"]=n},7985:function(t,e,a){"use strict";a("886a")},"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="M698.88 20.48H49.28a35.84 35.84 0 0 0-35.84 35.84v794.24a35.2 35.2 0 0 0 35.84 35.84H512V569.6l224-128v-384a35.84 35.84 0 0 0-37.12-37.12z m-324.48 634.88a14.72 14.72 0 0 1-14.72 14.72H172.16a14.08 14.08 0 0 1-14.08-14.72v-42.88a14.08 14.08 0 0 1 14.08-14.72h187.52a14.72 14.72 0 0 1 14.72 14.72zM518.4 439.04a14.72 14.72 0 0 1-14.08 14.72H172.16a14.72 14.72 0 0 1-14.08-14.72v-43.52A14.08 14.08 0 0 1 172.16 384h332.16a14.08 14.08 0 0 1 14.08 14.08z m72.32-216.32A14.08 14.08 0 0 1 576 236.8H172.16a14.08 14.08 0 0 1-14.08-14.08V179.2a14.72 14.72 0 0 1 14.08-14.72H576a14.72 14.72 0 0 1 14.08 14.72z" p-id="229950" /><path d="M785.92 453.76L547.84 590.72v275.2l238.08 137.6L1024 865.92v-275.2z m0 384A108.8 108.8 0 1 1 896 728.32a108.16 108.16 0 0 1-110.08 108.8z" p-id="229951" /></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 1107 1024",content:'<symbol class="icon" viewBox="0 0 1107 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="M322.694603 290.921026a46.473846 46.473846 0 0 0 46.211282-46.736411V46.73641A46.473846 46.473846 0 0 0 322.694603 0a46.473846 46.473846 0 0 0-46.211282 46.73641V244.184615a46.473846 46.473846 0 0 0 46.211282 46.736411zM675.055629 290.921026a46.473846 46.473846 0 0 0 46.211282-46.736411V46.73641A46.473846 46.473846 0 0 0 675.055629 0 46.473846 46.473846 0 0 0 630.157167 46.73641V244.184615a46.473846 46.473846 0 0 0 44.898462 46.736411z" p-id="217223" /><path d="M897.972552 90.322051h-101.874872V217.928205a121.042051 121.042051 0 1 1-242.084103 0V90.322051h-110.276923V217.928205a121.042051 121.042051 0 1 1-242.084102 0V90.322051H99.77768A100.299487 100.299487 0 0 0 0.003321 191.409231v678.990769A100.562051 100.562051 0 0 0 99.77768 971.487179h798.194872a100.562051 100.562051 0 0 0 99.774359-101.087179V191.409231a100.299487 100.299487 0 0 0-99.774359-101.08718z m-152.812308 733.078975H252.589988a46.998974 46.998974 0 0 1 0-93.735385h492.570256a46.998974 46.998974 0 0 1 0 93.735385z m0-253.636923H252.589988a46.73641 46.73641 0 0 1 0-93.472821h492.570256a46.73641 46.73641 0 0 1 0 93.472821z" p-id="217224" /></symbol>'});l.a.add(n);e["default"]=n},"7ab10":function(t,e,a){},"7ad2":function(t,e,a){"use strict";a("3528")},"7b1b":function(t,e,a){"use strict";a("9cc8")},"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},"7bf7":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-container1"},[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"},[t._e(),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.change_date},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-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("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.ftname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"ftname",e)},expression:"tab.table.getdataListParm.parammaps.ftname"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"栏舍"},model:{value:t.tab.table.getdataListParm.parammaps.barname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"barname",e)},expression:"tab.table.getdataListParm.parammaps.barname"}}):t._e(),t.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"配方模板"},model:{value:t.tab.table.getdataListParm.parammaps.ftname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"ftname",e)},expression:"tab.table.getdataListParm.parammaps.ftname"}}):t._e(),t.tab.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牲畜类别"},model:{value:t.tab.table.getdataListParm.parammaps.cowclass,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"cowclass",e)},expression:"tab.table.getdataListParm.parammaps.cowclass"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"},on:{click:t.handleDownload}},[t._v("导出")]),a("svg-icon",{staticClass:"down",staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpChart}})],1),a("div",{staticClass:"table",attrs:{id:"table"}},[a("u-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,"max-height":t.myHeight}},[t.tab.isFormulaName?a("u-table-column",{attrs:{sortable:"",label:"配方模板","min-width":"70px",align:"center",prop:"配方模板"}}):t._e(),t.tab.isHouseName?a("u-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"70px",align:"center",prop:"栏舍"}}):t._e(),t.tab.isHouseName?a("u-table-column",{attrs:{sortable:"",label:"配方模板","min-width":"70px",align:"center",prop:"配方模板"}}):t._e(),t.tab.isLivestockType?a("u-table-column",{attrs:{sortable:"",label:"牲畜类别","min-width":"70px",align:"center",prop:"牲畜类别"}}):t._e(),a("u-table-column",{attrs:{sortable:"",label:"实际牛头数","min-width":"60px",align:"center",prop:"实际牛头数"}}),a("u-table-column",{attrs:{sortable:"",label:"应混料量(kg)","min-width":"60px",align:"center",prop:"应混料量"}}),a("u-table-column",{attrs:{sortable:"",label:"实际混料量(kg)","min-width":"70px",align:"center",prop:"实际混料量"}}),a("u-table-column",{attrs:{sortable:"",label:"撒料量(kg)","min-width":"60px",align:"center",prop:"撒料量"}}),a("u-table-column",{attrs:{sortable:"",label:"平均混料时间","min-width":"70px",align:"center",prop:"混料时间"}}),a("u-table-column",{attrs:{sortable:"",label:"转投剩料量(kg)","min-width":"70px",align:"center",prop:"转投剩料量"}}),a("u-table-column",{attrs:{sortable:"",label:"今日剩料量(kg)","min-width":"70px",align:"center",prop:"今日剩料量"}}),a("u-table-column",{attrs:{sortable:"",label:"剩料率(%)","min-width":"60px",align:"center",prop:"剩料率"}}),a("u-table-column",{attrs:{sortable:"",label:"TMR干物质(%)","min-width":"65px",align:"center",prop:"TMR干物质"}}),a("u-table-column",{attrs:{sortable:"",label:"配方干物质采食量(kg/头)","min-width":"80px",align:"center",prop:"配方干物质采食量"}}),a("u-table-column",{attrs:{sortable:"",label:"实际干物质采食量(kg/头)","min-width":"80px",align:"center",prop:"实际干物质采食量"}}),a("u-table-column",{attrs:{sortable:"",label:"采食率(%)","min-width":"60px",align:"center",prop:"采食率"}}),a("u-table-column",{attrs:{sortable:"",label:"配方成本(元/头)","min-width":"65px",align:"center",prop:"配方成本"}}),a("u-table-column",{attrs:{sortable:"",label:"实际成本(元/头)","min-width":"65px",align:"center",prop:"实际成本"}}),a("u-table-column",{attrs:{sortable:"",label:"产奶量(kg/头)","min-width":"65px",align:"center",prop:"产奶量"}}),a("u-table-column",{attrs:{sortable:"",label:"饲料转化率(%)","min-width":"60px",align:"center",prop:"饲料转化率"}}),a("u-table-column",{attrs:{sortable:"",label:"公斤奶饲料成本","min-width":"60px",align:"center",prop:"公斤奶饲料成本"}})],1),0==t.tab.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab.table.total)+"条")]):t._e()],1),a("div",{staticClass:"AnalysisChart"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:24}},[a("span",[t._v("图表查询时间:")]),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{"margin-left":"10px",width:"250px","margin-right":"10px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},model:{value:t.tab.chartDate,callback:function(e){t.$set(t.tab,"chartDate",e)},expression:"tab.chartDate"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleChartDate}},[t._v("确认")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:t.handleQuickJumpTop}})],1)],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("泌乳牛干物质采食量")]),t.tab.chart1.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart1")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart1")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart1.isChart?a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine1"}}):t._e(),t.tab.chart1.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"泌乳牛采食量(kg)",sortable:"","min-width":"110px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"泌乳牛产奶量(kg)",sortable:"","min-width":"110px",align:"center",prop:"field2"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("牛栏剩料率")]),t.tab.chart2.isChart?a("div",{staticClass:"button"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart2.getdataListParm.parammaps.statisticsList,option:t.tab.chart2.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart2}}),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"245px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart2")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart2")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart2.isChart?a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine2"}}):t._e(),t.tab.chart2.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"栏舍名称",sortable:"","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"剩料量",sortable:"","min-width":"110px",align:"center",prop:"剩料量"}}),a("el-table-column",{attrs:{label:"撒料量",sortable:"","min-width":"110px",align:"center",prop:"撒料量"}}),a("el-table-column",{attrs:{label:"剩料率",sortable:"","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("混料时间统计")]),t.tab.chart3.isChart?a("div",{staticClass:"button"},[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart3")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart3")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart3.isChart?a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine3"}}):t._e(),t.tab.chart3.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart3")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:{sortable:"",label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{sortable:"",label:"混料时间(分钟)","min-width":"110px",align:"center",prop:"field1"}})],1)],1):t._e()])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("转化率")]),t.tab.chart4.isChart?a("div",{staticClass:"button"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart4.getdataListParm.parammaps.statisticsList,option:t.tab.chart4.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart4}}),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"245px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart4")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart4")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart4.isChart?a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine4"}}):t._e(),t.tab.chart4.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart4")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:{sortable:"",label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{sortable:"",label:"配方名称","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{sortable:"",label:"饲料转化率","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])])],1),a("el-row",{staticClass:"dashboard-editor-container",staticStyle:{"margin-bottom":"30px"},attrs:{gutter:10}},[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"grid-content"},[a("h4",{staticStyle:{"text-align":"center"}},[t._v("成本分析")]),t.tab.chart5.isChart?a("div",{staticClass:"button"},[a("my-select",{ref:"tenantselect",staticStyle:{width:"150px","margin-right":"5px",float:"left"},attrs:{model:t.tab.chart5.getdataListParm.parammaps.statisticsList,option:t.tab.chart5.statisticsList,value:"name",label:"name",placeholder:"请选择统计参数"},on:{searchSelect:t.changeStatisticChart5}}),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:function(e){return t.changeChartDate("chart5")}},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("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("chart5")}}},[t._v("切换表格")])],1):t._e(),t.tab.chart5.isChart?a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine5"}}):t._e(),t.tab.chart5.isTable?a("div",{staticClass:"table"},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("chart5")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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:{sortable:"",label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{sortable:"",label:"牲畜类别","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{sortable:"",label:"公斤奶饲料成本(元)","min-width":"110px",align:"center",prop:"准确率"}})],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:{clearable:!1,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeTab2Date},model:{value:t.tab2.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"date",e)},expression:"tab2.table.getdataListParm.parammaps.date"}})],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,height:"400px"}},[a("el-table-column",{attrs:{sortable:"",label:"宾州筛","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{sortable:"",label:"第一层重量","min-width":"60px",align:"center",prop:"oneweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第一层百分比","min-width":"60px",align:"center",prop:"onerate"}}),a("el-table-column",{attrs:{sortable:"",label:"第二层重量","min-width":"60px",align:"center",prop:"twoweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第二层百分比","min-width":"60px",align:"center",prop:"tworate"}}),a("el-table-column",{attrs:{sortable:"",label:"第三层重量","min-width":"60px",align:"center",prop:"threeweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第三层百分比","min-width":"60px",align:"center",prop:"threerate"}}),a("el-table-column",{attrs:{sortable:"",label:"第四层重量","min-width":"60px",align:"center",prop:"fourweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第四层百分比","min-width":"60px",align:"center",prop:"fourrate"}}),a("el-table-column",{attrs:{sortable:"",label:"参考标准","min-width":"50px",align:"center",prop:"standard"}})],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,height:"400px"}},[a("el-table-column",{attrs:{sortable:"",label:"粪便筛","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{sortable:"",label:"第一层重量","min-width":"60px",align:"center",prop:"oneweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第一层百分比","min-width":"60px",align:"center",prop:"onerate"}}),a("el-table-column",{attrs:{sortable:"",label:"第二层重量","min-width":"60px",align:"center",prop:"twoweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第二层百分比","min-width":"60px",align:"center",prop:"tworate"}}),a("el-table-column",{attrs:{sortable:"",label:"第三层重量","min-width":"60px",align:"center",prop:"threeweight"}}),a("el-table-column",{attrs:{sortable:"",label:"第三层百分比","min-width":"60px",align:"center",prop:"threerate"}}),a("el-table-column",{attrs:{sortable:"",label:"参考标准","min-width":"50px",align:"center",prop:"standard"}})],1)],1)],1),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.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,height:"400px"}},[a("el-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{sortable:"",label:"抽查样本数","min-width":"60px",align:"center",prop:"sumcowcount"}}),a("el-table-column",{attrs:{sortable:"",label:"单产","min-width":"60px",align:"center",prop:"product"}}),a("el-table-column",{attrs:{sortable:"",label:"干物质采食量","min-width":"60px",align:"center",prop:"dryweight"}}),a("el-table-column",{attrs:{sortable:"",label:"泌乳天数","min-width":"50px",align:"center",prop:"avgdim"}}),a("el-table-column",{attrs:{sortable:"",label:"标准分数","min-width":"50px",align:"center",prop:"standardscore"}}),a("el-table-column",{attrs:{sortable:"",label:"2.5-分(数量、百分比)","min-width":"100px",align:"center",prop:"score25"}}),a("el-table-column",{attrs:{sortable:"",label:"2.75分(数量、百分比)","min-width":"100px",align:"center",prop:"score275"}}),a("el-table-column",{attrs:{sortable:"",label:"3分(数量、百分比)","min-width":"90px",align:"center",prop:"score3"}}),a("el-table-column",{attrs:{sortable:"",label:"3.25分(数量、百分比)","min-width":"100px",align:"center",prop:"score325"}}),a("el-table-column",{attrs:{sortable:"",label:"3.5分(数量、百分比)","min-width":"100px",align:"center",prop:"score35"}}),a("el-table-column",{attrs:{sortable:"",label:"3.75分(数量、百分比)","min-width":"100px",align:"center",prop:"score375"}}),a("el-table-column",{attrs:{sortable:"",label:"4+分(数量、百分比)","min-width":"100px",align:"center",prop:"score4"}})],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,height:"400px"}},[a("el-table-column",{attrs:{sortable:"",label:"栏舍","min-width":"60px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{sortable:"",label:"抽查样本数","min-width":"60px",align:"center",prop:"sumcowcount"}}),a("el-table-column",{attrs:{sortable:"",label:"单产","min-width":"60px",align:"center",prop:"product"}}),a("el-table-column",{attrs:{sortable:"",label:"干物质采食量","min-width":"60px",align:"center",prop:"dryweight"}}),a("el-table-column",{attrs:{sortable:"",label:"泌乳天数","min-width":"60px",align:"center",prop:"avgdim"}}),a("el-table-column",{attrs:{sortable:"",label:"标准分数","min-width":"60px",align:"center",prop:"standardscore"}}),a("el-table-column",{attrs:{sortable:"",label:"1分(数量、百分比)","min-width":"90px",align:"center",prop:"score1"}}),a("el-table-column",{attrs:{sortable:"",label:"2分(数量、百分比)","min-width":"90px",align:"center",prop:"score2"}}),a("el-table-column",{attrs:{sortable:"",label:"3分(数量、百分比)","min-width":"90px",align:"center",prop:"score3"}}),a("el-table-column",{attrs:{sortable:"",label:"4分(数量、百分比)","min-width":"90px",align:"center",prop:"score4"}}),a("el-table-column",{attrs:{sortable:"",label:"5分(数量、百分比)","min-width":"90px",align:"center",prop:"score5"}})],1)],1)],1)],1)])],1)],1)},s=[],r=(a("b0c0"),a("7db0"),a("d3b7"),a("313e")),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08"),p=a("333d"),m=a("5c96"),u=a("664b");a("817d");var h={name:"PastureFeedingEfficiency",components:{Pagination:p["a"],mySelect:u["a"]},data:function(){var t=this;return{pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},activeName:"first",tab:{radio:"1",isFormulaName:!0,isHouseName:!1,isLivestockType:!1,chartDate:[],table:{getdataListParm:{name:"getFeedEfficiencyFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:Object(d["d"])(new Date,"{y}-{m}-{d}"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],ftname:"",barname:"",cowclass:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffMR",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart2Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart3:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart4:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffZH",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart4Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart5:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffCBFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart5Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}},tab2:{table:{getdataListParm:{name:"getAssessCowPenn",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:Object(d["d"])(new Date,"{y}-{m}-{d}")}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table2:{getdataListParm:{name:"getAssessCowDung",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table3:{getdataListParm:{name:"getAssessBodyscore",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},table4:{getdataListParm:{name:"getAssessDungscore",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-210}},created:function(){this.getTabList(),this.getTimeFn(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()},mounted:function(){},methods:{change_date:function(t){this.downTMR.parammaps.startdate=this.table.getdataListParm.parammaps.startTime,this.downTMR.parammaps.enddate=this.table.getdataListParm.parammaps.stopTime},getTimeFn:function(){var t=this,e=new Date,a=new Date,i=new Date;i.setTime(i.getTime()-864e5),a.setTime(a.getTime()-864e6),e.setTime(e.getTime()-864e5),t.tab.table.getdataListParm.parammaps.date=Object(d["d"])(i,"{y}-{m}-{d}"),t.tab.chartDate[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chartDate[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[0]=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.inputDatetime[1]=Object(d["d"])(e,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.startTime=Object(d["d"])(a,"{y}-{m}-{d}"),t.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}")},handleDownload:function(){if("1"==this.tab.radio){var t=[{tHeader:["配方模板","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","平均混料时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方干物质采食量(kg/头)","实际干物质采食量(kg/头)","采食率(%)","配方成本(元/头 )","实际成本(元/ 头)","产奶量(kg /头)","饲料转化率","公斤奶饲料成本"],filterVal:["配方模板","实际牛头数","应混料量","实际混料量","撒料量","混料时间","转投剩料量","今日剩料量","剩料率","TMR干物质","配方干物质采食量","实际干物质采食量","采食率","配方成本","实际成本","产奶量","饲料转化率","公斤奶饲料成本"],tableDatas:this.tab.table.list,sheetName:"配方"}];Object(d["c"])(t,"效率统计-配方",!0,"xlsx")}else if("2"==this.tab.radio){var e=[{tHeader:["栏舍","配方模板","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","平均混料时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方干物质采食量(kg/头)"," 实际干物质采食量( kg/头)","采食率 (%)","配方成本( 元/头)","实际成本 (元/头)","产奶量(kg/头)","饲料转化率","公斤奶饲料成本"],filterVal:["栏舍","配方模板","实际牛头数","应混料量","实际混料量","撒料量","混料时间","转投剩料量","今日剩料量","剩料率","TMR干物质","配方干物质采食量","实际干物质采食量","采食率","配方成本","实际成本","产奶量","饲料转化率","公斤奶饲料成本"],tableDatas:this.tab.table.list,sheetName:"栏舍"}];Object(d["c"])(e,"效率统计-栏舍",!0,"xlsx")}else if("3"==this.tab.radio){var a=[{tHeader:["牲畜类别","实际牛头数","应混料量(kg)","实际混料量(kg)","撒料量(kg)","平均混料时间(min)","转投剩料量(kg)","今日剩料量(kg)","剩料率(%)","TMR干物质(%)","配方 物质采食量(kg/ 头)","实际干物质采 食量(kg/头)"," 采食率(%)","配方 成本(元/头)","实际成本(元/头)","产奶量(kg/头)","饲料转化率","公斤奶饲料成本"],filterVal:["牲畜类别","实际牛头数","应混料量","实际混料量","撒料量","混料时间","转投剩料量","今日剩料量","剩料率","TMR干物质","配方干物质采食量","实际干物质采食量"," 采食率","配方成本","实际成本","产奶量","饲料转化率","公斤奶饲料成本"],tableDatas:this.tab.table.list,sheetName:"牲畜类别"}];Object(d["c"])(a,"效率统计-牲畜类别",!0,"xlsx")}},handleTabClick:function(){if("first"==this.activeName){var t=new Date;t.setTime(t.getTime()-864e5),this.tab.table.getdataListParm.parammaps.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(t,"{y}-{m}-{d}"),this.getTabList(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()}else if("second"==this.activeName){var e=new Date;e.setTime(e.getTime()-864e5),this.tab2.table.getdataListParm.parammaps.date=Object(d["d"])(e,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(e,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(e,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},changeRadio:function(){"1"==this.tab.radio?(this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.barname="",this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.cowclass="",this.tab.table.getdataListParm.name="getFeedEfficiencyFT",this.getTabList(),this.tab.chart5.statisticsList=[],this.tab.chart5.getdataListParm.name="getFeedEffCBFT",this.getChart5(),this.tab.chart4.getdataListParm.name="getFeedEffZH",this.getChart4()):"2"==this.tab.radio?(this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.barname="",this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.cowclass="",this.tab.table.getdataListParm.name="getFeedEfficiencyLS",this.getTabList(),this.tab.chart5.statisticsList=[],this.tab.chart5.getdataListParm.name="getFeedEffCBLS",this.getChart5(),this.tab.chart4.getdataListParm.name="getFeedEffZHLS",this.getChart4()):"3"==this.tab.radio&&(this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.barname="",this.tab.table.getdataListParm.parammaps.ftname="",this.tab.table.getdataListParm.parammaps.cowclass="",this.tab.table.getdataListParm.name="getFeedEfficiencySC",this.getTabList(),this.tab.chart5.statisticsList=[],this.tab.chart5.getdataListParm.name="getFeedEffCB",this.getChart5(),this.tab.chart4.getdataListParm.name="getFeedEffZHSC",this.getChart4())},getTabList:function(){var t=this;this.tab.table.listLoading=!0,Object(n["c"])(this.tab.table.getdataListParm).then((function(e){null!==e.data&&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(){"1"==this.tab.radio?(this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getFeedEfficiencyFT",this.getTabList()):"2"==this.tab.radio?(this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getFeedEfficiencyLS",this.getTabList()):"3"==this.tab.radio&&(this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.table.getdataListParm.name="getFeedEfficiencySC",this.getTabList())},handleBefore:function(){if(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList()},handleNext:function(){if(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList()},handleBefore2:function(){if(""!==this.tab2.table.getdataListParm.parammaps.date&&null!==this.tab2.table.getdataListParm.parammaps.date){this.tab2.table.getdataListParm.parammaps.date=new Date(this.tab2.table.getdataListParm.parammaps.date);var t=new Date(this.tab2.table.getdataListParm.parammaps.date.setDate(this.tab2.table.getdataListParm.parammaps.date.getDate()-1));this.tab2.table.getdataListParm.parammaps.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},handleNext2:function(){if(""!==this.tab2.table.getdataListParm.parammaps.date&&null!==this.tab2.table.getdataListParm.parammaps.date){this.tab2.table.getdataListParm.parammaps.date=new Date(this.tab2.table.getdataListParm.parammaps.date);var t=new Date(this.tab2.table.getdataListParm.parammaps.date.setDate(this.tab2.table.getdataListParm.parammaps.date.getDate()+1));this.tab2.table.getdataListParm.parammaps.date=Object(d["d"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},handleQuickJumpChart:function(){var t=document.getElementById("table").offsetHeight+120;window.scrollTo(t,t)},handleQuickJumpTop:function(){window.scrollTo(0,0)},handleChartDate:function(){var t=this;m["MessageBox"].confirm("是否调整以下所有图表查询时间?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e=t,a=Object(d["d"])(t.tab.chartDate[0],"{y}-{m}-{d}"),i=Object(d["d"])(t.tab.chartDate[1],"{y}-{m}-{d}");e.tab.chart1.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart1.getdataListParm.parammaps.startTime=a,e.tab.chart1.getdataListParm.parammaps.stopTime=i,e.getChart1(),e.tab.chart2.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart2.getdataListParm.parammaps.startTime=a,e.tab.chart2.getdataListParm.parammaps.stopTime=i,e.getChart2(),e.tab.chart3.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart3.getdataListParm.parammaps.startTime=a,e.tab.chart3.getdataListParm.parammaps.stopTime=i,e.getChart3(),e.tab.chart4.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart4.getdataListParm.parammaps.startTime=a,e.tab.chart4.getdataListParm.parammaps.stopTime=i,e.getChart4(),e.tab.chart5.getdataListParm.parammaps.inputDatetime=t.tab.chartDate,e.tab.chart5.getdataListParm.parammaps.startTime=a,e.tab.chart5.getdataListParm.parammaps.stopTime=i,e.getChart5()}))},getChart1:function(){var t=this;this.tab.chart1.listLoading=!0,Object(n["e"])(this.tab.chart1.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2));t.tab.chart1.table.list=e.data.data,t.tab.chart1.chartLine_data=e.data.list}else t.tab.chart1.list=[],t.tab.chart1.chartLine_data={};t.roadChartLine1(t.tab.chart1.chartLine_data),setTimeout((function(){t.tab.chart1.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",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["泌乳牛干物质采食量","泌乳牛产奶量"],right:10},grid:{top:"20%",left:"8%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:t.data1}],yAxis:[{splitLine:{show:!1},type:"value",name:"泌乳牛干物质\n采食量",axisLabel:{formatter:"{value} "}},{splitLine:{show:!1},type:"value",name:"泌乳牛产奶量",axisLabel:{formatter:"{value} "}}],series:[{name:"泌乳牛干物质采食量",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:t.data2},{name:"泌乳牛产奶量",type:"line",itemStyle:{normal:{color:"#ff2d2d"}},yAxisIndex:1,data:t.data3}]};this.tab.chart1.chartLine.setOption(e),window.onresize=function(){this.tab.chart1.chartLine.resize()}},changeStatisticChart2:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart2.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart2.statisticsList.find((function(a){return a.name==e.tab.chart2.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart2.chart2Data3.length;i++)i==a&&s.push(e.tab.chart2.chart2Data3[i])},l=0;l<this.tab.chart2.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart2.chartLine_data.data3=s,this.tab.chart2.chartLine_data.data1=this.tab.chart2.getdataListParm.parammaps.statisticsList,this.roadChartLine2(this.tab.chart2.chartLine_data)},getChart2:function(){var t=this;this.tab.chart2.listLoading=!0,Object(n["e"])(this.tab.chart2.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].剩料量&&void 0!==e.data.data[a].剩料量&&(e.data.data[a].剩料量=parseFloat(e.data.data[a].剩料量)),""!==e.data.data[a].撒料量&&void 0!==e.data.data[a].撒料量&&(e.data.data[a].撒料量=parseFloat(e.data.data[a].撒料量)),""!==e.data.data[a].准确率&&void 0!==e.data.data[a].准确率&&(e.data.data[a].准确率=parseFloat(e.data.data[a].准确率));t.tab.chart2.table.list=e.data.data,t.tab.chart2.chartLine_data=e.data.list,t.tab.chart2.total=e.data.total,t.tab.chart2.statisticsList=[],t.tab.chart2.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<e.data.list.data1.length;i++){t.tab.chart2.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[i]);var s={};s.id=i,s.name=e.data.list.data1[i],t.tab.chart2.statisticsList.push(s)}t.tab.chart2.chart2Data3=e.data.list.data3,t.tab.chart2.total=e.data.total;for(var r=[],l=function(e){for(var a=t.tab.chart2.statisticsList.find((function(a){return a.name==t.tab.chart2.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart2.chart2Data3.length;i++)i==a&&r.push(t.tab.chart2.chart2Data3[i])},n=0;n<t.tab.chart2.getdataListParm.parammaps.statisticsList.length;n++)l(n);t.tab.chart2.chartLine_data.data3=r,t.tab.chart2.chartLine_data.data1=t.tab.chart2.getdataListParm.parammaps.statisticsList}else t.tab.chart2.list=[],t.tab.chart2.chartLine_data={};t.roadChartLine2(t.tab.chart2.chartLine_data),setTimeout((function(){t.tab.chart2.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,right:10},grid:{top:"20%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"剩料率",axisLabel:{formatter:"{value} %"}},series:function(){var e=[];if(void 0!==t.data3)for(var 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["e"])(this.tab.chart3.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab.chart3.table.list=e.data.data,t.tab.chart3.chartLine_data=e.data.list,t.tab.chart3.total=e.data.total,t.tab.chart3.total=e.data.total):(t.tab.chart3.list=[],t.tab.chart3.chartLine_data={}),t.roadChartLine3(t.tab.chart3.chartLine_data),setTimeout((function(){t.tab.chart3.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:["混料时间"],right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data1,name:"日期"},yAxis:{type:"value",name:"分钟",axisLabel:{formatter:"{value}min"}},series:[{name:"混料时间",type:"line",stack:"总量",data:t.data2}]};this.tab.chart3.chartLine.setOption(e),window.onresize=function(){this.tab.chart3.chartLine.resize()}},changeStatisticChart4:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart4.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart4.statisticsList.find((function(a){return a.name==e.tab.chart4.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart4.chart4Data3.length;i++)i==a&&s.push(e.tab.chart4.chart4Data3[i])},l=0;l<this.tab.chart4.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart4.chartLine_data.data3=s,this.tab.chart4.chartLine_data.data1=this.tab.chart4.getdataListParm.parammaps.statisticsList,this.roadChartLine4(this.tab.chart4.chartLine_data)},getChart4:function(){var t=this;this.tab.chart4.listLoading=!0,Object(n["e"])(this.tab.chart4.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){t.tab.chart4.table.list=e.data.data,t.tab.chart4.chartLine_data=e.data.list,t.tab.chart4.total=e.data.total,t.tab.chart4.statisticsList=[],t.tab.chart4.getdataListParm.parammaps.statisticsList=[];for(var a=0;a<e.data.list.data1.length;a++){t.tab.chart4.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[a]);var i={};i.id=a,i.name=e.data.list.data1[a],t.tab.chart4.statisticsList.push(i)}t.tab.chart4.chart4Data3=e.data.list.data3,t.tab.chart4.total=e.data.total;for(var s=[],r=function(e){for(var a=t.tab.chart4.statisticsList.find((function(a){return a.name==t.tab.chart4.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart4.chart4Data3.length;i++)i==a&&s.push(t.tab.chart4.chart4Data3[i])},l=0;l<t.tab.chart4.getdataListParm.parammaps.statisticsList.length;l++)r(l);t.tab.chart4.chartLine_data.data3=s,t.tab.chart4.chartLine_data.data1=t.tab.chart4.getdataListParm.parammaps.statisticsList}else t.tab.chart4.list=[],t.tab.chart4.chartLine_data={};t.roadChartLine4(t.tab.chart4.chartLine_data),setTimeout((function(){t.tab.chart4.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,right:10},grid:{top:"20%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:function(){var e=[];if(void 0!==t.data3)for(var 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()}},changeStatisticChart5:function(t){for(var e=this,a=[],i=0;i<t.length;i++)"all"!==t[i]&&a.push(t[i]);this.tab.chart5.getdataListParm.parammaps.statisticsList=a;for(var s=[],r=function(t){for(var a=e.tab.chart5.statisticsList.find((function(a){return a.name==e.tab.chart5.getdataListParm.parammaps.statisticsList[t]})).id,i=0;i<e.tab.chart5.chart5Data3.length;i++)i==a&&s.push(e.tab.chart5.chart5Data3[i])},l=0;l<this.tab.chart5.getdataListParm.parammaps.statisticsList.length;l++)r(l);this.tab.chart5.chartLine_data.data3=s,this.tab.chart5.chartLine_data.data1=this.tab.chart5.getdataListParm.parammaps.statisticsList,this.roadChartLine5(this.tab.chart5.chartLine_data)},getChart5:function(){var t=this;this.tab.chart5.listLoading=!0,Object(n["e"])(this.tab.chart5.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){t.tab.chart5.table.list=e.data.data,t.tab.chart5.chartLine_data=e.data.list,t.tab.chart5.total=e.data.total,t.tab.chart5.statisticsList=[],t.tab.chart5.getdataListParm.parammaps.statisticsList=[];for(var a=0;a<e.data.list.data1.length;a++){t.tab.chart5.getdataListParm.parammaps.statisticsList.push(e.data.list.data1[a]);var i={};i.id=a,i.name=e.data.list.data1[a],t.tab.chart5.statisticsList.push(i)}t.tab.chart5.chart5Data3=e.data.list.data3,t.tab.chart5.total=e.data.total;for(var s=[],r=function(e){for(var a=t.tab.chart5.statisticsList.find((function(a){return a.name==t.tab.chart5.getdataListParm.parammaps.statisticsList[e]})).id,i=0;i<t.tab.chart5.chart5Data3.length;i++)i==a&&s.push(t.tab.chart5.chart5Data3[i])},l=0;l<t.tab.chart5.getdataListParm.parammaps.statisticsList.length;l++)r(l);t.tab.chart5.chartLine_data.data3=s,t.tab.chart5.chartLine_data.data1=t.tab.chart5.getdataListParm.parammaps.statisticsList}else t.tab.chart5.list=[];t.roadChartLine5(t.tab.chart5.chartLine_data),setTimeout((function(){t.tab.chart5.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,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"公斤奶饲料成本(元)"},series:function(){var e=[];if(void 0!==t.data3)for(var 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()}},changeChartDate:function(t){"chart1"==t?""!==this.tab.chart1.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart1.getdataListParm.parammaps.inputDatetime?(this.tab.chart1.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart1()):(this.tab.chart1.getdataListParm.parammaps.inputDatetime="",this.tab.chart1.getdataListParm.parammaps.startTime="",this.tab.chart1.getdataListParm.parammaps.stopTime="",this.getChart1()):"chart2"==t?""!==this.tab.chart2.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart2.getdataListParm.parammaps.inputDatetime?(this.tab.chart2.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart2()):(this.tab.chart2.getdataListParm.parammaps.inputDatetime="",this.tab.chart2.getdataListParm.parammaps.startTime="",this.tab.chart2.getdataListParm.parammaps.stopTime="",this.getChart2()):"chart3"==t?""!==this.tab.chart3.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart3.getdataListParm.parammaps.inputDatetime?(this.tab.chart3.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart3()):(this.tab.chart3.getdataListParm.parammaps.inputDatetime="",this.tab.chart3.getdataListParm.parammaps.startTime="",this.tab.chart3.getdataListParm.parammaps.stopTime="",this.getChart3()):"chart4"==t?""!==this.tab.chart4.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart4.getdataListParm.parammaps.inputDatetime?(this.tab.chart4.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart4()):(this.tab.chart4.getdataListParm.parammaps.inputDatetime="",this.tab.chart4.getdataListParm.parammaps.startTime="",this.tab.chart4.getdataListParm.parammaps.stopTime="",this.getChart4()):"chart5"==t&&(""!==this.tab.chart5.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart5.getdataListParm.parammaps.inputDatetime?(this.tab.chart5.getdataListParm.parammaps.startTime=Object(d["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["d"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart5()):(this.tab.chart5.getdataListParm.parammaps.inputDatetime="",this.tab.chart5.getdataListParm.parammaps.startTime="",this.tab.chart5.getdataListParm.parammaps.stopTime="",this.getChart5()))},handleExport:function(t){if("chart1"==t){var e=[{tHeader:["日期","泌乳牛采食量","泌乳牛产奶量"],filterVal:["日期","field1","field2"],tableDatas:this.tab.chart1.table.list,sheetName:"泌乳牛采食量"}];Object(d["c"])(e,"泌乳牛采食量",!0,"xlsx")}else if("chart2"==t){var a=[{tHeader:["日期","栏舍名称","剩料量","撒料量","剩料率"],filterVal:["日期","名称","剩料量","撒料量","准确率"],tableDatas:this.tab.chart2.table.list,sheetName:"牛栏剩料率"}];Object(d["c"])(a,"牛栏剩料率",!0,"xlsx")}else if("chart3"==t){var i=[{tHeader:["日期","混料时间(分钟)"],filterVal:["日期","field1"],tableDatas:this.tab.chart3.table.list,sheetName:"混料时间统计"}];Object(d["c"])(i,"混料时间统计",!0,"xlsx")}else if("chart4"==t){var s=[{tHeader:["日期","配方名称","饲料转化率"],filterVal:["日期","名称","准确率"],tableDatas:this.tab.chart4.table.list,sheetName:"转化率统计"}];Object(d["c"])(s,"转化率",!0,"xlsx")}else if("chart5"==t){var r=[{tHeader:["日期","牲畜类别","公斤奶饲料成本(元)"],filterVal:["日期","名称","准确率"],tableDatas:this.tab.chart5.table.list,sheetName:"成本分析"}];Object(d["c"])(r,"成本分析",!0,"xlsx")}},handleTable:function(t){"chart1"==t?(this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1):"chart2"==t?(this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1):"chart3"==t?(this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1):"chart4"==t?(this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1):"chart5"==t&&(this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1)},handleChart:function(t){"chart1"==t?(this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0,this.getChart1()):"chart2"==t?(this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0,this.getChart2()):"chart3"==t?(this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0,this.getChart3()):"chart4"==t?(this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0,this.getChart4()):"chart5"==t&&(this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0,this.getChart5())},changeTab2Date:function(){this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,Object(n["c"])(this.tab2.table.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab2.table.list=e.data.list,t.tab2.table.total=e.data.total):t.tab2.table.list=[],setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},getTab2List2:function(){var t=this;this.tab2.table2.listLoading=!0,this.tab2.table2.getdataListParm.parammaps.date=this.tab2.table.getdataListParm.parammaps.date,Object(n["c"])(this.tab2.table2.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab2.table2.list=e.data.list,t.tab2.table2.total=e.data.total):t.tab2.table2.list=[],setTimeout((function(){t.tab2.table2.listLoading=!1}),100)}))},getTab2List3:function(){var t=this;this.tab2.table3.listLoading=!0,this.tab2.table3.getdataListParm.parammaps.date=this.tab2.table.getdataListParm.parammaps.date,Object(n["c"])(this.tab2.table3.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab2.table3.list=e.data.list,t.tab2.table3.total=e.data.total):t.tab2.table3.list=[],setTimeout((function(){t.tab2.table3.listLoading=!1}),100)}))},getTab2List4:function(){var t=this;this.tab2.table4.listLoading=!0,this.tab2.table4.getdataListParm.parammaps.date=this.tab2.table.getdataListParm.parammaps.date,Object(n["c"])(this.tab2.table4.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.tab2.table4.list=e.data.list,t.tab2.table4.total=e.data.total):t.tab2.table4.list=[],setTimeout((function(){t.tab2.table4.listLoading=!1}),100)}))}}},b=h,g=(a("bda2"),a("2877")),f=Object(g["a"])(b,i,s,!1,null,"5c450e42",null);e["default"]=f.exports},"7c37":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.tab2.table.getdataListParm.parammaps.pastureName,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"pastureName",e)},expression:"tab2.table.getdataListParm.parammaps.pastureName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"状态",clearable:""},model:{value:t.tab2.table.getdataListParm.parammaps.enable,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"enable",e)},expression:"tab2.table.getdataListParm.parammaps.enable"}},t._l(t.stateList,(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.tab2.table.getdataListParm.parammaps.statue,callback:function(e){t.$set(t.tab2.table.getdataListParm.parammaps,"statue",e)},expression:"tab2.table.getdataListParm.parammaps.statue"}},t._l(t.isBelongGroupList,(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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e()],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:"序号",align:"center",type:"index",width:"50px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tab2.table.pageNum-1)*t.tab2.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"牧场ID","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.pasturecode))]):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.pasturecode,callback:function(a){t.$set(e.row,"pasturecode",a)},expression:"scope.row.pasturecode"}}):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.pasturename))]):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.pasturename,callback:function(a){t.$set(e.row,"pasturename",a)},expression:"scope.row.pasturename"}}):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.user))]):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.user,callback:function(a){t.$set(e.row,"user",a)},expression:"scope.row.user"}}):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:"权限归属","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.groupsname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{clearable:!1,filterable:"",placeholder:"权限归属",clearable:""},model:{value:e.row.groupsid,callback:function(a){t.$set(e.row,"groupsid",a)},expression:"scope.row.groupsid"}},t._l(t.belongGroupList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.groupsname,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.note))]):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.note,callback:function(a){t.$set(e.row,"note",a)},expression:"scope.row.note"}}):t._e()]}}])}),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[i.NoEdit&&t.isRoleEdit?a("a",{staticClass:"correcting",on:{click:function(e){return t.handlePageConfiguration(i)}}},[t._v("页面配置")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-folder-checked",disabled:t.isokDisable},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-folder-checked",disabled:t.isokDisable},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tab2.table.total>=0,expression:"tab2.table.total>=0"}],attrs:{total:t.tab2.table.total,page:t.tab2.table.getdataListParm.offset,limit:t.tab2.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.tab2.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.tab2.table.getdataListParm,"pagecount",e)},pagination:t.getList}})],1),a("el-dialog",{attrs:{title:t.textMap[t.tab1.pageConfiguration.dialogStatus],visible:t.tab1.pageConfiguration.dialogFormVisible,"close-on-click-modal":!1,width:"25%"},on:{"update:visible":function(e){return t.$set(t.tab1.pageConfiguration,"dialogFormVisible",e)}}},[a("div",{staticStyle:{height:"400px","overflow-y":"auto"}},[a("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:t.tab1.pageConfiguration.listLoading,expression:"tab1.pageConfiguration.listLoading"}],ref:"tree",attrs:{"show-checkbox":"","node-key":"id","default-expand-all":!0,data:t.tab1.pageConfiguration.data,props:t.tab1.pageConfiguration.defaultProps,"default-checked-keys":t.tab1.pageConfiguration.defaultCheckedKeys},on:{"check-change":t.handelCheckChange}})],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.tab1.pageConfiguration.dialogFormVisible=!1,t.getList()}}},[t._v("取消")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.pageConfigurationData()}}},[t._v("确认")])],1)])],1)},s=[],r=a("ade3"),l=(a("a434"),a("d81d"),a("a630"),a("3ca3"),a("d3b7"),a("6062"),a("ddb0"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("2934")),n=(a("a78e"),a("333d")),o={name:"OperationManagement",components:{Pagination:n["a"]},data:function(){return{requestParams:[{name:"getGroupsAllList",offset:0,pagecount:0,parammaps:{}}],isRoleEdit:[],stateList:[{id:1,name:"启用"},{id:0,name:"禁止"}],isBelongGroupList:[{id:1,name:"是"},{id:0,name:"否"}],belongGroupList:[],tab1:{pageConfiguration:{dialogFormVisible:!1,dialogStatus:"",temp:{},listLoading:!0,getdataListParm:{name:"getMenuandButtonlistMC"},parentType:[],defaultProps:{children:"children",label:"name"},defaultCheckedKeys:[],arrList:[]}},tab2:{table:{getdataListParm:{name:"groupsrelationlistMCAll",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureName:"",enable:"",statue:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},pageConfiguration:{temp:{}}},requestParam:{},rules:{},isokDisable:!1,textMap:{pageConfiguration:"页面配置",relation:"关联"},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons(),this.getDownList()},methods:{getButtons:function(){var t="Role",e=Object(l["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(l["d"])(this.requestParams).then((function(e){t.belongGroupList=e.data.getGroupsAllList.list}))},handleEnableChange:function(){},handleSearch:function(){this.tab2.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.tab2.table.getdataListParm.parammaps.pastureName="",this.tab2.table.getdataListParm.parammaps.statue="",this.tab2.table.getdataListParm.parammaps.enable="",this.tab2.table.getdataListParm.offset=1,this.getList()},createCancel:function(t){for(var e=0;e<this.tab2.table.list.length;e++){if(t.myId===this.tab2.table.list[e].myId)var a=this.tab2.table.list.indexOf(this.tab2.table.list[e]);if(a>-1)return void this.tab2.table.list.splice(a,1)}},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},getPageConfigurationList:function(){var t=this;this.tab1.pageConfiguration.getdataListParm.parammaps={},this.tab1.pageConfiguration.getdataListParm.parammaps.pastureid=this.tab2.pageConfiguration.temp.pastureid,this.tab1.pageConfiguration.getdataListParm.parammaps.id=this.tab1.pageConfiguration.temp.id,this.tab1.pageConfiguration.listLoading=!0,this.tab1.pageConfiguration.defaultCheckedKeys=[],Object(l["c"])(this.tab1.pageConfiguration.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)parseFloat(e.data.list[a].seebutton)>0&&-1!==e.data.list[a].pid&&t.tab1.pageConfiguration.defaultCheckedKeys.push(String(e.data.list[a].menu_id)),parseFloat(e.data.list[a].seebutton)>0&&t.tab1.pageConfiguration.arrList.push(String(e.data.list[a].menu_id));t.tab1.pageConfiguration.data=Object(l["q"])(e.data.list,"id","pid","children")}else t.tab1.pageConfiguration.data=[];setTimeout((function(){t.tab1.pageConfiguration.listLoading=!1}),1e3)}))},handelCheckChange:function(t){for(var e=this,a=this.$refs.tree.getCheckedKeys(),i=a.map((function(t){var a=e.$refs.tree.getNode(t),i={};return i.pid=a.parent.key,i.value=a.key,i})),s=i.map((function(t){return t})),r=[],l=0;l<s.length;l++)void 0!==s[l].pid?r.push(s[l].pid,s[l].value):r.push(s[l].value);this.tab1.pageConfiguration.arrList=this.unique(r)},unique:function(t){return Array.from(new Set(t))},handlePageConfiguration:function(t){this.tab2.pageConfiguration.temp=Object.assign({},t),this.tab1.pageConfiguration.dialogStatus="pageConfiguration",this.tab1.pageConfiguration.dialogFormVisible=!0,this.tab1.pageConfiguration.defaultCheckedKeys=[],this.getPageConfigurationList()},pageConfigurationData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deletemenuPastureMC",type:"e",parammaps:{id:this.tab2.pageConfiguration.temp.id}};for(var e=[],a=0;a<this.tab1.pageConfiguration.arrList.length;a++)e.push({id:this.tab1.pageConfiguration.arrList[a]});this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"insertRolepastureMC",type:"e",parammaps:{menuid:"@insertSpotList.id",id:this.tab2.pageConfiguration.temp.id}},Object(l["b"])(this.requestParam).then((function(e){"fail"!==e.msg?(t.tab1.pageConfiguration.dialogFormVisible=!1,t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},getList:function(){var t=this;this.tab2.table.listLoading=!0,Object(l["c"])(this.tab2.table.getdataListParm).then((function(e){if(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.tab2.table.list=e.data.list,t.tab2.table.pageNum=e.data.pageNum,t.tab2.table.pageSize=e.data.pageSize,t.tab2.table.total=e.data.total}else t.tab2.table.list=[];setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))},handleCreate:function(){for(var t=0;t<this.tab2.table.list.length;t++)if(1==this.tab2.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.tab2.table.list.unshift(Object(r["a"])({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,pasturecode:"",phone:"",contact:"",address:"",pasturename:"",group:"",groupsid:""},"pasturecode",""))},createData:function(t){var e=this;return""==t.pasturecode&&""==t.pasturename&&""==t.user?(this.$message({type:"error",message:"牧场ID/牧场名称/管理员用户名不能为空",duration:2e3}),!1):""==t.pasturename&&""==t.user?(this.$message({type:"error",message:"牧场名称/管理员用户名不能为空",duration:2e3}),!1):""==t.pasturecode?(this.$message({type:"error",message:"牧场ID不能为空",duration:2e3}),!1):""==t.pasturename?(this.$message({type:"error",message:"牧场名称不能为空",duration:2e3}),!1):""==t.user?(this.$message({type:"error",message:"管理员用户名不能为空",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkuser",type:"v",parammaps:{user:t.user}},this.requestParam.data[1]={name:"insertPasture",type:"e",parammaps:{pasturecode:t.pasturecode,pasturename:t.pasturename,groupsid:t.groupsid,user:t.user,note:t.note,enable:t.enable,emp:t.emp,phone:t.phone,address:t.address}},this.requestParam.data[2]={name:"createNewPasture",type:"e",parammaps:{user:t.user,pastureid:"@insertPasture.LastInsertId",type:"0"}},void Object(l["b"])(this.requestParam).then((function(t){if("fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("column 'id'");a.test(t.data)?e.$notify({title:"保存失败",message:"集团已存在,不可重复生成",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}})))},handleUpdate:function(t){for(var e=0;e<this.tab2.table.list.length;e++)if(1==this.tab2.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,void 0!==t.groupsid&&(t.groupsid=String(t.groupsid))},updateData:function(t){var e=this;return""==t.pasturecode&&""==t.pasturename&&""==t.user?(this.$message({type:"error",message:"牧场ID/牧场名称/管理员用户名不能为空",duration:2e3}),!1):""==t.pasturename&&""==t.user?(this.$message({type:"error",message:"牧场名称/管理员用户名不能为空",duration:2e3}),!1):""==t.pasturecode?(this.$message({type:"error",message:"牧场ID不能为空",duration:2e3}),!1):""==t.pasturename?(this.$message({type:"error",message:"牧场名称不能为空",duration:2e3}),!1):""==t.user?(this.$message({type:"error",message:"管理员用户名不能为空",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updatePasture",type:"e",parammaps:{id:t.id,pasturecode:t.pasturecode,pasturename:t.pasturename,groupsid:t.groupsid,user:t.user,note:t.note,enable:t.enable,emp:t.emp,phone:t.phone,address:t.address}},this.requestParam.data[1]={name:"updateUserName",type:"e",parammaps:{id:t.id,userold:t.userold,user:t.user}},void Object(l["b"])(this.requestParam).then((function(t){if("fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();else{var a=new RegExp("column 'id'");a.test(t.data)?e.$notify({title:"保存失败",message:"集团已存在,不可重复生成",type:"warning",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}})))}}},c=o,d=(a("dfd5"),a("2877")),p=Object(d["a"])(c,i,s,!1,null,"3f46f748",null);e["default"]=p.exports},"7c47":function(t,e,a){"use strict";a("f245")},"7c7a":function(t,e,a){},"7d24":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.visible?a("div",[a("el-dialog",{attrs:{id:"reviseplanDialog",title:t.title,fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.visible,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,"before-close":t.closeDialog,width:"90%"},on:{"update:visible":function(e){t.visible=e}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.title)+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("el-row",{staticClass:"dialogMinHeight"},[a("el-button",{staticClass:"successBorder",staticStyle:{position:"absolute","z-index":"1",right:"2px",top:"2px"},attrs:{size:"medium"},on:{click:function(e){return t.saveData()}}},[t._v("应用")]),a("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.parentActiveName,callback:function(e){t.parentActiveName=e},expression:"parentActiveName"}},[a("el-tab-pane",{attrs:{label:"栏舍配方",name:"栏舍配方"}},[a("DhedFormula",{ref:"DhedFormula",attrs:{"parent-date":t.date}})],1),a("el-tab-pane",{attrs:{label:"撒料计划",name:"撒料计划"}},[a("MaterialIssuancePlan",{ref:"MaterialIssuancePlan",attrs:{"parent-date":t.date}})],1),a("el-tab-pane",{attrs:{label:"预混计划",name:"预混计划"}},[a("PremixedPlan",{ref:"PremixedPlan",attrs:{"parent-date":t.date}})],1),a("el-tab-pane",{attrs:{label:"剩料计划",name:"剩料计划"}},[a("SurplusMaterialPlan",{ref:"SurplusMaterialPlan",attrs:{"parent-date":t.date}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){return t.closeDialog()}}},[t._v("关闭")])],1)],2)],1):t._e()},s=[],r=(a("b0c0"),a("2934")),l=a("2ddd"),n=a("8bd9"),o=a("64ec"),c=a("4047"),d=a("5c96"),p=a("a78e"),m=a.n(p),u={name:"RevisePlan",components:{DhedFormula:l["default"],MaterialIssuancePlan:n["default"],PremixedPlan:o["default"],SurplusMaterialPlan:c["default"]},props:{show:{type:Boolean,default:!1},parentActiveName:{type:String,defalut:"栏舍配方"},parentDate:{type:String,defalut:""}},data:function(){return{dialogFull:!1,typeList:[{id:"1",effect:"dark",label:"栏舍配方"},{id:"2",effect:"plain",label:"撒料计划"},{id:"3",effect:"plain",label:"预混计划"}],visible:this.show,dialogFormVisible:!1,dialogStatus:"",rules:{},date:"",temp:{},title:"",isDhedFormula:!0,isMaterialIssuancePlan:!1,isPremixedPlan:!1,textMap:{revisePlan:"修改计划"},isokDisable:!1,requestParam:{}}},watch:{show:{immediate:!0,handler:function(t){this.visible=t}},parentDate:{immediate:!0,handler:function(t,e){this.date=t,this.title="修改计划——"+this.date}},parentActiveName:{immediate:!0,handler:function(t,e){this.parentActiveName=t}}},created:function(){},methods:{closeDialog:function(){this.dialogFull=!1,this.$emit("update:show",!1),this.$emit("activeName","栏舍配方")},saveData:function(){var t=this;d["MessageBox"].confirm("是否确认将当前修改计划应用至"+this.date,{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="updatedownloadedplanDone",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=m.a.get("pastureid"),t.requestParam.parammaps.date=t.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.closeDialog(),t.$parent.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消应用"})}))},handleClick:function(t){"撒料计划"==t.name?(this.$refs.MaterialIssuancePlan.getButtons(),this.$refs.MaterialIssuancePlan.getIsDisplay(),this.$refs.MaterialIssuancePlan.getList()):"栏舍配方"==t.name?(this.$refs.DhedFormula.getIsDisplay(),this.$refs.DhedFormula.getDownList()):"栏舍配方"==t.name?(this.$refs.PremixedPlan.getDownList(),this.$refs.PremixedPlan.getIsDisplay(),this.$refs.PremixedPlan.getList()):"剩料计划"==t.name&&(this.$refs.SurplusMaterialPlan.getButtons(),this.$refs.SurplusMaterialPlan.getDownList(),this.$refs.SurplusMaterialPlan.getIsDisplay(),this.$refs.SurplusMaterialPlan.getList())}}},h=u,b=(a("e129"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"0dec306e",null);e["default"]=g.exports},"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},"7db9":function(t,e,a){},"7dd4":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},"7ece":function(t,e,a){"use strict";a("0d42")},"7f05":function(t,e,a){"use strict";a("e2cf")},"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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e()],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":"180px",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":"180px",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":"100px",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":"150px",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":"90px",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":"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.opratetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","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:{icon:"el-icon-search"},on:{click:function(e){return t.jumpSee(i)}}}),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=t.empid,icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{disabled:i.empid!=t.empid,icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate2}},[t._v("新增")]):t._e()],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":"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.opratetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","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:{icon:"el-icon-search"},on:{click:function(e){return t.jumpSee2(i)}}}),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("a",{staticClass:"correcting",attrs:{disabled:i.empid!=t.empid},on:{click:function(e){return t.jumpEdit2(i)}}},[t._v("修改图表")]):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData2(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel2(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=t.empid,icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate2(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{disabled:i.empid!=t.empid,icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete2(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData2(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel2(i)}}}):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("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.editDialogVisible=!1}}},[t._v("取消")]),a("el-button",{staticClass:"save",on:{click:t.handleSubmit}},[t._v(" 确认")])],1)],1)],1)},s=[],r=(a("d81d"),a("ac1f"),a("1276"),a("d3b7"),a("159b"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("00b4"),a("b0c0"),a("a434"),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:parseInt(n.a.get("pageCount")),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:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},cellStyle:{padding:"0px"},activeName:"first",isRoleEdit:[]}},created:function(){this.getList(),this.getList2(),this.getDownList(),this.getButtons(),"second"==this.$route.params.tab?this.activeName="second":this.activeName="first"},methods:{getButtons:function(){var t="BoardEchartManagement",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},handleClick:function(t,e){},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.roleList=e.data.getRoleAll.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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,Object(r["c"])(this.table2.getdataListParm).then((function(e){if(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){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleSearch2:function(){this.table2.getdataListParm.offset=1,this.getList2()},handleRefresh:function(){this.table.getdataListParm.parammaps.cname="",this.table.getdataListParm.parammaps.dname="",this.table.getdataListParm.parammaps.statue="",this.table.getdataListParm.offset=1,this.getList()},handleRefresh2:function(){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){this.table.temp.statueid=t,this.table.temp.statue=t},changeStatue2:function(t){this.table2.temp.statueid=t,this.table2.temp.statue=t},changeRole:function(t){var e=[];this.roleList.forEach((function(a){t.forEach((function(t){a.id==t&&e.push(a)}))})),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(e){t.$message({type:"success",message:t.$t("common.saveSuccess")}),t.editDialogVisible=!1,e.data.LastInsertId&&(t.$router.push({name:"Addboard",params:{id:e.data.LastInsertId,isEdit:"create"}}),n.a.set("AddboardIsEdit","create"),n.a.set("AddboardIsEditId",e.data.LastInsertId),localStorage.setItem("AddboardIsEditId",e.data.LastInsertId))}))},createData:function(t){var e=this;if(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},createCancel:function(t){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){this.$router.push({name:"Addboard",params:{id:t.id,isEdit:"view",isRoleEdit:this.isRoleEdit}}),n.a.set("AddboardIsEdit","view"),n.a.set("AddboardIsEditId",t.id),localStorage.setItem("AddboardIsEditId",t.id)},jumpEdit:function(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){this.$router.push({name:"ChartPanel",params:{id:t.id,isEdit:"view",isRoleEdit:this.isRoleEdit}}),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){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){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),this.table.temp.statue=t.statue,this.table.temp.statueid=t.statueid,this.table.temp.parentname=t.parentname},handleUpdate2:function(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;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;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);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()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateData2:function(t){var e=this;if(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);var i={name:"updateChart",parammaps:this.table2.temp};Object(r["f"])(i).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList2()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,t.rolenamesId=t.rolenamesId2B},updateCancel2:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1},handleRowDelete:function(t){var e=this;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,a={name:"getChartuseCount",parammaps:{pastureid:n.a.get("pastureid"),id:t.id}};Object(r["c"])(a).then((function(a){a.data.list[0].cou>0?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:"已取消删除"})})):(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())})))}))}}},p=d,m=(a("626e"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"03134568",null);e["default"]=u.exports},"7f675":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(t.myComponent,{ref:"detail",tag:"component"})},s=[],r=a("5530"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("2f62")),n=a("6fbc"),o=a("672d"),c=a("a78e"),d=a.n(c),p={name:"FeedingEfficiency",components:{GroupFeedingEfficiency:n["default"],PastureFeedingEfficiency:o["default"]},data:function(){return{myComponent:null}},computed:Object(r["a"])({},Object(l["b"])(["ispastureuse"])),mounted:function(){this.detailComponent()},methods:{detailComponent:function(){if("1"==d.a.get("ispastureuse")){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"6fbc"))};return t.myComponent=e}var i=this;e=function(){return Promise.resolve().then(a.bind(null,"672d"))};return i.myComponent=e}}},m=p,u=a("2877"),h=Object(u["a"])(m,i,s,!1,null,null,null);e["default"]=h.exports},"81cc":function(t,e,a){"use strict";a("9630")},"81e0":function(t,e,a){"use strict";a("57b2")},"823b":function(t,e,a){"use strict";a("0628")},"82b2":function(t,e,a){},"82e9":function(t,e,a){"use strict";a("04b7")},8353: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-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-autocomplete",{staticClass:"inline-input filter-item",staticStyle:{width:"250px"},attrs:{"value-key":"feedname","fetch-suggestions":t.tableFeedNameSearch,placeholder:"饲料名称"},on:{select:t.handleSelectTableFeedName},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",[t._v(t._s(i.feedname))])]}}]),model:{value:t.table.getdataListParm.parammaps.feedname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"feedname",e)},expression:"table.getdataListParm.parammaps.feedname"}}),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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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:"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,"max-height":t.myHeight}},[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:"80","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:"操作类型"},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:{"picker-options":t.create.pickerOptions1,clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"datetime",placeholder:"出库日期"},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:"feedname"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"feedname","fetch-suggestions":t.feedNameSearch,placeholder:"请选择饲料名称"},on:{select:t.handleSelectFeedName,blur:t.blurFeedName},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",[t._v(t._s(i.feedname))])]}}]),model:{value:t.create.createTemp.feedname,callback:function(e){t.$set(t.create.createTemp,"feedname",e)},expression:"create.createTemp.feedname"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牲畜类别:",prop:"cowclassid"}},["see"===t.create.dialogStatus?a("el-input",{ref:"cowclass",staticClass:"filter-item",attrs:{disabled:"",placeholder:"请选择牲畜类别",type:"text",disabled:""},model:{value:t.create.createTemp.cowclass,callback:function(e){t.$set(t.create.createTemp,"cowclass",e)},expression:"create.createTemp.cowclass"}}):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"},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"},model:{value:t.create.createTemp.remark,callback:function(e){t.$set(t.create.createTemp,"remark",e)},expression:"create.createTemp.remark"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作人:",prop:"createemp"}},[a("el-input",{ref:"createemp",staticClass:"filter-item",attrs:{placeholder:"1-255字符",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)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]):t._e(),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2)],1)},s=[],r=(a("7db0"),a("d3b7"),a("ac1f"),a("00b4"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),l=a("333d"),n=a("a78e"),o=a.n(n),c=a("ed08"),d=a("bc3a"),p=a.n(d),m=a("5f87"),u=a("5c96"),h={name:"LaborConsumption",components:{Pagination:l["a"]},data:function(){return{dialogFull:!1,isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["人工用量操作类型"]},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],operationTypeList:[],feedNameList:[],livestockList:[],table:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:parseInt(o.a.get("pageCount")),returntype:"Map",parammaps:{inputDatetime:"",pastureid:o.a.get("pastureid"),startTime:"",stopTime:"",usetype:"",feedid:"",cowclassid:""}},tableKey:0,list:[],total:0,listLoading:!0},create:{pickerOptions1:{disabledDate:function(t){return t.getTime()>Date.now()}},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:o.a.get("pastureid"),usedate:Object(c["d"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",cowclassid:"",cowclass:"",usetype:"",operateweight:"",repertoryweight:"",createemp:"",remark:"",price:"",operator:o.a.get("employename")},getfeedNameParm:{name:"getFeedstorageuse",offset:0,pagecount:"",parammaps:{pastureid:o.a.get("pastureid")}},rules:{usetype:[{type:"string",required:!0,message:"必填",trigger:"blur"}],usedate:[{type:"string",required:!0,message:"必填",trigger:"blur"}],feedname:[{type:"string",required:!0,message:"必填",trigger:"change"}],operateweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]}},textMap:{create:"新增",update:"编辑"},requestParam:{},download:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{inputDatetime:"",pastureid:o.a.get("pastureid"),startTime:"",stopTime:"",usetype:"",feedid:"",cowclassid:""}},list:[]},isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"checkFeed,checkclassname,checkfeedusetype,insertFeeduseUpload,insertFeedstorageUseUpload",importParams:"出库日期,操作类型,牲畜类别,饲料名称,操作重量(kg),备注,操作人",sheetname:"Sheet1",pastureid:o.a.get("pastureid"),dateParams:"出库日期",requiredParams:"出库日期,操作类型,饲料名称,操作重量(kg)",numParams:"操作重量(kg)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(this.requestParams).then((function(e){t.operationTypeList=e.data.getDictByName.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.table.getdataListParm.parammaps.startTime=Object(c["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(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["d"])(t,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(e,"{y}-{m}-{d}"),this.$forceUpdate()}},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,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(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(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="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.cowclassid="",this.table.getdataListParm.parammaps.ischarge="",this.table.getdataListParm.parammaps.usetype="",this.table.getdataListParm.parammaps.feedname="",this.table.getdataListParm.parammaps.cowclassid="",this.getList()},changeUsetype:function(t){"损耗"==t?(this.create.createTemp.cowclassid="/",this.create.createTemp.cowclass="/"):(this.create.createTemp.cowclassid="",this.create.createTemp.cowclass="")},tableFeedNameSearch:function(t,e){this.create.getfeedNameParm.parammaps["feedname"]=t,Object(r["c"])(this.create.getfeedNameParm).then((function(t){null==t.data.list?e([]):e(t.data.list)}))},handleSelectTableFeedName:function(t){this.table.getdataListParm.parammaps.feedid=t.feedid},feedNameSearch:function(t,e){this.create.getfeedNameParm.parammaps["feedname"]=t,Object(r["c"])(this.create.getfeedNameParm).then((function(t){null==t.data.list?e([]):e(t.data.list)}))},handleSelectFeedName:function(t){this.create.createTemp.feedname=t.feedname,this.create.createTemp.feedid=t.feedid,this.create.createTemp.price=t.price,this.create.createTemp.pcpde=t.pcpde,this.create.createTemp.repertoryweight=t.stockweight},blurFeedName:function(){this.create.createTemp.feedname="",this.create.createTemp.feedid="",this.create.createTemp.price="",this.create.createTemp.pcpde="",this.create.createTemp.repertoryweight=""},changeLivestock:function(t){this.create.createTemp.cowclass=this.livestockList.find((function(e){return e.id==t})).classname},resetCreateTemp:function(){this.create.createTemp={cowclassid1:"-1",pastureid:o.a.get("pastureid"),usedate:Object(c["d"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",cowclassid:"",cowclass:"",usetype:"",operateweight:"",repertoryweight:"",createemp:o.a.get("employename"),remark:"",price:"",operator:o.a.get("employename")}},handleCreate:function(){var t=this;this.create.dialogStatus="create",this.dialogFull=!1,this.create.dialogFormVisible=!0,this.$nextTick((function(){t.resetCreateTemp(),t.$refs.createTemp.resetFields()}))},createData:function(){var t=this;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;var a=/^\d+(\.\d{1,2})?$/;if(0==t.create.createTemp.operateweight)return t.$message({type:"error",message:"操作重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(t.create.createTemp.operateweight)))return t.$message({type:"error",message:"操作重量请输入自然数并保留两位小数",duration:2e3}),!1;"/"==t.create.createTemp.cowclassid&&"/"==t.create.createTemp.cowclass&&(t.create.createTemp.cowclassid="",t.create.createTemp.cowclass=""),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:"insertFeedstorageUse",type:"e",parammaps:{pastureid:t.create.createTemp.pastureid,feedid:t.create.createTemp.feedid,operateweight:t.create.createTemp.operateweight,fname:t.create.createTemp.feedname,pcpde:t.create.createTemp.pcpde,price:t.create.createTemp.price}},Object(r["b"])(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.create.dialogFormVisible=!1,t.getList())}))}}))},handleUpdate:function(t){var e=this;this.$nextTick((function(){e.$refs.createTemp.resetFields()})),this.dialogFull=!1,this.create.dialogStatus="update",this.create.dialogFormVisible=!0,-1==t.cowclassid&&(t.cowclassid="",t.cowclass=""),this.create.createTemp=Object.assign({},t)},updateData:function(){},handleRowDelete:function(t){var e=this;u["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/库存管理/人工用量导入模板.xlsx";p()({method:"GET",url:i,data:a,headers:{token:Object(m["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="人工用量导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(c["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(c["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["出库日期","操作类型","牲畜类别","饲料名称","操作重量(kg)","备注","操作人"],filterVal:["usedate","usetype","cowclass","feedname","operateweight","remark","createemp"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(c["c"])(a,"人工用量",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["出库日期","操作类型","牲畜类别","饲料名称","操作重量(kg)","备注","操作人","错误信息"],r=["出库日期","操作类型","牲畜类别","饲料名称","操作重量(kg)","备注","操作人","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"人工用量导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(c["d"])(e[t]):e[t]}))}))}}},b=h,g=(a("6fef"),a("2877")),f=Object(g["a"])(b,i,s,!1,null,null,null);e["default"]=f.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},"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="M832 64H192a31.9488 31.9488 0 0 0-32 32V320h704V96a31.9488 31.9488 0 0 0-32-32zM455.9872 216.0128c0 4.4032-3.584 7.9872-7.9872 7.9872H263.9872A8.0384 8.0384 0 0 1 256 216.0128V167.936c0-4.4032 3.584-7.9872 7.9872-7.9872H448c4.4032 0 7.9872 3.584 7.9872 7.9872v48.0256zM160 928c0 17.7152 14.336 32 32 32h640c17.7152 0 32-14.336 32-32V704H160v224z m576-135.9872a39.9872 39.9872 0 1 1 0 79.9744 39.9872 39.9872 0 0 1 0-79.9744zM160 640h704v-256H160v256zM256 487.9872c0-4.4032 3.584-7.9872 7.9872-7.9872H448c4.4032 0 7.9872 3.584 7.9872 7.9872v48.0256c0 4.4032-3.584 7.9872-7.9872 7.9872H263.9872A8.0384 8.0384 0 0 1 256 536.0128V487.936z" p-id="210276" /></symbol>'});l.a.add(n);e["default"]=n},"83d6":function(t,e){t.exports={title:"TMRWatch全混合日粮监管系统",fixedHeader:!0,tagsView:!0,sidebarLogo:!0}},8497:function(t,e,a){"use strict";a("3b86")},8618: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",{ref:"dashboardEditor",staticClass:"dashboard-editor-container"},[i("div",{staticClass:"dashboard",staticStyle:{"margin-bottom":"10px"}},[i("div",{staticClass:"dashboard-l"},[i("div",{staticClass:"row1"},[i("div",{staticClass:"row1-t"},[t._m(0),i("div",{staticClass:"row1-t-r"},[t._v(t._s(t.date))])]),i("div",{staticClass:"row1-c"},[i("div",{staticClass:"row1-c-l"},[t._m(1),i("div",{staticClass:"row1-c-l-c"},[i("span",[i("b",[t._v(t._s(t.row1.list.yesRateHL))]),i("br"),t._v("昨日 ")])]),i("div",{staticClass:"row1-c-l-b"},[i("div",[i("span",[t._v("近30天混料准确率:")]),i("b",[t._v(t._s(t.row1.list.monRateHL))])])])]),i("div",{staticClass:"row1-c-r"},[t._m(2),i("div",{staticClass:"row1-c-l-c"},[i("span",[i("b",[t._v(t._s(t.row1.list.yesRateSL))]),i("br"),t._v("昨日 ")])]),i("div",{staticClass:"row1-c-l-b"},[i("div",[i("span",[t._v("近30天撒料准确率:")]),i("b",[t._v(t._s(t.row1.list.monRateSL))])])])])]),i("div",{staticClass:"row1-b"},[i("div",{staticClass:"row1-b-l"},[t._m(3),i("div",{staticClass:"row1-c-l-c"},[i("span",[i("b",[t._v(t._s(t.row1.list.yesRateSLR))]),i("br"),t._v("昨日 ")])]),i("div",{staticClass:"row1-c-l-b"},[i("div",[i("span",[t._v("近30天撒料正确率:")]),i("b",[t._v(t._s(t.row1.list.monRateSLR))])])])]),i("div",{staticClass:"row1-b-r"},[t._m(4),i("div",{staticClass:"row1-c-l-c"},[i("span",[i("b",[t._v(t._s(t.row1.list.temtime))]),i("br"),t._v("昨日 ")])]),i("div",{staticClass:"row1-c-l-b"},[i("div",[i("span",[t._v("近30天撒料偏差:")]),i("b",[t._v(t._s(t.row1.list.montime))]),t._v("分钟")])])])])]),i("div",{staticClass:"row2"},[t._m(5),i("div",{staticClass:"todayPlan"},[i("div",[i("div",{staticStyle:{height:"185px"},attrs:{id:"row2chartLine1"}}),i("div",{staticClass:"bottom"},[i("div",{staticClass:"bottom-l"},[i("div",{staticClass:"bottom-l-t"},[i("b",[t._v(t._s(t.row2.chart1.chartLine_data.data1))]),t._v("次 ")]),i("div",{staticClass:"bottom-l-b"},[t._v(" 完成车次 ")])]),i("div",{staticClass:"bottom-r"},[i("div",{staticClass:"bottom-r-t"},[i("b",[t._v(t._s(t.row2.chart1.chartLine_data.data2))]),t._v("次 ")]),i("div",{staticClass:"bottom-r-b"},[t._v(" 计划车次 ")])])])]),i("div",[i("div",{staticStyle:{height:"185px"},attrs:{id:"row2chartLine2"}}),i("div",{staticClass:"bottom"},[i("div",{staticClass:"bottom-l"},[i("div",{staticClass:"bottom-l-t"},[i("b",[t._v(t._s(t.row2.chart2.chartLine_data.data1))]),t._v("kg ")]),i("div",{staticClass:"bottom-l-b"},[t._v(" 完成重量 ")])]),i("div",{staticClass:"bottom-r"},[i("div",{staticClass:"bottom-r-t"},[i("b",[t._v(t._s(t.row2.chart2.chartLine_data.data2))]),t._v("kg ")]),i("div",{staticClass:"bottom-r-b"},[t._v(" 计划重量 ")])])])])])]),i("div",{staticClass:"row3",staticStyle:{position:"relative"}},[t._m(6),t.row4.chart1.isChart?i("div",{staticClass:"button"},[i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row4chartLine1")}}},[t._v("导出")]),i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("row4chartLine1")}}},[t._v("切换表格")])]):t._e(),t.row4.chart1.isChart?i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.chart1.listLoading,expression:"row4.chart1.listLoading"}],staticStyle:{background:"#fff",height:"310px"},attrs:{id:"row4chartLine1"}}):t._e(),t.row4.chart1.isTable?i("div",{staticClass:"table",staticStyle:{position:"absolute",width:"100%"}},[i("div",{staticClass:"button"},[i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row4chartLine1")}}},[t._v("导出")]),i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("row4chartLine1")}}},[t._v("切换图表")])]),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.chart1.table.listLoading,expression:"row4.chart1.table.listLoading"}],key:t.row4.chart1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row4.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"300","row-style":t.rowStyle,"cell-style":t.cellStyle}},[i("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),i("el-table-column",{attrs:{label:"单头牛饲料成本",sortable:"","min-width":"110px",align:"center",prop:"field2"}}),i("el-table-column",{attrs:{label:"公斤奶饲料成本(元)",sortable:"","min-width":"120px",align:"center",prop:"field1"}})],1)],1):t._e()])]),i("div",{staticClass:"dashboard-r"},[i("div",{staticClass:"row1"},[t._m(7),t.carLength>0?i("div",{ref:"row2chartLine3",staticStyle:{height:"260px"},attrs:{id:"row2chartLine3"}}):i("div",{staticStyle:{height:"260px","text-align":"center","line-height":"260px"}},[t._v("当前无正在进行中车次 ")]),i("div",{staticClass:"carsLength"},[t._v("当前车辆:"),i("span",[t._v(t._s(t.carLength))])]),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row2.chart3.listLoading2,expression:"row2.chart3.listLoading2"}],ref:"car",staticClass:"car",attrs:{id:"car"}},[i("div",{ref:"iconLeft",staticClass:"iconLeft",on:{click:t.handleLeft}},[t.row2.chart3.isLeft?i("img",{staticClass:"img-title",attrs:{src:a("8e64")}}):t._e(),t.row2.chart3.isLeftA?i("img",{staticClass:"img-title",attrs:{src:a("e62b")}}):t._e()]),i("div",{ref:"carList",staticClass:"carList",attrs:{id:"carList"}},t._l(t.list,(function(e,a){return i("div",{key:a,ref:"listW",refInFor:!0,staticClass:"listW"},[i("div",{ref:"list",refInFor:!0,staticClass:"list",style:{background:e.background,color:e.color,borderColor:e.borderColor},on:{click:function(i){return t.handleList(a,e)}}},[i("div",{staticClass:"list-t"},[i("div",{staticClass:"list-t-t"},[i("el-tooltip",{attrs:{content:e.tname,placement:"top"}},[i("span",[t._v("车辆:"+t._s(e.tname))])])],1),i("div",{staticClass:"list-t-t"},[i("el-tooltip",{attrs:{content:e.fname,placement:"top"}},[0==e.inorout?i("span",[t._v("饲料:"+t._s(e.fname))]):t._e(),1==e.inorout?i("span",[t._v("栏舍:"+t._s(e.fname))]):t._e()])],1),i("div",{staticClass:"list-t-t"},[i("el-tooltip",{attrs:{content:e.remark,placement:"top"}},[i("span",[t._v("描述:"+t._s(e.remark))])])],1)]),i("div",{staticClass:"list-b"},[i("div",{staticClass:"list-b-l"},[i("div",{staticClass:"left"},[i("div",{staticClass:"num"},[i("b",[t._v(t._s(e.doneweight))]),t._v("Kg")]),i("div",{staticClass:"weight"},[t._v("完成重量")])]),i("div",{staticClass:"right"})]),i("div",{staticClass:"list-b-l"},[i("div",{staticClass:"left"},[i("div",{staticClass:"num"},[i("b",[t._v(t._s(e.leftweight))]),t._v("Kg")]),i("div",{staticClass:"weight"},[t._v("剩余重量")])]),i("div",{staticClass:"right"})]),i("div",{staticClass:"list-b-l"},[i("div",{staticClass:"left"},[i("div",{staticClass:"num"},[i("b",[t._v(t._s(e.nowweight))]),t._v("Kg")]),i("div",{staticClass:"weight"},[t._v("车辆当前载重")])]),i("div",{staticClass:"right"})]),i("div",{staticClass:"list-b-l"},[i("div",{staticClass:"left"},[i("div",{staticClass:"num"},[i("b",[t._v(t._s(e.lweight))]),t._v("Kg")]),i("div",{staticClass:"weight"},[t._v("计划重量")])]),i("div",{staticClass:"right"})]),i("div",{staticClass:"list-b-l"},[i("div",{staticClass:"left"},[i("div",{staticClass:"num"},[i("b",[t._v(t._s(e.donerate))])]),i("div",{staticClass:"weight"},[t._v("完成度")])])])])]),e.isChecked?i("div",{ref:"checked",refInFor:!0,staticClass:"img-checked"}):t._e()])})),0),i("div",{ref:"iconRight",staticClass:"iconRight",on:{click:t.handleRight}},[t.row2.chart3.isRightA?i("img",{staticClass:"img-title",attrs:{src:a("18b7")}}):t._e(),t.row2.chart3.isRight?i("img",{staticClass:"img-title",attrs:{src:a("cb1c")}}):t._e()])])]),i("div",{staticClass:"row2"},[i("div",{staticClass:"row2-l",staticStyle:{position:"relative"}},[t._m(8),t.row3.chart1.isChart?i("div",{staticClass:"button"},[i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row3chartLine1")}}},[t._v("导出")]),i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("row3chartLine1")}}},[t._v("切换表格")])]):t._e(),t.row3.chart1.isChart?i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row3.chart1.listLoading,expression:"row3.chart1.listLoading"}],staticStyle:{background:"#fff",height:"310px"},attrs:{id:"row3chartLine1"}}):t._e(),t.row3.chart1.isTable?i("div",{staticClass:"table",staticStyle:{position:"absolute",width:"100%"}},[i("div",{staticClass:"button"},[i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row3chartLine1")}}},[t._v("导出")]),i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("row3chartLine1")}}},[t._v("切换图表")])]),i("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%","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row3.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"300","row-style":t.rowStyle,"cell-style":t.cellStyle}},[i("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"85px",align:"center",prop:"日期"}}),i("el-table-column",{attrs:{label:"计划执行重量(kg)",sortable:"","min-width":"90px",align:"center",prop:"实际量"}}),i("el-table-column",{attrs:{label:"配方理论重量(kg)",sortable:"","min-width":"90px",align:"center",prop:"理论量"}}),i("el-table-column",{attrs:{label:"计划准确率",sortable:"","min-width":"85px",align:"center",prop:"field1"}}),i("el-table-column",{attrs:{label:"计划取消重量(kg)",sortable:"","min-width":"90px",align:"center",prop:"计划取消重量"}}),i("el-table-column",{attrs:{label:"计划准确率(去除取消重量)",sortable:"","min-width":"100px",align:"center",prop:"field3"}}),i("el-table-column",{attrs:{label:"计划正确数",sortable:"","min-width":"85px",align:"center",prop:"正确数"}}),i("el-table-column",{attrs:{label:"计划数",sortable:"","min-width":"85px",align:"center",prop:"计划数"}}),i("el-table-column",{attrs:{label:"计划正确率",sortable:"","min-width":"75px",align:"center",prop:"field2"}})],1)],1):t._e()]),i("div",{staticClass:"row2-r",staticStyle:{position:"relative"}},[t._m(9),t.row4.chart2.isChart?i("div",{staticClass:"button"},[i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row4chartLine2")}}},[t._v("导出")]),i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("row4chartLine2")}}},[t._v("切换表格")])]):t._e(),t.row4.chart2.isChart?i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.chart2.listLoading,expression:"row4.chart2.listLoading"}],staticStyle:{background:"#fff",height:"310px"},attrs:{id:"row4chartLine2"}}):t._e(),t.row4.chart2.isTable?i("div",{staticClass:"table",staticStyle:{position:"absolute",width:"100%"}},[i("div",{staticClass:"button"},[i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row4chartLine2")}}},[t._v("导出")]),i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("row4chartLine2")}}},[t._v("切换图表")])]),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.chart2.table.listLoading,expression:"row4.chart2.table.listLoading"}],key:t.row4.chart2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row4.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"300","row-style":t.rowStyle,"cell-style":t.cellStyle}},[i("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),i("el-table-column",{attrs:{label:"重量",sortable:"","min-width":"110px",align:"center",prop:"field1"}})],1)],1):t._e()])]),i("div",{staticClass:"row3"},[i("div",{staticClass:"row3-l",staticStyle:{position:"relative"}},[t._m(10),t.row3.chart2.isChart?i("div",{staticClass:"button"},[i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row3chartLine2")}}},[t._v("导出")]),i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("row3chartLine2")}}},[t._v("切换表格")])]):t._e(),t.row3.chart2.isChart?i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row3.chart2.listLoading,expression:"row3.chart2.listLoading"}],staticStyle:{background:"#fff",height:"310px"},attrs:{id:"row3chartLine2"}}):t._e(),t.row3.chart2.isTable?i("div",{staticClass:"table",staticStyle:{position:"absolute",width:"100%"}},[i("div",{staticClass:"button"},[i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row3chartLine2")}}},[t._v("导出")]),i("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("row3chartLine2")}}},[t._v("切换图表")])]),i("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%","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row3.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"300","row-style":t.rowStyle,"cell-style":t.cellStyle}},[i("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),i("el-table-column",{attrs:{label:"泌乳牛采食量(kg)",sortable:"","min-width":"110px",align:"center",prop:"field1"}}),i("el-table-column",{attrs:{label:"泌乳牛产奶量(kg)",sortable:"","min-width":"110px",align:"center",prop:"field2"}})],1)],1):t._e()]),i("div",{staticClass:"row3-r"},[i("div",{staticClass:"title"},[i("div",{staticClass:"img-title"}),i("span",{staticClass:"content"},[t._v("库存预警")]),i("a",{staticStyle:{float:"right",color:"#009C69","font-size":"12px","margin-right":"10px"},on:{click:t.handleMore}},[t._v("查看更多  >>")])]),i("div",{staticStyle:{height:"330px",background:"#fff"},attrs:{id:"table"}},[i("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:"98%",background:"#fff","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row4.table.list,border:"",fit:"","highlight-current-row":"",height:"320","row-style":t.rowStyle,"cell-style":t.cellStyle}},[i("el-table-column",{attrs:{label:"序号",type:"index","min-width":"80px",align:"center"}}),i("el-table-column",{attrs:{label:"饲料名称","min-width":"80px",align:"center",prop:"feedname"}}),i("el-table-column",{attrs:{label:"库存量(kg)","min-width":"70px",align:"center",prop:"stockweight"}}),i("el-table-column",{attrs:{label:"剩余使用天数","min-width":"80px",align:"center",prop:"ldays"}})],1)],1)])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row1-t-l"},[a("div",{staticClass:"img-l"}),a("span",{staticClass:"content"},[t._v("暂无消息通知")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title1"},[i("div",{staticClass:"img-title"},[i("img",{attrs:{src:a("1879")}})]),i("span",{staticClass:"content"},[t._v("混料准确率")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title1"},[i("div",{staticClass:"img-title"},[i("img",{attrs:{src:a("07bb")}})]),i("span",{staticClass:"content"},[t._v("撒料准确率")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title1"},[i("div",{staticClass:"img-title"},[i("img",{attrs:{src:a("e17a")}})]),i("span",{staticClass:"content"},[t._v("撒料正确率")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title1"},[i("div",{staticClass:"img-title"},[i("img",{attrs:{src:a("ff18")}})]),i("span",{staticClass:"content"},[t._v("撒料偏差")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("今日计划统计")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("成本统计")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("实时监控")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("计划统计")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("混料实际重量统计")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("泌乳牛干物质采食量")])])}],r=a("2934"),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("313e"),d=a.n(c);a("817d");var p={name:"PastureDashboard",inject:["reload"],data:function(){return{val:"这是值1",date:Object(o["d"])(new Date,"{y}-{m}-{d}"),list:[],news:1,carLength:0,myKey:0,row1:{getdataListParm:{name:"getHomepageStr",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},listLoading:!0,list:""},row2:{chart1:{chartLine:null,chartLine_data:{}},chart2:{chartLine:null,chartLine_data:{}},chart3:{isLeft:!0,isRight:!0,chartLine:null,chartLine_data:{},getdataListParm:{name:"getHomeprocessAnalysis",page:1,offset:1,pagecount:2,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),id:"",pid:""}},list:[],total:0,listLoading:!0,pageNum:"",pages:"",getdataListParmList:{name:"getHomepageLBList",page:1,offset:1,pagecount:2,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},list2:[],total2:0,listLoading2:!0,pageNum2:"",pages2:""}},row3:{chartDate:[],chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllJH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffMR",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}},row4:{chartDate:[],chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getHomepageCB",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuraaActHL",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},list:[],total:0,listLoading:!0,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},table:{getdataListParm:{name:"getFsWarnList",page:1,offset:1,pagecount:5,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},timer:null,clickKey:0,isClick:!1}},watch:{isClick:{handler:function(t,e){var a=this;1==t&&setTimeout((function(){a.timer=setInterval(a.autoPlay,15e3)}),2e4)},immediate:!0}},created:function(){this.getCarLength(),this.getChart3List(),this.getTimeFn(),this.getList(),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7(),this.getTable8()},mounted:function(){this.timer=null,this.timer=setInterval(this.autoPlay,15e3)},destroyed:function(){clearInterval(this.timer)},methods:{getTimeFn:function(){var t=this,e=new Date,a=new Date;a.setTime(a.getTime()-1728e6),t.row3.chartDate[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.row3.chartDate[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.row3.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.row3.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.row3.chart1.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.row3.chart1.getdataListParm.parammaps.stopTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.row3.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.row3.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.row3.chart2.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.row3.chart2.getdataListParm.parammaps.stopTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.row4.chartDate[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.row4.chartDate[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.row4.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.row4.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.row4.chart1.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.row4.chart1.getdataListParm.parammaps.stopTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.row4.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(o["d"])(a,"{y}-{m}-{d}"),t.row4.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(o["d"])(e,"{y}-{m}-{d}"),t.row4.chart2.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.row4.chart2.getdataListParm.parammaps.stopTime=Object(o["d"])(e,"{y}-{m}-{d}")},getList:function(){var t=this;this.row1.listLoading=!0,Object(r["c"])(this.row1.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(void 0==e.data.list[0].monRateHL&&(e.data.list[0].monRateHL=""),void 0==e.data.list[0].monRateSL&&(e.data.list[0].monRateSL=""),void 0==e.data.list[0].monRateSLR&&(e.data.list[0].monRateSLR=""),void 0==e.data.list[0].yesRateHL&&(e.data.list[0].yesRateHL=""),void 0==e.data.list[0].yesRateHL&&(e.data.list[0].yesRateHL=""),void 0==e.data.list[0].yesRateSL&&(e.data.list[0].yesRateSL=""),void 0==e.data.list[0].yesRateSLR&&(e.data.list[0].yesRateSLR=""),void 0==e.data.list[0].temtime&&(e.data.list[0].temtime=""),void 0==e.data.list[0].montime&&(e.data.list[0].montime=""),t.row1.list=e.data.list[0],t.row2.chart1.chartLine_data.data1=parseFloat(e.data.list[0].doneTimes),t.row2.chart1.chartLine_data.data2=parseFloat(e.data.list[0].planTimes),t.row2.chart2.chartLine_data.data1=parseFloat(e.data.list[0].doneWeight),t.row2.chart2.chartLine_data.data2=parseFloat(e.data.list[0].planWeight),t.roadChartLine1(t.row2.chart1.chartLine_data),t.roadChartLine2(t.row2.chart2.chartLine_data)):(t.row1.list.data1.monRateHL="",t.row1.list.data1.monRateSL="",t.row1.list.data1.monRateSLR="",t.row1.list.data1.yesRateHL="",t.row1.list.data1.yesRateSL="",t.row1.list.data1.yesRateSLR="",t.row1.list.data1.temtime="",t.row1.list.data1.montime="",t.row2.chart1.chartLine_data.data1="",t.row2.chart1.chartLine_data.data2="",t.row2.chart2.chartLine_data.data1="",t.row2.chart2.chartLine_data.data2=""),setTimeout((function(){t.row1.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")),0!=t.data2&&0!=t.data1||(t.data1=0,t.data2=100);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}%)"},color:["#1bbe89","#e4e7ec"],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}}}]}]};this.row2.chart1.chartLine.setOption(e),null!=this.row2.chart1.chartLine&&(window.onresize=function(){this.row2.chart1.chartLine.resize()});var a=this;a.row2.chart1.chartLine.on("mouseover",(function(t){var e=a.row2.chart1.chartLine.getOption();a.row2.chart1.chartLine.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:t.dataIndex,color:t.color}),a.row2.chart1.chartLine.setOption(e,!0)}))},roadChartLine2:function(t){null!=this.row2.chart2.chartLine&&this.row2.chart2.chartLine.dispose(),this.row2.chart2.chartLine=d.a.init(document.getElementById("row2chartLine2")),0!=t.data2&&0!=t.data1||(t.data1=0,t.data2=100);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:["#529ae4","#e4e7ec"]};this.row2.chart2.chartLine.setOption(e),null!=this.row2.chart2.chartLine&&(window.onresize=function(){this.row2.chart2.chartLine.resize()});var a=this;a.row2.chart2.chartLine.on("mouseover",(function(t){var e=a.row2.chart2.chartLine.getOption();a.row2.chart2.chartLine.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:t.dataIndex,color:t.color}),a.row2.chart2.chartLine.setOption(e,!0)}))},getChart3:function(){var t=this;this.row2.chart3.listLoading=!0,Object(r["e"])(this.row2.chart3.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){for(var a=[],i=[],s=0;s<e.data.list.data4.length;s++)0==s?i.push(e.data.list.data4[s]):s%2==0?a.push(e.data.list.data4[s]):i.push(e.data.list.data4[s]);e.data.list.data4=i,e.data.list.data5=a,t.row2.chart3.chartLine_data=e.data.list,t.row2.chart3.total=e.data.total,t.row2.chart3.pageNum=e.data.pageNum,t.row2.chart3.pages=e.data.pages,t.roadChartLine3(t.row2.chart3.chartLine_data)}else t.row2.chart3.list=[],t.row2.chart3.chartLine_data=[],t.roadChartLine3(t.row2.chart3.chartLine_data);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:["#ff0000","#5199e5","#fdb06a","#fb8b73"],grid:{bottom:"10%"},legend:[{itemWidth:15,itemHeight:7,right:"25%",textStyle:{fontSize:12},data:[{name:"设计重量"},{name:"实际重量"}]},{itemWidth:15,itemHeight:15,right:"0",textStyle:{fontSize:12},data:[{name:"开始重量",icon:"image://https://kptyun.cn:8081/file/pic/3.png"},{name:"结束重量",icon:"image://https://kptyun.cn:8081/file/pic/4.png"}]}],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"}}}],toolbox:{show:!1,feature:{dataZoom:{realtime:!1,yAxisIndex:"none"},restore:{}}},dataZoom:[{type:"inside"},{type:"slider"}],series:[{symbol:"none",name:"实际重量",type:"line",data:t.data3,itemStyle:{normal:{lineStyle:{color:"#ff0000",width:2}}}},{symbol:"none",name:"设计重量",type:"line",data:t.data2,itemStyle:{normal:{lineStyle:{width:2}}}},{name:"开始重量",symbol:"image://https://kptyun.cn:8081/file/pic/3.png",symbolSize:6,type:"scatter",data:t.data4},{name:"结束重量",symbol:"image://https://kptyun.cn:8081/file/pic/4.png",symbolSize:6,type:"scatter",data:t.data5}]};this.row2.chart3.chartLine.setOption(e),null!=this.row2.chart3.chartLine&&(window.onresize=function(){this.row2.chart3.chartLine.resize()})},getCarLength:function(){var t=this;this.row2.chart3.listLoading2=!0,this.row2.chart3.getdataListParmList.pagecount=0,Object(r["c"])(this.row2.chart3.getdataListParmList).then((function(e){null!==e.data.list?t.carLength=e.data.total:t.carLength=0,setTimeout((function(){t.row2.chart3.listLoading2=!1}),100)}))},getChart3List:function(){var t=this;this.row2.chart3.listLoading2=!0,this.row2.chart3.getdataListParmList.pagecount=2,Object(r["c"])(this.row2.chart3.getdataListParmList).then((function(e){null!==e.data.list?(t.$set(e.data.list[0],"background","#f3f9f7"),t.$set(e.data.list[0],"borderColor","#009d6a"),t.$set(e.data.list[0],"isChecked",!0),e.data.list.length>1&&(t.$set(e.data.list[1],"background","#f9f9f9"),t.$set(e.data.list[1],"borderColor","#f9f9f9"),t.$set(e.data.list[1],"isChecked",!1)),t.list=e.data.list,t.row2.chart3.getdataListParm.parammaps.pid=t.list[t.myKey].pid,t.row2.chart3.getdataListParm.parammaps.id=t.list[t.myKey].id,t.getChart3(),t.row2.chart3.pageNum2=e.data.pageNum,t.row2.chart3.pages2=e.data.pages):t.row2.chart3.list2=[],1==e.data.pageNum?(e.data.total,t.row2.chart3.isLeftA=!1,t.row2.chart3.isLeft=!0,t.row2.chart3.isRightA=!0,t.row2.chart3.isRight=!1):e.data.pageNum*e.data.pageSize>e.data.total||e.data.pageNum*e.data.pageSize==e.data.total?(t.row2.chart3.isLeftA=!0,t.row2.chart3.isLeft=!1,t.row2.chart3.isRightA=!1,t.row2.chart3.isRight=!0):(t.row2.chart3.isLeftA=!0,t.row2.chart3.isLeft=!1,t.row2.chart3.isRightA=!0,t.row2.chart3.isRight=!1),setTimeout((function(){t.row2.chart3.listLoading2=!1}),100)}))},handleLeft:function(){0==this.row2.chart3.isLeftA||(this.row2.chart3.getdataListParmList.offset=this.row2.chart3.getdataListParmList.offset-1,this.getChart3List())},handleRight:function(){0==this.row2.chart3.isRightA||(this.row2.chart3.getdataListParmList.offset=this.row2.chart3.getdataListParmList.offset+1,this.getChart3List())},handleList:function(t,e){this.isClick=!0,this.clickKey=t,clearInterval(this.timer);for(var a=0;a<this.list.length;a++)t==a?(this.$set(this.list[a],"background","#f3f9f7"),this.$set(this.list[a],"borderColor","#009d6a"),this.$set(this.list[a],"isChecked",!0)):(this.$set(this.list[a],"background","#f9f9f9"),this.$set(this.list[a],"borderColor","#f9f9f9"),this.$set(this.list[a],"isChecked",!1));this.row2.chart3.getdataListParm.parammaps.pid=this.list[t].pid,this.row2.chart3.getdataListParm.parammaps.id=this.list[t].id,this.getChart3()},autoPlay:function(){1==this.list[0].isChecked?this.list.length>1?(this.$set(this.list[1],"background","#f3f9f7"),this.$set(this.list[1],"borderColor","#009d6a"),this.$set(this.list[1],"isChecked",!0),this.$set(this.list[0],"background","#f9f9f9"),this.$set(this.list[0],"borderColor","#f9f9f9"),this.$set(this.list[0],"isChecked",!1),this.row2.chart3.getdataListParm.parammaps.pid=this.list[1].pid,this.row2.chart3.getdataListParm.parammaps.id=this.list[1].id,this.getChart3()):0==this.row2.chart3.isRightA&&1==this.row2.chart3.isLeftA&&(this.row2.chart3.getdataListParmList.offset=this.row2.chart3.getdataListParmList.offset-1,this.getChart3List()):1==this.row2.chart3.isRightA?(this.row2.chart3.getdataListParmList.offset=this.row2.chart3.getdataListParmList.offset+1,this.getChart3List()):1==this.row2.chart3.isLeftA?(this.row2.chart3.getdataListParmList.offset=this.row2.chart3.getdataListParmList.offset-1,this.getChart3List()):(this.$set(this.list[0],"background","#f3f9f7"),this.$set(this.list[0],"borderColor","#009d6a"),this.$set(this.list[0],"isChecked",!0),this.$set(this.list[1],"background","#f9f9f9"),this.$set(this.list[1],"borderColor","#f9f9f9"),this.$set(this.list[1],"isChecked",!1),this.row2.chart3.getdataListParm.parammaps.pid=this.list[0].pid,this.row2.chart3.getdataListParm.parammaps.id=this.list[0].id,this.getChart3())},getChart4:function(){var t=this;this.row3.chart1.listLoading=!0,Object(r["e"])(this.row3.chart1.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].实际量&&void 0!==e.data.data[a].实际量&&(e.data.data[a].实际量=parseFloat(e.data.data[a].实际量)),""!==e.data.data[a].理论量&&void 0!==e.data.data[a].理论量&&(e.data.data[a].理论量=parseFloat(e.data.data[a].理论量)),""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].计划取消重量&&void 0!==e.data.data[a].计划取消重量&&(e.data.data[a].计划取消重量=parseFloat(e.data.data[a].计划取消重量)),""!==e.data.data[a].field3&&void 0!==e.data.data[a].field3&&(e.data.data[a].field3=parseFloat(e.data.data[a].field3)),""!==e.data.data[a].正确数&&void 0!==e.data.data[a].正确数&&(e.data.data[a].正确数=parseFloat(e.data.data[a].正确数)),""!==e.data.data[a].计划数&&void 0!==e.data.data[a].计划数&&(e.data.data[a].计划数=parseFloat(e.data.data[a].计划数)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2));t.row3.chart1.table.list=e.data.data,t.row3.chart1.chartLine_data=e.data.list,t.row3.chart1.total=e.data.total}else t.row3.chart1.list=[],t.row3.chart1.chartLine_data=[],t.row3.chart1.chartLine_data.data1=[];0==t.row3.chart1.chartLine_data.data1.length?t.row3.chart1.chartLine_data.title="暂无数据":t.row3.chart1.chartLine_data.title="",t.roadChartLine4(t.row3.chart1.chartLine_data),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:t.title,x:"center",y:"center",textStyle:{color:"#909399",fontWeight:"normal",fontSize:12}},tooltip:{trigger:"axis"},color:["#1abd88","#549be9","#fd8d75"],legend:{data:["计划准确率","计划正确率","计划准确率(去除取消重量)"],top:10,itemHeight:7,itemWidth:15,textStyle:{fontSize:12}},grid:{top:"20%",left:"10%",right:"10%",bottom:"10%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data1,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:[{name:"计划准确率",type:"line",symbol:"none",smooth:!0,itemStyle:{normal:{lineStyle:{color:"#1abd88"}}},data:t.data2},{name:"计划正确率",type:"line",symbol:"none",smooth:!0,itemStyle:{normal:{lineStyle:{color:"#549be9"}}},data:t.data3},{name:"计划准确率(去除取消重量)",type:"line",symbol:"none",smooth:!0,itemStyle:{normal:{lineStyle:{color:"#fd8d75"}}},data:t.data4}]};this.row3.chart1.chartLine.setOption(e),null!=this.row3.chart1.chartLine&&(window.onresize=function(){this.row3.chart1.chartLine.resize()})},getChart5:function(){var t=this;this.row3.chart2.listLoading=!0,Object(r["e"])(this.row3.chart2.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2));t.row3.chart2.table.list=e.data.data,t.row3.chart2.chartLine_data=e.data.list,t.row3.chart2.total=e.data.total}else t.row3.chart2.list=[],t.row3.chart2.chartLine_data=[],t.row3.chart2.chartLine_data.data1=[];0==t.row3.chart2.chartLine_data.data1.length?t.row3.chart2.chartLine_data.title="暂无数据":t.row3.chart2.chartLine_data.title="",t.roadChartLine5(t.row3.chart2.chartLine_data),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:t.title,x:"center",y:"center",textStyle:{color:"#909399",fontWeight:"normal",fontSize:12}},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},grid:{top:"20%",left:"8%",right:"10%",bottom:"10%",containLabel:!0},legend:{data:["泌乳牛干物质采食量","泌乳牛产奶量"],right:10,itemHeight:7,itemWidth:15},xAxis:[{type:"category",data:t.data1}],yAxis:[{splitLine:{show:!1},type:"value",name:"泌乳牛干\n物质采食量",axisLabel:{formatter:"{value} "}},{splitLine:{show:!1},type:"value",name:"泌乳牛产奶量",axisLabel:{formatter:"{value} "}}],series:[{name:"泌乳牛干物质采食量",type:"bar",barWidth:5,itemStyle:{barBorderRadius:[18,18,0,0],normal:{color:"#5199e5"}},data:t.data2},{name:"泌乳牛产奶量",type:"line",barWidth:5,itemStyle:{barBorderRadius:[18,18,0,0],normal:{color:"#36c293"}},yAxisIndex:1,data:t.data3}]};this.row3.chart2.chartLine.setOption(e),null!=this.row3.chart2.chartLine&&(window.onresize=function(){this.row3.chart2.chartLine.resize()})},getChart6:function(){var t=this;this.row4.chart1.table.listLoading=!0,this.row4.chart1.listLoading=!0,Object(r["e"])(this.row4.chart1.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list&&null!==e.data.data&&""!==e.data.data){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2));t.row4.chart1.table.list=e.data.data,t.row4.chart1.chartLine_data=e.data.list,t.row4.chart1.total=e.data.total}else t.row4.chart1.list=[],t.row4.chart1.chartLine_data=[],t.row4.chart1.chartLine_data.data1=[];0==t.row4.chart1.chartLine_data.data1.length?t.row4.chart1.chartLine_data.title="暂无数据":t.row4.chart1.chartLine_data.title="",t.roadChartLine6(t.row4.chart1.chartLine_data),setTimeout((function(){t.row4.chart1.listLoading=!1,t.row4.chart1.table.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:t.title,x:"center",y:"center",textStyle:{color:"#909399",fontWeight:"normal",fontSize:12}},grid:{left:"10%",right:"12%",bottom:"3%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["公斤奶饲料成本","单头牛饲料成本"],itemHeight:7,itemWidth:15},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"},name:"日期"}],yAxis:[{splitLine:{show:!1},type:"value",name:"公斤奶\n饲料成本(元)",axisLabel:{formatter:"{value}"}},{splitLine:{show:!1},type:"value",name:"单头牛\n饲料成本(元)",axisLabel:{formatter:"{value}"}}],series:[{name:"公斤奶饲料成本",type:"bar",itemStyle:{normal:{color:"#1abd88"}},data:t.data2},{name:"单头牛饲料成本",type:"line",yAxisIndex:1,itemStyle:{normal:{color:"#ff8d78"}},data:t.data3}]};this.row4.chart1.chartLine.setOption(e),null!=this.row4.chart1.chartLine&&(window.onresize=function(){this.row4.chart1.chartLine.resize()})},getChart7:function(){var t=this;this.row4.chart2.listLoading=!0,Object(r["e"])(this.row4.chart2.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1));t.row4.chart2.table.list=e.data.data,t.row4.chart2.chartLine_data=e.data.list,t.row4.chart2.total=e.data.total}else t.row4.chart2.list=[],t.row4.chart2.chartLine_data=[],t.row4.chart2.chartLine_data.data1=[];0==t.row4.chart2.chartLine_data.data1.length?t.row4.chart2.chartLine_data.title="暂无数据":t.row4.chart2.chartLine_data.title="",t.roadChartLine7(t.row4.chart2.chartLine_data),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:t.title,x:"center",y:"center",textStyle:{color:"#909399",fontWeight:"normal",fontSize:12}},grid:{left:"10%",right:"10%",bottom:"3%",containLabel:!0},tooltip:{trigger:"axis"},legend:{data:[""]},xAxis:[{type:"category",data:t.data1,name:"日期"}],yAxis:[{type:"value",name:"重量(kg)",axisLabel:{formatter:"{value}"}}],series:[{name:"重量",type:"bar",stack:"广告",itemStyle:{normal:{color:"#36C293"}},data:t.data2}]};this.row4.chart2.chartLine.setOption(e),null!=this.row4.chart2.chartLine&&(window.onresize=function(){this.row4.chart2.chartLine.resize()})},getTable8:function(){var t=this;this.row4.table.listLoading=!0,Object(r["c"])(this.row4.table.getdataListParm).then((function(e){null!==e.data.list?(t.row4.table.list=e.data.list,t.row4.table.total=e.data.total):t.row4.table.list=[],setTimeout((function(){t.row4.table.listLoading=!1}),100)}))},handleMore:function(){this.$router.push({name:"Warning",params:{jmp:"jmp"}})},handleExport:function(t){if("row3chartLine1"==t){var e=[{tHeader:["日期","计划执行重量(kg)","配方理论重量(kg)","计划准确率","计划取消重量(kg)","计划准确率(去除取消重量)","计划正确数","计划数","计划正确率"],filterVal:["日期","实际量","理论量","field1","计划取消重量","field3","正确数","计划数","field2"],tableDatas:this.row3.chart1.table.list,sheetName:"计划统计"}];Object(o["c"])(e,"计划统计",!0,"xlsx")}else if("row3chartLine2"==t){var a=[{tHeader:["日期","泌乳牛采食量(kg)","泌乳牛产奶量(kg)"],filterVal:["日期","field1","field2"],tableDatas:this.row3.chart2.table.list,sheetName:"泌乳牛采食量"}];Object(o["c"])(a,"泌乳牛采食量",!0,"xlsx")}else if("row4chartLine1"==t){a=[{tHeader:["日期","单头牛饲料成本","公斤奶饲料成本(元)"],filterVal:["日期","field1","field2"],tableDatas:this.row4.chart1.table.list,sheetName:"成本统计"}];Object(o["c"])(a,"成本统计",!0,"xlsx")}else if("row4chartLine2"==t){var i=[{tHeader:["日期","重量"],filterVal:["日期","field1"],tableDatas:this.row4.chart2.table.list,sheetName:"混料实际重量统计"}];Object(o["c"])(i,"混料实际重量统计",!0,"xlsx")}},handleTable:function(t){"row3chartLine1"==t?(this.row3.chart1.isTable=!0,this.row3.chart1.isChart=!1):"row3chartLine2"==t?(this.row3.chart2.isTable=!0,this.row3.chart2.isChart=!1):"row4chartLine1"==t?(this.row4.chart1.isTable=!0,this.row4.chart1.isChart=!1):"row4chartLine2"==t&&(this.row4.chart2.isTable=!0,this.row4.chart2.isChart=!1)},handleChart:function(t){"row3chartLine1"==t?(this.row3.chart1.isTable=!1,this.row3.chart1.isChart=!0,this.getChart4()):"row3chartLine2"==t?(this.row3.chart2.isTable=!1,this.row3.chart2.isChart=!0,this.getChart5()):"row4chartLine1"==t?(this.row4.chart1.isTable=!1,this.row4.chart1.isChart=!0,this.getChart6()):"row4chartLine2"==t&&(this.row4.chart2.isTable=!1,this.row4.chart2.isChart=!0,this.getChart7())}}},m=p,u=(a("3666"),a("e699"),a("e2aa"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"27ae6cb1",null);e["default"]=h.exports},8636: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="M890.88 575.146667zM643.413333 578.56c-3.413333-3.413333-5.12-8.533333-5.12-13.653333 0 5.12 1.706667 8.533333 5.12 13.653333zM752.64 672.426667l8.533333-44.373334c0-3.413333 0-5.12-1.706666-8.533333l-32.426667-30.72c-5.12-5.12-1.706667-13.653333 5.12-15.36l44.373333-6.826667c3.413333 0 5.12-1.706667 6.826667-5.12l18.773333-40.96c1.706667-3.413333 5.12-5.12 6.826667-5.12-3.413333 0-6.826667 1.706667-8.533333 5.12L779.946667 563.2c-1.706667 1.706667-3.413333 3.413333-6.826667 5.12l-44.373333 6.826667c-6.826667 1.706667-10.24 10.24-5.12 15.36l32.426666 30.72c1.706667 1.706667 3.413333 5.12 1.706667 8.533333l-5.12 42.666667c-1.706667 5.12 1.706667 10.24 6.826667 10.24-5.12-1.706667-8.533333-5.12-6.826667-10.24zM754.346667 525.653333c-1.706667 5.12-8.533333 8.533333-13.653334 10.24 6.826667-1.706667 10.24-5.12 13.653334-10.24zM187.733333 291.84h375.466667c20.48 0 35.84-15.36 35.84-35.84 0 20.48-17.066667 35.84-35.84 35.84H187.733333c-18.773333 0-35.84-17.066667-35.84-35.84-1.706667 18.773333 15.36 35.84 35.84 35.84zM807.253333 354.986667c-134.826667 0-244.053333 109.226667-244.053333 244.053333 0-134.826667 109.226667-244.053333 244.053333-244.053333zM824.32 445.44c-3.413333-6.826667-8.533333-10.24-15.36-10.24 6.826667 0 11.946667 3.413333 15.36 10.24zM948.906667 798.72c-40.96 29.013333-88.746667 46.08-141.653334 46.08 52.906667-1.706667 102.4-18.773333 141.653334-46.08zM800.426667 720.213333l-78.506667 40.96c-3.413333 1.706667-5.12 1.706667-8.533333 1.706667 3.413333 0 6.826667 0 10.24-1.706667l76.8-40.96c3.413333-1.706667 6.826667-1.706667 8.533333-1.706666-1.706667 0-5.12 0-8.533333 1.706666zM187.733333 604.16h138.24c20.48 0 35.84 15.36 35.84 35.84 0-20.48-17.066667-35.84-35.84-35.84H187.733333c-20.48 0-35.84 15.36-35.84 35.84-1.706667-20.48 15.36-35.84 35.84-35.84zM812.373333 660.48c-1.706667 0-3.413333-1.706667-5.12-1.706667 1.706667 0 3.413333 0 5.12 1.706667l39.253334 20.48c1.706667 1.706667 3.413333 1.706667 5.12 1.706667-1.706667 0-3.413333 0-5.12-1.706667l-39.253334-20.48zM187.733333 411.306667h262.826667c18.773333 0 35.84 15.36 35.84 35.84 0-20.48-17.066667-35.84-35.84-35.84H187.733333c-20.48 0-35.84 15.36-35.84 35.84-1.706667-18.773333 15.36-35.84 35.84-35.84z" p-id="217366" /><path d="M911.36 640c-3.413333 3.413333-5.12 10.24-5.12 15.36l15.36 88.746667c1.706667 10.24-6.826667 20.48-17.066667 20.48-3.413333 0-6.826667 0-10.24-1.706667l-78.506666-40.96c-1.706667-1.706667-5.12-1.706667-6.826667-1.706667-3.413333 0-5.12 0-6.826667 1.706667l-78.506666 40.96c-3.413333 1.706667-6.826667 1.706667-10.24 1.706667-10.24 0-18.773333-8.533333-17.066667-20.48l15.36-88.746667c1.706667-5.12 0-11.946667-5.12-15.36l-64.853333-61.44c-3.413333-3.413333-5.12-8.533333-5.12-13.653333 0-8.533333 5.12-15.36 15.36-17.066667l88.746666-13.653333c5.12 0 10.24-3.413333 13.653334-10.24l39.253333-80.213334c3.413333-6.826667 8.533333-10.24 15.36-10.24s11.946667 3.413333 15.36 10.24l39.253333 80.213334c3.413333 5.12 8.533333 8.533333 11.946667 8.533333l71.68 10.24h1.706667v-143.36c-40.96-29.013333-88.746667-46.08-141.653334-46.08C672.426667 353.28 563.2 462.506667 563.2 597.333333s109.226667 244.053333 244.053333 244.053334c52.906667 0 102.4-17.066667 141.653334-46.08V602.453333l-37.546667 37.546667z" p-id="217367" /><path d="M109.226667 1024h805.546666c18.773333 0 34.133333-15.36 34.133334-34.133333v-117.76c-40.96 20.48-88.746667 34.133333-139.946667 34.133333-168.96 0-305.493333-136.533333-305.493333-305.493333 0-168.96 136.533333-305.493333 305.493333-305.493334 51.2 0 98.986667 11.946667 139.946667 34.133334V34.133333c0-18.773333-15.36-34.133333-34.133334-34.133333H109.226667c-18.773333 0-34.133333 15.36-34.133334 34.133333v955.733334c0 18.773333 15.36 34.133333 34.133334 34.133333z m40.96-769.706667c0-20.48 17.066667-35.84 35.84-35.84H563.2c20.48 0 35.84 15.36 35.84 35.84 0 20.48-15.36 35.84-35.84 35.84H187.733333c-20.48 1.706667-37.546667-15.36-37.546666-35.84 0 1.706667 0 1.706667 0 0z m0 192.853334c0-20.48 15.36-35.84 35.84-35.84h261.12c18.773333 0 35.84 15.36 35.84 35.84 0 20.48-17.066667 35.84-35.84 35.84H187.733333c-20.48 1.706667-37.546667-15.36-37.546666-35.84z m0 192.853333c0-20.48 15.36-35.84 35.84-35.84H324.266667c18.773333 0 35.84 15.36 35.84 35.84 0 20.48-17.066667 35.84-35.84 35.84h-136.533334c-20.48 1.706667-37.546667-15.36-37.546666-35.84z" p-id="217368" /><path d="M863.573333 672.426667l-8.533333-44.373334c0-3.413333 0-5.12 1.706667-8.533333l32.426666-30.72c3.413333-3.413333 3.413333-10.24 0-13.653333-1.706667 0-1.706667-1.706667-3.413333-1.706667l-44.373333-6.826667c-3.413333 0-5.12-1.706667-6.826667-5.12l-18.773333-40.96c-1.706667-3.413333-5.12-5.12-6.826667-5.12-3.413333 0-6.826667 1.706667-6.826667 5.12L781.653333 563.2c-1.706667 1.706667-3.413333 3.413333-6.826666 5.12l-44.373334 6.826667c-6.826667 1.706667-10.24 10.24-5.12 15.36l32.426667 30.72c1.706667 1.706667 3.413333 5.12 1.706667 8.533333l-8.533334 44.373333c-1.706667 5.12 3.413333 10.24 6.826667 10.24 1.706667 0 3.413333 0 5.12-1.706666l39.253333-20.48c1.706667 0 3.413333-1.706667 5.12-1.706667 1.706667 0 3.413333 0 5.12 1.706667l39.253334 20.48c1.706667 0 3.413333 1.706667 5.12 1.706666 5.12-3.413333 8.533333-6.826667 6.826666-11.946666z" p-id="217369" /></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="M524.8 906.752l-104.448-58.368c-25.6-13.824-41.472-40.448-41.472-69.632V448.512c0-5.12-2.56-9.728-6.144-12.8l-240.64-193.024-2.56-3.072c-22.016-22.528-28.16-56.32-15.36-85.504 12.288-28.672 40.96-47.616 72.192-47.104h649.728c31.744 0 60.416 18.432 73.216 47.104s7.68 62.464-14.336 85.504l-3.072 3.072-243.712 195.072c-3.584 3.072-5.632 7.68-5.632 12.8v386.048c0.512 43.52-34.304 78.848-77.312 79.36h-1.536c-13.824 0.512-27.136-3.072-38.912-9.216z" p-id="210561" /><path d="M705.536 760.32c-17.408 0-31.232-14.336-31.232-31.232 0-17.408 14.336-31.232 31.232-31.232h178.688c17.408 0 31.232 14.336 31.232 31.232 0 17.408-13.824 31.232-30.72 31.232h-179.2z m0-117.76c-17.408-1.024-30.72-15.872-29.696-33.28 1.024-15.872 13.824-28.672 29.696-29.696h178.688c17.408 0 31.232 14.336 31.232 31.232 0.512 16.896-12.8 30.72-29.184 31.232h-2.048l-178.688 0.512z m0-118.272c-17.408-1.024-30.72-15.872-29.696-33.28 1.024-15.872 13.824-28.672 29.696-29.696h178.688c17.408 0 31.232 14.336 31.232 31.232 0.512 16.896-12.8 30.72-29.184 31.232h-2.048l-178.688 0.512z" p-id="210562" /></symbol>'});l.a.add(n);e["default"]=n},"886a":function(t,e,a){},"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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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[t.table.pageNum?a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))]):a("span",[t._v("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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("a434"),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:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},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["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){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 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 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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},createCancel:function(t){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 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,""==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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择驾驶员信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{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:"deleteDriver",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))}}},p=d,m=(a("a001"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"005d7619",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,staticStyle:{display:"none"},attrs:{closable:"",size:"small"},on:{close:t.handleCloseOrderBy}},[t._v(" "+t._s(e)+" ")])})),t._l(t.orderByStrs1,(function(e,i){return a("el-tag",{key:i,attrs:{closable:"",size:"small"},on:{close:t.handleCloseOrderBy}},[t._v(" "+t._s(e)+" ")])}))],2),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("d81d"),a("d3b7"),a("159b"),a("ac1f"),a("1276"),a("c740"),a("a434"),a("b76a")),l=a.n(r),n=a("3537"),o={components:{draggable:l.a},props:{value:{required:!0,type:Array}},data:function(){return{orderBy:[],orderBy1:[],orderByStrs1:[]}},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;this.orderByStrs.forEach((function(a,i){var s=a.split(" ")[0];t.findIndex((function(t){return t.Column===s}))||e.orderByStrs.splice(i,1)}))},handleOrderByChange:function(t){var e="";this.orderByOption.forEach((function(a,i){a.value==t[0]&&(e=a.label)})),this.orderBy=[];var a=this.orderByStrs.findIndex((function(e){return e.indexOf(t[0])>=0}));if(a>=0?this.orderByStrs.splice(a,1,"".concat(t[0]," ").concat(t[1])):this.orderByStrs.push("".concat(t[0]," ").concat(t[1])),this.orderBy1=[],"desc"==t[1])var i="降序";else i="正序";var s=this.orderByStrs1.findIndex((function(t){return t.indexOf(e)>=0}));s>=0?this.orderByStrs1.splice(s,1,"".concat(e," ").concat(i)):this.orderByStrs1.push("".concat(e," ").concat(i))},handleCloseOrderBy:function(t){this.orderByStrs.splice(this.orderByStrs.indexOf(t),1),this.orderByStrs1.splice(this.orderByStrs1.indexOf(t),1)}}},c=o,d=a("2877"),p=Object(d["a"])(c,i,s,!1,null,null,null);e["default"]=p.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},"892a":function(t,e,a){},"89b8":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:"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.labelCategoryList,(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.tagValueList,(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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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.drivercode))])]}}])}),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.drivername))])]}}])}),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.drivername))])]}}])}),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.drivername))])]}}])}),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.drivername))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"80","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:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}),a("span",{staticClass:"centerSpan"},[t._v("|")]),a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}})]}}])})],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.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:"create"},[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:10}},[a("el-form-item",{attrs:{label:"标签类别:",prop:"fname"}},[a("el-input",{ref:"fname",staticClass:"filter-item",attrs:{placeholder:"请输入标签类别",type:"text"},model:{value:t.create.temp.fname,callback:function(e){t.$set(t.create.temp,"fname",e)},expression:"create.temp.fname"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"备注:",prop:"fname"}},[a("el-input",{ref:"fname",staticClass:"filter-item",attrs:{placeholder:"请输入备注",type:"text"},model:{value:t.create.temp.fname,callback:function(e){t.$set(t.create.temp,"fname",e)},expression:"create.temp.fname"}})],1)],1)],1),a("div",{staticStyle:{width:"155px"}},[a("el-button",{staticClass:"success",staticStyle:{float:"right","margin-bottom":"10px"},attrs:{icon:"el-icon-plus"},on:{click:t.handleNewLabelValue}},[t._v("新增标签值")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.create.table.listLoading,expression:"create.table.listLoading"}],key:t.create.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.create.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[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[t.create.table.pageNum?a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))]):a("span",[t._v("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.gpsCode))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{placeholder:"标签值"},model:{value:e.row.gpsCode,callback:function(a){t.$set(e.row,"gpsCode",a)},expression:"scope.row.gpsCode"}}):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.gpsName))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{placeholder:"标签说明"},model:{value:e.row.gpsName,callback:function(a){t.$set(e.row,"gpsName",a)},expression:"scope.row.gpsName"}}):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-select",{on:{change:function(a){t.handleAssociatedDevicesChange(a,e.row)}},model:{value:e.row.tmrId,callback:function(a){t.$set(e.row,"tmrId",a)},expression:"scope.row.tmrId"}},t._l(t.labelRanchList,(function(t){return a("el-option",{key:t.id,attrs:{label:"名称:"+t.tname+" 编号:"+t.eqcode+"类型:"+t.tclassname,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.NewLabelcreateData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createNewLabelCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleNewLabelUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleNewLabelRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.NewLabelupdateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.NewLabelupdateCancel(i)}}}):t._e()]}}])})],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.createData()}}},[t._v("确认")])],1)],1)])],1)},s=[],r=(a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"LabelManagement",components:{Pagination:o["a"]},data:function(){return{labelRanchList:[],isRoleEdit:[],labelCategoryList:[],tagValueList:[],table:{getdataListParm:{name:"getDriverList",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:"",drivername:"",drivercode:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},dialogStatus:"",create:{dialogFormVisible:!1,rules:{},temp:{},table:{getdataListParm:{name:"getDriverList",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{}},tableKey:0,list:[],total:0,listLoading:!1}},textMap:{create:"新增"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},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["c"])(this.table.getdataListParm).then((function(e){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)}))},handleEnableChange:function(){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.drivername="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.drivercode="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){this.dialogStatus="create",this.create.dialogFormVisible=!0},handleNewLabelValue:function(){for(var t=0;t<this.create.table.list.length;t++)if(1==this.create.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.create.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,gpsCode:"",gpsName:"",tmrId:"",remark:""})},NewLabelcreateData:function(){},createData:function(){},createNewLabelCancel:function(t){for(var e=0;e<this.create.table.list.length;e++){if(t.myId===this.create.table.list[e].myId)var a=this.create.table.list.indexOf(this.create.table.list[e]);if(a>-1)return void this.create.table.list.splice(a,1)}},handleNewLabelUpdate:function(t){for(var e=0;e<this.create.table.list.length;e++)if(1==this.create.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},handleNewLabelRowDelete:function(){},NewLabelupdateData:function(){},NewLabelupdateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1},handleUpdate:function(t){},handleRowDelete:function(t){var e=this;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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择驾驶员信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{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:"deleteDriver",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))}}},p=d,m=(a("1730"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"2648bab2",null);e["default"]=u.exports},"8a05":function(t,e,a){"use strict";a("0088")},"8ad3":function(t,e,a){},"8bd9":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"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增车次 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleReduceTrains}},[t._v("减少车次")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{float:"left","margin-left":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v(" 生效")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v(" 禁用")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleAllEmpty}},[t._v(" 清空已分配栏舍")]):t._e(),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次"},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)],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",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:"50px",align:"center","class-name":"small-padding fixed-width",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",width:"110px",align:"center","class-name":"small-padding fixed-width",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrname))])]}}])}),a("el-table-column",{attrs:{label:"描述",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.display))])]}}])}),a("el-table-column",{attrs:{label:"生效",width:"70px",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.sel,callback:function(a){t.$set(e.row,"sel",a)},expression:"scope.row.sel"}})]}}])}),a("el-table-column",{attrs:{label:"班次",width:"65px",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:"时间",width:"55px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.begintime))])]}}])}),a("el-table-column",{attrs:{label:"最大重量",width:"75px",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:"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.ftname))])]}}])}),a("el-table-column",{directives:[{name:"show",rawName:"v-show",value:t.isInforvalue,expression:"isInforvalue"}],attrs:{label:"是否提前小料拆分",width:"70px",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.issplit,callback:function(a){t.$set(e.row,"issplit",a)},expression:"scope.row.issplit"}})]}}])}),a("el-table-column",{attrs:{label:"撒料","min-width":"250px",align:"left","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.arrList,(function(e){return a("div",{key:e.name,staticClass:"list"},[a("el-tooltip",{attrs:{placement:"top","open-delay":1e3}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("div",[t._v(" 栏舍全称:"+t._s(e.barname)+" ")]),a("div",[t._v(" 饲料重量:"+t._s(e.weight)+" ")]),a("div",[t._v(" 撒料车:"+t._s(e.tmrname)+" ")])]),a("div",{staticClass:"tmrname",style:{background:e.background}},[t._v(t._s(e.barname))])])],1)}))}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"70","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e()]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.create.dialogFormVisible,"before-close":t.close,"close-on-click-modal":!1,width:"90%","modal-append-to-body":!1,"append-to-body":!0},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"create"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 10px"},attrs:{rules:t.create.rules,model:t.create.temp,"label-position":"right","label-width":"135px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"生效:",prop:"sel"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.temp.sel,callback:function(e){t.$set(t.create.temp,"sel",e)},expression:"create.temp.sel"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"TMR编号:",prop:"tmrid2"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"TMR编号"},on:{change:t.changeTMRNumber},model:{value:t.create.temp.tmrid2,callback:function(e){t.$set(t.create.temp,"tmrid2",e)},expression:"create.temp.tmrid2"}},t._l(t.TMRNumberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tclassname+"/"+t.eqcode,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.create.list2.length>0,placeholder:"班次"},on:{change:t.changeTimes},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:8}},[a("el-form-item",{attrs:{label:"提前小料拆分:",prop:"issplit"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.temp.issplit,callback:function(e){t.$set(t.create.temp,"issplit",e)},expression:"create.temp.issplit"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"时间:",prop:"begintime"}},[a("el-time-picker",{staticStyle:{width:"100%"},attrs:{clearable:!1,type:"datetime",placeholder:"时间",format:"HH:mm","value-format":"HH:mm"},model:{value:t.create.temp.begintime,callback:function(e){t.$set(t.create.temp,"begintime",e)},expression:"create.temp.begintime"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"模板配方:",prop:"ftid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.create.list2.length>0,placeholder:"模板配方"},on:{change:t.changeTemplateFormulation},model:{value:t.create.temp.ftid,callback:function(e){t.$set(t.create.temp,"ftid",e)},expression:"create.temp.ftid"}},t._l(t.templateFormulationList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"描述:",prop:"display"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"描述",maxlength:"255"},model:{value:t.create.temp.display,callback:function(e){t.$set(t.create.temp,"display",e)},expression:"create.temp.display"}})],1)],1)],1)],1),"update"===t.create.dialogStatus||t.isDispaly?t._e():a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.distributionAndSpreading()}}},[t._v("分配撒料")]):t._e()],1),"update"==t.create.dialogStatus||t.isDispaly?a("div",{staticClass:"bottom",staticStyle:{"border-top":"1px solid #009C69"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("div",{staticClass:"fenceHouse"},[a("ul",{directives:[{name:"loading",rawName:"v-loading",value:t.create.listLoadingTimes,expression:"create.listLoadingTimes"}],staticClass:"fenceHouseList"},t._l(t.create.list1,(function(e){return a("li",{key:e.arrid},[e.isShowTitle?a("span",{staticClass:"fenceHouseTitle"},[t._v(t._s(e.ftname)+":")]):t._e(),t._l(e.arrList,(function(e){return a("div",{key:e.id,staticClass:"colorBlock"},[a("div",{staticStyle:{position:"relative"}},[a("el-tooltip",{staticStyle:{height:"18px","line-height":"18px"},style:{background:e.background},attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.barname))]),a("div",{staticClass:"barname"},[a("span",{staticStyle:{float:"left",width:"70px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[t._v(t._s(e.barname))]),a("button",{staticStyle:{background:"red",float:"right",width:"18px",color:"#fff","font-size":"18px",border:"none","text-align":"center"},attrs:{disabled:t.isokDisable},on:{click:function(a){return t.clickBar(e)}}},[t._v("√")])])]),a("div",{staticClass:"barWeight",style:{background:"rgba("+e.background2+",0.1)"}},[t._v(" "+t._s(e.weight)+" ")])],1)])}))],2)})),0)])]),a("el-col",{attrs:{span:4}},[a("div",{staticStyle:{"text-align":"center",height:"100px","margin-top":"40px"}},[a("div",{staticClass:"maxweight",staticStyle:{"line-height":"20px"}},[a("b",[t._v("最大重量:")]),t._v(t._s(t.create.temp.maxweight)+" (KG)")]),a("div",{staticClass:"sumweight",staticStyle:{"line-height":"20px","margin-top":"10px"}},[a("b",[t._v("合计重量:")]),t._v(t._s(t.create.temp.sumweight)+" (KG) ")])])])],1),a("div",{staticClass:"spreadingMaterial"},[a("div",[t._v("撒料:"),a("el-button",{attrs:{type:"danger"},on:{click:t.handleEmpty}},[t._v("清空")])],1),a("div",{staticClass:"spreadingMaterialList"},[a("draggable",{staticClass:"list-group1",attrs:{disabled:t.isDropState,id:"1","data-source":"juju",list:t.create.list2,draggable:".item",group:"a",animation:"500",move:t.move1},on:{change:t.changeLog1,start:t.start1,end:t.end1}},t._l(t.create.list2,(function(e){return a("div",{key:e.name,staticClass:"list-group-item2 item"},[a("div",{staticClass:"arr-l",style:{background:e.tbackground}},[a("div",{staticClass:"arr-l-t"},[a("div",{staticClass:"arr-l-t-t"}),a("el-select",{staticClass:"arr-l-t-b el-icon-arrow-down",attrs:{placeholder:"撒料设备"},on:{change:function(a){t.changeEquipment(a,e.fttype,e.id)}},model:{value:e.tmrid,callback:function(a){t.$set(e,"tmrid",a)},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("div",{staticClass:"arr-l-b"},[a("el-tooltip",{staticClass:"list-group-item1 item",staticStyle:{height:"18px","line-height":"18px"},attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.tmrname))]),a("div",{staticClass:"tmrname"},[t._v(t._s(e.tmrname))])])],1),0==e.fttype?a("div",{staticStyle:{background:"#009C69",position:"absolute",bottom:"0",left:"0"}},[t._v("补")]):t._e()]),a("div",{staticClass:"arr-r"},[a("div",{staticClass:"arr-r-l"},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.barname))]),a("div",{staticClass:"barname"},[t._v(t._s(e.barname))])])],1),a("div",{staticClass:"arr-r-c"},[t._v("-")]),a("div",{staticClass:"arr-r-r"},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.weight))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.weight,expression:"element.weight"}],ref:"weight",refInFor:!0,staticClass:"filter-item2",staticStyle:{display:"inline-block",height:"25px",padding:"4px 4px 4px 0","text-align":"right","font-size":"12px",width:"95%",border:"1px solid #e6e6e6"},attrs:{autofocus:e.focusState,type:"number",placeholder:"重量",step:"0.01"},domProps:{value:e.weight},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.target.blur.apply(null,arguments)},focus:t.focusWeight,blur:function(a){return t.blurWeight(e)},input:function(a){a.target.composing||t.$set(e,"weight",a.target.value)}}})])],1)]),a("div",{staticClass:"arr-t",style:{background:e.background}},[a("i",{staticClass:"el-icon-close",staticStyle:{position:"absolute",right:"0"},on:{click:function(a){return t.handleFLDelete(e)}}})])])})),0)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{height:"55px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{top:"40px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.close()}}},[t._v("关闭")]),a("el-button",{staticClass:"save",staticStyle:{top:"40px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.updateData()}}},[t._v("确认")])],1)],1):t._e()],1)],2)],1)},s=[],r=a("ade3"),l=(a("7db0"),a("d3b7"),a("b0c0"),a("159b"),a("ac1f"),a("00b4"),a("99af"),a("fb6a"),a("a15b"),a("4e82"),a("b680"),a("a434"),a("a78e")),n=a.n(l),o=a("aa47"),c=a("b76a"),d=a.n(c),p=a("2934"),m=a("5c96"),u={components:{draggable:d.a},name:"MaterialIssuancePlan",directives:{focus:{update:function(t,e){var a=e.value;a&&t.focus()}}},props:{show:{type:Boolean,default:!1},parentDate:{type:String,defalut:""}},data:function(){return{date:"",isRoleEdit:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},height:document.body.clientHeight-220,table:{getdataListParm:{page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),times:1,refresh:1}},tableKey:0,list:[],total:0,listLoading:!1},frequencyList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}},isInforvalue:!1,selectList:[],textMap:{create:"新增",update:"编辑"},dialogFull:!1,isOrder:!0,requestParam:{},isokDisable:!1,create:{dialogFormVisible:!1,dialogStatus:"",temp:Object(r["a"])({sel:1,tmrid:"",tmrid2:"",maxweight:"",issplit:1,begintime:"",sumweight:0,display:"",times:1,ftid:"",ftname:"",tmrname:""},"maxweight",""),rules:{tmrid2:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"number",required:!0,message:"必填",trigger:"blur"}],ftid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},listLoadingTimes:!1,list1:[],list2:[],checkBarList:[]},TMRNumberList:[],equipmentList:[],templateFormulationList:[],isDispaly:!1,isDropState:!1}},watch:{show:{immediate:!0,handler:function(t,e){}},parentDate:{immediate:!0,handler:function(t,e){this.date=t}}},created:function(){this.getButtons(),this.getIsDisplay(),this.getList()},methods:{getButtons:function(){var t="DailyExecutionPlan",e=Object(p["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this,e="authdata/GetDataByName",a={name:"getTMRListEnableType",offset:0,parammaps:{pastureid:n.a.get("pastureid"),eqtype:"1"}};Object(p["n"])(e,a).then((function(e){null!==e.data?t.TMRNumberList=e.data.list:t.TMRNumberList=[]}));var i={name:"getTMRListEnableTypeAll",offset:0,parammaps:{pastureid:n.a.get("pastureid"),eqtype:"1"}};Object(p["n"])(e,i).then((function(e){null!==e.data?(t.equipmentList=e.data.list,"update"==t.create.dialogStatus&&(void 0!==t.equipmentList.find((function(e){return e.id==t.create.temp.tmrid}))?t.create.temp.tclassname=t.equipmentList.find((function(e){return e.id==t.create.temp.tmrid})).tclassname:t.create.temp.tclassname="固定式")):t.equipmentList=[]}));var s={name:"getFTSWList",offset:0,parammaps:{pastureid:n.a.get("pastureid")}};Object(p["n"])(e,s).then((function(e){null!==e.data?t.templateFormulationList=e.data.list:t.templateFormulationList=[]}));var r={name:"getSysoptEnable",offset:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"isSmallMaterial"}};Object(p["n"])(e,r).then((function(e){null!==e.data?0==e.data.list[0].inforvalue?t.isInforvalue=!1:t.isInforvalue=!0:t.isInforvalue=!1}))},getIsDisplay:function(){var t=this,e="authdata/GetDataByName",a=this.maxTime.getMaxTimesParm;Object(p["n"])(e,a).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;var e="authdata/spillage/day";this.table.getdataListParm.parammaps.date=this.date;var a=this.table.getdataListParm;Object(p["n"])(e,a).then((function(e){if(void 0!==e.data.list)if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)null==e.data.list[a].arrList&&t.$set(e.data.list[a],"arrList",[]);t.table.list=e.data.list,t.table.total=e.data.list.length,setTimeout((function(){t.$refs.table.doLayout()}),100)}else t.table.list=[];t.table.listLoading=!1}))},changeFrequency:function(t){this.getList()},handleRowDelete:function(t){var e=this;if(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="deleteLppdate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,e.requestParam.parammaps.date=e.date;var a="authdata/PostDataByName",i=e.requestParam;Object(p["n"])(a,i).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.table.getdataListParm.parammaps.refresh=1,e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},handleSelect:function(t){this.selectList=t},changeTemplateFormulation:function(t){this.create.temp.ftname=this.templateFormulationList.find((function(e){return e.id===t})).tname,this.getCreateList1()},changeTimes:function(t){this.getCreateList1()},changeTMRNumber:function(t){var e=this;this.create.list2.length>0?m["MessageBox"].confirm("更换TMR撒料设备,会清空撒料车,是否更换?",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}).then((function(){e.create.temp.tmrid=e.create.temp.tmrid2,e.create.temp.tmrname=e.TMRNumberList.find((function(e){return e.id===t})).eqcode,e.create.temp.maxweight=e.TMRNumberList.find((function(e){return e.id===t})).maxstirfeed,e.create.temp.mytmrid=e.create.temp.tmrid,e.create.temp.mytmrname=e.create.temp.tmrname,(e.isDispaly||"update"==e.create.dialogStatus)&&e.getClearList()})).catch((function(){e.create.temp.tmrid2=e.create.temp.tmrid,e.create.temp.tmrname=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).eqcode,e.create.temp.maxweight=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).maxstirfeed,e.create.temp.tclassname=e.TMRNumberList.find((function(t){return t.id===e.create.temp.tmrid2})).tclassname,e.create.temp.mytmrid=e.create.temp.tmrid2,e.create.temp.mytmrname=e.create.temp.tmrname,(e.isDispaly||"update"==e.create.dialogStatus)&&e.getClearList(),e.$message({type:"info",message:"已取消"})})):(this.create.temp.tmrid=this.create.temp.tmrid2,this.create.temp.tmrname=this.TMRNumberList.find((function(e){return e.id===t})).eqcode,this.create.temp.maxweight=this.TMRNumberList.find((function(e){return e.id===t})).maxstirfeed,this.create.temp.tclassname=this.TMRNumberList.find((function(e){return e.id===t})).tclassname,this.create.temp.mytmrid=this.create.temp.tmrid,this.create.temp.mytmrname=this.create.temp.tmrname)},getClearList:function(){var t=this,e="authdata/lpplandtl/del/day",a=[];this.create.list2.forEach((function(e,i){var s={};s.pastureid=e.pastureid,s.lpplandtlid=e.id,s.fttype=e.fttype,s.lweight=e.lweight,s.fpdid=e.fpdid,s.date=t.date,a.push(s)})),Object(p["n"])(e,a).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.getCreateList1())}))},colorRgb:function(t){t=t.toLowerCase();var e=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t&&e.test(t)){if(4===t.length){for(var a="#",i=1;i<4;i+=1)a+=t.slice(i,i+1).concat(t.slice(i,i+1));t=a}var s=[];for(i=1;i<7;i+=2)s.push(parseInt("0x"+t.slice(i,i+2)));return s.join(",")}return"rgba("+s.join(",")+")"},dbclickWeight:function(t){this.$set(t,"isWeight",!0),this.$set(t,"focusState",!0)},focusWeight:function(){this.isDropState=!0},blurWeight:function(t){var e=this;if(this.isDropState=!1,parseFloat(t.weight)<=0)return this.$message({type:"error",message:"重量不可输入小于0的数据",duration:2e3}),!1;""==t.weight&&(t.weight=0);var a=String(parseFloat(t.weight)-parseFloat(t.lweight)),i=0;if(this.create.list2.forEach((function(t,e){i+=parseFloat(t.weight)})),i>this.create.temp.maxweight)return this.$message({type:"error",message:"撒料车总重量大于最大重量",duration:2e3}),!1;this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkFPdLeftWdate",type:"v",parammaps:{pastureid:t.pastureid,fpdid:t.fpdid,fttype:t.fttype,lweight:a,date:this.date}},this.requestParam.data[1]={name:"updateLppddate",type:"e",parammaps:{pastureid:this.create.temp.pastureid,lppid:this.create.temp.id,barid:t.barid,barname:t.barname,fpdid:t.fpdid,fttype:t.fttype,lweight:t.weight,sort:t.sort,tmrid:t.tmrid,tmrname:t.tmrname,background:t.background,id:t.id,date:this.date}},this.requestParam.data[2]={name:"updateFpdetailUsedate",type:"e",parammaps:{pastureid:t.pastureid,id:t.fpdid,fttype:t.fttype,lweight:a,date:this.date}};var s="authdata/ExecDataByConfig",r=this.requestParam;Object(p["n"])(s,r).then((function(t){"fail"===t.msg&&e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}),e.getCreateList1()}))},handleFLDelete:function(t){var e=this;this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deleteLppddate",type:"e",parammaps:{pastureid:t.pastureid,id:t.id,date:this.date}},this.requestParam.data[1]={name:"updateFpdetailUsedate",type:"e",parammaps:{pastureid:t.pastureid,id:t.fpdid,fttype:t.fttype,lweight:"-"+parseFloat(t.weight),date:this.date}};var a="authdata/ExecDataByConfig",i=this.requestParam;Object(p["n"])(a,i).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.getCreateList1())}))},handleCreate:function(){this.create.temp=Object(r["a"])({sel:1,tmrid:"",tmrid2:"",maxweight:"",issplit:1,begintime:"",sumweight:0,display:"",times:1,ftid:"",ftname:"",tmrname:""},"maxweight",""),this.create.temp.times=this.table.getdataListParm.parammaps.times,this.getDownList(),this.isDispaly=!1,this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.create.list1=[],this.create.list2=[],this.create.checkBarList=[]},distributionAndSpreading:function(){var t=this;this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a="authdata/lpplandtl/add/day",i={};t.create.temp.pastureid=n.a.get("pastureid"),t.create.temp.times=parseInt(t.create.temp.times),t.create.temp.date=t.date,i.parammaps=t.create.temp,Object(p["n"])(a,i).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.temp.id=e.data.Id,t.isDispaly=!0):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})})),t.getCreateList1()}}))},getCreateList1:function(){var t=this;this.create.listLoadingTimes=!0;var e="authdata/spillage/day",a={page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),times:this.create.temp.times,refresh:2,ftid:this.create.temp.ftid,date:this.date}};Object(p["n"])(e,a).then((function(e){if(null!==e.data.ftlist){for(var a=0;a<e.data.ftlist.length;a++)if(t.$set(e.data.ftlist[a],"isShowTitle",!0),null==e.data.ftlist[a].arrList)t.$set(e.data.ftlist[a],"isShowTitle",!1);else for(var i=0;i<e.data.ftlist[a].arrList.length;i++)t.$set(e.data.ftlist[a].arrList[i],"background2",t.colorRgb(e.data.ftlist[a].arrList[i].background));t.create.list1=e.data.ftlist}else t.create.list1=[];t.create.listLoadingTimes=!1})),this.getCreateList2()},getCreateList2:function(){var t=this,e="authdata/lpplandtl/day",a={parammaps:{}};a.parammaps.pastureid=n.a.get("pastureid"),a.parammaps.id=this.create.temp.id,a.parammaps.date=this.date,Object(p["n"])(e,a).then((function(e){if(null!==e.data){t.create.list2=e.data;for(var a=0,i=0;i<t.create.list2.length;i++)a+=parseFloat(t.create.list2[i].weight),t.$set(t.create.list2[i],"isWeight",!1),t.$set(t.create.list2[i],"focusState",!1);t.create.temp.sumweight=a.toFixed(2)}else t.create.list2=[],t.create.temp.sumweight=0}))},clickBar:function(t){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.create.temp.sumweight=parseFloat(this.create.temp.sumweight),"固定式"==this.create.temp.tclassname&&void 0!==this.equipmentList.find((function(t){return"任意车"==t.tclassname}))&&(this.create.temp.tmrname=this.equipmentList.find((function(t){return"任意车"==t.tclassname})).eqcode,this.create.temp.tmrid=this.equipmentList.find((function(t){return"任意车"==t.tclassname})).id);var a=this.create.temp;if(parseFloat(a.maxweight)-parseFloat(a.sumweight)<parseFloat(t.weight)&&parseFloat(a.sumweight)+parseFloat(t.weight)>parseFloat(a.maxweight)&&this.$set(t,"weight",(parseFloat(a.maxweight)-parseFloat(a.sumweight)).toFixed(2)),parseFloat(a.maxweight)==parseFloat(a.sumweight)||parseFloat(a.maxweight)<parseFloat(a.sumweight))return this.$message({type:"error",message:"计划配方已经是最大容量",duration:2e3}),void this.getCreateList1();var i="authdata/lpplandtl/date/add",s={parammaps:{}};s.parammaps.id=t.id,s.parammaps.pastureid=a.pastureid,s.parammaps.lppid=a.id,s.parammaps.barid=t.barid,s.parammaps.barname=t.barname,s.parammaps.fpdid=t.id,s.parammaps.lweight=t.weight,s.parammaps.tmrid=a.tmrid,s.parammaps.tmrname=a.tmrname,s.parammaps.fttype=t.fttype,s.parammaps.background=t.background,s.parammaps.cowcount=t.cowcount,s.parammaps.ccountradio=t.ccountradio,s.parammaps.date=this.date,Object(p["n"])(i,s).then((function(a){e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"updateFpdetailUsedate",type:"e",parammaps:{pastureid:t.pastureid,id:t.id,fttype:t.fttype,lweight:t.weight,date:e.date}};var i="authdata/ExecDataByConfig",s=e.requestParam;Object(p["n"])(i,s).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.getCreateList1()}))}))},handleUpdate:function(t){this.getDownList(),this.dialogFull=!1,this.create.dialogStatus="update",this.create.dialogFormVisible=!0,t.tmrid2=t.tmrid,this.create.temp=Object.assign({},t),this.create.temp.mytmrname=t.tmrname,this.create.temp.mytmrid=t.tmrid,this.create.checkBarList=[],this.getCreateList1()},updateData:function(){var t=this;this.$refs["temp"].validate((function(e){if(e){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var a="authdata/PostDataByName",i={name:"updateLppdate"};t.create.temp.pastureid=n.a.get("pastureid"),t.create.temp.times=parseInt(t.create.temp.times),t.create.temp.sumcowcount=0,t.create.temp.date=t.date,i.parammaps=t.create.temp,i.parammaps.tmrid=t.create.temp.mytmrid,i.parammaps.tmrname=t.create.temp.mytmrname,Object(p["n"])(a,i).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},close:function(){var t=this;if("create"==this.create.dialogStatus){this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);for(var e="authdata/lpplandtl/restore/day",a={old:[]},i=0;i<this.create.list2.length;i++)this.$set(this.create.list2[i],"date",this.date);a.new=this.create.list2,Object(p["n"])(e,a).then((function(e){"fail"!==e.msg&&(t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList())}))}else{this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);for(var s="authdata/lpplandtl/restore/day",r={},l=0;l<this.create.temp.arrList.length;l++)this.$set(this.create.temp.arrList[l],"date",this.date);for(var n=0;n<this.create.list2.length;n++)this.$set(this.create.list2[n],"date",this.date);r.old=this.create.temp.arrList,r.new=this.create.list2,Object(p["n"])(s,r).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.isDispaly=!1,t.dialogFull=!1,t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}},changeEquipment:function(t,e,a){var i=this,s=this.equipmentList.find((function(e){return e.id==t})).tclassname,r=this.equipmentList.find((function(e){return e.id==t})).maxstirfeed;if("固定式"==s)return this.$message({type:"error",message:"固定式设备无法撒料,请选择撒料设备",duration:2e3}),void this.getCreateList2();for(var l={},n=0;n<this.create.list2.length;n++)this.create.list2[n].fttype==e&&this.create.list2[n].id==a&&(this.create.list2[n].tmrname=this.equipmentList.find((function(e){return e.id===t})).tname,l=this.create.list2[n],parseFloat(this.create.list2[n].weight)>parseFloat(r)&&(l.weight=r));var o="authdata/lpplandtl/date/add",c={parammaps:{}};c.parammaps.id=l.id,c.parammaps.pastureid=this.create.temp.pastureid,c.parammaps.lppid=this.create.temp.id,c.parammaps.tmrid=l.tmrid,c.parammaps.tmrname=l.tmrname,c.parammaps.date=this.date,Object(p["n"])(o,c).then((function(t){"fail"===t.msg?i.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(i.getCreateList2(),i.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},move1:function(t,e){},changeLog1:function(t){var e=this,a=t.moved.element,i="authdata/lpplandtl/edit/date/sort",s={parammaps:{}};s.parammaps.tmrid=a.tmrid,s.parammaps.pastureid=a.pastureid,s.parammaps.lppid=a.lppid,s.parammaps.sort=t.moved.newIndex+1,s.parammaps.id=a.id,s.parammaps.date=this.date,Object(p["n"])(i,s).then((function(t){"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.getCreateList2(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))}))},start1:function(t){},end1:function(t,e){},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(){for(var e=0;e<t.selectList.length;e++)t.$set(t.selectList[e],"date",t.date);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:"deleteLppdate",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",date:"@insertSpotList.date"}};var a="authdata/ExecDataByConfig",i=t.requestParam;Object(p["n"])(a,i).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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},rowDrop:function(){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&&1!=e.isOrder||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)}})},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a+1,i.date=this.date,i.id=this.table.list[a].id,i.pastureid=this.table.list[a].pastureid,e.push(i)}var s="authdata/trains/day",r=e;Object(p["n"])(s,r).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.table.getdataListParm.parammaps.refresh=1,t.getList(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.table.getdataListParm.parammaps.refresh=1,this.getList(),this.isOrder=!0},handleTakeEffect:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否生效?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].sel=1;var a={common:{returnmap:"0"},data:[]};a.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},a.data[0].children=[],a.data[0].children[0]={name:"UpdateLpplandateSel",type:"e",parammaps:{sel:"@insertSpotList.sel",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}};var i="authdata/ExecDataByConfig";Object(p["n"])(i,a).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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleDisable:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否禁用?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].sel=0;var a={common:{returnmap:"0"},data:[]};a.data[0]={name:"insertSpotList",resultmaps:{list:t.selectList}},a.data[0].children=[],a.data[0].children[0]={name:"UpdateLpplandateSel",type:"e",parammaps:{sel:"@insertSpotList.sel",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}};var i="authdata/ExecDataByConfig";Object(p["n"])(i,a).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.table.getdataListParm.parammaps.refresh=1,t.getList())}))}))},handleEmpty:function(){for(var t=this,e=[],a=0;a<this.create.list2.length;a++){var i={};i.pastureid=this.create.list2[a].pastureid,i.id=this.create.list2[a].fpdid,i.fttype=this.create.list2[a].fttype,i.lweight="-"+this.create.list2[a].weight,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deleteLpplandtl1DateByLppid",type:"e",parammaps:{lppid:this.create.temp.id,pastureid:n.a.get("pastureid"),date:this.date}},this.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"updateFpdetailUsedate",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",id:"@insertSpotList.id",fttype:"@insertSpotList.fttype",lweight:"@insertSpotList.lweight",date:this.date}},Object(p["b"])(this.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.getCreateList1())}))},handleAllEmpty:function(){var t=this;m["MessageBox"].confirm("执行该操作会将现有车次已分配的撒料栏舍全部清空,是否要执行该操作?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"deleteLpplandtl1dateAll",type:"e",parammaps:{pastureid:n.a.get("pastureid"),date:t.date}},t.requestParam.data[1]={name:"deletefpdetaildateAll",type:"e",parammaps:{pastureid:n.a.get("pastureid"),date:t.date}},Object(p["b"])(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())}))}))}}},h=u,b=(a("f721"),a("4006"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"2db27ec6",null);e["default"]=g.exports},"8c11":function(t,e,a){"use strict";a("e18c")},"8c7c":function(t,e,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("8a05"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,"1699b730",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},"8d93":function(t,e,a){"use strict";a("0658")},"8e64":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkIyMENCMjM1QzI3QTExRUI4NDUyRjVBQTg2MDFBM0FCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkIyMENCMjM2QzI3QTExRUI4NDUyRjVBQTg2MDFBM0FCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QjIwQ0IyMzNDMjdBMTFFQjg0NTJGNUFBODYwMUEzQUIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QjIwQ0IyMzRDMjdBMTFFQjg0NTJGNUFBODYwMUEzQUIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5Rui8WAAACeUlEQVR42uyZzW7TQBDHZx3TxjURdRqQeB8QFV/quVW5VNx6rtRXKOLEnQNQzlyoiuABKvEglKRJSp3EobV3mbXG1mQTJKSsHSNlpJE3Xjv/X2a8u96J+H52BsyEcTTbRZia0c7PuSZYsLGx6q2tHWF7G70J5Vgf/TgajQ763e5vDuwakXLqnnfk+/5+o9EAx3FKoZNSBmEY7iulxvjxUJ/KougQmKC2K4TYKRMuhUAtrYnae5TVnIunuEadQZlwHFJrE4PK3GXR04ArsHhboRSnaXb488cGzSKNpxj+C0BhpHnRVuOBM0eDqADgxGLhGB1VARTmSmLVhuMxfDz9ilOHgL3nT+ebfoqAe//5FH5cXECSyPnnR+twJ1+g3e/D3fV12Nl8WB3AHK7XS+FePNkE3/OqAajhPjC4XUtwVgBHBPcT4VoEd9sSnBVAxd4ui5ij5gb063XYffwI7jWb0Lm8TEfwMIqqAzgL8p1FSGujOIcMAquQVufBFBIHSQZ5jKtJpQA55P1WC2q1+b++kLVYQ77celatZ7CwvcoScAm4BPx3wGzdv5JSlg5CmlfG+8dUBFUcxydhGEKZkFpLa6L2JzBKcLwOoomSbrv9WinlDQaDB0IIvwxA1Bsi3Ldep/NGMxALACu/ZYBxkiRh5/z8Fbbfot9Brxe4odcwuuT2C72LHmoGYOW3KUD0iG7QpouJqwUDao0BaUazAPP0ol/TRdpu6MZbvFZiM7Oke0NR1LojYsjSPJHihCAiFnqXoicKAsx0Y/JrOiZmBIGlOPtlDnMoCDDTlSyLCUvxRI1asQ7JolZGlV8Z+lNVfvWXjRrAgv+G+CPAABSyGpvyXCKyAAAAAElFTkSuQmCC"},"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},"8ec1":function(t,e,a){"use strict";a("706d")},"8eef":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-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px","margin-right":"10px",float:"left"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},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","margin-right":"10px"},attrs:{placeholder:"查询"},model:{value:t.table.getdataListParm.parammaps.search,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"search",e)},expression:"table.getdataListParm.parammaps.search"}},t._l(t.searchList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),"0"==t.table.getdataListParm.parammaps.search?a("el-select",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请输入配方名称"},model:{value:t.table.getdataListParm.parammaps.templetid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"templetid",e)},expression:"table.getdataListParm.parammaps.templetid"}},t._l(t.fenceHouseList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tname,value:t.id}})})),1):a("el-select",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择栏舍"},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.formulaList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1),a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},on:{click:t.handleSearch}},[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.tableCellStyle}},[a("el-table-column",{attrs:{sortable:"",label:"配方模板/指标","min-width":"98px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{on:{click:function(e){return t.clickFormulaTemplateIndex(i)}}},[t._v(t._s(i.tname))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"牛头数",prop:"ccount","min-width":"58px",align:"center"}}),a("el-table-column",{attrs:{label:"干物质(kg)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"dry",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.dry)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.dry)))])]}}])})],1),a("el-table-column",{attrs:{label:"产奶净能(MJ)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"nm",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.nm)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.nm)))])]}}])})],1),a("el-table-column",{attrs:{label:"奶牛能量单位(NND)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"nuint",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.nuint)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.nuint)))])]}}])})],1),a("el-table-column",{attrs:{label:"粗蛋白(g)",align:"center"}},[a("el-table-column",{attrs:{prop:"cp",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.cp)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.cp)))])]}}])})],1),a("el-table-column",{attrs:{label:"磷(g)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"p",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.p)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.p)))])]}}])})],1),a("el-table-column",{attrs:{label:"产奶净能(MCal/DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"nmd",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.nmd)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.nmd)))])]}}])})],1),a("el-table-column",{attrs:{label:"粗蛋白(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"cpd",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.cpd)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.cpd)))])]}}])})],1),a("el-table-column",{attrs:{label:"脂肪(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"fat",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.fat)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.fat)))])]}}])})],1),a("el-table-column",{attrs:{label:"淀粉(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"starch",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.starch)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.starch)))])]}}])})],1),a("el-table-column",{attrs:{label:"NDF(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"ndf",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.ndf)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.ndf)))])]}}])})],1),a("el-table-column",{attrs:{label:"粗料中的NDF(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"cndf",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.cndf)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.cndf)))])]}}])})],1),a("el-table-column",{attrs:{label:"ADF(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"adf",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.adf)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.adf)))])]}}])})],1),a("el-table-column",{attrs:{label:"钙(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"cad",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.cad)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.cad)))])]}}])})],1),a("el-table-column",{attrs:{label:"磷(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"pd",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.pd)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.pd)))])]}}])})],1),a("el-table-column",{attrs:{sortable:"",label:"精粗比(%)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"jcrate",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.jcrate)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.jcrate)))])]}}])})],1),a("el-table-column",{attrs:{label:"操作",align:"center",width:"70","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}})]}}])})],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",{staticClass:"dialogMinHeight",attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.see.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-see dialogMinHeight"},[a("div",{staticClass:"tableSee"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.table.listLoading,expression:"see.table.listLoading"}],key:t.see.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.see.table.list,border:"",fit:"","show-summary":"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.tableCellStyle}},[a("el-table-column",{attrs:{label:"栏舍/指标","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{on:{click:function(e){return t.clickFormulaHurdlesIndex(i)}}},[t._v(t._s(i.barname))])]}}])}),a("el-table-column",{attrs:{label:"牛头数","min-width":"100px",align:"center",prop:"ccount"}}),a("el-table-column",{attrs:{label:"干物质(kg)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"dry-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"dry-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"dry-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"dry-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"产奶净能(M)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"nm-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"nm-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"nm-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"nm-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"奶牛能量单位(NND)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"nuint-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"nuint-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"nuint-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"nuint-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"粗蛋白(g)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"cp-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"cp-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"cp-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"cp-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"磷(g)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"p-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"p-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"p-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"p-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"产奶净能(MCal/DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"nmd-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"nmd-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"nmd-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"nmd-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"粗蛋白(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"cpd-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"cpd-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"cpd-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"cpd-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"脂肪(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"fat-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"fat-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"fat-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"fat-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"淀粉(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"starch-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"starch-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"starch-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"starch-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"NDF(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"ndf-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"ndf-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"ndf-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"ndf-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"粗料中的NDF(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"cndf-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"cndf-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"cndf-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"cndf-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"ADF(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"adf-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"adf-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"adf-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"adf-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"钙(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"cad-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"cad-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"cad-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"cad-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"磷(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"pd-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"pd-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"pd-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"pd-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"(4.0)饲料转化效率(kg/DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"trans4f-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"trans4f-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"trans4f-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"trans4f-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"(3.5)饲料转化效率(kg/DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"trans35f-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"trans35f-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"trans35f-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"trans35f-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"精粗比(%)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"jcrate-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"jcrate-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"jcrate-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"jcrate-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"日粮成本(元)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"uprice-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"uprice-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"uprice-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"uprice-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"干物质成本(元/公斤)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"upriced-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"upriced-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"upriced-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"upriced-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"日公斤奶成本(元)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"kprice-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"kprice-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"kprice-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"kprice-S",label:"采食量","min-width":"58",align:"center"}})],1)],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{right:"20px"},on:{click:function(e){t.see.dialogFormVisible=!1,t.$route.params.tname=""}}},[t._v("关闭")])],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.details.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.details,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.details.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"details dialogMinHeight"},[a("el-form",{ref:"temp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:t.details.rules,model:t.details.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"历史记录时间:",prop:"maxDate"}},[a("el-date-picker",{attrs:{clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"请选择历史记录时间"},on:{change:t.changeMaxDate},model:{value:t.details.temp.maxDate,callback:function(e){t.$set(t.details.temp,"maxDate",e)},expression:"details.temp.maxDate"}})],1)],1)],1)],1),a("div",{staticClass:"table1"},[a("div",{ref:"templateDialog",staticClass:"templateDialog"},[a("div",{staticClass:"recipeTemplateF"},[a("p",[t._v("配方模板表")])])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.details.table1.listLoading,expression:"details.table1.listLoading"}],key:t.details.table1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.details.table1.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"100px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"100px",align:"center",prop:"ccname"}}),a("el-table-column",{attrs:{label:"配方类型","min-width":"100px",align:"center",prop:"fttype"}}),a("el-table-column",{attrs:{label:"来源","min-width":"100px",align:"center",prop:"source"}}),a("el-table-column",{attrs:{label:"版本号","min-width":"100px",align:"center",prop:"version"}}),a("el-table-column",{attrs:{label:"版本时间","min-width":"100px",align:"center",prop:"versiontime"}})],1)],1),a("div",{staticClass:"table2 detailDialog"},[a("div",{staticClass:"recipeTemplateF"},[a("p",[t._v("配方详情表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.details.table2.listLoading,expression:"details.table2.listLoading"}],key:t.details.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.details.table2.list,border:"",fit:"","show-summary":"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"饲料组","min-width":"100px",align:"center",prop:"feedgroup"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"100px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"重量(KG)","min-width":"100px",align:"center",prop:"fweight"}}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"100px",align:"center",prop:"autosecond"}}),a("el-table-column",{attrs:{label:"是否锁定牛头数比例","min-width":"100",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()]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])})],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{right:"20px"},on:{click:function(e){t.details.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2)],1)},s=[],r=(a("a9e3"),a("b680"),a("ac1f"),a("841c"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("ed08"),d={name:"FormulationEvaluation",components:{Pagination:o["a"]},filters:{keepTreeNum:function(t){return t=Number(t),t.toFixed(3)}},data:function(){return{dialogFull:!1,searchList:[{id:"0",name:"按配方查询"},{id:"1",name:"按栏舍查询"}],formulaList:[],fenceHouseList:[],table:{getdataListParm:{name:"judgenurFTReport",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(c["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(c["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],search:"0",templetid:"",barid:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},see:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"judgenurFTReport",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{name:"judgenurBarBmReport",name1:"judgenurBarHSL"}}}},details:{dialogFormVisible:!1,dialogStatus:"",temp:{maxDate:""},rules:{},table1:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFTListDateHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",id:""}}},table2:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFTdetailListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",ftid:"",date:"",version:""}}},maxDate:{getdataListParm:{name:"getFTMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:""}}}},textMap:{see:"",details:"配方详情"},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){var t=this;""!==this.$route.params.tname&&void 0!==this.$route.params.tname&&void 0!==this.$route.params.startTime&&void 0!==this.$route.params.stopTime&&(this.table.getdataListParm.parammaps.startTime=this.$route.params.startTime,this.table.getdataListParm.parammaps.stopTime=this.$route.params.stopTime,this.textMap.see="栏舍详情——"+this.$route.params.tname,setTimeout((function(){t.dialogFull=!1,t.see.dialogStatus="see",t.see.dialogFormVisible=!0}),500),this.see.table.getdataListParm.parammaps.ftid=this.$route.params.ftid,this.see.table.getdataListParm.parammaps.pastureid=this.$route.params.pastureid,this.see.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.startTime,this.see.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.stopTime,this.getListSee()),this.getList(),this.getformulaList(),this.getfenceHouseList()},methods:{getformulaList:function(){var t=this,e="authdata/GetDataByName",a={name:"getBarListEnable",parammaps:{}};a.parammaps.pastureid=n.a.get("pastureid"),Object(r["n"])(e,a).then((function(e){null!==e.data.list?t.formulaList=e.data.list:t.formulaList=[]}))},getfenceHouseList:function(){var t=this,e="authdata/GetDataByName",a={name:"getFeedTempletName"};Object(r["n"])(e,a).then((function(e){null!==e.data.list?t.fenceHouseList=e.data.list:t.fenceHouseList=[]}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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=[],t.table.pageNum=0,t.table.pageSize=0,t.table.total=0),setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){"0"==this.table.getdataListParm.parammaps.search?this.table.getdataListParm.parammaps.barid="":this.table.getdataListParm.parammaps.templetid="",this.getList()},changeDate:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime&&(this.table.getdataListParm.parammaps.startTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList())},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()}this.table.getdataListParm.parammaps.startTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),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.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList()},tableCellStyle:function(t){t.row,t.column,t.rowIndex;var e=t.columnIndex;return 0===e?{textDecoration:"underline"}:{textDecoration:"none"}},clickFormulaTemplateIndex:function(t){this.dialogFull=!1,this.details.dialogStatus="details",this.details.dialogFormVisible=!0,this.details.table1.getdataListParm.parammaps.pastureid=t.pastureid,this.details.table1.getdataListParm.parammaps.id=t.ftid,this.details.maxDate.getdataListParm.parammaps.pastureid=t.pastureid,this.getMaxDate()},getMaxDate:function(){var t=this;Object(r["c"])(this.details.maxDate.getdataListParm).then((function(e){null!==e.data.list?t.details.temp.maxDate=e.data.list[0].maxdate:t.details.temp.maxDate="",t.details.table1.getdataListParm.parammaps.date=t.details.temp.maxDate,t.details.table2.getdataListParm.parammaps.date=t.details.temp.maxDate,t.getListDetails1()}))},changeMaxDate:function(t){this.details.table1.getdataListParm.parammaps.date=this.details.temp.maxDate,this.getListDetails1()},getListDetails1:function(){var t=this;this.details.table1.listLoading=!0,Object(r["c"])(this.details.table1.getdataListParm).then((function(e){null!==e.data.list?(t.details.table1.list=e.data.list,t.details.table1.pageNum=e.data.pageNum,t.details.table1.pageSize=e.data.pageSize,t.details.table1.total=e.data.total,t.details.table2.getdataListParm.parammaps.pastureid=t.details.table1.list[0].pastureid,t.details.table2.getdataListParm.parammaps.ftid=t.details.table1.list[0].id,t.details.table2.getdataListParm.parammaps.version=t.details.table1.list[0].version,t.getListDetails2()):(t.details.table1.list=[],t.details.table2.list=[],t.details.table1.pageNum=0,t.details.table1.pageSize=0,t.details.table1.total=0),setTimeout((function(){t.details.table1.listLoading=!1}),100)}))},getListDetails2:function(){var t=this;this.details.table2.listLoading=!0,Object(r["c"])(this.details.table2.getdataListParm).then((function(e){null!==e.data.list?(t.details.table2.list=e.data.list,t.details.table2.pageNum=e.data.pageNum,t.details.table2.pageSize=e.data.pageSize,t.details.table2.total=e.data.total):(t.details.table2.list=[],t.details.table2.pageNum=0,t.details.table2.pageSize=0,t.details.table2.total=0),setTimeout((function(){t.details.table2.listLoading=!1}),100)}))},clickFormulaHurdlesIndex:function(t){this.$router.push("/formulationPlan/DhedFormula")},handleSee:function(t){this.dialogFull=!1,this.textMap.see="栏舍详情——"+t.tname,this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.table.getdataListParm.parammaps.ftid=t.ftid,this.see.table.getdataListParm.parammaps.pastureid=t.pastureid,this.see.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.startTime,this.see.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.stopTime,this.getListSee()},getListSee:function(){var t=this;this.see.table.listLoading=!0;var e="authdata/GETNurJudgeRport",a=this.see.table.getdataListParm;Object(r["n"])(e,a).then((function(e){null!==e.data?(t.see.table.list=e.data,t.see.table.pageNum=e.data.pageNum,t.see.table.pageSize=e.data.pageSize,t.see.table.total=e.data.total):(t.see.table.list=[],t.see.table.pageNum=0,t.see.table.pageSize=0,t.see.table.total=0),setTimeout((function(){t.see.table.listLoading=!1}),100)}))}}},p=d,m=(a("7ad2"),a("ca2c"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"ed169ab6",null);e["default"]=u.exports},"8efb":function(t,e,a){"use strict";a("e563")},"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="M855.219 390.031l-273.187-91.406v-174c0-43.688-26.719-44.437-64.875-24.938-87.188 47.719-263.438 139.031-349.031 182.719-39.375 20.156-48.094 28.312-48.094 74.063v526.313c0 27 23.063 48.844 51.563 48.844H855.22c25.875 0 46.781-18.656 46.781-41.625V431.657c0-22.969-20.906-41.625-46.781-41.625zM689.375 580.906c20.906 0 37.875 16.781 37.875 37.406s-16.969 37.406-37.875 37.406-37.875-16.781-37.875-37.406c0-20.719 16.875-37.406 37.875-37.406zM275 521.094l248.063-157.5c6.563-4.125 15.188-2.063 19.219 4.5l3.656 5.906c4.031 6.563 2.156 15.188-4.313 19.313l-12 7.594 18.469 29.719 12-7.594c6.563-4.125 15.188-2.063 19.219 4.5l3.656 5.906c4.031 6.563 2.156 15.188-4.312 19.313l-12 7.594 18.844 29.719 12-7.594c6.563-4.125 15.188-2.063 19.219 4.5l3.656 5.906c4.031 6.563 2.156 15.188-4.312 19.313l-12 7.594 21.281 63-201.75 139.219c-16.313 10.406-38.063 5.531-48.188-11.063L264.126 569.376c-10.125-16.125-5.438-37.875 10.875-48.281z m20.906 306.094s151.688-70.125 151.875-70.031c19.688-1.594 129.75 0.281 129.75 0.281l177.656 70.031-459.281-0.281z m446.907-101.063c-11.063 0-20.063-8.625-20.063-19.219s9-19.219 20.063-19.219 20.062 8.625 20.062 19.219-9 19.219-20.063 19.219z" p-id="190780" /></symbol>'});l.a.add(n);e["default"]=n},"8fbc":function(t,e,a){"use strict";a("09bf")},"8ff2":function(t,e,a){"use strict";a("a686")},"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="M20.48 133.12v758.272c0 59.392 48.128 107.008 107.52 107.008h758.272c59.392 0 107.008-48.128 107.008-107.008V133.12c0-59.392-47.616-107.52-107.008-107.52H128C68.608 25.6 20.48 73.728 20.48 133.12z m699.904 69.632c0-17.92 14.848-32.768 32.768-32.768 17.92 0 32.768 14.848 32.768 32.768v241.664c0 17.92-14.848 32.768-32.768 32.768-17.92 0-32.768-14.848-32.768-32.768V202.752z m-246.272 0c0-17.92 14.848-32.768 32.768-32.768 17.92 0 32.768 14.848 32.768 32.768v157.696c0 17.92-14.848 32.768-32.768 32.768-17.92 0-32.768-14.848-32.768-32.768V202.752z m-245.76 0.512c0-17.92 14.848-32.768 32.768-32.768 17.92 0 32.768 14.848 32.768 32.768v70.144c0 17.92-14.848 32.768-32.768 32.768-17.92 0-32.768-14.848-32.768-32.768V203.264z m65.536 618.496c0 17.92-14.848 32.768-32.768 32.768-17.92 0-32.768-14.848-32.768-32.768v-242.688c0-17.92 14.848-32.768 32.768-32.768 17.92 0 32.768 14.848 32.768 32.768v242.688zM261.12 521.728c-52.736 0-95.744-43.008-95.744-95.744 0-52.736 43.008-95.744 95.744-95.744s95.744 43.008 95.744 95.744c0 52.736-43.008 95.744-95.744 95.744z m278.528 299.008c0 17.92-14.848 32.768-32.768 32.768-17.92 0-32.768-14.848-32.768-32.768v-151.552c0-17.92 14.848-32.768 32.768-32.768 17.92 0 32.768 14.848 32.768 32.768v151.552zM506.88 609.792c-52.736 0-95.744-43.008-95.744-95.744 0-52.736 43.008-95.744 95.744-95.744 52.736 0 95.744 43.008 95.744 95.744 0 52.736-43.008 95.744-95.744 95.744z m279.04 210.944c0 17.92-14.848 32.768-32.768 32.768-17.92 0-32.768-14.848-32.768-32.768v-67.584c0-17.92 14.848-32.768 32.768-32.768 17.92 0 32.768 14.848 32.768 32.768v67.584z m-32.768-127.488c-52.736 0-95.744-43.008-95.744-95.744 0-52.736 43.008-95.744 95.744-95.744 52.736 0 95.744 43.008 95.744 95.744 0 52.736-43.008 95.744-95.744 95.744z m0 0" p-id="218798" /></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},"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},"91fe":function(t,e,a){"use strict";a("b3a7")},9225:function(t,e,a){"use strict";var i=a("5530"),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:"-",custbiaozhun:"标准差",custbianyi:"变异系数"}},o=a("b2d6"),c=a.n(o),d=a("f0d9"),p=a.n(d);s["default"].use(r["a"]);var m=new r["a"]({locale:"CN",messages:{EN:Object(i["a"])(Object(i["a"])({},l),c.a),CN:Object(i["a"])(Object(i["a"])({},n),p.a)}});e["a"]=m},"92b7":function(t,e,a){"use strict";a("db80")},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(t.myComponent,{ref:"detail",tag:"component"})},s=[],r=a("5530"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("2f62")),n=a("acf9"),o=a("8618"),c=a("a78e"),d=a.n(c),p={name:"InventoryManagement",components:{groupInventoryManagement:n["default"],pastureInventoryManagement:o["default"]},data:function(){return{myComponent:null}},computed:Object(r["a"])({},Object(l["b"])(["ispastureuse"])),mounted:function(){this.detailComponent()},methods:{detailComponent:function(){if("1"==d.a.get("ispastureuse")){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"acf9"))};return t.myComponent=e}var i=this;e=function(){return Promise.resolve().then(a.bind(null,"8618"))};return i.myComponent=e}}},m=p,u=a("2877"),h=Object(u["a"])(m,i,s,!1,null,null,null);e["default"]=h.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="M796.444444 1024H227.555556a113.777778 113.777778 0 0 1-113.777778-113.777778V170.666667a113.777778 113.777778 0 0 1 113.777778-113.777778h113.777777v170.666667h341.333334V56.888889h113.777777a113.777778 113.777778 0 0 1 113.777778 113.777778v739.555555a113.777778 113.777778 0 0 1-113.777778 113.777778zM711.111111 398.222222h-398.222222a28.444444 28.444444 0 0 0 0 56.888889h398.222222a28.444444 28.444444 0 0 0 0-56.888889z m0 170.666667h-398.222222a28.444444 28.444444 0 0 0 0 56.888889h398.222222a28.444444 28.444444 0 0 0 0-56.888889z m0 170.666667h-398.222222a28.444444 28.444444 0 0 0 0 56.888888h398.222222a28.444444 28.444444 0 0 0 0-56.888888zM568.888889 170.666667H455.111111a56.888889 56.888889 0 0 1-56.888889-56.888889V56.888889a56.888889 56.888889 0 0 1 56.888889-56.888889h113.777778a56.888889 56.888889 0 0 1 56.888889 56.888889v56.888889a56.888889 56.888889 0 0 1-56.888889 56.888889z" p-id="219515" /></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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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[t.table.pageNum?a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))]):a("span",[t._v("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:{placeholder:"1-32个字符",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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("b0c0"),a("a434"),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:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},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["d"])(this.requestParams).then((function(e){t.parentList=e.data.getDictByName.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(t){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){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){this.table.temp.parentid=t,this.table.temp.parentname=this.parentList.find((function(e){return e.value==t})).label,this.$forceUpdate()},handleCreate:function(){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(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},createCancel:function(t){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,void 0==t.parentid&&(this.$set(t,"parentid",""),this.$set(t,"parentname",""),this.$set(this.table.temp,"parentid",""),this.$set(this.table.temp,"parentname","")),t.parentid=String(t.parentid),this.table.temp.parentid=t.parentid,this.table.temp.parentname=t.parentname},updateData:function(t){var e=this;if(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkDeleteCC",type:"v",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"deleteCowclass",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择牲畜类别信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){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:"checkDeleteCC",type:"v",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[0].children[1]={name:"deleteCowclass",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))}}},p=d,m=(a("18c8"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"5525bc54",null);e["default"]=u.exports},"95b2":function(t,e,a){"use strict";a("7385")},9630:function(t,e,a){},"963e":function(t,e,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"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增车次 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("减少车次 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCheck}},[t._v("校验")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{float:"left","margin-left":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v("生效 ")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v("禁用 ")]):t._e(),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":"80px",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":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.qstr))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"110px",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":"70px",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},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":"120px",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.lppcode))])]}}])}),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.hstr))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e()]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:6}},[a("el-form-item",{attrs:{label:"车次:",prop:"sort"}},[a("el-input",{ref:"sort",staticClass:"filter-item",attrs:{type:"number",placeholder:"车次"},model:{value:t.create.temp.sort,callback:function(e){t.$set(t.create.temp,"sort",e)},expression:"create.temp.sort"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"",placeholder:"栏舍名称"},on:{change:t.changeBars},model:{value:t.create.temp.barid,callback:function(e){t.$set(t.create.temp,"barid",e)},expression:"create.temp.barid"}},t._l(t.barsList,(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:"TMR编号:",prop:"tmrid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"TMR编号"},on:{change:t.changeTMRNumber},model:{value:t.create.temp.tmrid,callback:function(e){t.$set(t.create.temp,"tmrid",e)},expression:"create.temp.tmrid"}},t._l(t.TMRNumberList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.eqcode,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"生效:",prop:"sort"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.create.temp.enable,callback:function(e){t.$set(t.create.temp,"enable",e)},expression:"create.temp.enable"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"班次"},on:{change:t.changeTimes},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),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"撒料计划车次跟随:",prop:"lppid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"撒料计划车次跟随"},on:{change:t.changeCarFollow},model:{value:t.create.temp.lppid,callback:function(e){t.$set(t.create.temp,"lppid",e)},expression:"create.temp.lppid"}},t._l(t.carFollowList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.lppcode,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"时间:",prop:"rtime"}},[a("el-time-picker",{staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"datetime",placeholder:"选择时间",format:"HH:mm","value-format":"HH:mm"},model:{value:t.create.temp.rtime,callback:function(e){t.$set(t.create.temp,"rtime",e)},expression:"create.temp.rtime"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"剩料处理方式:",prop:"treatmethod"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"剩料处理方式"},on:{change:t.changeResidueDisposal},model:{value:t.create.temp.treatmethod,callback:function(e){t.$set(t.create.temp,"treatmethod",e)},expression:"create.temp.treatmethod"}},t._l(t.residueDisposalList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.label}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"转投栏舍:",prop:"useinbarid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"转投栏舍",disabled:t.isDis},on:{change:t.changeTransferbars},model:{value:t.create.temp.useinbarid,callback:function(e){t.$set(t.create.temp,"useinbarid",e)},expression:"create.temp.useinbarid"}},t._l(t.transferbarsList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.bname,value:t.id}})})),1)],1)],1)],1),a("el-row",[a("draggable",{attrs:{group:"itxst",animation:"300",group:{name:"dashboard",pull:!0}},on:{start:t.onStart,end:t.onEnd},model:{value:t.barSortList,callback:function(e){t.barSortList=e},expression:"barSortList"}},[a("transition-group",t._l(t.barSortList,(function(e){return a("div",{key:"1",staticStyle:{width:"80px",height:"30px",border:"1px soild #333",display:"inline-block",background:"#2ed1f9",padding:"5px 5px","margin-right":"15px","margin-bottom":"15px"}},[t._v(t._s(e.bname))])})),0)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.history.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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"}})],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.qstr))])]}}])}),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:"","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.hstr))])]}}])})],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:"cancelClose cancelClose1",on:{click:function(e){t.history.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2),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"},["0"==t.check.temp.isDistribution?a("p",[t._v("当前有栏舍未分配,建议及时进行分配,未分配栏舍如下:")]):a("p",[t._v("已分配完:当前栏舍已分配完善")]),t._v(" "+t._s(t.check.temp.bnames)+" ")]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"save",on:{click:function(e){t.check.dialogFormVisible=!1}}},[t._v("确认")])],1)])],1)},s=[],r=(a("d81d"),a("ac1f"),a("1276"),a("a434"),a("d3b7"),a("159b"),a("7db0"),a("4e82"),a("00b4"),a("b0c0"),a("2934")),l=a("333d"),n=a("aa47"),o=a("b76a"),c=a.n(o),d=a("a78e"),p=a.n(d),m=a("5c96"),u={name:"SurplusMaterialPlan",components:{Pagination:l["a"],draggable:c.a},data:function(){return{barSortList:[],dialogFull:!1,isDis:!1,isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:p.a.get("pastureid")}},{name:"getTMRYHList",offset:0,pagecount:0,parammaps:{pastureid:p.a.get("pastureid")}}],barsList:[],residueDisposalList:[{value:"0",label:"转投剩料"},{value:"1",label:"继续饲喂"}],TMRNumberList:[],barsNamesIdTempArr:[],useinbarNamesIdTempArr:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),inforname:"times"}}},frequencyList:[],getCarFollowParm:{name:"getLPPCodeList",offset:0,pagecount:0,parammaps:{pastureid:p.a.get("pastureid"),times:""}},carFollowList:[],getTransferbarsParm:{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:p.a.get("pastureid"),times:""}},transferbarsList:[],table:{getdataListParm:{name:"getRemainplanList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0,temp:{},temp2:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:p.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:"",sort:""},rules:{}},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:p.a.get("pastureid")}},getdataListParm:{name:"getRemainplanListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),date:""}}},check:{dialogFormVisible:!1,dialogStatus:"",getCheckParm:{name:"checkRemainplan",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid")}},temp:{bnames:"",isDistribution:""}},textMap:{create:"新增",update:"编辑",history:"历史记录",check:"提示"},requestParam:{},selectList:[],isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},dropState:!1,isOrder:!0}},created:function(){this.getButtons(),this.getList(),this.getDownList(),this.getIsDisplay()},methods:{getButtons:function(){var t="SurplusMaterialPlan",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.barsList=e.data.getBarListEnable.list,t.TMRNumberList=e.data.getTMRYHList.list}))},getIsDisplay:function(){var t=this;Object(r["c"])(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["c"])(this.table.getdataListParm).then((function(e){if(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);var i=e.data.list;i.map((function(t,e){return t.qstrids?t.barid=t.qstrids.split(","):t.barid=[]})),i.map((function(t,e){return t.hstrids?t.useinbarid=t.hstrids:t.useinbarid=""})),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)}))},handleEnableChange:function(){},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a+1,i.id=this.table.list[a].id,i.pastureid=this.table.list[a].pastureid,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"updateRemainplanSort",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",sort:"@insertSpotList.sort"}},Object(r["b"])(this.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(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.getList(),this.isOrder=!0},rowDrop:function(){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)}})},handleCreate:function(){this.resetTemp(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0},resetTemp:function(){this.create.temp={pastureid:p.a.get("pastureid"),myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,sort:"",ftid:"",ftname:"",tmrcode:"",tmrid:"",times:"",lppcode:"",lppid:"",rtime:"",barid:"",treatmethod:"",useinbar:"",useinbarid:""},this.barSortList=[],this.isDis=!1},changeBars:function(t){var e=[],a=this.barsList;t.forEach((function(t){a.forEach((function(a){t==a.id&&e.push(a)}))})),this.barSortList=e,this.table.temp.barid=e,this.barsNamesIdTempArr=e,this.$forceUpdate()},onStart:function(){},onEnd:function(){this.table.temp.barid=this.barSortList,this.barsNamesIdTempArr=this.barSortList},changeTMRNumber:function(t){this.create.temp.tmrcode=this.TMRNumberList.find((function(e){return e.id===t})).eqcode},changeCarFollow:function(t,e){this.create.temp.lppcode=""==t?"":this.carFollowList.find((function(e){return e.id==t})).lppcode},changeTimes:function(t){this.getCarFollowParm.parammaps.times=t,this.getCarFollowList()},getCarFollowList:function(){var t=this;Object(r["c"])(this.getCarFollowParm).then((function(e){null!==e.data.list&&(t.carFollowList=e.data.list,t.create.temp.lppid=t.carFollowList[0].id,t.create.temp.lppcode=t.carFollowList[0].lppcode)}))},changeResidueDisposal:function(t){this.getCarFollowParm.parammaps.times=t,this.getTransferbarsList(),this.isDis="继续饲喂"==t},getTransferbarsList:function(){var t=this;Object(r["c"])(this.getTransferbarsParm).then((function(e){null!==e.data.list&&(t.transferbarsList=e.data.list)}))},changeTransferbars:function(t){},createData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){if(null!=t.create.temp.rtime&&"null"!=t.create.temp.rtime||(t.create.temp.rtime=""),""==t.create.temp.sort&&""==t.create.temp.barid&&""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"车次/栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.barid&&""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.sort||0==t.create.temp.sort)return t.$message({type:"error",message:"车次不能为空且大于0",duration:2e3}),!1;if(""==t.create.temp.barid)return t.$message({type:"error",message:"栏舍不能为空",duration:2e3}),!1;if(""==t.create.temp.tmrid)return t.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==t.create.temp.times)return t.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==t.create.temp.treatmethod)return t.$message({type:"error",message:"剩料处理方式不能为空",duration:2e3}),!1;if(""!==t.create.temp.treatmethod&&"转投剩料"==t.create.temp.treatmethod&&""==t.create.temp.useinbarid)return t.$message({type:"error",message:"转投栏舍不能为空",duration:2e3}),!1;""!==t.create.temp.treatmethod&&"继续饲喂"==t.create.temp.treatmethod&&(t.create.temp.useinbarid="0"),""!=t.create.temp.rtime&&null!=t.create.temp.rtime||(t.create.temp.rtime="");for(var a=0;a<t.table.list.length;a++)if(t.create.temp.sort==t.table.list[a].sort&&t.create.temp.myId!==t.table.list[a].myId)return t.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==t.create.temp.sort&&!i.test(parseFloat(t.create.temp.sort)))return t.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var s=[{bname:"",id:t.create.temp.useinbarid}];t.transferbarsList.forEach((function(t){t.id==s[0].id&&(s[0].bname=t.bname)}));var l={common:{returnmap:"0"},data:[{name:"insertRemainplan",type:"e",parammaps:{pastureid:p.a.get("pastureid"),sort:t.create.temp.sort,tmrid:t.create.temp.tmrid,tmrcode:t.create.temp.tmrcode,enable:t.create.temp.enable,times:t.create.temp.times,lppid:t.create.temp.lppid,lppcode:t.create.temp.lppcode,rtime:t.create.temp.rtime,treatmethod:t.create.temp.treatmethod}},{name:"insertSpotList",resultmaps:{list:t.barsNamesIdTempArr},children:[{name:"insertRpdetail",type:"e",parammaps:{pastureid:p.a.get("pastureid"),bigid:"@insertRemainplan.LastInsertId",barid:"@insertSpotList.id",bar:"@insertSpotList.bname",type:0}}]},{name:"insertRpdetail",type:"e",parammaps:{pastureid:"1647917519",bigid:"@insertRemainplan.LastInsertId",barid:s[0].id,bar:s[0].bname,type:1}}]};Object(r["b"])(l).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.create.dialogFormVisible=!1,t.getList(),t.dropState=!1)}))}}))},createCancel:function(t){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){var e=this;this.create.dialogStatus="update",this.dialogFull=!1,this.create.dialogFormVisible=!0,this.getCarFollowParm.parammaps.times=t.times,this.getCarFollowList(),t.temp={},t.temp2={},"继续饲喂"==t.treatmethod?this.isDis=!0:this.isDis=!1,void 0==t.barid&&(t.barid=[]),void 0==t.tmrid&&(t.tmrid=""),void 0==t.times&&(t.times=""),void 0==t.treatmethod&&(t.treatmethod=""),"第一班"==t.times?(this.getCarFollowParm.parammaps.times=1,t.times="1"):"第二班"==t.times?(this.getCarFollowParm.parammaps.times=2,t.times="2"):"第三班"==t.times?(this.getCarFollowParm.parammaps.times=3,t.times="3"):"第四班"==t.times?(this.getCarFollowParm.parammaps.times=4,t.times="4"):"第五班"==t.times&&(this.getCarFollowParm.parammaps.times=5,t.times="5"),Object(r["c"])(this.getCarFollowParm).then((function(t){null!==t.data.list?e.carFollowList=t.data.list:e.carFollowList=[]})),this.carFollowList.length>0?void 0==this.carFollowList.find((function(e){return e.id==t.lppid})).lppcode&&this.$set(t,"lppid",""):this.$set(t,"lppid",""),void 0==t.lppcode&&this.$set(t,"lppid",""),this.getTransferbarsList(),t.barid=t.qstrids.split(","),t.useinbarid=t.hstrids,"0"==t.useinbarid&&(t.useinbarid="");for(var a=[],i=function(i){a.push(e.barsList.find((function(e){return e.id==t.barid[i]})))},s=0;s<t.barid.length;s++)i(s);this.barsNamesIdTempArr=a,this.barSortList=a;this.dropState=!0,this.create.temp=Object.assign({},t)},updateData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(e){if(e){if(null!=t.create.temp.rtime&&"null"!=t.create.temp.rtime||(t.create.temp.rtime=""),""==t.create.temp.barid&&""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.tmrid&&""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.times&&""==t.create.temp.treatmethod)return t.$message({type:"error",message:"班次/混剩料处理方式不能为空",duration:2e3}),!1;if(""==t.create.temp.barid)return t.$message({type:"error",message:"栏舍不能为空",duration:2e3}),!1;if(""==t.create.temp.tmrid)return t.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==t.create.temp.times)return t.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==t.create.temp.treatmethod)return t.$message({type:"error",message:"剩料处理方式不能为空",duration:2e3}),!1;if(""!==t.create.temp.treatmethod&&"转投剩料"==t.create.temp.treatmethod&&""==t.create.temp.useinbarid)return t.$message({type:"error",message:"转投栏舍不能为空",duration:2e3}),!1;""!==t.create.temp.treatmethod&&"继续饲喂"==t.create.temp.treatmethod&&(t.create.temp.useinbarid="0"),""!=t.create.temp.rtime&&null!=t.create.temp.rtime||(t.create.temp.rtime="");for(var a=0;a<t.table.list.length;a++)if(t.create.temp.sort==t.table.list[a].sort&&t.create.temp.id!==t.table.list[a].id)return t.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==t.create.temp.sort&&!i.test(parseFloat(t.create.temp.sort)))return t.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;if(""==t.create.temp.sort||0==t.create.temp.sort)return t.$message({type:"error",message:"车次不能为空且大于0",duration:2e3}),!1;"第一班"==t.create.temp.times?t.create.temp.times=1:"第二班"==t.create.temp.times?t.create.temp.times=2:"第三班"==t.create.temp.times?t.create.temp.times=3:"第四班"==t.create.temp.times?t.create.temp.times=4:"第五班"==t.create.temp.times&&(t.create.temp.times=5),t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3);var s=[{bname:"",id:t.create.temp.useinbarid}];t.transferbarsList.forEach((function(t){t.id==s[0].id&&(s[0].bname=t.bname)}));var l={common:{returnmap:"0"},data:[{name:"updateRemainplan",type:"e",parammaps:{pastureid:t.create.temp.pastureid,id:t.create.temp.id,sort:t.create.temp.sort,tmrid:t.create.temp.tmrid,tmrcode:t.create.temp.tmrcode,enable:t.create.temp.enable,times:t.create.temp.times,lppid:t.create.temp.lppid,lppcode:t.create.temp.lppcode,rtime:t.create.temp.rtime,treatmethod:t.create.temp.treatmethod}},{name:"deleteRpdetail",type:"e",parammaps:{pastureid:t.create.temp.pastureid,bigid:t.create.temp.id}},{name:"insertSpotList2",resultmaps:{list:t.barsNamesIdTempArr},children:[{name:"insertRpdetail",type:"e",parammaps:{pastureid:t.create.temp.pastureid,bigid:t.create.temp.id,barid:"@insertSpotList2.id",bar:"@insertSpotList2.bname",type:0}}]},{name:"insertRpdetail",type:"e",parammaps:{pastureid:t.create.temp.pastureid,bigid:t.create.temp.id,barid:s[0].id,bar:s[0].bname,type:1}}]};Object(r["b"])(l).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.create.dialogFormVisible=!1,t.getList(),t.dropState=!1)}))}}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList(),this.dropState=!1},handleSelect:function(t){this.selectList=t},handleRowDelete:function(t){var e=this;m["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}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{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:"deleteRemainplan",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))},handleCheck:function(){this.check.dialogStatus="check",this.check.dialogFormVisible=!0,this.getCheckList()},getCheckList:function(){var t=this;Object(r["c"])(this.check.getCheckParm).then((function(e){void 0!==e.data.list[0].bnames?(t.check.temp.isDistribution=0,t.check.temp.bnames=e.data.list[0].bnames):(t.check.temp={},t.check.temp.isDistribution=1)}))},handleHistoryRecords:function(){this.dialogFull=!1,this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var t=this;Object(r["c"])(this.history.getdataDateParm).then((function(e){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;m["MessageBox"].confirm("是否确认将"+this.history.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="applyFPdate",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=p.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["c"])(this.history.getdataListParm).then((function(e){null!==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)}))},handleTakeEffect:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否生效?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].enable=1;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:"updateRemainplanEnable",type:"e",parammaps:{enable:"@insertSpotList.enable",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))},handleDisable:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否禁用?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].enable=0;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:"updateRemainplanEnable",type:"e",parammaps:{enable:"@insertSpotList.enable",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))}}},h=u,b=(a("3dc9"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"162feafe",null);e["default"]=g.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(t.myComponent,{ref:"detail",tag:"component"})},s=[],r=a("5530"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("2f62")),n=a("faaa"),o=a("1edb"),c=a("a78e"),d=a.n(c),p={name:"ProcessAnalysis",components:{GroupProcessAnalysis:n["default"],PastureProcessAnalysis:o["default"]},data:function(){return{myComponent:null}},computed:Object(r["a"])({},Object(l["b"])(["ispastureuse"])),mounted:function(){this.detailComponent()},methods:{detailComponent:function(){if("1"==d.a.get("ispastureuse")){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"faaa"))};return t.myComponent=e}var i=this;e=function(){return Promise.resolve().then(a.bind(null,"1edb"))};return i.myComponent=e}}},m=p,u=a("2877"),h=Object(u["a"])(m,i,s,!1,null,null,null);e["default"]=h.exports},"98bd":function(t,e,a){},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},"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="M660.992 1008.64h-353.28c-16.384 0-27.648-11.264-27.648-27.648v-5.632c0-16.384 11.264-27.648 27.648-27.648h353.28c16.384 0 27.648 11.264 27.648 27.648v5.632c0 16.384-11.264 27.648-27.648 27.648z m347.648-336.384l-11.264-60.928c0-5.632-5.632-11.264-11.264-5.632l-16.384 5.632c-27.648 5.632-49.664-27.648-33.28-55.296l11.264-11.264c5.632-5.632 5.632-11.264 0-16.384l-49.664-44.032c-5.632-5.632-11.264-5.632-16.384 0l-11.264 11.264c-22.016 22.016-60.928 11.264-60.928-22.016v-11.264c0-5.632-5.632-11.264-11.264-11.264H732.16v27.648c0 33.28-38.4 44.032-60.928 22.016l-11.264-11.264c-5.632-5.632-11.264-5.632-16.384 0l-49.664 38.4c-5.632 5.632-5.632 11.264 0 16.384l11.264 11.264c22.016 22.016 0 60.928-33.28 55.296h-16.384c-5.632 0-11.264 0-11.264 5.632l-11.264 60.928c0 5.632 0 11.264 5.632 11.264l16.384 5.632c27.648 5.632 38.4 44.032 11.264 60.928l-11.264 5.632c-5.632 5.632-5.632 11.264-5.632 16.384l33.28 55.296c5.632 5.632 11.264 5.632 16.384 5.632l11.264-5.632c27.648-16.384 55.296 11.264 49.664 38.4l-5.632 11.264c0 5.632 0 11.264 5.632 11.264l60.928 22.016c5.632 0 11.264 0 11.264-5.632l5.632-16.384c11.264-27.648 49.664-27.648 60.928 0l5.632 11.264c0 5.632 5.632 5.632 11.264 5.632l60.928-22.016c5.632 0 5.632-5.632 5.632-11.264l-5.632-16.384c-11.264-27.648 22.016-55.296 49.664-38.4l11.264 5.632c5.632 5.632 11.264 0 16.384-5.632l33.28-55.296c5.632-5.632 0-11.264-5.632-16.384l-11.264-5.632c-27.648-16.384-22.016-55.296 11.264-60.928h16.384c5.12-1.024 10.752-6.656 10.752-11.776z m-237.056 76.8c-38.4 0-66.048-27.648-66.048-66.048s27.648-66.048 66.048-66.048 66.048 27.648 66.048 66.048c0 38.912-27.648 66.048-66.048 66.048z" p-id="219087" /><path d="M876.032 15.36H103.424C53.76 15.36 15.36 53.76 15.36 103.424v667.648c0 49.664 38.4 88.064 88.064 88.064h430.592L500.736 803.84c-5.632-5.632 0-16.384 5.632-16.384l16.384-11.264c33.28-22.016 27.648-71.68-11.264-77.312l-22.016-5.632c-5.632 0-11.264-5.632-11.264-16.384l16.384-82.944c0-5.632 5.632-11.264 16.384-11.264l16.384 5.632c38.4 5.632 66.048-38.4 38.4-66.048l-16.384-16.384c-5.632-5.632-5.632-11.264 0-16.384l60.928-55.296c5.632-5.632 11.264-5.632 16.384 0l11.264 16.384c27.648 27.648 71.68 11.264 71.68-27.648v-22.016c0-5.632 5.632-11.264 11.264-11.264H803.84c5.632 0 11.264 5.632 11.264 11.264v16.384c0 38.4 49.664 55.296 71.68 27.648l11.264-16.384c5.632-5.632 11.264-5.632 16.384 0l49.664 27.648v-353.28c0.512-49.152-38.4-87.552-88.064-87.552z m-209.408 104.96H396.288c-11.264 0-16.384-5.632-16.384-16.384 0-11.264 5.632-16.384 16.384-16.384h270.336c11.264 0 16.384 5.632 16.384 16.384s-5.632 16.384-16.384 16.384z" p-id="219088" /></symbol>'});l.a.add(n);e["default"]=n},"9b22":function(t,e,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},"9cc8":function(t,e,a){},"9d64":function(t,e,a){t.exports=a.p+"static/img/logo.afed751a.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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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[t.table.pageNum?a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))]):a("span",[t._v("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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("b0c0"),a("a434"),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:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},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["d"])(this.requestParams).then((function(e){t.feedCategoryList=e.data.getDictByName.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){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(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},createCancel:function(t){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(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkDeleteFC",type:"v",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"deleteFeedclass",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择饲料分类信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){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:"checkDeleteFC",type:"v",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[0].children[1]={name:"deleteFeedclass",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))}}},p=d,m=(a("95b2"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"7c1c8497",null);e["default"]=u.exports},"9def":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",staticStyle:{width:"100%",height:"385px"}})},s=[],r=a("313e"),l=a.n(r);a("2934"),a("b76a"),a("a78e"),a("ed08"),a("333d");a("817d");var n={name:"HorizontalBarChart",props:{chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.renderChart(t)}}},mounted:function(){this.renderChart(this.chartData),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,a={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.legendArr,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"8%",right:"8%",containLabel:!0},xAxis:{type:"value",name:"kg"},yAxis:[{type:"category",data:t.xAxisArr}],series:function(e){for(var a=[],i=0;i<t.xAxisArr.length;i++){var s={name:t.legendArr[i],data:t.dataArr[i],type:"bar",emphasis:{label:{show:!0,position:"inside"}}};a.push(s)}return a}()};setTimeout((function(){e.chart||(e.chart=l.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(a),e.chart.setOption(e.chartOpt)}),0)}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);e["a"]=d.exports},"9e15":function(t,e,a){},"9eac":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.visible?a("div",[a("el-dialog",{attrs:{id:"reviseplanDialog",title:t.title,fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.visible,"close-on-click-modal":!1,"append-to-body":"","before-close":t.closeDialog,width:"90%"},on:{"update:visible":function(e){t.visible=e}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.title)+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"see",staticStyle:{"max-height":"600px","overflow-y":"auto","overflow-x":"hidden"}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:10}},[a("div",{staticClass:"train"},[a("h4",[t._v("车次信息")]),a("div",{staticClass:"table"},[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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table1.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"row-click":t.rowClick}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50"}}),a("el-table-column",{attrs:{label:"计划名称","min-width":"60px",align:"center",prop:"projname"}}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"60px",align:"center",prop:"tmrtname"}}),a("el-table-column",{attrs:{sortable:"",label:"制定日期","min-width":"70px",align:"center",prop:"mydate"}}),a("el-table-column",{attrs:{sortable:"",label:"开始时间","min-width":"70px",align:"center",prop:"intime"}})],1)],1)])]),a("el-col",{attrs:{span:14}},[a("div",{staticClass:"mixture"},[a("h4",[t._v("混料信息")]),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:"98%"},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:"操作编号","min-width":"50px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"50px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"50px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"50px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"50px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"50px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"50px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"50px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"开始读取重量","min-width":"50px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"最后读取重量","min-width":"50px",align:"center",prop:"actualweight"}}),a("el-table-column",{attrs:{label:"取料方式","min-width":"50px",align:"center",prop:"buttontype"}})],1)],1)]),a("div",{staticClass:"spreading"},[a("h4",[t._v("撒料信息")]),a("div",{staticClass:"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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"50px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"50px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"50px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"50px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"50px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"50px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"50px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"50px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"开始读取重量","min-width":"50px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"最后读取重量","min-width":"50px",align:"center",prop:"actualweight"}}),a("el-table-column",{attrs:{label:"取料方式","min-width":"50px",align:"center",prop:"buttontype"}})],1)],1)]),a("div",{staticClass:"controlChart"},[a("h4",[t._v("监控图")]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])])],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){return t.closeDialog()}}},[t._v("关闭")])],1)],2)],1):t._e()},s=[],r=(a("b0c0"),a("313e")),l=a.n(r),n=a("a78e"),o=a.n(n),c=a("2934");a("817d");var d={name:"See",props:{show:{type:Boolean,default:!1},titleFname:{type:String,defalut:"准确性详情"},methodName:{type:String,defalut:""},rowPid:{type:String,defalut:"0"},optdevice:{type:String,defalut:""},startTime:{type:String,defalut:""},stopTime:{type:String,defalut:""}},data:function(){return{dialogFull:!1,visible:this.show,title:"",pid:"",methodname:"",optdevice:"",startTime:"",stopTime:"",table1:{getdataListParm:{name:"",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pid:"",optdevice:"",startTime:"",stopTime:"",pastureid:""}},tableKey:0,list:[],total:0,listLoading:!1},table2:{getdataListParm:{name:"getprocessAnalysisHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pid:"",pastureid:""}},tableKey:0,list:[],total:0,listLoading:!1},table3:{getdataListParm:{name:"getprocessAnalysisSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pid:"",pastureid:""}},tableKey:0,list:[],total:0,listLoading:!1},chart1:{getdataListParm:{name:"getprocessAnalysisTB",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pid:"",pastureid:""}},tableKey:0,list:[],total:0,listLoading:!1,chartLine_data:[]},chartLine:null,chartLine_data:{},chartName:"",cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-200}},watch:{show:{immediate:!0,handler:function(t){var e=this;this.visible=t,1==t&&setTimeout((function(){e.getList1()}),500)}},titleFname:{immediate:!0,handler:function(t,e){this.title=t}},rowPid:{immediate:!0,handler:function(t,e){this.pid=t}},methodName:{immediate:!0,handler:function(t,e){this.methodname=t}},optdevice:{immediate:!0,handler:function(t,e){this.optdevice=t}},startTime:{immediate:!0,handler:function(t,e){this.startTime=t}},stopTime:{immediate:!0,handler:function(t,e){this.stopTime=t}}},created:function(){},mounted:function(){},methods:{closeDialog:function(){this.dialogFull=!1,this.$emit("update:show",!1)},getList1:function(){var t=this;this.table1.listLoading=!0,this.table1.getdataListParm.name=this.methodname,this.table1.getdataListParm.parammaps.optdevice=this.optdevice,this.table1.getdataListParm.parammaps.startTime=this.startTime,this.table1.getdataListParm.parammaps.stopTime=this.stopTime,this.table1.getdataListParm.parammaps.pid=this.pid,this.table1.getdataListParm.parammaps.pastureid=o.a.get("pastureid"),Object(c["c"])(this.table1.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.table1.list=e.data.list,t.table2.getdataListParm.parammaps.pid=e.data.list[0].pid,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].pid,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.chart1.getdataListParm.parammaps.pid=e.data.list[0].pid,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid):(t.table1.list=[],t.table2.getdataListParm.parammaps.pid="",t.table2.getdataListParm.parammaps.pastureid="",t.table3.getdataListParm.parammaps.pid="",t.table3.getdataListParm.parammaps.pastureid="",t.chart1.getdataListParm.parammaps.pid="",t.chart1.getdataListParm.parammaps.pastureid=""),t.getList2(),t.getList3(),t.getChart1(),setTimeout((function(){t.table1.listLoading=!1}),100)}))},getList2:function(){var t=this;this.table2.listLoading=!0,Object(c["c"])(this.table2.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){t.table2.list=e.data.list;for(var a=0,i=0,s=0,r="",l=0;l<e.data.list.length;l++)void 0==e.data.list[l].lweight&&(e.data.list[l].lweight=0),void 0==e.data.list[l].actualweightminus&&(e.data.list[l].actualweightminus=0),void 0==e.data.list[l].sweight&&(e.data.list[l].sweight=0),a+=parseFloat(e.data.list[l].lweight),i+=parseFloat(e.data.list[l].actualweightminus),s+=parseFloat(e.data.list[l].sweight),r=e.data.list[0].sumproesstime;a=Object(c["k"])(a,2),i=Object(c["k"])(i,2),s=Object(c["k"])(s,2),t.table2.list.push({sort:"合计",lweight:a,actualweightminus:i,sweight:s,proesstime:r})}else t.table2.list=[];setTimeout((function(){t.table2.listLoading=!1}),100)}))},getList3:function(){var t=this;this.table3.listLoading=!0,Object(c["c"])(this.table3.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){t.table3.list=e.data.list;for(var a=0,i=0,s=0,r="",l=0;l<e.data.list.length;l++)void 0==e.data.list[l].lweight&&(e.data.list[l].lweight=0),void 0==e.data.list[l].actualweightminus&&(e.data.list[l].actualweightminus=0),void 0==e.data.list[l].sweight&&(e.data.list[l].sweight=0),a+=parseFloat(e.data.list[l].lweight),i+=parseFloat(e.data.list[l].actualweightminus),s+=parseFloat(e.data.list[l].sweight),r=e.data.list[0].sumproesstime;a=Object(c["k"])(a,2),i=Object(c["k"])(i,2),s=Object(c["k"])(s,2),t.table3.list.push({sort:"合计",lweight:a,actualweightminus:i,sweight:s,proesstime:r})}else t.table3.list=[];setTimeout((function(){t.table3.listLoading=!1}),100)}))},getChart1:function(){var t=this;this.chart1.listLoading=!0,Object(c["e"])(this.chart1.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.chart1.list=e.data.data,t.chart1.chartLine_data=e.data.list,t.chart1.total=e.data.total,t.roadChartLine1(t.chart1.chartLine_data)):t.chart1.list=[],setTimeout((function(){t.chart1.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:["#ff0000","#5199e5","#fdb06a","#fb8b73"],legend:[{itemWidth:15,itemHeight:7,right:"25%",textStyle:{fontSize:12},data:[{name:"设计重量"},{name:"实际重量"}]},{itemWidth:15,itemHeight:15,right:"0",textStyle:{fontSize:12},data:[{name:"开始重量"},{name:"结束重量"}]}],tooltip:{trigger:"axis",formatter:function(t){for(var e=t[0].name,a=0;a<t.length;a++)"设计重量"==t[a].seriesName&&(e+="<br>"+t[a].seriesName+":"+t[a].value[1]),"实际重量"==t[a].seriesName&&(e+="<br>"+t[a].seriesName+":"+t[a].value[1]),"开始重量"==t[a].seriesName&&(e+="<br>"+t[a].seriesName+":"+t[a].value[1]),"结束重量"==t[a].seriesName&&(e+="<br>"+t[a].seriesName+":"+t[a].value[1]+"<br>"+t[a].value[2]+t[a].value[3]);return e}},calculable:!0,xAxis:[{type:"category"}],yAxis:[{type:"value"}],toolbox:{show:!1,feature:{dataZoom:{realtime:!1,yAxisIndex:"none"},restore:{}}},dataZoom:[{type:"inside"},{type:"slider"}],series:[{symbol:"none",name:"实际重量",type:"line",data:t.data3,itemStyle:{normal:{lineStyle:{color:"#ff0000"}}}},{symbol:"none",name:"设计重量",type:"line",step:"middle",data:t.data2},{name:"开始重量",symbolSize:10,type:"scatter",data:t.data4},{name:"结束重量",symbolSize:10,type:"scatter",data:t.data5}]};this.chartLine.setOption(e),null!=this.chartLine&&(window.onresize=function(){this.chartLine.resize()})},rowClick:function(t,e,a){this.table2.getdataListParm.parammaps.pid=t.pid,this.table3.getdataListParm.parammaps.pid=t.pid,this.chart1.getdataListParm.parammaps.pid=t.pid,this.getList2(),this.getList3(),this.getChart1()},rowStyle:function(t){var e=t.row,a=(t.rowIndex,{});return 1==e.abnormal?(a.background="#fb8072",a.maxHeight="30px",a.height="30px",a):""}}},p=d,m=(a("e828"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"32ffff30",null);e["default"]=u.exports},"9ed6":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-container"},[a("div",{staticClass:"new-login"},[t._m(0),a("div",{staticClass:"new-login-r"},[a("div",{staticClass:"title"},[t._v("用户登录")]),a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:t.loginForm,rules:t.loginRules,"auto-complete":"on","label-position":"left"}},[a("el-form-item",{attrs:{prop:"username"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"user"}})],1),a("el-input",{ref:"username",attrs:{placeholder:"用户名",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),a("el-form-item",{staticClass:"password",attrs:{prop:"password"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"password"}})],1),a("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"密码",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.apply(null,arguments)}},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),a("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[a("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1),a("el-form-item",{staticClass:"rememberPassword",attrs:{prop:"password"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.rememberPassword,expression:"rememberPassword"}],attrs:{id:"remember-password-checkbox",type:"checkbox",value:"remember-me"},domProps:{checked:Array.isArray(t.rememberPassword)?t._i(t.rememberPassword,"remember-me")>-1:t.rememberPassword},on:{click:function(e){return t.doRememberPassword(e)},change:function(e){var a=t.rememberPassword,i=e.target,s=!!i.checked;if(Array.isArray(a)){var r="remember-me",l=t._i(a,r);i.checked?l<0&&(t.rememberPassword=a.concat([r])):l>-1&&(t.rememberPassword=a.slice(0,l).concat(a.slice(l+1)))}else t.rememberPassword=s}}}),a("span",{attrs:{for:"remember-password-checkbox"}},[t._v(" 记住密码 ")])])],1),a("el-button",{staticClass:"btn",attrs:{type:"text",loading:t.loading},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin.apply(null,arguments)}}},[t._v("登录")])],1)]),t._m(1)])},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"new-login-l"},[i("img",{attrs:{src:a("9d64"),alt:""}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{position:"absolute",bottom:"0",left:"0",right:"0",color:"#000",background:"#fee",opacity:".7","font-size":"14px"}},[a("p",{staticStyle:{"text-align":"center","line-height":"16px"}},[t._v(" 版权所有 "),a("a",{attrs:{href:"http://www.dairyinfo.com.cn",target:"_blank"}},[t._v("上海科湃腾信息科技有限公司")]),a("a",{staticStyle:{"margin-left":"20px"},attrs:{href:"https://beian.miit.gov.cn/",target:"_blank"}},[t._v("沪ICP备11008303号-3 ")])])])}],r=(a("d9e2"),a("61f7")),l=a("a78e"),n=a.n(l),o=a("5f87"),c={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,rememberPassword:""}},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")}},mounted:function(){this.loadAccountInfo()},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,e=this.rememberPassword,a=this.loginForm.username+"&"+this.loginForm.password;this.$refs.loginForm.validate((function(i){if(!i)return!1;t.loading=!0,t.$store.dispatch("user/login",t.loginForm).then((function(){e?n.a.set("accountInfo",a,4320):n.a.remove("accountInfo"),-1!=window.location.href.indexOf("localhost")&&n.a.set("token",Object(o["a"])(),1440),t.$router.push({path:t.redirect||"/"}),t.loading=!1})).catch((function(){t.loading=!1}))}))},doRememberPassword:function(){var t=this.rememberPassword;this.rememberPassword=!t},loadAccountInfo:function(){var t=this,e=n.a.get("accountInfo");if(0==Boolean(e))return!1;var a="",i="",s=e.indexOf("&");a=e.substring(0,s),i=e.substring(s+1),t.loginForm.username=a,t.loginForm.password=i,t.rememberPassword=!0}}},d=c,p=(a("2017"),a("77a8"),a("8ec1"),a("2e8e"),a("a0e2"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"b7ce9a94",null);e["default"]=m.exports},"9f1a":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("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择栏舍"},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.barList,(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:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请输入配方名称"},model:{value:t.table.getdataListParm.parammaps.tname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tname",e)},expression:"table.getdataListParm.parammaps.tname"}},t._l(t.tnameList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.tname,value:t.tname}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")])],1),t.isRoleEdit?a("el-button",{staticClass:"successBorder",staticStyle:{float:"left"},on:{click:t.handleDryMatterRegulation}},[t._v("干物质调节")]):t._e(),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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,ref:"table",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,"max-height":t.myHeight},on:{"header-click":t.headerClick,"cell-click":t.cellClick,"selection-change":t.handleSelect,"cell-dblclick":t.celldblclick}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{key:1,attrs:{label:"序号",align:"center",type:"index",width:"50px","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"100px",align:"center","class-name":"small-padding fixed-width",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barname))])]}}])}),a("el-table-column",{key:2,attrs:{label:"软件牛头数","min-width":"70px",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:3,attrs:{label:"实际牛头数","min-width":"90px",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:4,attrs:{label:"系数(%)","min-width":"85px",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:5,attrs:{label:"系数头数","min-width":"85px",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:{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: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.ftname))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"99%"},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: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.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:8,attrs:{label:"第一班比例(%)","min-width":"80px",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:9,attrs:{label:"第一班重量","min-width":"120px",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.isRW1&&t.table.isPtsfname?a("el-table-column",{key:10,attrs:{label:"第一班补料重量","min-width":"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bw1))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"-1"==e.row.ptsfid||""==e.row.ptsfid,step:"0.01",type:"number"},on:{blur:function(a){return t.blurBw(e.row)},focus:function(a){return t.focusBw(e.row)}},model:{value:e.row.bw1,callback:function(a){t.$set(e.row,"bw1",a)},expression:"scope.row.bw1"}}):t._e()]}}],null,!1,1365907363)}):t._e(),t.table.isRW2?a("el-table-column",{key:11,attrs:{label:"第二班比例(%)","min-width":"80px",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":"120px",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.isRW2&&t.table.isPtsfname?a("el-table-column",{key:13,attrs:{label:"第二班补料重量","min-width":"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bw2))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"-1"==e.row.ptsfid||""==e.row.ptsfid,step:"0.01",type:"number"},on:{blur:function(a){return t.blurBw(e.row)},focus:function(a){return t.focusBw(e.row)}},model:{value:e.row.bw2,callback:function(a){t.$set(e.row,"bw2",a)},expression:"scope.row.bw2"}}):t._e()]}}],null,!1,2916783235)}):t._e(),t.table.isRW3?a("el-table-column",{key:14,attrs:{label:"第三班比例(%)","min-width":"80px",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:15,attrs:{label:"第三班重量","min-width":"120px",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.isRW3&&t.table.isPtsfname?a("el-table-column",{key:16,attrs:{label:"第三班补料重量","min-width":"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bw3))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"-1"==e.row.ptsfid||""==e.row.ptsfid,step:"0.01",type:"number"},on:{blur:function(a){return t.blurBw(e.row)},focus:function(a){return t.focusBw(e.row)}},model:{value:e.row.bw3,callback:function(a){t.$set(e.row,"bw3",a)},expression:"scope.row.bw3"}}):t._e()]}}],null,!1,1296099683)}):t._e(),t.table.isRW4?a("el-table-column",{key:17,attrs:{label:"第四班比例(%)","min-width":"80px",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:18,attrs:{label:"第四班重量","min-width":"120px",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(),t.table.isRW4&&t.table.isPtsfname?a("el-table-column",{key:19,attrs:{label:"第四班补料重量","min-width":"120px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.bw4))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"-1"==e.row.ptsfid||""==e.row.ptsfid,step:"0.01",type:"number"},on:{blur:function(a){return t.blurBw(e.row)},focus:function(a){return t.focusBw(e.row)}},model:{value:e.row.bw4,callback:function(a){t.$set(e.row,"bw4",a)},expression:"scope.row.bw4"}}):t._e()]}}],null,!1,431083075)}):t._e(),a("el-table-column",{key:20,attrs:{label:"饲喂总比例(%)","min-width":"80px",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:21,attrs:{label:"饲喂投喂量","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.todayweight))])]}}])}),a("el-table-column",{key:22,attrs:{label:"饲喂配方重量","min-width":"70px",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:23,attrs:{label:"补料配方重量","min-width":"100px",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(),t.table.isPtsfname?a("el-table-column",{key:24,attrs:{label:"补料投喂量","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.todaysupplement))])]}}],null,!1,1910214236)}):t._e(),a("el-table-column",{key:25,attrs:{label:"日投喂量","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.todayfeed))])]}}])}),a("el-table-column",{key:26,attrs:{label:"配方干物质","min-width":"70px",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:"操作",align:"center",width:"80","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1)],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.history.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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"}})],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,"span-method":t.objectSpanMethod}},[a("el-table-column",{key:1,attrs:{label:"序号",align:"center",type:"index",width:"50px","class-name":"small-padding fixed-width",fixed:"left"},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",{key:2,attrs:{label:"栏舍名称",prop:"barname","min-width":"90px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{key:3,attrs:{label:"班次",prop:"times","min-width":"90px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{key:4,attrs:{label:"软件牛头数",prop:"softccount","min-width":"70px",align:"center"}}),a("el-table-column",{key:5,attrs:{label:"实际牛头数",prop:"ccount","min-width":"70px",align:"center"}}),a("el-table-column",{key:6,attrs:{label:"系数(%)",prop:"ratio","min-width":"70px",align:"center"}}),a("el-table-column",{key:7,attrs:{label:"系数头数",prop:"ccountratio","min-width":"70px",align:"center"}}),a("el-table-column",{key:8,attrs:{label:"配方模板",prop:"ptname","min-width":"70px",align:"center"}}),t.table.isPtsfname?a("el-table-column",{key:9,attrs:{label:"补料配方",prop:"ptsname","min-width":"70px",align:"center"}}):t._e(),a("el-table-column",{key:10,attrs:{label:"班次比例",prop:"tratio","min-width":"70px",align:"center"}}),a("el-table-column",{key:11,attrs:{label:"班次重量",prop:"weight","min-width":"70px",align:"center"}}),a("el-table-column",{key:12,attrs:{label:"配方重量",prop:"pweight","min-width":"70px",align:"center"}}),t.table.isPtsfname?a("el-table-column",{key:13,attrs:{label:"补料重量",prop:"ptweight","min-width":"70px",align:"center"}}):t._e(),a("el-table-column",{key:14,attrs:{label:"配方干物质量",prop:"dryweight","min-width":"70px",align:"center"}}),a("el-table-column",{key:15,attrs:{label:"饲喂干物质量",prop:"swdryw","min-width":"70px",align:"center"}}),a("el-table-column",{key:16,attrs:{label:"采样干物质量",prop:"cydryw","min-width":"70px",align:"center"}}),a("el-table-column",{key:17,attrs:{label:"日投喂量",prop:"sumweight","min-width":"70px",align:"center"}})],1),a("pagination2",{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:"cancelClose cancelClose1",on:{click:function(e){t.history.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.nutritional.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.nutritional,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.nutritional.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-nutritional"},[a("h4",{staticStyle:{position:"absolute",top:"-5px",left:"140px",font:"16px/30px ''",color:"#303133"}},[t._v("栏舍:"+t._s(t.nutritional.tab1.temp.barname))]),a("el-tabs",{on:{"tab-click":t.handleNutritionalTab},model:{value:t.nutritional.activeName,callback:function(e){t.$set(t.nutritional,"activeName",e)},expression:"nutritional.activeName"}},[a("el-tab-pane",{attrs:{label:"营养评估",name:"first"}},[a("el-form",{ref:"temp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:t.rules,model:t.nutritional.tab1.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.tab1.disabledCowclass,filterable:"",placeholder:""},model:{value:t.nutritional.tab1.temp.cowclassid,callback:function(e){t.$set(t.nutritional.tab1.temp,"cowclassid",e)},expression:"nutritional.tab1.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.tab1.temp.avgmonthage,callback:function(e){t.$set(t.nutritional.tab1.temp,"avgmonthage",e)},expression:"nutritional.tab1.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.tab1.temp.bw,callback:function(e){t.$set(t.nutritional.tab1.temp,"bw",e)},expression:"nutritional.tab1.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.tab1.temp.dayw,callback:function(e){t.$set(t.nutritional.tab1.temp,"dayw",e)},expression:"nutritional.tab1.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.tab1.temp.fetal,callback:function(e){t.$set(t.nutritional.tab1.temp,"fetal",e)},expression:"nutritional.tab1.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.tab1.temp.avgdim,callback:function(e){t.$set(t.nutritional.tab1.temp,"avgdim",e)},expression:"nutritional.tab1.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.tab1.temp.dayspre,callback:function(e){t.$set(t.nutritional.tab1.temp,"dayspre",e)},expression:"nutritional.tab1.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.tab1.temp.product,callback:function(e){t.$set(t.nutritional.tab1.temp,"product",e)},expression:"nutritional.tab1.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.tab1.temp.fat,callback:function(e){t.$set(t.nutritional.tab1.temp,"fat",e)},expression:"nutritional.tab1.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.tab1.temp.pro,callback:function(e){t.$set(t.nutritional.tab1.temp,"pro",e)},expression:"nutritional.tab1.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.tab1.temp.lactose,callback:function(e){t.$set(t.nutritional.tab1.temp,"lactose",e)},expression:"nutritional.tab1.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.tab1.temp.tem,callback:function(e){t.$set(t.nutritional.tab1.temp,"tem",e)},expression:"nutritional.tab1.temp.tem"}})],1)],1)],1)],1),a("div",{staticStyle:{height:"50px"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px","margin-right":"10px"},attrs:{"picker-options":t.pickerOptions,clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.nutritional.tab1.inputDatetime,callback:function(e){t.$set(t.nutritional.tab1,"inputDatetime",e)},expression:"nutritional.tab1.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",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.tab1.listLoading,expression:"nutritional.tab1.listLoading"}],key:t.nutritional.tab1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab1.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-class-name":t.tableRowClassName}},[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.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.ftpro))])]}}])}),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.hprov))])]}}])}),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.sprov))])]}}])})],1)],1)],1),a("el-tab-pane",{attrs:{label:"牛群评估",name:"second"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px","margin-right":"10px"},attrs:{"picker-options":t.pickerOptions,clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeTab2Date},model:{value:t.nutritional.tab2.inputDatetime,callback:function(e){t.$set(t.nutritional.tab2,"inputDatetime",e)},expression:"nutritional.tab2.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-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{"text-align":"center"}},[t._v("宾州筛分析")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.tab2.listLoading1,expression:"nutritional.tab2.listLoading1"}],key:t.nutritional.tab2.tableKey1,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab2.list1,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.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"第一层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.oneweight))])]}}])}),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.onerate))])]}}])}),a("el-table-column",{attrs:{label:"第二层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.twoweight))])]}}])}),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.tworate))])]}}])}),a("el-table-column",{attrs:{label:"第三层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.threeweight))])]}}])}),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.threerate))])]}}])}),a("el-table-column",{attrs:{label:"第四层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fourweight))])]}}])}),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.fourrate))])]}}])}),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))])]}}])})],1)],1)])],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{"text-align":"center"}},[t._v("粪便筛分析")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.tab2.listLoading2,expression:"nutritional.tab2.listLoading2"}],key:t.nutritional.tab2.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab2.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("span",[t._v(t._s(e.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"第一层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.oneweight))])]}}])}),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.onerate))])]}}])}),a("el-table-column",{attrs:{label:"第二层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.twoweight))])]}}])}),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.tworate))])]}}])}),a("el-table-column",{attrs:{label:"第三层重量(g)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.threeweight))])]}}])}),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.threerate))])]}}])}),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))])]}}])})],1)],1)])],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{"text-align":"center"}},[t._v("BCS评分")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.tab2.listLoading3,expression:"nutritional.tab2.listLoading3"}],key:t.nutritional.tab2.tableKey3,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab2.list3,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.operatetime))])]}}])}),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.sumcowcount))])]}}])}),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.product))])]}}])}),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.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.avgdim))])]}}])}),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.standardscore))])]}}])}),a("el-table-column",{attrs:{label:"2.75-分(数量、百分比)","min-width":"130px",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":"130px",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":"130px",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":"130px",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":"130px",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":"130px",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":"130px",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)],1)])],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{"text-align":"center"}},[t._v("粪便评分")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.nutritional.tab2.listLoading4,expression:"nutritional.tab2.listLoading4"}],key:t.nutritional.tab2.tableKey4,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:t.nutritional.tab2.list4,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.operatetime))])]}}])}),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.sumcowcount))])]}}])}),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.product))])]}}])}),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.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.avgdim))])]}}])}),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:"1分(数量、百分比)","min-width":"130px",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":"130px",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":"130px",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":"130px",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":"130px",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)],1)])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.nutritional.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2),a("DryMatterRegulation",{ref:"mychild",attrs:{show:t.isShowDialog},on:{"update:show":function(e){t.isShowDialog=e},getIsDisplay:t.getIsDisplay}})],1)},s=[],r=(a("7db0"),a("d3b7"),a("ac1f"),a("1276"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("b680"),a("159b"),a("3ca3"),a("ddb0"),a("d81d"),a("2934")),l=a("333d"),n=a("c483"),o=a("ed08"),c=a("5c96"),d=a("a78e"),p=a.n(d),m=(a("bc3a"),a("5f87")),u=a("dd8d"),h={inject:["reload"],name:"DhedFormula",components:{Pagination:l["a"],Pagination2:n["a"],DryMatterRegulation:u["default"]},data:function(){var t=this;return{dialogFull:!1,isRoleEdit:[],headerList:[],pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i-864e5||e.getTime()>s-864e5}return e.getTime()>Date.now()-864e5}},requestParams:[{name:"getFTSWLSList",offset:0,pagecount:0,parammaps:{pastureid:p.a.get("pastureid")}},{name:"getFTBLList",offset:0,pagecount:0,parammaps:{pastureid:p.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:p.a.get("pastureid")}},{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:p.a.get("pastureid")}}],getFeedTempletNameListParm:{name:"getFeedTempletName",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{}},tnameList:[],recipeTemplateList:[],feedingFormulaList:[],livestockTypeList:[],barList:[],rules:{cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},table:{getdataListParm:{name:"getFPList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),enable:"",barid:"",tname:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{},rwList:[],isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:p.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:p.a.get("pastureid"),inforname:"times"}},RWLength:""},selectList:[],nutritional:{dialogFormVisible:!1,dialogStatus:"",activeName:"first ",tab1:{inputDatetime:[new Date,new Date],listLoading1:!0,getdataListParm1:{name:"getnurj",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:""}},disabledCowclass:!1,temp:{},tableKey:0,list:[],total:0,listLoading2:!0,getdataListParm2:{name:"GETNurJudge",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",cowclassid:""}}},tab2:{inputDatetime:[new Date,new Date],listLoading1:!0,tableKey1:0,list1:[],total1:0,getdataListParm1:{name:"getPennsieveList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:"",startTime:"",stopTime:"",inputDatetime:""}},listLoading2:!0,tableKey2:0,list2:[],total2:0,getdataListParm2:{name:"getDungsieveList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:"",startTime:"",stopTime:"",inputDatetime:""}},listLoading3:!0,tableKey3:0,list3:[],total3:0,getdataListParm3:{name:"getBodyscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:"",startTime:"",stopTime:"",inputDatetime:""}},listLoading4:!0,tableKey4:0,list4:[],total4:0,getdataListParm4:{name:"getDungscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:"",startTime:"",stopTime:"",inputDatetime:""}}}},history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getPlanModifyFPlist",page:1,offset:1,pagecount:12,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),date:"",barid:"",tname:""}},isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:p.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:p.a.get("pastureid"),inforname:"times"}},getdataDateParm:{name:"getFPMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid")}}},textMap:{Nutritional:"营养评估",history:"历史记录"},focusWRow:{},focusWRow2:{},focusWRow3:{},focusWRow4:{},requestParam:{},download:{getdataListParm:{name:"getFPList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid"),enable:""}},list:[]},spanObj:{},mergekeys:["barname","sumweight"],isShowDialog:!1,isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-140}},computed:{headers:function(){return{token:Object(m["a"])()}},uploadData:function(){return{name:"checkbarname,checkftsw,checkftbl,updateBigFPUpload,updateBigFPfeedweightUpload,updateBigFPDetailUpload,updateBigFPDetailUploadV1,updateBigFPDetailUploadV2,updateBigFPDetailUploadV3",importParams:"栏舍名称,实际牛头数,系数(%),配方模板,补料配方,第一班比例(%),第二班比例(%),第三班比例(%)",sheetname:"Sheet1",pastureid:p.a.get("pastureid"),dateParams:"",requiredParams:"栏舍名称,实际牛头数,系数(%),配方模板,",numParams:"实际牛头数,系数(%),第一班比例(%),第二班比例(%),第三班比例(%),,第四班比例(%)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},created:function(){this.getButtons(),this.getDownList(),this.getFeedTempletNameList()},methods:{getButtons:function(){var t="DhedFormula",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.recipeTemplateList=e.data.getFTSWLSList.list,t.feedingFormulaList=e.data.getFTBLList.list,t.livestockTypeList=e.data.getCowclassListEnable.list,t.barList=e.data.getBarListEnable.list,t.getIsDisplay()}))},getFeedTempletNameList:function(){var t=this;Object(r["c"])(this.getFeedTempletNameListParm).then((function(e){null!==e.data.list?t.tnameList=e.data.list:t.tnameList=[]}))},getIsDisplay:function(){var t=this;Object(r["c"])(this.table.getdataListParm2).then((function(e){null!==e.data.list&&(0==e.data.list[0].inforvalue?t.table.isPtsfname=!1:t.table.isPtsfname=!0)})),Object(r["c"])(this.table.getdataListParm3).then((function(e){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["c"])(this.table.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=function(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].ftid&&(void 0!==t.recipeTemplateList.find((function(t){return t.id==e.data.list[a].ftid}))?t.$set(e.data.list[a],"dryweight",t.recipeTemplateList.find((function(t){return t.id==e.data.list[a].ftid})).dryweight):t.$set(e.data.list[a],"dryweight","")),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&&0!=parseFloat(e.data.list[a].feedweight)||t.$set(e.data.list[a],"feedweight",""),t.$set(e.data.list[a],"dailyWeight",""),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){s=e.data.list[a].timesopt.split(",");for(var i=0;i<s.length;i++)e.data.list[a]["r"+s[i].split(":")[0]]=s[i].split(":")[1],e.data.list[a]["w"+s[i].split(":")[0]]=s[i].split(":")[2]}if(void 0==e.data.list[a].bw1&&t.$set(e.data.list[a],"bw1",""),void 0==e.data.list[a].bw2&&t.$set(e.data.list[a],"bw2",""),void 0==e.data.list[a].bw3&&t.$set(e.data.list[a],"bw3",""),void 0==e.data.list[a].bw4&&t.$set(e.data.list[a],"bw4",""),void 0!==e.data.list[a].supplement){l=e.data.list[a].supplement.split(",");for(var r=0;r<l.length;r++)e.data.list[a]["bw"+l[r].split(":")[0]]=l[r].split(":")[2]}},i=0;i<e.data.list.length;i++){var s,l;a(i)}for(var n=0;n<e.data.list.length;n++)""==e.data.list[n].r1&&(e.data.list[n].r1=0,e.data.list[n].w1=0),""==e.data.list[n].r2&&(e.data.list[n].r2=0,e.data.list[n].w2=0),""==e.data.list[n].r3&&(e.data.list[n].r3=0,e.data.list[n].w3=0),""==e.data.list[n].r4&&(e.data.list[n].r4=0,e.data.list[n].w4=0),t.$set(e.data.list[n],"sumr",parseFloat(e.data.list[n].r1)+parseFloat(e.data.list[n].r2)+parseFloat(e.data.list[n].r3)+parseFloat(e.data.list[n].r4)),e.data.list[n].sumr=Object(r["k"])(e.data.list[n].sumr,parseInt(p.a.get("decimal"))),t.$set(e.data.list[n],"dailyWeight",parseFloat(e.data.list[n].w1)+parseFloat(e.data.list[n].w2)+parseFloat(e.data.list[n].w3)+parseFloat(e.data.list[n].w4)),e.data.list[n].dailyWeight=Object(r["k"])(e.data.list[n].dailyWeight,parseInt(p.a.get("decimal")));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(){this.getList()},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(this.headerList.push(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){e.myccname=this.recipeTemplateList.find((function(e){return e.id==t})).ccname,e.bigcowclass!==e.myccname&&this.$message({type:"warning",message:"所选配方模板牲畜类别与栏舍对应牲畜类别不一致",duration:2e3}),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,e.dryweight=this.recipeTemplateList.find((function(e){return e.id==t})).dryweight,""!==e.Sfweight&&""!==e.ccount?this.$set(e,"ftweight",Object(r["k"])(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount),parseInt(p.a.get("decimal")))):e.ftweight="",0==this.table.isPtsfname?e.feedweight=Object(r["k"])(parseFloat(e.ftweight),parseInt(p.a.get("decimal"))):("NaN"==e.supplyweight&&(e.supplyweight=0),""!==e.supplyweight&&""!==e.ftweight?e.feedweight=Object(r["k"])(parseFloat(e.supplyweight)+parseFloat(e.ftweight),parseInt(p.a.get("decimal"))):""==e.supplyweight&&""!==e.ftweight?e.feedweight=Object(r["k"])(parseFloat(e.ftweight),parseInt(p.a.get("decimal"))):""!==e.supplyweight&&""!==e.ftweight&&(e.feedweight=Object(r["k"])(parseFloat(e.supplyweight),parseInt(p.a.get("decimal")))),""!==e.ccountratio&&""!==e.ftweight&&(e.ftweight=Object(r["k"])(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount),parseInt(p.a.get("decimal")))),""!==e.Sfweight&&""!==e.ccount?this.$set(e,"ftweight",Object(r["k"])(parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount),parseInt(p.a.get("decimal")))):e.ftweight=""),"NaN"==e.supplyweight&&(e.supplyweight=0),""!==e.r1&&this.$set(e,"w1",Object(r["k"])(parseFloat(e.feedweight)*(parseFloat(e.r1)/100),parseInt(p.a.get("decimal")))),""!==e.r2&&this.$set(e,"w2",Object(r["k"])(parseFloat(e.feedweight)*(parseFloat(e.r2)/100),parseInt(p.a.get("decimal")))),""!==e.r3&&this.$set(e,"w3",Object(r["k"])(parseFloat(e.feedweight)*(parseFloat(e.r3)/100),parseInt(p.a.get("decimal")))),""!==e.r4&&this.$set(e,"w4",Object(r["k"])(parseFloat(e.feedweight)*(parseFloat(e.r4)/100),parseInt(p.a.get("decimal")))),""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.w3&&(e.w3=0),""==e.w4&&(e.w4=0),this.$set(e,"dailyWeight",parseFloat(e.w1)+parseFloat(e.w2)+parseFloat(e.w3)+parseFloat(e.w4)),e.dailyWeight=Object(r["k"])(e.dailyWeight,parseInt(p.a.get("decimal")))},changeFeedingFormula:function(t,e){""==t&&(e.bw1=0,e.bw2=0,e.bw3=0,e.bw4=0),e.myccname=this.feedingFormulaList.find((function(e){return e.id==t})).ccname,e.bigcowclass!==e.myccname&&this.$message({type:"warning",message:"所选补料配方与栏舍对应牲畜类别不一致",duration:2e3}),""!==t?(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):(e.ptsfname="",e.BLweight=0,e.BLSfweightLock=0),""!==e.ccountratio&&""!==e.ccount&&""!==e.ccount.BLweight&&""!==e.BLSfweightLock?this.$set(e,"supplyweight",Object(r["k"])(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLSfweightLock)*parseFloat(e.ccount),parseInt(p.a.get("decimal")))):e.supplyweight="",0==this.table.isPtsfname?e.feedweight=parseFloat(e.ftweight):""!==e.supplyweight&&""!==e.ftweight?e.feedweight=Object(r["k"])(parseFloat(e.supplyweight)+parseFloat(e.ftweight),parseInt(p.a.get("decimal"))):""==e.supplyweight&&""!==e.ftweight?e.feedweight=Object(r["k"])(parseFloat(e.ftweight),parseInt(p.a.get("decimal"))):""!==e.supplyweight&&""==e.ftweight&&(e.feedweight=Object(r["k"])(parseFloat(e.supplyweight),parseInt(p.a.get("decimal")))),""!==e.r1&&this.$set(e,"w1",Object(r["k"])(parseFloat(e.feedweight)*(parseFloat(e.r1)/100),parseInt(p.a.get("decimal")))),""!==e.r2&&this.$set(e,"w2",Object(r["k"])(parseFloat(e.feedweight)*(parseFloat(e.r2)/100),parseInt(p.a.get("decimal")))),""!==e.r3&&this.$set(e,"w3",Object(r["k"])(parseFloat(e.feedweight)*(parseFloat(e.r3)/100),parseInt(p.a.get("decimal")))),""!==e.r4&&this.$set(e,"w4",Object(r["k"])(parseFloat(e.feedweight)*(parseFloat(e.r4)/100),parseInt(p.a.get("decimal")))),""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.w3&&(e.w3=0),""==e.w4&&(e.w4=0),this.$set(e,"dailyWeight",parseFloat(e.w1)+parseFloat(e.w2)+parseFloat(e.w3)+parseFloat(e.w4)),e.dailyWeight=Object(r["k"])(e.dailyWeight,parseInt(p.a.get("decimal")))},blurCcount: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=Object(r["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),parseInt(p.a.get("decimal"))),t.BLweightLock=Object(r["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock),parseInt(p.a.get("decimal")))),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.Sfweight&&""!==t.ccount&&(t.ftweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal")))),""!==t.ccount&&""!==t.ratio?t.ccountratio=Object(r["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,parseInt(p.a.get("decimal"))):""!==t.ratio&&""!==t.ccountratio?t.ccount=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ratio)/100,parseInt(p.a.get("decimal"))):""===t.ccount&&""===t.ratio||(t.ccountratio=""),"undefined"==t.BLweight&&this.$set(t,"BLweight",""),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(r["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==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=Object(r["k"])(parseFloat(t.supplyweight)+parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.supplyweight),parseInt(p.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight&&(t.feedweight=Object(r["k"])(parseFloat(t.ftweight),parseInt(p.a.get("decimal")))),""!==t.ccountratio&&""!==t.ftweight&&(t.ftweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal")))),""!==t.ccountratio&&""!==t.BLweight&&(t.supplyweight=Object(r["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))))),""!==t.r1&&0==t.isOneWeight&&this.$set(t,"w1",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r1)/100),parseInt(p.a.get("decimal")))),""!==t.r2&&0==t.isTwoWeight&&this.$set(t,"w2",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r2)/100),parseInt(p.a.get("decimal")))),""!==t.r3&&0==t.isThreeWeight&&this.$set(t,"w3",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r3)/100),parseInt(p.a.get("decimal")))),""!==t.r4&&0==t.isFourWeight&&this.$set(t,"w4",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r4)/100),parseInt(p.a.get("decimal")))),1==t.isOneWeight&&this.$set(t,"r1",Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isTwoWeight&&this.$set(t,"r2",Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isThreeWeight&&this.$set(t,"r3",Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isFourWeight&&this.$set(t,"r4",Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal")))},blurRatio: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=Object(r["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),parseInt(p.a.get("decimal"))),t.BLweightLock=Object(r["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock),parseInt(p.a.get("decimal")))),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.ccount&&""!==t.ratio&&""!==t.ccountratio?t.ccountratio=Object(r["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,parseInt(p.a.get("decimal"))):""!==t.ccount&&""!==t.ccountratio?t.ratio=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),parseInt(p.a.get("decimal"))):""===t.ccount&&""===t.ccountratio||(t.ratio=""),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(r["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight=""),""!==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=Object(r["k"])(parseFloat(t.supplyweight),parseInt(p.a.get("decimal")))),0==this.table.isPtsfname?t.feedweight=Object(r["k"])(parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):(""!==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.supplyweight)+parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=Object(r["k"])(parseFloat(t.supplyweight),parseInt(p.a.get("decimal")))),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(r["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight="")),""!==t.r1&&0==t.isOneWeight&&this.$set(t,"w1",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r1)/100),parseInt(p.a.get("decimal")))),""!==t.r2&&0==t.isTwoWeight&&this.$set(t,"w2",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r2)/100),parseInt(p.a.get("decimal")))),""!==t.r3&&0==t.isThreeWeight&&this.$set(t,"w3",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r3)/100),parseInt(p.a.get("decimal")))),""!==t.r4&&0==t.isFourWeight&&this.$set(t,"w4",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r4)/100),parseInt(p.a.get("decimal")))),1==t.isOneWeight&&this.$set(t,"r1",Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isTwoWeight&&this.$set(t,"r2",Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isThreeWeight&&this.$set(t,"r3",Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isFourWeight&&this.$set(t,"r4",Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal")))},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=Object(r["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).Sfweight),parseInt(p.a.get("decimal"))),t.BLweightLock=Object(r["k"])(parseFloat(this.feedingFormulaList.find((function(e){return e.id==t.ptsfid})).SfweightLock),parseInt(p.a.get("decimal")))),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""==t.ptsfid&&(t.BLweight=0,t.BLweightLock=0),""!==t.ccountratio&&""!==t.ccount&&""!==t.ratio?0!==t.ccountratio&&0!==t.ccount&&(t.ratio=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),parseInt(p.a.get("decimal")))):""!==t.ccount&&""!==t.ratio?t.ccountratio=Object(r["k"])(parseFloat(t.ccount)*parseFloat(t.ratio)/100,parseInt(p.a.get("decimal"))):""!==t.ccountratio&&""!==t.ccount?0!==t.ccountratio&&0!==t.ccount&&(t.ratio=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ccount),parseInt(p.a.get("decimal")))):""!==t.ccountratio&&""!==t.ratio&&(t.ccount=Object(r["k"])(100*parseFloat(t.ccountratio)/parseFloat(t.ratio)/100,parseInt(p.a.get("decimal")))),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(r["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight=""),""!==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.supplyweight)+parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=Object(r["k"])(parseFloat(t.supplyweight),parseInt(p.a.get("decimal")))),0==this.table.isPtsfname?t.feedweight=Object(r["k"])(parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):(""!==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.supplyweight)+parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):""==t.supplyweight&&""!==t.ftweight?t.feedweight=Object(r["k"])(parseFloat(t.ftweight),parseInt(p.a.get("decimal"))):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=Object(r["k"])(parseFloat(t.supplyweight),parseInt(p.a.get("decimal")))),""!==t.ccountratio&&""!==t.BLweight?t.supplyweight=Object(r["k"])(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.BLweight||""==t.ccountratio&&""!==t.BLweight)&&(t.supplyweight="",t.feedweight=""),""!==t.ccountratio&&""!==t.Sfweight?t.ftweight=Object(r["k"])(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount),parseInt(p.a.get("decimal"))):(""!==t.ccountratio&&""==t.Sfweight||""==t.ccountratio&&""!==t.Sfweight)&&(t.ftweight="",t.feedweight="")),""!==t.r1&&0==t.isOneWeight&&this.$set(t,"w1",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r1)/100),parseInt(p.a.get("decimal")))),""!==t.r2&&0==t.isTwoWeight&&this.$set(t,"w2",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r2)/100),parseInt(p.a.get("decimal")))),""!==t.r3&&0==t.isThreeWeight&&this.$set(t,"w3",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r3)/100),parseInt(p.a.get("decimal")))),""!==t.r4&&0==t.isFourWeight&&this.$set(t,"w4",Object(r["k"])(parseFloat(t.feedweight)*(parseFloat(t.r4)/100),parseInt(p.a.get("decimal")))),1==t.isOneWeight&&this.$set(t,"r1",Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isTwoWeight&&this.$set(t,"r2",Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isThreeWeight&&this.$set(t,"r3",Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),1==t.isFourWeight&&this.$set(t,"r4",Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal")))),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal")))},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=Object(r["k"])(parseFloat(t.feedweight)*parseFloat(t.r1)/100,parseInt(p.a.get("decimal")))),""!==t.r2&&(t.w2=Object(r["k"])(parseFloat(t.feedweight)*parseFloat(t.r2)/100,parseInt(p.a.get("decimal")))),""!==t.r3&&(t.w3=Object(r["k"])(parseFloat(t.feedweight)*parseFloat(t.r3)/100,parseInt(p.a.get("decimal")))),""!==t.r4&&(t.w4=Object(r["k"])(parseFloat(t.feedweight)*parseFloat(t.r4)/100,parseInt(p.a.get("decimal")))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal")))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal")))},focusW:function(t){this.focusWRow=Object.assign({},t)},focusW2:function(t){this.focusWRow2=Object.assign({},t)},focusW3:function(t){this.focusWRow3=Object.assign({},t)},focusW4:function(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),4==this.table.RWLength?(1==t.isTwoWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isTwoWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isTwoWeight&&1==t.isFourWeight&&0==t.isThreeWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isTwoWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r3&&0==t.r4?(t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w3,t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))):0==t.r3&&0!==t.r4?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w4=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r3&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w3)&&(t.w3=0,t.r3=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r2&&0==t.r4?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))/2,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w2,t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))):0==t.r2&&0!==t.r4?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w4=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isThreeWeight&&1==t.isFourWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r2&&0==t.r3?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))/2,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w2,t.r3=t.r2):0==t.r2&&0!==t.r3?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r3?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),t.w2<=0&&(t.w2=0,t.r2=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==parseFloat(t.r2)&&0==parseFloat(t.r3)&&0==parseFloat(t.r4)?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))/3,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w2,t.w4=t.w2,t.r3=t.r2,t.r4=t.r2):0==parseFloat(t.r2)&&0==parseFloat(t.r3)&&0!==parseFloat(t.r4)?(t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))/2,parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=t.w3,t.r2=t.r3,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w4=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==parseFloat(t.r2)&&0!==parseFloat(t.r3)&&0==parseFloat(t.r4)?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))/2,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w2,t.r4=t.r2,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==parseFloat(t.r2)&&0==parseFloat(t.r3)&&0==parseFloat(t.r4)?(t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w3,t.r4=t.r3,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r2&&0!==t.r3&&0!==t.r4?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r3&&0!==t.r4?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0!==t.r3&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(this.focusWRow.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(t.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),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",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal")))))):3==this.table.RWLength?(1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r2&&0==t.r3?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))/2,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w2,t.r3=t.r2):0==t.r2&&0!==t.r3?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r3?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1))*parseFloat(this.focusWRow.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal")))))):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=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2),parseInt(p.a.get("decimal"))))):(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2),parseInt(p.a.get("decimal")))))):(t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1),parseInt(p.a.get("decimal"))))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal")))},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),4==this.table.RWLength?(1==t.isOneWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&1==t.isFourWeight&&0==t.isThreeWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&1==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r3&&0==t.r4?(t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w3,t.r4=t.r3):0==t.r3&&0!==t.r4?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w4=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r3&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w3)&&(t.w3=0,t.r3=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&1==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r4?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1):0==t.r1&&0!==t.r4?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w4=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w1<=0&&(t.w1=0,t.r1=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&0==t.isThreeWeight&&1==t.isFourWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r3?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1):0==t.r1&&0!==t.r3?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(this.focusWRow2.r1)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(this.focusWRow2.r1)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w1<=0&&(t.w1=0,t.r1=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&0==t.isThreeWeight&&0==t.isFourWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r3&&0==t.r4?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))/3,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1,t.w4=t.w1,t.r4=t.r1):0==t.r1&&0==t.r3&&0!==t.r4?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w4))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w4=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r3&&0==t.r4?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3&&0==t.r4?(t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w1))/2,parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w3,t.r4=t.r3,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0!==t.r3&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3&&0!==t.r4?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w1)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r3&&0!==t.r4?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r4)/(parseFloat(this.focusWRow2.r1)+parseFloat(this.focusWRow2.r3)+parseFloat(this.focusWRow2.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),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",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal")))))):3==this.table.RWLength?(1==t.isOneWeight&&1==t.isThreeWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&1==t.isThreeWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&0==t.isThreeWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&0==t.isThreeWeight&&(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r3?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1):0==t.r1&&0!==t.r3?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow2.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow2.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal")))))):2==this.table.RWLength&&(0==t.isOneWeight?(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2),parseInt(p.a.get("decimal"))))):(t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2),parseInt(p.a.get("decimal")))))),t.w2<=0&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal")))},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),4==this.table.RWLength?(1==t.isOneWeight&&1==t.isTwoWeight&&1==t.isFourWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&1==t.isTwoWeight&&0==t.isFourWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&1==t.isTwoWeight&&1==t.isFourWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isOneWeight&&1==t.isFourWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isTwoWeight&&0==t.isOneWeight&&0==t.isFourWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r4?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1):0==t.r1&&0!==t.r4?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w4=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w1<=0&&(t.w1=0,t.r1=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&1==t.isOneWeight&&0==t.isFourWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r2&&0==t.r4?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))/2,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w2,t.r4=t.r2):0==t.r2&&0!==t.r4?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w4=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3))*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isOneWeight&&1==t.isFourWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r2?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1):0==t.r1&&0!==t.r2?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isTwoWeight&&0==t.isOneWeight&&0==t.isFourWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r2&&0==t.r4?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))/3,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1,t.w4=t.w1,t.r4=t.r1):0==t.r1&&0==t.r2&&0!==t.r4?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w4))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w4=Object(r["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r2&&0==t.r4?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(r["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2&&0==t.r4?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w1))/2,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=t.w1,t.r4=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0!==t.r2&&0==t.r4?(t.w4=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2&&0!==t.r4?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w1)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r2&&0!==t.r4?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(r["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])(parseFloat(this.focusWRow3.dailyWeight-t.w3)*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r4)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])(parseFloat(t.dailyWeight-t.w3)*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w4=Object(r["k"])(parseFloat(t.dailyWeight-t.w3)*parseFloat(t.r4)/(parseFloat(this.focusWRow3.r1)+parseFloat(this.focusWRow3.r2)+parseFloat(this.focusWRow3.r4)),parseInt(p.a.get("decimal"))),t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w4)&&(t.w4=0,t.r4=0),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",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal")))))):3==this.table.RWLength&&(1==t.isOneWeight&&1==t.isTwoWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&1==t.isTwoWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&0==t.isTwoWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&0==t.isTwoWeight&&(t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r2?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1):0==t.r1&&0!==t.r2?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w3)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow3.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow3.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(t.r2)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3),parseInt(p.a.get("decimal")))))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal")))},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),4==this.table.RWLength&&(1==t.isOneWeight&&1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&1==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w2)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w3)-parseFloat(t.w4),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2<=0&&(t.w2=0,t.r2=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&1==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r3?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1):0==t.r1&&0!==t.r3?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(this.focusWRow4.r1)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r3?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))*parseFloat(t.r3)/(parseFloat(t.r3)+parseFloat(this.focusWRow4.r1)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w3<=0&&(t.w3=0,t.r3=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&0==t.isTwoWeight&&1==t.isThreeWeight&&(t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r2?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1):0==t.r1&&0!==t.r2?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(this.focusWRow4.r1)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3)-parseFloat(t.w1),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r2)+parseFloat(t.r1)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r1)/(parseFloat(t.r2)+parseFloat(t.r1)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(this.focusWRow4.r1)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w1<=0&&(t.w1=0,t.r1=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),1==t.isOneWeight&&0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r2&&0==t.r3?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))/2,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w2,t.r3=t.r2):0==t.r2&&0!==t.r3?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r2&&0==t.r3?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(t.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w1)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),t.w2<=0&&(t.w2=0,t.r2=0),t.w3<=0&&(t.w3=0,t.r3=0),this.$set(t,"sumr",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal"))))),0==t.isOneWeight&&0==t.isTwoWeight&&0==t.isThreeWeight&&(t.r4=Object(r["k"])(parseFloat(t.w4)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),0==t.r1&&0==t.r2&&0==t.r3?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4))/3,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1,t.w3=t.w1,t.r3=t.r1):0==t.r1&&0==t.r2&&0!==t.r3?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w3))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=t.w1,t.r2=t.r1,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),t.w4<=0&&(t.w4=0,t.r4=0),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w3=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),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),t.w4<=0&&(t.w4=0,t.r4=0))):0==t.r1&&0!==t.r2&&0==t.r3?(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2))/2,parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2&&0==t.r3?(t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w1))/2,parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=t.w1,t.r3=t.r1,""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0!==t.r2&&0==t.r3?(t.w3=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w1)-parseFloat(t.w2),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),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),t.w4<=0&&(t.w4=0,t.r4=0)):0!==t.r1&&0==t.r2&&0!==t.r3?(t.w2=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w1)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w1=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),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),t.w4<=0&&(t.w4=0,t.r4=0)),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),t.w4<=0&&(t.w4=0,t.r4=0)):0==t.r1&&0!==t.r2&&0!==t.r3?(t.w1=Object(r["k"])(parseFloat(t.dailyWeight)-parseFloat(t.w4)-parseFloat(t.w2)-parseFloat(t.w3),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),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),t.w4<=0&&(t.w4=0,t.r4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal"))),parseFloat(t.dailyWeight)>parseFloat(this.focusWRow4.dailyWeight)&&(t.w2=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(this.focusWRow4.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),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),t.w4<=0&&(t.w4=0,t.r4=0))):(t.w1=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r1)/(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)),parseInt(p.a.get("decimal"))),t.r1=Object(r["k"])(parseFloat(t.w1)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w2=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r2)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(p.a.get("decimal"))),t.r2=Object(r["k"])(parseFloat(t.w2)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal"))),t.w3=Object(r["k"])((parseFloat(t.dailyWeight)-parseFloat(t.w4))*parseFloat(t.r3)/(parseFloat(this.focusWRow4.r1)+parseFloat(this.focusWRow4.r2)+parseFloat(this.focusWRow4.r3)),parseInt(p.a.get("decimal"))),t.r3=Object(r["k"])(parseFloat(t.w3)/parseFloat(t.feedweight)*100,parseInt(p.a.get("decimal")))),isNaN(t.w1)&&(t.w1=0,t.r1=0),isNaN(t.w2)&&(t.w2=0,t.r2=0),isNaN(t.w3)&&(t.w3=0,t.r3=0),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",Object(r["k"])(parseFloat(t.r1)+parseFloat(t.r2)+parseFloat(t.r3)+parseFloat(t.r4),parseInt(p.a.get("decimal")))))),""==t.w1&&(t.w1=0),""==t.w2&&(t.w2=0),""==t.w3&&(t.w3=0),""==t.w4&&(t.w4=0),this.$set(t,"dailyWeight",parseFloat(t.w1)+parseFloat(t.w2)+parseFloat(t.w3)+parseFloat(t.w4)),t.dailyWeight=Object(r["k"])(t.dailyWeight,parseInt(p.a.get("decimal")))},celldblclick:function(t,e,a,i){this.handleUpdate(t)},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,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;"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),"NaN"==t.bw1&&this.$set(t,"bw1",0),"NaN"==t.bw2&&this.$set(t,"bw2",0),"NaN"==t.bw3&&this.$set(t,"bw3",0),"NaN"==t.bw4&&this.$set(t,"bw4",0);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],""==t["bw"+i]?s["supplement"]=0:s["supplement"]=t["bw"+i],s["todaysupplement"]=t.todaysupplement,s["todayweight"]=t.todayweight,a.push(s)}(0==this.table.isPtsfname||""==t.ptsfid)&&(t.ptsfid="-1",t.ptsfname=""),""==t.supplyweight&&(t.supplyweight="0"),0==this.table.isPtsfname&&(t.supplyweight="0"),this.$set(t,"ratio",Math.floor(100*parseFloat(t.ratio))/100),this.$set(t,"ccountratio",Math.floor(100*parseFloat(t.ccountratio))/100),t.ccountratio=String(t.ccountratio),t.sumr=Math.round(t.sumr);for(var l=0;l<a.length;l++)void 0!=a[l].tratio&&""!=a[l].tratio&&null!=a[l].tratio||(a[l].tratio=0);if(this.table.rwList=a,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),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 n=/^[0-9]\d*$/;if(!n.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",supplement:"@insertSpotList.supplement",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){if("fail"===t.msg)e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3});else{e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList();for(var a=0;a<e.headerList.length;a++)"el-icon-lock"==e.headerList[a].target.className&&(e.headerList[a].target.className="el-icon-unlock",e.$set(e.headerList[a].target,"className","el-icon-unlock"))}}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isUpdate=!0,t.isUpdateSave=!1;for(var e=0;e<this.headerList.length;e++)"el-icon-lock"==this.headerList[e].target.className&&(this.headerList[e].target.className="el-icon-unlock",this.$set(this.headerList[e].target,"className","el-icon-unlock"));this.table.getdataListParm.offset=this.table.getdataListParm.offset,this.getList()},cellClick:function(t,e,a){},handleSelect:function(t){this.selectList=t},handleNutritional:function(){if(this.dialogFull=!1,1!==this.selectList.length)return this.$message({type:"error",message:"请选择一条栏舍信息进行营养评估",duration:2e3}),!1;this.nutritional.dialogStatus="Nutritional",this.nutritional.activeName="first",this.nutritional.dialogFormVisible=!0,this.nutritional.tab1.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab1.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.getNutritionalList(),this.nutritional.tab1.list=[]},tableRowClassName:function(t){var e=t.row;return"0"==e.isColor?"red-row":""},handleNutritionalTab:function(t){"first "==t?(this.nutritional.tab1.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab1.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.getNutritionalList(),this.nutritional.tab1.list=[]):(this.nutritional.tab2.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab2.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.nutritional.tab2.getdataListParm1.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm1.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm2.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm2.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm2.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.nutritional.tab2.getdataListParm3.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm3.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm3.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm3.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.nutritional.tab2.getdataListParm4.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm4.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm4.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm4.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.getTab2NutritionalList1(),this.getTab2NutritionalList2(),this.getTab2NutritionalList3(),this.getTab2NutritionalList4())},changeTab2Date:function(){this.nutritional.tab2.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab2.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.nutritional.tab2.getdataListParm1.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm1.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm2.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm2.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm2.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.nutritional.tab2.getdataListParm3.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm3.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm3.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm3.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.nutritional.tab2.getdataListParm4.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm4.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm4.parammaps.startTime=this.nutritional.tab2.getdataListParm1.parammaps.startTime,this.nutritional.tab2.getdataListParm4.parammaps.stopTime=this.nutritional.tab2.getdataListParm1.parammaps.stopTime,this.getTab2NutritionalList1(),this.getTab2NutritionalList2(),this.getTab2NutritionalList3(),this.getTab2NutritionalList4()},handleBefore:function(){if("first"==this.nutritional.activeName){if(""!==this.nutritional.tab1.inputDatetime&&null!==this.nutritional.tab1.inputDatetime){var t=new Date(this.nutritional.tab1.inputDatetime[0].setDate(this.nutritional.tab1.inputDatetime[0].getDate()-1)),e=new Date(this.nutritional.tab1.inputDatetime[1].setDate(this.nutritional.tab1.inputDatetime[1].getDate()-1));this.nutritional.tab1.inputDatetime.length=0,this.nutritional.tab1.inputDatetime.push(t,e),this.$forceUpdate()}}else{var a=new Date(this.nutritional.tab2.inputDatetime[0].setDate(this.nutritional.tab2.inputDatetime[0].getDate()-1)),i=new Date(this.nutritional.tab2.inputDatetime[1].setDate(this.nutritional.tab2.inputDatetime[1].getDate()-1));this.nutritional.tab2.inputDatetime.length=0,this.nutritional.tab2.inputDatetime.push(a,i),this.$forceUpdate(),this.nutritional.tab2.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab2.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.nutritional.tab2.getdataListParm1.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm1.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm2.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm2.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm3.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm3.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm3.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm3.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm4.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm4.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm4.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm4.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2NutritionalList1(),this.getTab2NutritionalList2(),this.getTab2NutritionalList3(),this.getTab2NutritionalList4()}},handleNext:function(){if("first"==this.nutritional.activeName){if(""!==this.nutritional.tab1.inputDatetime&&null!==this.nutritional.tab1.inputDatetime){var t=new Date(this.nutritional.tab1.inputDatetime[0].setDate(this.nutritional.tab1.inputDatetime[0].getDate()+1)),e=new Date(this.nutritional.tab1.inputDatetime[1].setDate(this.nutritional.tab1.inputDatetime[1].getDate()+1));this.nutritional.tab1.inputDatetime.length=0,this.nutritional.tab1.inputDatetime.push(t,e),this.$forceUpdate()}}else{var a=new Date(this.nutritional.tab2.inputDatetime[0].setDate(this.nutritional.tab2.inputDatetime[0].getDate()+1)),i=new Date(this.nutritional.tab2.inputDatetime[1].setDate(this.nutritional.tab2.inputDatetime[1].getDate()+1));this.nutritional.tab2.inputDatetime.length=0,this.nutritional.tab2.inputDatetime.push(a,i),this.$forceUpdate(),this.nutritional.tab2.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.tab2.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.nutritional.tab2.getdataListParm1.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm1.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm2.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm2.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm2.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm3.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm3.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm3.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm3.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm4.parammaps.pastureid=this.nutritional.tab2.getdataListParm1.parammaps.pastureid,this.nutritional.tab2.getdataListParm4.parammaps.barid=this.nutritional.tab2.getdataListParm1.parammaps.barid,this.nutritional.tab2.getdataListParm4.parammaps.startTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[0],"{y}-{m}-{d}"),this.nutritional.tab2.getdataListParm4.parammaps.stopTime=Object(o["d"])(this.nutritional.tab2.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2NutritionalList1(),this.getTab2NutritionalList2(),this.getTab2NutritionalList3(),this.getTab2NutritionalList4()}},getNutritionalList:function(){var t=this;this.nutritional.tab1.listLoading1=!0,Object(r["c"])(this.nutritional.tab1.getdataListParm1).then((function(e){null!==e.data.list?(e.data.list[0].cowclassid=String(e.data.list[0].cowclassid),t.nutritional.tab1.temp=e.data.list[0],t.nutritional.tab1.disabledCowclass=!0,t.nutritional.tab1.getdataListParm2.parammaps.name="judgenurFT",t.nutritional.tab1.getdataListParm2.parammaps.name1="judgenurBarHSL",t.nutritional.tab1.getdataListParm2.parammaps.startTime=Object(o["d"])(t.nutritional.tab1.inputDatetime[0],"{y}-{m}-{d}"),t.nutritional.tab1.getdataListParm2.parammaps.stopTime=Object(o["d"])(t.nutritional.tab1.inputDatetime[1],"{y}-{m}-{d}"),t.nutritional.tab1.getdataListParm2.parammaps.bw=parseFloat(t.nutritional.tab1.temp.bw),t.nutritional.tab1.getdataListParm2.parammaps.dayw=parseFloat(t.nutritional.tab1.temp.dayw),t.nutritional.tab1.getdataListParm2.parammaps.fetal=parseFloat(t.nutritional.tab1.temp.fetal),t.nutritional.tab1.getdataListParm2.parammaps.avgdim=parseFloat(t.nutritional.tab1.temp.avgdim),t.nutritional.tab1.getdataListParm2.parammaps.dayspre=parseFloat(t.nutritional.tab1.temp.dayspre),t.nutritional.tab1.getdataListParm2.parammaps.product=parseFloat(t.nutritional.tab1.temp.product),t.nutritional.tab1.getdataListParm2.parammaps.fat=parseFloat(t.nutritional.tab1.temp.fat),t.nutritional.tab1.getdataListParm2.parammaps.pro=parseFloat(t.nutritional.tab1.temp.pro),t.nutritional.tab1.getdataListParm2.parammaps.lactose=parseFloat(t.nutritional.tab1.temp.lactose),t.nutritional.tab1.getdataListParm2.parammaps.source=parseFloat(t.nutritional.tab1.temp.source),t.nutritional.tab1.getdataListParm2.parammaps.tem=parseFloat(t.nutritional.tab1.temp.tem),t.nutritional.tab1.getdataListParm2.parammaps.cowsum=parseFloat(t.nutritional.tab1.temp.cowsum),t.nutritional.tab1.getdataListParm2.parammaps.cowclass=t.nutritional.tab1.temp.cowclass,t.nutritional.tab1.getdataListParm2.parammaps.cowclassid=t.nutritional.tab1.temp.cowclassid,t.nutritional.tab1.getdataListParm2.parammaps.bigcowclass=t.nutritional.tab1.temp.bigcowclass,t.nutritional.tab1.getdataListParm2.parammaps.pastureid=t.selectList[0].pastureid,t.nutritional.tab1.getdataListParm2.parammaps.barid=t.nutritional.tab1.temp.barid,t.nutritional.tab1.getdataListParm2.parammaps.date=t.nutritional.tab1.temp.date,t.getNutritionalList2()):(t.nutritional.tab1.temp=[],t.nutritional.tab1.disabledCowclass=!1),setTimeout((function(){t.nutritional.tab1.listLoading=!1}),100)}))},assessmentData:function(){var t=this;this.$refs["temp"].validate((function(e){if(e){if(""==t.nutritional.tab1.inputDatetime||null==t.nutritional.tab1.inputDatetime)return t.$message({type:"error",message:"开始日期结束日期不能为空",duration:2e3}),!1;var a=/^[1-9]\d*$/;if(""!==t.nutritional.tab1.temp.cowsum&&!a.test(parseFloat(t.nutritional.tab1.temp.cowsum)))return t.$message({type:"error",message:"牛头数请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==t.nutritional.tab1.temp.tem&&!i.test(parseFloat(t.nutritional.tab1.temp.tem)))return t.$message({type:"error",message:"温度环境请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.avgmonthage&&!i.test(parseFloat(t.nutritional.tab1.temp.avgmonthage)))return t.$message({type:"error",message:"平均月龄请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.bw&&!i.test(parseFloat(t.nutritional.tab1.temp.bw)))return t.$message({type:"error",message:"体重请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.dayw&&!i.test(parseFloat(t.nutritional.tab1.temp.dayw)))return t.$message({type:"error",message:"日增重请保留两位小数",duration:2e3}),!1;var s=/^(([1-9]|([1-9]\d)|(1\d\d)|(2([0-7]\d|7[0-9]))))$/;if(""!==t.nutritional.tab1.temp.dayspre&&!s.test(parseFloat(t.nutritional.tab1.temp.dayspre)))return t.$message({type:"error",message:"怀孕天数请输入大于0小于280整数",duration:2e3}),!1;var r=/^(?:[1-9]|1[0-9])$/;if(""!==t.nutritional.tab1.temp.fetal&&!r.test(parseFloat(t.nutritional.tab1.temp.fetal)))return t.$message({type:"error",message:"胎次请输入大于0小于20整数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.avgdim&&!a.test(parseFloat(t.nutritional.tab1.temp.avgdim)))return t.$message({type:"error",message:"平均泌乳天数请输入正整数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.product&&!i.test(parseFloat(t.nutritional.tab1.temp.product)))return t.$message({type:"error",message:"产奶量请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.fat&&!i.test(parseFloat(t.nutritional.tab1.temp.fat)))return t.$message({type:"error",message:"乳脂率请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.pro&&!i.test(parseFloat(t.nutritional.tab1.temp.pro)))return t.$message({type:"error",message:"乳蛋白率请保留两位小数",duration:2e3}),!1;if(""!==t.nutritional.tab1.temp.lactose&&!i.test(parseFloat(t.nutritional.tab1.temp.lactose)))return t.$message({type:"error",message:"乳糖率请保留两位小数",duration:2e3}),!1;t.nutritional.tab1.getdataListParm2.parammaps.name="judgenurFT",t.nutritional.tab1.getdataListParm2.parammaps.name1="judgenurBarHSL",t.nutritional.tab1.getdataListParm2.parammaps.startTime=Object(o["d"])(t.nutritional.tab1.inputDatetime[0],"{y}-{m}-{d}"),t.nutritional.tab1.getdataListParm2.parammaps.stopTime=Object(o["d"])(t.nutritional.tab1.inputDatetime[1],"{y}-{m}-{d}"),t.nutritional.tab1.getdataListParm2.parammaps.bw=parseFloat(t.nutritional.tab1.temp.bw),t.nutritional.tab1.getdataListParm2.parammaps.dayw=parseFloat(t.nutritional.tab1.temp.dayw),t.nutritional.tab1.getdataListParm2.parammaps.fetal=parseFloat(t.nutritional.tab1.temp.fetal),t.nutritional.tab1.getdataListParm2.parammaps.avgdim=parseFloat(t.nutritional.tab1.temp.avgdim),t.nutritional.tab1.getdataListParm2.parammaps.dayspre=parseFloat(t.nutritional.tab1.temp.dayspre),t.nutritional.tab1.getdataListParm2.parammaps.product=parseFloat(t.nutritional.tab1.temp.product),t.nutritional.tab1.getdataListParm2.parammaps.fat=parseFloat(t.nutritional.tab1.temp.fat),t.nutritional.tab1.getdataListParm2.parammaps.pro=parseFloat(t.nutritional.tab1.temp.pro),t.nutritional.tab1.getdataListParm2.parammaps.lactose=parseFloat(t.nutritional.tab1.temp.lactose),t.nutritional.tab1.getdataListParm2.parammaps.source=parseFloat(t.nutritional.tab1.temp.source),t.nutritional.tab1.getdataListParm2.parammaps.tem=parseFloat(t.nutritional.tab1.temp.tem),t.nutritional.tab1.getdataListParm2.parammaps.cowsum=parseFloat(t.nutritional.tab1.temp.cowsum),t.nutritional.tab1.getdataListParm2.parammaps.cowclass=t.nutritional.tab1.temp.cowclass,t.nutritional.tab1.getdataListParm2.parammaps.cowclassid=t.nutritional.tab1.temp.cowclassid,t.nutritional.tab1.getdataListParm2.parammaps.bigcowclass=t.nutritional.tab1.temp.bigcowclass,t.nutritional.tab1.getdataListParm2.parammaps.pastureid=t.selectList[0].pastureid,t.nutritional.tab1.getdataListParm2.parammaps.barid=t.nutritional.tab1.temp.barid,t.nutritional.tab1.getdataListParm2.parammaps.date=t.nutritional.tab1.temp.date,t.getNutritionalList2()}}))},getNutritionalList2:function(){var t=this;this.nutritional.tab1.listLoading2=!0;var e="authdata/GETNurJudge",a=this.nutritional.tab1.getdataListParm2;Object(r["n"])(e,a).then((function(e){if("fail"!==e.msg)if(null!==e.data.list){for(var a=0;a<e.data.length;a++){null==e.data[a].cowneed&&(e.data[a].cowneed="");var i=RegExp(/>/),s=RegExp(/</),r=RegExp(/-/);if(1==i.test(e.data[a].cowneed)){var l=e.data[a].cowneed.split(">")[1];parseFloat(e.data[a].ftpro)<parseFloat(l)||parseFloat(e.data[a].hprov)<parseFloat(l)||parseFloat(e.data[a].sprov)<parseFloat(l)?t.$set(e.data[a],"isColor","0"):t.$set(e.data[a],"isColor","")}else if(1==s.test(e.data[a].cowneed)){var n=e.data[a].cowneed.split("<")[1];parseFloat(e.data[a].ftpro)>parseFloat(n)||parseFloat(e.data[a].hprov)>parseFloat(n)||parseFloat(e.data[a].sprov)>parseFloat(n)?t.$set(e.data[a],"isColor","0"):t.$set(e.data[a],"isColor","")}else if(1==r.test(e.data[a].cowneed))if(e.data[a].cowneed=String(e.data[a].cowneed),1==e.data[a].cowneed.length){var o=e.data[a].cowneed.split("-");parseFloat(e.data[a].ftpro)>parseFloat(o[0])&&parseFloat(e.data[a].ftpro)<parseFloat(o[1])||parseFloat(e.data[a].hprov)>parseFloat(o[0])&&parseFloat(e.data[a].hprov)<parseFloat(o[1])||parseFloat(e.data[a].sprov)>parseFloat(o[0])&&parseFloat(e.data[a].sprov)<parseFloat(o[1])||""==o[0]&&""==o[0]?t.$set(e.data[a],"isColor",""):t.$set(e.data[a],"isColor","0")}else parseFloat(e.data[a].ftpro)<parseFloat(e.data[a].cowneed)||parseFloat(e.data[a].hprov)<parseFloat(e.data[a].cowneed)||parseFloat(e.data[a].sprov)<parseFloat(e.data[a].cowneed)?t.$set(e.data[a],"isColor","0"):t.$set(e.data[a],"isColor","");else e.data[a].cowneed=String(e.data[a].cowneed),"-"!==e.data[a].cowneed[0]&&(parseFloat(e.data[a].ftpro)<parseFloat(e.data[a].cowneed)||parseFloat(e.data[a].hprov)<parseFloat(e.data[a].cowneed)||parseFloat(e.data[a].sprov)<parseFloat(e.data[a].cowneed))?t.$set(e.data[a],"isColor","0"):t.$set(e.data[a],"isColor","")}t.nutritional.tab1.list=e.data,t.nutritional.tab1.total=e.data.total}else t.nutritional.tab1.list=[];else t.$notify({title:"失败",message:e.data,type:"warning",duration:2e3});setTimeout((function(){t.nutritional.tab1.listLoading2=!1}),100)}))},getTab2NutritionalList1:function(){var t=this;this.nutritional.tab2.listLoading1=!0,Object(r["c"])(this.nutritional.tab2.getdataListParm1).then((function(e){null!==e.data.list?(t.nutritional.tab2.list1=e.data.list,t.nutritional.tab2.pageNum1=e.data.pageNum,t.nutritional.tab2.pageSize1=e.data.pageSize,t.nutritional.tab2.total1=e.data.total):t.nutritional.tab2.list1=[],setTimeout((function(){t.nutritional.tab2.listLoading1=!1}),100)}))},getTab2NutritionalList2:function(){var t=this;this.nutritional.tab2.listLoading2=!0,Object(r["c"])(this.nutritional.tab2.getdataListParm2).then((function(e){null!==e.data.list?(t.nutritional.tab2.list2=e.data.list,t.nutritional.tab2.pageNum2=e.data.pageNum,t.nutritional.tab2.pageSize2=e.data.pageSize,t.nutritional.tab2.total2=e.data.total):t.nutritional.tab2.list2=[],setTimeout((function(){t.nutritional.tab2.listLoading2=!1}),100)}))},getTab2NutritionalList3:function(){var t=this;this.nutritional.tab2.listLoading3=!0,Object(r["c"])(this.nutritional.tab2.getdataListParm3).then((function(e){if(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(parseInt(p.a.get("decimal")))),t.$set(e.data.list[a],"score275rate",(parseFloat(e.data.list[a].score275)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(p.a.get("decimal")))),t.$set(e.data.list[a],"score3rate",(parseFloat(e.data.list[a].score3)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(p.a.get("decimal")))),t.$set(e.data.list[a],"score325rate",(parseFloat(e.data.list[a].score325)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(p.a.get("decimal")))),t.$set(e.data.list[a],"score35rate",(parseFloat(e.data.list[a].score35)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(p.a.get("decimal")))),t.$set(e.data.list[a],"score375rate",(parseFloat(e.data.list[a].score375)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(p.a.get("decimal")))),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(parseInt(p.a.get("decimal"))));t.nutritional.tab2.list3=e.data.list,t.nutritional.tab2.pageNum3=e.data.pageNum,t.nutritional.tab2.pageSize3=e.data.pageSize,t.nutritional.tab2.total3=e.data.total}else t.nutritional.tab2.list3=[];setTimeout((function(){t.nutritional.tab2.listLoading3=!1}),100)}))},getTab2NutritionalList4:function(){var t=this;this.nutritional.tab2.listLoading4=!0,Object(r["c"])(this.nutritional.tab2.getdataListParm4).then((function(e){if(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(parseInt(p.a.get("decimal")))),t.$set(e.data.list[a],"score2rate",(parseFloat(e.data.list[a].score2)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(p.a.get("decimal")))),t.$set(e.data.list[a],"score3rate",(parseFloat(e.data.list[a].score3)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(p.a.get("decimal")))),t.$set(e.data.list[a],"score4rate",(parseFloat(e.data.list[a].score4)/parseFloat(e.data.list[a].cowsum)*100).toFixed(parseInt(p.a.get("decimal")))),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(parseInt(p.a.get("decimal"))));t.nutritional.tab2.list4=e.data.list,t.nutritional.tab2.pageNum4=e.data.pageNum,t.nutritional.tab2.pageSize4=e.data.pageSize,t.nutritional.tab2.total4=e.data.total}else t.nutritional.tab2.list4=[];setTimeout((function(){t.nutritional.tab2.listLoading4=!1}),100)}))},handleHistoryRecords:function(){this.dialogFull=!1,this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var t=this;Object(r["c"])(this.history.getdataDateParm).then((function(e){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["c"])(this.table.getdataListParm2).then((function(e){null!==e.data.list&&(0==e.data.list[0].inforvalue?t.table.isPtsfname=!1:t.table.isPtsfname=!0)})),Object(r["c"])(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["c"])(this.history.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)void 0!=e.data.list[a].ptid&&""!=e.data.list[a].ptname||(t.$set(e.data.list[a],"ptid",""),t.$set(e.data.list[a],"ptname",""));t.history.list=e.data.list,t.handleSpan(),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)}))},handleSpan:function(){var t=this;this.mergekeys.forEach((function(e){t.spanObj[e]=[];var a=0;t.history.list.forEach((function(i,s){0===s?(t.spanObj[e].push(1),a=0):"sumweight"==e?t.history.list[s][e]===t.history.list[s-1][e]&&t.history.list[s]["barname"]===t.history.list[s-1]["barname"]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s):t.history.list[s][e]===t.history.list[s-1][e]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s)}))}))},objectSpanMethod:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.mergekeys.length;i++)if(e.property===this.mergekeys[i]){var s=this.spanObj[this.mergekeys[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},changeDate:function(){this.getHistoryList()},handleApplication:function(){var t=this;c["MessageBox"].confirm("是否确认将"+this.history.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="applyFPdate",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=p.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){var e=this;1==t?(this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{obj1:"1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;"},{obj1:"2、底部工作表名称不可更改,默认为:Sheet1;"},{obj1:"3、栏舍名称,实际牛头数,系数(%),系数头数,配方模板,补料配方字体为必填;"},{obj1:"4、第一列栏舍名称默认为系统中栏舍,不可修改;"},{obj1:"5、实际牛头数为正整数,系数为正数,至多保留俩位小数;"},{obj1:"6、配方模板名称必须与系统中配方计划—配方模板中的饲喂配方匹配;若补料配方开启,需与配方模板中的补料配方匹配;"},{obj1:"7、数据最多可导入200条,超过200条请分多个文件导入。"}],i=[{tHeader:["栏舍名称","实际牛头数","系数(%)","配方模板","补料配方","第一班比例(%)","第二班比例(%)","第三班比例(%)","第四班比例(%)"],filterVal:["barname","","","","","","","",""],tableDatas:e.download.list,sheetName:"Sheet1"},{tHeader:["填写规范:"],filterVal:["obj1"],tableDatas:a,sheetName:"Sheet2"}];Object(o["c"])(i,"栏舍配方导入模板",!0,"xlsx")}))):(this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=function(a){if(void 0!==t.data.list[a].ftid&&""!==t.data.list[a].ftid&&(void 0!==e.recipeTemplateList.find((function(e){return e.id==t.data.list[a].ftid}))?e.$set(t.data.list[a],"dryweight",e.recipeTemplateList.find((function(e){return e.id==t.data.list[a].ftid})).dryweight):e.$set(t.data.list[a],"dryweight","")),void 0!==t.data.list[a].timesopt){s=t.data.list[a].timesopt.split(",");for(var i=0;i<s.length;i++)t.data.list[a]["r"+s[i].split(":")[0]]=s[i].split(":")[1],t.data.list[a]["w"+s[i].split(":")[0]]=s[i].split(":")[2]}""!=t.data.list[a].r1&&void 0!=t.data.list[a].r1||(t.data.list[a].r1=0,t.data.list[a].w1=0),""!=t.data.list[a].r2&&void 0!=t.data.list[a].r2||(t.data.list[a].r2=0,t.data.list[a].w2=0),""!=t.data.list[a].r3&&void 0!=t.data.list[a].r3||(t.data.list[a].r3=0,t.data.list[a].w3=0),""!=t.data.list[a].r4&&void 0!=t.data.list[a].r4||(t.data.list[a].r4=0,t.data.list[a].w4=0),e.$set(t.data.list[a],"sumr",parseFloat(t.data.list[a].r1)+parseFloat(t.data.list[a].r2)+parseFloat(t.data.list[a].r3)+parseFloat(t.data.list[a].r4)),t.data.list[a].sumr=Object(r["k"])(t.data.list[a].sumr,parseInt(p.a.get("decimal"))),e.$set(t.data.list[a],"dailyWeight",parseFloat(t.data.list[a].w1)+parseFloat(t.data.list[a].w2)+parseFloat(t.data.list[a].w3)+parseFloat(t.data.list[a].w4)),t.data.list[a].dailyWeight=Object(r["k"])(t.data.list[a].dailyWeight,parseInt(p.a.get("decimal")))},i=0;i<t.data.list.length;i++){var s;a(i)}e.download.list=t.data.list}else e.download.list=[];if(1==e.table.isRW1&&0==e.table.isRW2&&0==e.table.isRW3&&0==e.table.isRW4)var l=[{tHeader:["栏舍名称","软件牛头数","实际牛头数","系数(%)","系数头数","配方模板","补料配方","第一班比例(%)","第一班重量","总比例","日投喂量","配方重量","补料重量","配方干物质"],filterVal:["barname","softccount","ccount","ratio","ccountratio","ftname","ptsfname","r1","w1","sumr","dailyWeight","ftweight","supplyweight","dryweight"],tableDatas:e.download.list,sheetName:"Sheet1"}];else if(1==e.table.isRW1&&1==e.table.isRW2&&0==e.table.isRW3&&0==e.table.isRW4)l=[{tHeader:["栏舍名称","软件牛头数","实际牛头数","系数(%)","系数头数","配方模板","补料配方","第一班比例(%)","第一班重量","第二班比例(%)","第二班重量","总比例","日投喂量","配方重量","补料重量","配方干物质"],filterVal:["barname","softccount","ccount","ratio","ccountratio","ftname","ptsfname","r1","w1","r2","w2","sumr","dailyWeight","ftweight","supplyweight","dryweight"],tableDatas:e.download.list,sheetName:"Sheet1"}];else if(1==e.table.isRW1&&1==e.table.isRW2&&1==e.table.isRW3&&0==e.table.isRW4)l=[{tHeader:["栏舍名称","软件牛头数","实际牛头数","系数(%)","系数头数","配方模板","补料配方","第一班比例(%)","第一班重量","第二班比例(%)","第二班重量","第三班比例(%)","第三班重量","总比例","日投喂量","配方重量","补料重量","配方干物质"],filterVal:["barname","softccount","ccount","ratio","ccountratio","ftname","ptsfname","r1","w1","r2","w2","r3","w3","sumr","dailyWeight","ftweight","supplyweight","dryweight"],tableDatas:e.download.list,sheetName:"Sheet1"}];else l=[{tHeader:["栏舍名称","软件牛头数","实际牛头数","系数(%)","系数头数","配方模板","补料配方","第一班比例(%)","第一班重量","第二班比例(%)","第二班重量","第三班比例(%)","第三班重量","第四班比例(%)","第四班重量","总比例","日投喂量","配方重量","补料重量","配方干物质"],filterVal:["barname","softccount","ccount","ratio","ccountratio","ftname","ptsfname","r1","w1","r2","w2","r3","w3","r4","w4","sumr","dailyWeight","ftweight","supplyweight","dryweight"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(o["c"])(l,"栏舍配方",!0,"xlsx")})))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","实际牛头数","系数(%)","配方模板","补料配方","第一班比例(%)","第二班比例(%)","第三班比例(%)","错误信息"],r=["栏舍名称","实际牛头数","系数(%)","配方模板","补料配方","第一班比例(%)","第二班比例(%)","第三班比例(%)","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"栏舍配方导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))},handleDryMatterRegulation:function(){this.isShowDialog=!0,this.$refs.mychild.getBalconicFormula(),this.$refs.mychild.restTemp()},blurBw:function(t){},focusBw:function(t){}}},b=h,g=(a("d963"),a("51a7"),a("2877")),f=Object(g["a"])(b,i,s,!1,null,"0a09665d",null);e["default"]=f.exports},"9f32":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:"container"},[a("el-row",[a("div",{staticClass:"tool-bar"},[a("div",[a("span",{staticClass:"title-name"},[t._v("仪表盘标题")])]),a("div",{staticStyle:{position:"absolute:top:0px",right:"0px"}},[a("el-button",{staticClass:"miniSuccess",on:{click:function(e){return t.control_edit()}}},[t._v("编辑")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleLinkChart}},[t._v(" 添加图表 ")])],1)])]),a("el-row",[a("div",[a("draggable",{attrs:{group:"itxst",animation:"300",group:{name:"dashboard",pull:!0}},on:{start:t.onStart,end:t.onEnd},model:{value:t.boardList,callback:function(e){t.boardList=e},expression:"boardList"}},[a("transition-group",t._l(t.boardList,(function(e){return a("el-card",{key:"1",staticClass:"box-card board-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v(t._s(e.title))]),a("div",{staticStyle:{float:"right",padding:"3px 0",display:"inline-block"}},[a("i",{staticClass:"el-icon-edit",staticStyle:{color:"#009C69",cursor:"pointer"}}),a("i",{staticClass:"el-icon-delete",staticStyle:{color:"#009C69",cursor:"pointer"}})])]),a("div",{staticClass:"board-item"},[t._v(" 表格 "),"bar"==e.boardtype?a("BarChart",{attrs:{"chart-data":e.chartData}}):t._e(),"line"==e.boardtype?a("LineChart",{attrs:{"chart-data":e.chartData}}):t._e(),"pie"==e.boardtype?a("PieChart",{attrs:{"chart-data":e.chartData}}):t._e()],1)])})),1)],1)],1)]),a("el-row"),a("el-dialog",{attrs:{title:"我的图表",visible:t.showChartList},on:{"update:visible":function(e){t.showChartList=e}}},[a("el-button",{staticClass:"save",staticStyle:{"margin-bottom":"10px"},on:{click:function(e){return t.jumpCreate()}}},[t._v(" 创建新的图表 ")]),a("el-table",{attrs:{data:t.myChartList,border:""}},[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",{staticClass:"miniPrimary",attrs:{disabled:t.isExisted(e.row)},on:{click:function(a){return t.linkChart(e.row)}}},[t._v("添加")]),a("el-button",{staticStyle:{padding:"6px 10px !important","font-size":"14px"},attrs:{size:"mini",type:"warning"},on:{click:function(a){return t.jumpEdit2(e.row)}}},[t._v(" 编辑 ")])]}}])})],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.showChartList=!1}}},[t._v("关闭")])],1)],1)],1)},s=[],r=a("b76a"),l=a.n(r),n=a("2934"),o=a("586f"),c=a("457e"),d=a("e53e"),p=a("9def"),m=a("77d0"),u=a("3b8b"),h=a("a78e"),b=a.n(h),g={name:"Addboard2",components:{draggable:l.a,ChartTable:o["a"],LineChart:c["a"],BarChart:d["a"],HorizontalBarChart:p["a"],PieChart:m["a"],LineBarChart:u["a"]},data:function(){return{isRoleEdit:[],boardList:[{title:"图表1",boardId:1,boardtype:"bar",chartData:{chartType:"bar",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr:["数据1","数据2","数据3"],dataArr:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6]]}},{title:"图表2",boardId:2,boardtype:"line",chartData:{chartType:"line",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr:["数据1","数据2","数据3"],dataArr:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6]]}},{title:"图表3",boardId:3,boardtype:"pie",chartData:{chartType:"pie",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr:["数据1","数据2","数据3","数据4","线条1"],dataArr:[1,10,7,0,1,7,7,6,4,4,1,6]}},{title:"图表3"},{title:"图表3"},{title:"图表3"},{title:"图表3"}],chartTable:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},chartLine:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},myChartList:[],showChartList:!1,chartLoading:{},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}},created:function(){this.getList(),this.chartTable.dialogFormVisible=!0,this.chartLine.dialogFormVisible=!0},methods:{onStart:function(){},onEnd:function(){},getList:function(){this.loading=!0},handleLinkChart:function(){var t=this,e={name:"getChartListV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:b.a.get("pastureid"),empid:b.a.get("employeid")}};Object(n["c"])(e).then((function(e){null!==e.data.list?(t.myChartList=e.data.list,t.showChartList=!0):(t.myChartList=[],t.showChartList=!0)}))}}},f=g,w=(a("7b1b"),a("2877")),y=Object(w["a"])(f,i,s,!1,null,"bc67691a",null);e["default"]=y.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="M911 0H453c-61.8 0-112 50.2-112 112v230H80c-44 0-80 36-80 80v522c0 44 36 80 80 80h522c44 0 80-36 80-80V682h229c61.8 0 112-50.2 112-112V112c0-61.8-50.2-112-112-112z m48 570c0 26.5-21.5 48-48 48H682V422c0-44-36-80-80-80H405V112c0-26.5 21.5-48 48-48h458c26.5 0 48 21.5 48 48v458z" p-id="191064" /></symbol>'});l.a.add(n);e["default"]=n},"9f89":function(t,e,a){},a001:function(t,e,a){"use strict";a("06ba")},a03f:function(t,e,a){"use strict";a("04e6")},a04c:function(t,e,a){},a0e2:function(t,e,a){"use strict";a("2710")},a18c:function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),a.d(e,"c",(function(){return c}));a("d3b7"),a("3ca3"),a("ddb0");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}}]},{path:"/changpwd",component:r["a"],redirect:"/changpwd",children:[{path:"changpwd",name:"Changpwd",component:function(){return Promise.resolve().then(a.bind(null,"e062"))},meta:{title:"修改密码",icon:"修改密码",affix:!1}}]}],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}var d=s["a"].prototype.push;s["a"].prototype.push=function(t,e,a){return e||a?d.call(this,t,e,a):d.call(this,t).catch((function(t){return t}))},e["b"]=o},a18d: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-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.value,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"饲料名称",filterable:"",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.isPremixList,(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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-document-checked"},on:{click:t.handleExamine}},[t._v("审核")]):t._e(),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},attrs:{icon:"el-icon-upload2"},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":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight},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":"100px",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":"100px",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":"100px",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":"60px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.premix?a("span",[t._v("否")]):a("span",[t._v("是")])]}}])}),a("el-table-column",{attrs:{label:"库存重量(kg)","min-width":"100px",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":"100px",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:"备注","min-width":"70px",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":"70px",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:"80","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isUpdate&&1!==i.ischarge&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e(),1==i.ischarge&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-refresh-left"},on:{click:function(e){return t.handleRevoke(i)}}}):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("333d"),n=a("5c96"),o=a("a78e"),c=a.n(o),d=a("ed08"),p={name:"SystemConsumption",components:{Pagination:l["a"]},data:function(){return{isPremixList:[{id:"1",name:"是"},{id:"0",name:"否"}],livestockTypeList:[],feedNameList:[{id:0,name:"羊草"},{id:1,name:"小苏打"}],isAuditList:[{id:"1",name:"是"},{id:"0",name:"否"}],requestParams:[{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["牲畜父类"]}],table:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:parseInt(c.a.get("pageCount")),returntype:"Map",parammaps:{inputDatetime:"",pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",usetype:"系统用量",feedid:"",cowclassid:"",ischarge:""}},tableKey:0,list:[],total:0,listLoading:!0},selectList:[],requestParam:{},download:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{inputDatetime:"",pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",usetype:"系统用量",feedid:"",cowclassid:"",ischarge:""}},list:[]},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},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["d"])(this.requestParams).then((function(e){t.feedNameList=e.data.getFeedListEnable.list,t.livestockTypeList=e.data.getDictByName.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["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,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(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(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="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.cowclassid="",this.table.getdataListParm.parammaps.ischarge="",this.table.getdataListParm.offset=1,this.getList()},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;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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRevoke:function(t){n["MessageBox"].confirm("请确认是否要撤销审核结果?","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}).then((function(){}))},handleSelectionChange:function(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});n["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:"insertFeedstorageUse",type:"e",parammaps:{snowid:"@insertSpotList.snowid",pastureid:"@insertSpotList.pastureid",feedid:"@insertSpotList.feedid",fname:"@insertSpotList.fname",pcpde:"@insertSpotList.pcpde",operateweight:"@insertSpotList.operateweight",price:"@insertSpotList.price"}},t.requestParam.data[0].children[1]={name:"chargeFeedstorageuse",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",operateweight:"@insertSpotList.operateweight"}},Object(r["b"])(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())}))}))}},handleExport:function(){var t=this;this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(d["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(d["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)1==e.data.list[a].ischarge?e.data.list[a].ischarge="是":e.data.list[a].ischarge="否";t.download.list=e.data.list}else t.download.list=[];var i=[{tHeader:["业务日期","牲畜类别","饲料名称","库存重量(kg)","计划重量(kg)","设备实测重量(kg)","出库重量(kg)","备注","是否审核"],filterVal:["usedate","cowclass","feedname","repertoryweight","planweight","actweight","operateweight","remark","ischarge"],tableDatas:t.download.list,sheetName:"Sheet1"}];Object(d["c"])(i,"系统用量",!0,"xlsx")}))}}},m=p,u=a("2877"),h=Object(u["a"])(m,i,s,!1,null,null,null);e["default"]=h.exports},a1b9:function(t,e,a){"use strict";a("e92a")},a36b:function(t,e,a){t.exports=a.p+"static/img/404.a57b6f31.png"},a3b5:function(t,e,a){},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="189615" /></symbol>'});l.a.add(n);e["default"]=n},a470: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="M72 439.888c0-119.214 91.6-216.978 208.148-226.57C314.022 130.386 395.36 72 490.32 72c94.216 0 175.048 57.494 209.368 139.352 8.326-0.894 16.742-1.37 25.28-1.37 125.38 0 227.032 101.758 227.032 227.406 0 91.63-54.158 170.628-132.164 206.612h-141.026V361.85a4 4 0 0 0-4-4h-349.74a4 4 0 0 0-4 4V644h-122.26C123.688 606.944 72 529.492 72 439.888zM401.5 428v274.492H304L499 952 694 702.492h-97.53V428a4 4 0 0 0-4-4H405.5a4 4 0 0 0-4 4z" p-id="11605" /></symbol>'});l.a.add(n);e["default"]=n},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("7db0"),a("d3b7"),a("b0c0"),a("ac1f"),a("1276"),a("99af"),a("d81d"),a("a15b");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,p=t.limit,m=[],u=[],h=[];if(h=h.concat(l).concat(n).concat(o),m=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!==m.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(m.join()," FROM ").concat(r," ").concat(i||""," ").concat(e||""," ").concat(a||""," LIMIT ").concat(p||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,"'")}))}}}},a686:function(t,e,a){},a6c7:function(t,e,a){"use strict";a("cba0")},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 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="M23.49056 319.36512L386.37568 69.79584c71.5776-49.23392 177.21344-49.23392 248.79104 0l362.9056 249.56928 1.024 0.7168c16.1792 11.40736 22.67136 26.54208 21.504 41.12384v559.75936c0 56.48384-57.05728 102.27712-127.44704 102.27712H128.4096c-70.41024 0-127.46752-45.79328-127.46752-102.27712V361.20576c-1.3312-16.05632 7.0656-31.62112 22.56896-41.84064z m869.66272 90.17344H128.4096v511.42656H893.1328V409.53856zM128.4096 716.3904H893.1328v102.27712H128.4096V716.3904zM255.83616 0.4096c35.2256 0 63.73376 22.87616 63.73376 51.13856 0 28.24192-28.52864 51.13856-63.73376 51.13856-35.18464 0-63.71328-22.89664-63.71328-51.13856 0-28.2624 28.52864-51.15904 63.71328-51.15904zM64.65536 102.66624c35.18464 0 63.73376 22.89664 63.73376 51.13856 0 28.2624-28.54912 51.13856-63.73376 51.13856-35.20512 0-63.73376-22.89664-63.73376-51.13856 0-28.2624 28.52864-51.13856 63.73376-51.13856zM925.02016 0.38912c52.79744 0 95.60064 34.34496 95.60064 76.71808s-42.8032 76.71808-95.60064 76.71808c-52.79744 0-95.60064-34.34496-95.60064-76.71808S872.2432 0.4096 925.02016 0.4096z" p-id="218367" /></symbol>'});l.a.add(n);e["default"]=n},a88e:function(t,e,a){},a8e9:function(t,e,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:"downminCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniPrimary",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.groupsname))])]}}])}),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:"操作",align:"center",width:"80","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("ac1f"),a("00b4"),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:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},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["c"])(this.table.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.$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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleConfirmStartChange:function(){},handleSearch:function(){this.getList(),this.table.getdataListParm.offset=1,this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){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){},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(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()}}},d=c,p=(a("8d93"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"12db1dd6",null);e["default"]=m.exports},aa08: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}));var i=a("5530"),s=(a("d81d"),a("b0c0"),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"),custbiaozhun:s["a"].t("config.custbiaozhun"),custbianyi:s["a"].t("config.custbianyi")},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","custbiaozhun","custbianyi"]},{name:"smallint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]},{name:"mediumint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]},{name:"int",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]},{name:"bigint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]},{name:"float",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]},{name:"double",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]},{name:"real",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]},{name:"decimal",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]},{name:"timestamp",needQuotation:!1,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"date",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"time",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"datetime",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"year",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"char",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"varchar",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"tinytext",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"text",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"mediumtext",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"longtext",needQuotation:!0,availableFunc:["count","none","custbiaozhun","custbianyi"]},{name:"integer",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none","custbiaozhun","custbianyi"]}]},aace:function(t,e,a){"use strict";a("3748")},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="M333.80029297 904.46005859a24.35976563 24.35976563 0 0 1 0-48.68964843h346.5a24.35976563 24.35976563 0 0 1 0 48.68964843z m465.5390625-783.74970703H214.73046875A97.43994141 97.43994141 0 0 0 117.28964844 218.14941406v450A97.43994141 97.43994141 0 0 0 214.73046875 765.55859375h584.61064453a97.43994141 97.43994141 0 0 0 97.40917969-97.49970703V218.15029297A97.47070313 97.47070313 0 0 0 799.31123047 120.71035156z m-35.57900391 199.16894531l-187.83105468 220.98076172a27.68994141 27.68994141 0 0 1-2.54882813 2.72988282 34.11035156 34.11035156 0 0 1-48.21064453-1.35L419.12011719 429.95 285.23017578 551.36035156a24.32988281 24.32988281 0 0 1-32.73046875-36L396.98046875 384.20029297a34.14023437 34.14023437 0 0 1 47.75976563 1.8L549.38105469 497 726.64941406 288.32041016a24.35976563 24.35976563 0 0 1 37.1100586 31.55976562z m0 0" p-id="189757" /></symbol>'});l.a.add(n);e["default"]=n},ab93: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:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",staticStyle:{float:"left"},attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",staticStyle:{float:"left"},attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left",width:"245px","margin-bottom":"10px"},attrs:{placeholder:"饲料名称"},model:{value:t.tab.table.getdataListParm.parammaps.feedname,callback:function(e){t.$set(t.tab.table.getdataListParm.parammaps,"feedname",e)},expression:"tab.table.getdataListParm.parammaps.feedname"}}),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-left":"10px","margin-bottom":"10px"},on:{click:function(e){return t.handleSearch("first")}}},[t._v("查询")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},attrs:{icon:"el-icon-upload2"},on:{click:function(e){return t.handleExport("tab1")}}},[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:{sortable:"",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"}},[a("el-table-column",{attrs:{sortable:"",prop:"startsum",align:"center",label:"期初库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"startprice",align:"center",label:"期初金额(元)","min-width":"120"}})],1),a("el-table-column",{attrs:{label:"用量","min-width":"110px",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"laidsum",align:"center",label:"入库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"usesumXT",align:"center",label:"系统出库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"usesumRG",align:"center",label:"人工用料重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"usesumXH",align:"center",label:"损耗重量(kg)","min-width":"120"}})],1),a("el-table-column",{attrs:{label:"期末","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"stopsum",align:"center",label:"期末库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{sortable:"",prop:"stopprice",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:"245px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",attrs:{disabled:t.Beforedisabled2},on:{click:t.handleBefore2}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled2},on:{click:t.handleNext2}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"统计类型"},on:{change:t.changeRadio2},model:{value:t.tab2.radio,callback:function(e){t.$set(t.tab2,"radio",e)},expression:"tab2.radio"}},t._l(t.statisticalTypeList2,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-checkbox",{staticStyle:{"margin-right":"10px"},attrs:{"true-label":1,"false-label":0},on:{change:t.changeChecked},model:{value:t.tab2.table.getdataListParm.checked,callback:function(e){t.$set(t.tab2.table.getdataListParm,"checked",e)},expression:"tab2.table.getdataListParm.checked"}},[t._v("误差")]),t.tab2.isRadio1?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"200px"},attrs:{placeholder:"牲畜类别"},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"}}):t._e(),t.tab2.isRadio2?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"200px"},attrs:{placeholder:"栏舍名称"},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"}}):t._e(),t.tab2.isRadio3?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"200px"},attrs:{placeholder:"日期"},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"}}):t._e(),t.tab2.isRadio4?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"200px"},attrs:{placeholder:"TMR设备编号"},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"}}):t._e(),t.tab2.isRadio5?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"200px"},attrs:{placeholder:"班次"},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"}}):t._e(),t.tab2.isRadio6?a("el-input",{staticClass:"filter-item filter-item1",staticStyle:{width:"200px"},attrs:{placeholder:"车次"},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"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:function(e){return t.handleSearch("second")}}},[t._v("查询")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"5px","margin-top":"10px"},attrs:{icon:"el-icon-upload2"},on:{click:function(e){return t.handleExport("tab2")}}},[t._v("导出")])],1),t.tab2.table.tableConfig.length>8?a("div",[t.isDispayTable2?a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table.listLoading,expression:"tab2.table.listLoading"}],ref:"plTable2",staticClass:"elTable table-fixed plTable2",attrs:{"row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight2,"use-virtual":"","row-height":t.rowHeight,border:""}},t._l(t.tab2.table.tableConfig,(function(e,i){return a("u-table-column",{key:i,attrs:{label:e.label,"show-overflow-tooltip":e.showOverflow,prop:e.prop,align:"center",fixed:0==i}},t._l(e.children,(function(i,s){return e.children||e.children.length>0?a("u-table-column",{key:s,attrs:{label:i.label,prop:i.prop,align:"center"}},t._l(i.children,(function(e,s){return i.children||i.children.length>0?a("u-table-column",{key:s,attrs:{label:e.label,prop:e.prop}}):t._e()})),1):t._e()})),1)})),1):t._e()],1):a("div",[t.isDispayTable2?a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab2.table.listLoading,expression:"tab2.table.listLoading"}],ref:"plTable2",staticClass:"elTable table-fixed plTable2",attrs:{"row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight2,"use-virtual":"","row-height":t.rowHeight,border:""}},t._l(t.tab2.table.tableConfig,(function(e,i){return a("u-table-column",{key:i,attrs:{label:e.label,"show-overflow-tooltip":e.showOverflow,prop:e.prop,align:"center"}},t._l(e.children,(function(i,s){return e.children||e.children.length>0?a("u-table-column",{key:s,attrs:{label:i.label,prop:i.prop,align:"center"}},t._l(i.children,(function(e,s){return i.children||i.children.length>0?a("u-table-column",{key:s,attrs:{label:e.label,prop:e.prop}}):t._e()})),1):t._e()})),1)})),1):t._e()],1),0==t.tab2.table.listLoading&&t.tab2.table.list.length>0?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab2.table.total)+"条")]):t._e()]),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":"结束日期",clearable:!1,"picker-options":t.pickerOptions},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-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",attrs:{disabled:t.Beforedisabled3},on:{click:t.handleBefore3}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled3},on:{click:t.handleNext3}}),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("统计类型:")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"统计类型"},on:{change:t.changeRadio3},model:{value:t.tab3.radio,callback:function(e){t.$set(t.tab3,"radio",e)},expression:"tab3.radio"}},t._l(t.statisticalTypeList3,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),t.tab3.isRadio1?a("el-input",{staticClass:"filter-item",staticStyle:{width:"185px"},attrs:{placeholder:"牲畜类别"},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"}}):t._e(),t.tab3.isRadio2?a("el-input",{staticClass:"filter-item",staticStyle:{width:"185px"},attrs:{placeholder:"栏舍名称"},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"}}):t._e(),t.tab3.isRadio3?a("el-input",{staticClass:"filter-item",staticStyle:{width:"185px"},attrs:{placeholder:"日期"},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"}}):t._e(),t.tab3.isRadio4?a("el-input",{staticClass:"filter-item",staticStyle:{width:"185px"},attrs:{placeholder:"TMR设备编号"},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"}}):t._e(),a("el-button",{staticClass:"successBorder",on:{click:function(e){return t.handleSearch("third")}}},[t._v("查询")]),a("el-button",{staticClass:"export filter-item1",staticStyle:{float:"right","margin-right":"5px"},attrs:{icon:"el-icon-upload2"},on:{click:function(e){return t.handleExport("tab3")}}},[t._v("导出")])],1),t.tab3.table.tableConfig.length>2?a("div",[t.isDispayTable3?a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab3.table.listLoading,expression:"tab3.table.listLoading"}],ref:"plTable3",staticClass:"elTable table-fixed plTable3",attrs:{"row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight2,"use-virtual":"","row-height":t.rowHeight,border:""}},t._l(t.tab3.table.tableConfig,(function(e,i){return a("u-table-column",{key:i,attrs:{label:e.label,"show-overflow-tooltip":e.showOverflow,align:"center",prop:e.prop,fixed:0==i}},t._l(e.children,(function(i,s){return e.children||e.children.length>0?a("u-table-column",{key:s,attrs:{align:"center",label:i.label,prop:i.prop,"min-width":i.width}},t._l(i.children,(function(e,s){return i.children||i.children.length>0?a("u-table-column",{key:s,attrs:{label:e.label,prop:e.prop}}):t._e()})),1):t._e()})),1)})),1):t._e()],1):a("div",[t.isDispayTable3?a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tab3.table.listLoading,expression:"tab3.table.listLoading"}],ref:"plTable3",staticClass:"elTable table-fixed plTable3",attrs:{"row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight2,"use-virtual":"","row-height":t.rowHeight,border:""}},t._l(t.tab3.table.tableConfig,(function(e,i){return a("u-table-column",{key:i,attrs:{label:e.label,"show-overflow-tooltip":e.showOverflow,align:"center",prop:e.prop}},t._l(e.children,(function(i,s){return e.children||e.children.length>0?a("u-table-column",{key:s,attrs:{align:"center",label:i.label,prop:i.prop,"min-width":i.width}},t._l(i.children,(function(e,s){return i.children||i.children.length>0?a("u-table-column",{key:s,attrs:{label:e.label,prop:e.prop}}):t._e()})),1):t._e()})),1)})),1):t._e()],1),0==t.tab3.table.listLoading&&t.tab3.table.list.length>0?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.tab3.table.total)+"条")]):t._e()])],1)],1)},s=[],r=(a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d={name:"PastureInventoryManagement",components:{Pagination:c["a"]},data:function(){var t=this;return{Beforedisabled:!1,Nextdisabled:!1,Beforedisabled2:!1,Nextdisabled2:!1,Beforedisabled3:!1,Nextdisabled3:!1,pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},fileComment:[{label:"商务文件评分",children:[{label:"1"},{label:"2"},{label:"管理员"}]}],activeName:"first",tab:{chartDate:[],table:{getdataListParm:{name:"getfsStaticlist",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],feedname:""}},tableKey:1,list:[],total:0,listLoading:!1}},tab2:{chartDate:[],table:{getdataListParm:{name:"getMaterialAnalysisSC",page:1,offset:1,pagecount:"",returntype:"Map",checked:0,parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:""}},tableKey:1,list:[],tableConfig:[],data:[],total:0,listLoading:!1},radio:"1",isRadio1:!0,isRadio2:!1,isRadio3:!1,isRadio4:!1,isRadio5:!1,isRadio6:!1},tab3:{chartDate:[],table:{getdataListParm:{name:"getPriceAnalysisSC",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:""}},tableKey:1,list:[],tableConfig:[],total:0,listLoading:!1},radio:"1",isRadio1:!0,isRadio2:!1,isRadio3:!1,isRadio4:!1},downLoad:{},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight2:document.documentElement.clientHeight-95-150,rowHeight:30,isDispayTable2:!1,isDispayTable3:!1,statisticalTypeList2:[{id:"1",name:"牲畜类别"},{id:"2",name:"栏舍名称"},{id:"3",name:"日期"},{id:"4",name:"TMR设备编号"},{id:"5",name:"TMR班次"},{id:"6",name:"车次"}],statisticalTypeList3:[{id:"1",name:"牲畜类别"},{id:"2",name:"栏舍名称"},{id:"3",name:"日期"},{id:"4",name:"TMR设备编号"}]}},created:function(){this.getTimeFn()},methods:{getTimeFn:function(){var t=this,e=new Date,a=new Date;e.setTime(e.getTime()-6048e5),a.setTime(a.getTime()-864e5),t.tab.table.getdataListParm.parammaps.startTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.stopTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab.table.getdataListParm.parammaps.inputDatetime=[e,a],t.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab2.table.getdataListParm.parammaps.inputDatetime=[a,a],t.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(a,"{y}-{m}-{d}"),t.tab3.table.getdataListParm.parammaps.inputDatetime=[a,a],this.getTabList()},handleTabClick:function(){if("first"==this.activeName){var t=new Date,e=new Date;t.setTime(t.getTime()-6048e5),e.setTime(e.getTime()-864e5),this.tab.table.getdataListParm.parammaps.inputDatetime=[t,e],this.getTabList()}else if("second"==this.activeName){var a=new Date,i=new Date;a.setTime(a.getTime()-864e5),i.setTime(i.getTime()-864e5),this.tab2.table.getdataListParm.parammaps.inputDatetime=[a,i],this.tab2.radio="1",this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()}else if("third"==this.activeName){var s=new Date,r=new Date;s.setTime(s.getTime()-864e5),r.setTime(r.getTime()-864e5),this.tab3.table.getdataListParm.parammaps.inputDatetime=[s,r],this.tab3.radio="1",this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List()}},getTabList:function(){var t=this;this.tab.table.listLoading=!0,Object(r["c"])(this.tab.table.getdataListParm).then((function(e){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(t){"first"==t?(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.getTabList()):"second"==t?(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime?(this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab2.table.getdataListParm.parammaps.inputDatetime="",this.tab2.table.getdataListParm.parammaps.startTime="",this.tab2.table.getdataListParm.parammaps.stopTime=""),this.getTab2List()):"third"==t&&(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime?(this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab3.table.getdataListParm.parammaps.inputDatetime="",this.tab3.table.getdataListParm.parammaps.startTime="",this.tab3.table.getdataListParm.parammaps.stopTime=""),this.getTab3List())},getTab2List:function(){var t=this;this.tab2.table.listLoading=!0,this.isDispayTable2=!1,setTimeout((function(){t.isDispayTable2=!0,t.$nextTick((function(){var e=[];Object(r["e"])(t.tab2.table.getdataListParm).then((function(a){if(null!==a.data&&null!==a.data.data&&null!==a.data.data1){t.tab2.table.data=a.data.data;for(var i=0;i<a.data.list.data2.length;i++){for(var s=0;s<a.data.list.data1.length;s++)for(var r=0;r<a.data.list.data2[i].children.length;r++)void 0!=a.data.list.data1[s][a.data.list.data2[i].children[r].prop]&&null!=a.data.list.data1[s][a.data.list.data2[i].children[r].prop]&&""!=a.data.list.data1[s][a.data.list.data2[i].children[r].prop]||(a.data.list.data1[s][a.data.list.data2[i].children[r].prop]=0);if(a.data.list.data2[i].children.length>1)for(var l=0;l<a.data.list.data2[i].children.length;l++)"理论"==a.data.list.data2[i].children[l].label||a.data.list.data2[i].children[l].label,t.$set(a.data.list.data2[i].children[l],"width","80px");else t.$set(a.data.list.data2[i].children[0],"width","80px")}e=a.data.list.data1,t.tab2.table.list=a.data.list.data1,t.tab2.table.tableConfig=a.data.list.data2,t.tab2.table.total=a.data.list.data1.length}else e=[],t.tab2.table.list=[],t.tab2.table.tableConfig=[];t.$refs.plTable2.reloadData(e),setTimeout((function(){t.tab2.table.listLoading=!1}),100)}))}))}))},changeRadio2:function(){"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.getdataListParm.name="getMaterialAnalysisSC",this.tab2.table.getdataListParm.offset=1,this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisLS",this.tab2.table.getdataListParm.offset=1,this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisRQ",this.tab2.table.getdataListParm.offset=1,this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisTMR",this.tab2.table.getdataListParm.offset=1,this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisBC",this.tab2.table.getdataListParm.offset=1,this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()):"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.getdataListParm.name="getMaterialAnalysisCC",this.tab2.table.getdataListParm.offset=1,this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List())},getTab3List:function(){var t=this;this.tab3.table.listLoading=!0,this.isDispayTable3=!1,setTimeout((function(){t.isDispayTable3=!0,t.$nextTick((function(){var e=[];Object(r["e"])(t.tab3.table.getdataListParm).then((function(a){if(null!==a.data&&null!==a.data.list.data1&&null!==a.data.list.data2){for(var i=0;i<a.data.list.data2.length;i++){for(var s=0;s<a.data.list.data1.length;s++)for(var r=0;r<a.data.list.data2[i].children.length;r++)void 0!=a.data.list.data1[s][a.data.list.data2[i].children[r].prop]&&null!=a.data.list.data1[s][a.data.list.data2[i].children[r].prop]&&""!=a.data.list.data1[s][a.data.list.data2[i].children[r].prop]||(a.data.list.data1[s][a.data.list.data2[i].children[r].prop]=0);if(a.data.list.data2[i].children.length>1)for(var l=0;l<a.data.list.data2[i].children.length;l++)"理论"==a.data.list.data2[i].children[l].label||a.data.list.data2[i].children[l].label,t.$set(a.data.list.data2[i].children[l],"width","80px");else t.$set(a.data.list.data2[i].children[0],"width","80px")}e=a.data.list.data1,t.tab3.table.list=a.data.list.data1,t.tab3.table.tableConfig=a.data.list.data2,t.tab3.table.total=a.data.list.data1.length}else t.tab3.table.tableConfig=[],t.tab3.table.list=[],e=[];setTimeout((function(){t.$refs.plTable3.reloadData(e),t.tab3.table.listLoading=!1}),100)}))}))}))},handleBefore:function(){if(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList()},handleNext:function(){if(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.tab.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTabList()},handleBefore2:function(){if(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));e>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab2.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()},handleNext2:function(){if(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab2.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));e>Date.now()-864e5?(this.Nextdisabled2=!0,this.Beforedisabled2=!1):(this.Nextdisabled2=!1,this.Beforedisabled2=!1),this.tab2.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab2.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab2.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab2List()},handleBefore3:function(){if(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),e=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate()-1));e>Date.now()-864e5?(this.Nextdisabled3=!0,this.Beforedisabled3=!1):(this.Nextdisabled3=!1,this.Beforedisabled3=!1),this.tab3.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab3.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List()},handleNext3:function(){if(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime){var t=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),e=new Date(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.tab3.table.getdataListParm.parammaps.inputDatetime[1].getDate()+1));e>Date.now()-864e5?(this.Nextdisabled3=!0,this.Beforedisabled3=!1):(this.Nextdisabled3=!1,this.Beforedisabled3=!1),this.tab3.table.getdataListParm.parammaps.inputDatetime.length=0,this.tab3.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List()},changeRadio3:function(){"1"==this.tab3.radio?(this.tab3.isRadio1=!0,this.tab3.isRadio2=!1,this.tab3.isRadio3=!1,this.tab3.isRadio4=!1,this.tab3.table.getdataListParm.name="getPriceAnalysisSC",this.tab3.table.getdataListParm.offset=1,this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List()):"2"==this.tab3.radio?(this.tab3.isRadio1=!1,this.tab3.isRadio2=!0,this.tab3.isRadio3=!1,this.tab3.isRadio4=!1,this.tab3.table.getdataListParm.name="getPriceAnalysisLS",this.tab3.table.getdataListParm.offset=1,this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List()):"3"==this.tab3.radio?(this.tab3.isRadio1=!1,this.tab3.isRadio2=!1,this.tab3.isRadio3=!0,this.tab3.isRadio4=!1,this.tab3.table.getdataListParm.name="getPriceAnalysisRQ",this.tab3.table.getdataListParm.offset=1,this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List()):"4"==this.tab3.radio&&(this.tab3.isRadio1=!1,this.tab3.isRadio2=!1,this.tab3.isRadio3=!1,this.tab3.isRadio4=!0,this.tab3.table.getdataListParm.name="getPriceAnalysisTMR",this.tab3.table.getdataListParm.offset=1,this.tab3.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getTab3List())},changeChecked:function(t){this.handleSearch("second")},handleExport:function(t){var e=this;if("tab1"==t)this.downLoad.getdataListParm={},this.downLoad.getdataListParm.name="getfsStaticlist",this.downLoad.getdataListParm.pagecount="",this.downLoad.getdataListParm.parammaps=this.tab.table.getdataListParm.parammaps,Object(r["c"])(this.downLoad.getdataListParm).then((function(t){null!==t.data.list?e.$nextTick((function(){e.downLoad.list=t.data.list})):e.downLoad.list=[],Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-52ecc0ac")]).then(a.bind(null,"a1cf")).then((function(t){var a=[["饲料名称","期初","","用量","","","","期末",""]],i=[["","期初库存(kg)","期初金额(元)","入库重量(kg)","系统出库重量(kg)","人工用料重量(kg)","损耗重量","期末库存(kg)","期末金额(元)"]],s=["feedname","startsum","startprice","laidsum","usesumXT","usesumRG","usesumXH","stopsum","stopprice"],r=e.downLoad.list.map((function(t){return s.map((function(e){return t[e]}))})),l=["A1:A2","B1:C1","D1:G1","H1:I1"];t.export_json_to_excel({multiHeader:a,multiHeader2:i,data:r,filename:"库存统计",merges:l})}))}));else if("tab2"==t){for(var i=[],s=[],l=[],n=0;n<this.tab2.table.tableConfig.length;n++){i.push(this.tab2.table.tableConfig[n].label);for(var o=0;o<this.tab2.table.tableConfig[n].children.length;o++)s.push(this.tab2.table.tableConfig[n].children[o].label),l.push(this.tab2.table.tableConfig[n].children[o].prop)}var c=[];if(1==this.tab2.table.getdataListParm.checked)for(var d=0;d<i.length;d++)d>0?c.push(i[d],"","",""):c.push(i[d]);else for(var p=0;p<i.length;p++)p>0?c.push(i[p],""):c.push(i[p]);c.length>0&&Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-5c4dc4a9")]).then(a.bind(null,"0e87")).then((function(t){var a=[c],i=[],r=s,n=l,o=e.tab2.table.list.map((function(t){return n.map((function(e){return t[e]}))})),d=["A1:A1"];t.export_json_to_excel({multiHeader:a,multiHeader2:i,header:r,data:o,filename:"用料分析",merges:d})}))}else if("tab3"==t){i=[],s=[];for(var m=0;m<this.tab3.table.tableConfig.length;m++){i.push(this.tab3.table.tableConfig[m].label);for(var u=0;u<this.tab3.table.tableConfig[m].children.length;u++)s.push(this.tab3.table.tableConfig[m].children[u].label)}c=[];for(var h=0;h<i.length;h++)h>0?c.push(i[h],""):c.push(i[h]);for(var b=[],g=0;g<s.length;g++)0==g?b.push("A"):b.push("a"+[g-1]);c.length>0&&Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-5c4dc4a9")]).then(a.bind(null,"0e87")).then((function(t){var a=[c],i=[],r=s,l=b,n=e.tab3.table.list.map((function(t){return l.map((function(e){return t[e]}))})),o=["A1:A1"];t.export_json_to_excel({multiHeader:a,multiHeader2:i,header:r,data:n,filename:"价格分析",merges:o})}))}},format:function(t){for(var e=[],a=0;a<t.length;a++){var i=[];i.push(t[a].index),i.push(t[a].Personel),i.push(t[a].address);for(var s=0;s<t[0]["time"].length;s++)i.push(t[a]["time"][s].morning),i.push(t[a]["time"][s].afternoon);e.push(i)}return e}}},p=d,m=(a("42f7"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"31558eb2",null);e["default"]=u.exports},abe2:function(t,e,a){"use strict";a("b330")},ac0f:function(t,e,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},acf9: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",{ref:"dashboardEditor",staticClass:"dashboard-editor-container"},[a("div",{staticClass:"dashboard",staticStyle:{"margin-bottom":"10px"}},[a("div",{staticClass:"dashboard-l"},[a("div",{staticClass:"row1"},[a("div",{staticClass:"row1-t"},[a("div",{staticClass:"row1-t-l"},[a("div",{staticClass:"img-l"},[t._v("统计范围:")]),a("el-date-picker",{staticClass:"inputDatetime filter-item content",attrs:{clearable:!1,type:"daterange","picker-options":t.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:t.changeDate},model:{value:t.inputDatetime,callback:function(e){t.inputDatetime=e},expression:"inputDatetime"}})],1)]),a("div",{staticClass:"row1-c"},[a("div",{staticClass:"row1-c-l"},[t._m(0),a("div",{staticClass:"row1-c-l-c"},[a("span",[a("b",[t._v(t._s(t.row1.list[0].rateAvg))]),a("br"),t._v("昨日 ")])]),a("div",{staticClass:"row1-c-l-b"},[a("div",[a("span",[t._v("混料最高准确率:")]),a("b",[t._v(t._s(t.row1.list[0].rateMAX))])]),a("div",[a("span",[t._v("混料最低准确率:")]),a("b",[t._v(t._s(t.row1.list[0].rateMIN))])])])]),a("div",{staticClass:"row1-c-r"},[t._m(1),a("div",{staticClass:"row1-c-l-c"},[a("span",[a("b",[t._v(t._s(t.row1.list[1].rateAvg))]),a("br"),t._v("昨日 ")])]),a("div",{staticClass:"row1-c-l-b"},[a("div",[a("span",[t._v("撒料最高准确率:")]),a("b",[t._v(t._s(t.row1.list[1].rateMAX))])]),a("div",[a("span",[t._v("撒料最低准确率:")]),a("b",[t._v(t._s(t.row1.list[1].rateMIN))])])])])]),a("div",{staticClass:"row1-b"},[a("div",{staticClass:"row1-b-l"},[t._m(2),a("div",{staticClass:"row1-c-l-c"},[a("span",[a("b",[t._v(t._s(t.row1.list[2].rateAvg))]),a("br"),t._v("昨日 ")])]),a("div",{staticClass:"row1-c-l-b"},[a("div",[a("span",[t._v("撒料最高正确率:")]),a("b",[t._v(t._s(t.row1.list[2].rateMAX))])]),a("div",[a("span",[t._v("撒料最低正确率:")]),a("b",[t._v(t._s(t.row1.list[2].rateMIN))])])])]),a("div",{staticClass:"row1-b-r"},[t._m(3),a("div",{staticClass:"row1-c-l-c"},[a("span",[a("b",[t._v(t._s(t.row1.list[3].rateAvg))]),a("br"),t._v("昨日 ")])]),a("div",{staticClass:"row1-c-l-b"},[a("div",[a("span",[t._v("撒料最高偏差:")]),a("b",[t._v(t._s(t.row1.list[3].rateMAX))])]),a("div",[a("span",[t._v("撒料最低偏差:")]),a("b",[t._v(t._s(t.row1.list[3].rateMIN))]),t._v("分钟")])])])])]),a("div",{staticClass:"row2"},[t._m(4),a("div",{staticClass:"todayPlan"},[a("div",[a("div",{staticStyle:{height:"185px"},attrs:{id:"row2chartLine1"}}),a("div",{staticClass:"bottom"},[a("div",{staticClass:"bottom-l"},[a("div",{staticClass:"bottom-l-t"},[a("b",[t._v(t._s(t.row2.chart1.chartLine_data.data1))]),t._v("次 ")]),a("div",{staticClass:"bottom-l-b"},[t._v(" 完成车次 ")])]),a("div",{staticClass:"bottom-r"},[a("div",{staticClass:"bottom-r-t"},[a("b",[t._v(t._s(t.row2.chart1.chartLine_data.data2))]),t._v("次 ")]),a("div",{staticClass:"bottom-r-b"},[t._v(" 计划车次 ")])])])]),a("div",[a("div",{staticStyle:{height:"185px"},attrs:{id:"row2chartLine2"}}),a("div",{staticClass:"bottom"},[a("div",{staticClass:"bottom-l"},[a("div",{staticClass:"bottom-l-t"},[a("b",[t._v(t._s(t.row2.chart2.chartLine_data.data1))]),t._v("kg ")]),a("div",{staticClass:"bottom-l-b"},[t._v(" 完成重量 ")])]),a("div",{staticClass:"bottom-r"},[a("div",{staticClass:"bottom-r-t"},[a("b",[t._v(t._s(t.row2.chart2.chartLine_data.data2))]),t._v("kg ")]),a("div",{staticClass:"bottom-r-b"},[t._v(" 计划重量 ")])])])])])]),a("div",{staticClass:"row3",staticStyle:{position:"relative"}},[t._m(5),t.row4.chart1.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row4chartLine1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("row4chartLine1")}}},[t._v("切换表格")])]):t._e(),t.row4.chart1.isChart?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.chart1.listLoading,expression:"row4.chart1.listLoading"}],staticStyle:{background:"#fff",height:"310px"},attrs:{id:"row4chartLine1"}}):t._e(),t.row4.chart1.isTable?a("div",{staticClass:"table",staticStyle:{position:"absolute",width:"100%"}},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row4chartLine1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("row4chartLine1")}}},[t._v("切换图表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.chart1.table.listLoading,expression:"row4.chart1.table.listLoading"}],key:t.row4.chart1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row4.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"300","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"公斤奶饲料成本(元)",sortable:"","min-width":"120px",align:"center",prop:"准确率"}})],1)],1):t._e()])]),a("div",{staticClass:"dashboard-r"},[a("div",{staticClass:"row1"},[a("div",{staticClass:"row1Title"},[t._v("当前车辆数:"+t._s(t.row2.carLength))]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row2.listLoading,expression:"row2.listLoading"}],ref:"car",staticClass:"car",attrs:{id:"car"}},[a("div",{ref:"carList",staticClass:"carList",attrs:{id:"carList"}},t._l(t.row2.list,(function(e,i){return a("div",{key:i,ref:"listW",refInFor:!0,staticClass:"listW"},[a("div",{ref:"list",refInFor:!0,staticClass:"list",style:{background:e.background,color:e.color,borderColor:e.borderColor},on:{click:function(a){return t.handleList(i,e)}}},[a("div",{staticClass:"list-t"},[a("div",{staticClass:"list-t-t"},[a("el-tooltip",{attrs:{content:e.tname,placement:"top"}},[a("span",[t._v("车辆:"+t._s(e.tname))])])],1),a("div",{staticClass:"list-t-t"},[a("el-tooltip",{attrs:{content:e.fname,placement:"top"}},[0==e.inorout?a("span",[t._v("饲料:"+t._s(e.fname))]):t._e(),1==e.inorout?a("span",[t._v("栏舍:"+t._s(e.fname))]):t._e()])],1),a("div",{staticClass:"list-t-t"},[a("el-tooltip",{attrs:{content:e.remark,placement:"top"}},[a("span",[t._v("描述:"+t._s(e.remark))])])],1)]),a("div",{staticClass:"list-b"},[a("div",{staticClass:"list-b-l"},[a("div",{staticClass:"left"},[a("div",{staticClass:"num"},[a("b",[t._v(t._s(e.doneweight))]),t._v("Kg")]),a("div",{staticClass:"weight"},[t._v("完成重量")])]),a("div",{staticClass:"right"})]),a("div",{staticClass:"list-b-l"},[a("div",{staticClass:"left"},[a("div",{staticClass:"num"},[a("b",[t._v(t._s(e.leftweight))]),t._v("Kg")]),a("div",{staticClass:"weight"},[t._v("剩余重量")])]),a("div",{staticClass:"right"})]),a("div",{staticClass:"list-b-l"},[a("div",{staticClass:"left"},[a("div",{staticClass:"num"},[a("b",[t._v(t._s(e.nowweight))]),t._v("Kg")]),a("div",{staticClass:"weight"},[t._v("车辆当前载重")])]),a("div",{staticClass:"right"})]),a("div",{staticClass:"list-b-l"},[a("div",{staticClass:"left"},[a("div",{staticClass:"num"},[a("b",[t._v(t._s(e.lweight))]),t._v("Kg")]),a("div",{staticClass:"weight"},[t._v("计划重量")])]),a("div",{staticClass:"right"})]),a("div",{staticClass:"list-b-l"},[a("div",{staticClass:"left"},[a("div",{staticClass:"num"},[a("b",[t._v(t._s(e.donerate))])]),a("div",{staticClass:"weight"},[t._v("完成度")])])])])])])})),0)])]),a("div",{staticClass:"row2"},[a("div",{staticClass:"row2-l",staticStyle:{position:"relative"}},[t._m(6),t.row3.chart1.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row3chartLine1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("row3chartLine1")}}},[t._v("切换表格")])]):t._e(),t.row3.chart1.isChart?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row3.chart1.listLoading,expression:"row3.chart1.listLoading"}],staticStyle:{background:"#fff",height:"310px"},attrs:{id:"row3chartLine1"}}):t._e(),t.row3.chart1.isTable?a("div",{staticClass:"table",staticStyle:{position:"absolute",width:"100%"}},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row3chartLine1")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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%","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row3.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"300","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"85px",align:"center",prop:"牧场"}}),a("el-table-column",{attrs:{label:"计划执行重量(kg)",sortable:"","min-width":"90px",align:"center",prop:"实际量"}}),a("el-table-column",{attrs:{label:"配方理论重量(kg)",sortable:"","min-width":"90px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"计划准确率",sortable:"","min-width":"85px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"计划取消重量(kg)",sortable:"","min-width":"90px",align:"center",prop:"计划取消重量"}}),a("el-table-column",{attrs:{label:"计划准确率(去除取消重量)",sortable:"","min-width":"100px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"计划正确数",sortable:"","min-width":"85px",align:"center",prop:"正确数"}}),a("el-table-column",{attrs:{label:"计划数",sortable:"","min-width":"85px",align:"center",prop:"计划数"}}),a("el-table-column",{attrs:{label:"计划正确率",sortable:"","min-width":"75px",align:"center",prop:"field2"}})],1)],1):t._e()]),a("div",{staticClass:"row2-r",staticStyle:{position:"relative"}},[t._m(7),t.row3.chart2.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row3chartLine2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("row3chartLine2")}}},[t._v("切换表格")])]):t._e(),t.row3.chart2.isChart?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row3.chart2.listLoading,expression:"row3.chart2.listLoading"}],staticStyle:{background:"#fff",height:"310px"},attrs:{id:"row3chartLine2"}}):t._e(),t.row3.chart2.isTable?a("div",{staticClass:"table",staticStyle:{position:"absolute",width:"100%"}},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row3chartLine2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",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%","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row3.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"300","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"泌乳牛干物质采食量(kg)",sortable:"","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()])]),a("div",{staticClass:"row3"},[a("div",{staticClass:"row3-l",staticStyle:{position:"relative"}},[t._m(8),t.row4.chart2.isChart?a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row4chartLine2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleTable("row4chartLine2")}}},[t._v("切换表格")])]):t._e(),t.row4.chart2.isChart?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.chart2.listLoading,expression:"row4.chart2.listLoading"}],staticStyle:{background:"#fff",height:"310px"},attrs:{id:"row4chartLine2"}}):t._e(),t.row4.chart2.isTable?a("div",{staticClass:"table",staticStyle:{position:"absolute",width:"100%"}},[a("div",{staticClass:"button"},[a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleExport("row4chartLine2")}}},[t._v("导出")]),a("div",{staticClass:"exportTable",on:{click:function(e){return t.handleChart("row4chartLine2")}}},[t._v("切换图表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.row4.chart2.table.listLoading,expression:"row4.chart2.table.listLoading"}],key:t.row4.chart2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row4.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"300","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"日期",sortable:"","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"牧场",sortable:"","min-width":"110px",align:"center",prop:"名称"}}),a("el-table-column",{attrs:{label:"混料重量",sortable:"","min-width":"110px",align:"center",prop:"准确率"}})],1)],1):t._e()]),a("div",{staticClass:"row3-r"},[t._m(9),a("div",{staticStyle:{height:"330px",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:"98%",background:"#fff","margin-top":"10px"},attrs:{"element-loading-text":"给我一点时间",data:t.row4.table.list,border:"",fit:"","highlight-current-row":"",height:"320","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",type:"index","min-width":"80px",align:"center"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"80px",align:"center",prop:"feedname"}}),a("el-table-column",{attrs:{label:"库存量(kg)","min-width":"70px",align:"center",prop:"stockweight"}}),a("el-table-column",{attrs:{label:"剩余使用天数","min-width":"80px",align:"center",prop:"ldays"}})],1)],1)])])])])])},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title1"},[i("div",{staticClass:"img-title"},[i("img",{attrs:{src:a("1879")}})]),i("span",{staticClass:"content"},[t._v("混料准确率")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title1"},[i("div",{staticClass:"img-title"},[i("img",{attrs:{src:a("07bb")}})]),i("span",{staticClass:"content"},[t._v("撒料准确率")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title1"},[i("div",{staticClass:"img-title"},[i("img",{attrs:{src:a("e17a")}})]),i("span",{staticClass:"content"},[t._v("撒料正确率")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title1"},[i("div",{staticClass:"img-title"},[i("img",{attrs:{src:a("ff18")}})]),i("span",{staticClass:"content"},[t._v("撒料偏差")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("今日计划统计")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("成本统计")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("计划统计")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("泌乳牛干物质采食量")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("混料实际重量统计")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("div",{staticClass:"img-title"}),a("span",{staticClass:"content"},[t._v("库存预警")])])}],r=a("2934"),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("313e"),d=a.n(c);a("817d");var p={name:"GroupDashboard",data:function(){return{ranchSelectionList:[{id:0,name:"集团"},{id:1,name:"牧场01"},{id:2,name:"牧场02"}],ranchSelection:0,inputDatetime:[(new Date).setTime((new Date).getTime()-6048e5),new Date],myDate:Object(o["d"])((new Date).setTime((new Date).getTime()-6048e5),"{y}-{m}-{d}")+"-"+Object(o["d"])(new Date,"{y}-{m}-{d}"),pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近一年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-31536e6),t.$emit("pick",[a,e])}}]},date:Object(o["d"])(new Date,"{y}-{m}-{d}"),row1:{getdataListParm:{name:"getHomepageStrJT",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},listLoading:!1,list:[{rateAvg:"",rateMAX:"",rateMIN:""},{rateAvg:"",rateMAX:"",rateMIN:""},{rateAvg:"",rateMAX:"",rateMIN:""},{rateAvg:"",rateMAX:"",rateMIN:""}],getdataListParm2:{name:"getHomepageStrJTPlan",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},list2:""},row2:{chart1:{chartLine:null,chartLine_data:{}},chart2:{chartLine:null,chartLine_data:{}},list:[],total:0,listLoading:!1,getdataListParmList:{name:"getHomepageLBListJT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}}},row3:{chartDate:[],chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getJT1AccuracyAllJH",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])((new Date).setTime((new Date).getTime()-6048e5),"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[(new Date).setTime((new Date).getTime()-6048e5),new Date]}},list:[],total:0,listLoading:!1,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffMRJT",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])((new Date).setTime((new Date).getTime()-6048e5),"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[(new Date).setTime((new Date).getTime()-6048e5),new Date]}},list:[],total:0,listLoading:!1,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}},row4:{chartDate:[],chart1:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getFeedEffCBAllJT",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])((new Date).setTime((new Date).getTime()-6048e5),"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[(new Date).setTime((new Date).getTime()-6048e5),new Date]}},list:[],total:0,listLoading:!1,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},chart2:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracActHLJT",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])((new Date).setTime((new Date).getTime()-6048e5),"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[(new Date).setTime((new Date).getTime()-6048e5),new Date]}},list:[],total:0,listLoading:!1,isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}},table:{getdataListParm:{name:"getFsWarnListJT",page:1,offset:1,pagecount:5,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey:1,list:[],total:0,listLoading:!1,temp:{}}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getRow1List(),this.getRow2List(),this.getRow2List1(),this.getRow3List1(),this.getRow3List2(),this.getRow4List1(),this.getRow4List2(),this.getRow4List3()},methods:{changeDate:function(t){this.myDate=Object(o["d"])(this.inputDatetime[0],"{y}-{m}-{d}")+"-"+Object(o["d"])(this.inputDatetime[1],"{y}-{m}-{d}"),this.getRow1List()},getRow1List:function(){var t=this;this.row1.listLoading=!0,this.row1.getdataListParm.parammaps.startTime=Object(o["d"])(this.inputDatetime[0],"{y}-{m}-{d}"),this.row1.getdataListParm.parammaps.stopTime=Object(o["d"])(this.inputDatetime[1],"{y}-{m}-{d}"),Object(r["c"])(this.row1.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){for(var a=0;a<e.data.list.length;a++)void 0==e.data.list[a].rateAvg&&t.$set(e.data.list[a],"rateAvg",""),void 0==e.data.list[a].rateMAX&&t.$set(e.data.list[a],"rateMAX",""),void 0==e.data.list[a].rateMIN&&t.$set(e.data.list[a],"rateMIN","");t.row1.list=e.data.list}else t.row1.list.data1.monRateHL="",t.row1.list.data1.monRateSL="",t.row1.list.data1.monRateSLR="",t.row1.list.data1.yesRateHL="",t.row1.list.data1.yesRateSL="",t.row1.list.data1.yesRateSLR="",t.row1.list.data1.temtime="",t.row1.list.data1.montime="";setTimeout((function(){t.row1.listLoading=!1}),100)}))},getRow2List:function(){var t=this;this.row1.listLoading=!0,this.row1.getdataListParm.parammaps.startTime=Object(o["d"])(this.inputDatetime[0],"{y}-{m}-{d}"),this.row1.getdataListParm.parammaps.stopTime=Object(o["d"])(this.inputDatetime[1],"{y}-{m}-{d}"),Object(r["c"])(this.row1.getdataListParm2).then((function(e){null!==e.data&&null!==e.data.list?(t.row2.chart1.chartLine_data.data1=parseFloat(e.data.list[0].doneTimes),t.row2.chart1.chartLine_data.data2=parseFloat(e.data.list[0].planTimes),t.row2.chart2.chartLine_data.data1=parseFloat(e.data.list[0].doneWeight),t.row2.chart2.chartLine_data.data2=parseFloat(e.data.list[0].planWeight),t.roadRow1ChartLine1(t.row2.chart1.chartLine_data),t.roadRow1ChartLine2(t.row2.chart2.chartLine_data)):(t.row2.chart1.chartLine_data.data1="",t.row2.chart1.chartLine_data.data2="",t.row2.chart2.chartLine_data.data1="",t.row2.chart2.chartLine_data.data2=""),setTimeout((function(){t.row1.listLoading=!1}),100)}))},roadRow1ChartLine1:function(t){null!=this.row2.chart1.chartLine&&this.row2.chart1.chartLine.dispose(),this.row2.chart1.chartLine=d.a.init(document.getElementById("row2chartLine1")),0!=t.data2&&0!=t.data1||(t.data1=0,t.data2=100);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()}},roadRow1ChartLine2: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()}},getRow2List1:function(){var t=this;this.row2.listLoading2=!0,Object(r["c"])(this.row2.getdataListParmList).then((function(e){if(null!==e.data&&null!==e.data.list){for(var a=0;a<e.data.list.length;a++)t.$set(e.data.list[a],"background","#f3f9f7"),t.$set(e.data.list[a],"borderColor","#009d6a");t.row2.list=e.data.list,t.row2.carLength=e.data.total}else t.carLength=0;setTimeout((function(){t.row2.listLoading2=!1}),100)}))},handleTable:function(t){"row3chartLine1"==t?(this.row3.chart1.isTable=!0,this.row3.chart1.isChart=!1):"row3chartLine2"==t?(this.row3.chart2.isTable=!0,this.row3.chart2.isChart=!1):"row4chartLine1"==t?(this.row4.chart1.isTable=!0,this.row4.chart1.isChart=!1):"row4chartLine2"==t&&(this.row4.chart2.isTable=!0,this.row4.chart2.isChart=!1)},handleChart:function(t){"row3chartLine1"==t?(this.row3.chart1.isTable=!1,this.row3.chart1.isChart=!0,this.getRow3List1()):"row3chartLine2"==t?(this.row3.chart2.isTable=!1,this.row3.chart2.isChart=!0,this.getRow3List2()):"row4chartLine1"==t?(this.row4.chart1.isTable=!1,this.row4.chart1.isChart=!0,this.getRow4List1()):"row4chartLine2"==t&&(this.row4.chart2.isTable=!1,this.row4.chart2.isChart=!0,this.getRow4List2())},handleExport:function(t){if("row3chartLine1"==t){var e=[{tHeader:["日期","计划执行重量(kg)","配方理论重量(kg)","计划准确率","计划取消重量(kg)","计划准确率(去除取消重量)","计划正确数","计划数","计划正确率"],filterVal:["日期","实际量","理论量","field1","计划取消重量","field3","正确数","计划数","field2"],tableDatas:this.row3.chart1.table.list,sheetName:"计划统计"}];Object(o["c"])(e,"计划统计",!0,"xlsx")}else if("row3chartLine2"==t){var a=[{tHeader:["日期","泌乳牛采食量(kg)","泌乳牛产奶量(kg)"],filterVal:["日期","field1","field2"],tableDatas:this.row3.chart2.table.list,sheetName:"泌乳牛采食量"}];Object(o["c"])(a,"泌乳牛采食量",!0,"xlsx")}},getRow3List1:function(){var t=this;this.row3.chart1.listLoading=!0,Object(r["e"])(this.row3.chart1.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.row3.chart1.table.list=e.data.data,t.row3.chart1.chartLine_data=e.data.list,t.row3.chart1.total=e.data.total):(t.row3.chart1.table.list=[],t.row3.chart1.chartLine_data={}),t.roadRow3ChartLine1(t.row3.chart1.chartLine_data),setTimeout((function(){t.row3.chart1.listLoading=!1}),100)}))},roadRow3ChartLine1:function(t){null!=this.row3.chart1.chartLine&&this.row3.chart1.chartLine.dispose(),this.row3.chart1.chartLine=d.a.init(document.getElementById("row3chartLine1"));var e={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["计划准确率","计划正确率","计划准确率(去除取消重量)"]},xAxis:[{type:"category",data:t.data1,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"百分比",min:0,max:100,interval:20,axisLabel:{formatter:"{value}"}}],series:[{name:"计划准确率",type:"bar",itemStyle:{normal:{color:"#7ecf51"}},data:t.data2,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"计划正确率",type:"bar",itemStyle:{normal:{color:"#ff6600"}},data:t.data3,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}},{name:"计划准确率(去除取消重量)",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:t.data4,markLine:{data:[{type:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dotted",width:3},label:{show:!0,position:"middle",formatter:""}}},large:!0,effect:{show:!1,loop:!0,period:0,scaleSize:2,color:null,shadowColor:null,shadowBlur:null}}}]};this.row3.chart1.chartLine.setOption(e),window.onresize=function(){this.row3.chart1.chartLine.resize()}},getRow3List2:function(){var t=this;this.row3.chart2.listLoading=!0,Object(r["e"])(this.row3.chart2.getdataListParm).then((function(e){if(null!==e.data&&null!==e.data.list){for(var a=0;a<e.data.data.length;a++)""!==e.data.data[a].field1&&void 0!==e.data.data[a].field1&&(e.data.data[a].field1=parseFloat(e.data.data[a].field1)),""!==e.data.data[a].field2&&void 0!==e.data.data[a].field2&&(e.data.data[a].field2=parseFloat(e.data.data[a].field2));t.row3.chart2.table.list=e.data.data,t.row3.chart2.chartLine_data=e.data.list,t.row3.chart2.total=e.data.total,0==t.row3.chart2.chartLine_data.data1.length?t.row3.chart2.chartLine_data.title="暂无数据":t.row3.chart2.chartLine_data.title="",t.roadRow3ChartLine2(t.row3.chart2.chartLine_data)}else t.row3.chart2.list=[];setTimeout((function(){t.row3.chart2.listLoading=!1}),100)}))},roadRow3ChartLine2: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:t.data1,right:10},grid:{top:"20%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"kg",axisLabel:{formatter:"{value}"}},series:function(){if(void 0!==t.data3){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.chart2.chartLine.setOption(e),window.onresize=function(){this.row3.chart2.chartLine.resize()}},getRow4List1:function(){var t=this;this.row4.chart1.listLoading=!0,Object(r["e"])(this.row4.chart1.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.row4.chart1.table.list=e.data.data,t.row4.chart1.chartLine_data=e.data.list,t.row4.chart1.total=e.data.total):(t.row4.chart1.list=[],t.row4.chart1.chartLine_data={}),t.roadRow4ChartLine1(t.row4.chart1.chartLine_data),setTimeout((function(){t.row4.chart1.listLoading=!1}),100)}))},roadRow4ChartLine1: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:""},tooltip:{trigger:"axis"},legend:{data:t.data1,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"kg",axisLabel:{formatter:"{value}"}},series:function(){if(void 0!==t.data3){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.row4.chart1.chartLine.setOption(e),window.onresize=function(){this.row4.chart1.chartLine.resize()}},getRow4List2:function(){var t=this;this.row4.chart2.listLoading=!0,Object(r["e"])(this.row4.chart2.getdataListParm).then((function(e){null!==e.data&&null!==e.data.list?(t.row4.chart2.table.list=e.data.data,t.row4.chart2.chartLine_data=e.data.list,t.row4.chart2.total=e.data.total):(t.row4.chart2.list=[],t.row4.chart2.chartLine_data={}),t.roadRow4ChartLine2(t.row4.chart2.chartLine_data),setTimeout((function(){t.row4.chart2.listLoading=!1}),100)}))},roadRow4ChartLine2: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:""},tooltip:{trigger:"axis"},legend:{data:t.data1,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:t.data2,name:"日期"},yAxis:{type:"value",name:"kg",axisLabel:{formatter:"{value}"}},series:function(){if(void 0!==t.data3){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.row4.chart2.chartLine.setOption(e),window.onresize=function(){this.row4.chart2.chartLine.resize()}},getRow4List3:function(){var t=this;this.row4.table.listLoading=!0,Object(r["c"])(this.row4.table.getdataListParm).then((function(e){null!==e.data.list?(t.row4.table.list=e.data.list,t.row4.table.total=e.data.total):t.row4.table.list=[],setTimeout((function(){t.row4.table.listLoading=!1}),100)}))}}},m=p,u=(a("a6c7"),a("1648"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"5bdca2e9",null);e["default"]=h.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="M395.9 550.1H196.1c-13.8 0-23.9-12.2-23.9-23.9 0-13.8 12.2-23.9 23.9-23.9h199.8c13.9 0 23.9 12.2 23.9 23.9 0.4 13.8-9.6 23.9-23.9 23.9m-25.6 149.8H196.1c-13.8 0-23.9-12.2-23.9-23.9 0-13.8 12.2-23.9 23.9-23.9h174.2c13.8 0 23.9 12.2 23.9 23.9 1.7 13.8-10.1 23.9-23.9 23.9m93.6 2.1c0-139.8 113.7-256 256-256 15.9 0 34 2.1 49.9 4.2v-96.1H72.3v471.7c0 42 34 76 76 76h413.8c-60-46.2-98.2-118-98.2-199.8M594 194.2c0 10.1-8 20.1-20.1 20.1-10.1 0-20.1-8-20.1-20.1v-60c0-10.1 8-20.1 20.1-20.1 10.1 0 20.1 8 20.1 20.1v60z m-298 0c0 10.1-8 20.1-20.1 20.1-10.1 0-20.1-8-20.1-20.1v-60c0-10.1 8-20.1 20.1-20.1 10.1 0 20.1 8 20.1 20.1v60z m397.9-44.1H612v-15.9c0-21.8-18-37.8-37.8-37.8-21.8 0-37.8 18-37.8 37.8v15.9H314v-15.9c0-21.8-18-37.8-37.8-37.8-21.8 0-37.8 15.9-37.8 37.8v15.9h-90.2c-42 0-76 34-76 76v76h695.4v-76c0.1-42-33.9-76-73.7-76z m0 0" p-id="216086" /><path d="M729.1 482.1c-123 0-222.8 99.5-222.8 222.8 0 123.4 99.5 222.8 222.8 222.8 123.4 0 222.8-99.5 222.8-222.8 0.1-123.4-99.8-222.8-222.8-222.8z m-65 136.8c3.4-8.4 8.4-16.4 15.1-23.1 6.7-6.7 14.3-11.8 22.2-15.1 8.4-3.4 17.6-5 26-5 9.2 0 18.5 2.1 26 5 8.4 3.4 16.4 8.4 22.2 15.1 6.7 6.7 11.8 14.3 15.1 23.1 3.4 8.4 5 17.6 5 26.9 0 9.2-2.1 18.5-5 26.9-3.4 8.4-8.4 16.4-15.1 23.1-6.7 6.7-14.3 11.8-22.2 15.1-8.4 3.4-17.6 5-26 5-9.2 0-18.5-2.1-26-5-8.4-3.4-16.4-8.4-22.2-15.1-6.7-6.7-11.8-14.3-15.1-23.1-3.4-8.4-5-17.6-5-26.9-0.5-9.7 1.6-18.9 5-26.9z m173.7 199.3c-2.5 7.1-8 11.3-15.1 15.1-6.7 3.8-15.5 5-25.6 5H659.4c-9.7 0-18.5-2.1-25.6-5.9-7.1-3.8-12.6-9.6-15.1-16.4-2.5-7.1-2.5-17.6 0-25.6 1.3-3.4 2.1-7.1 3.8-10.5 19.7-38.2 59.6-64.2 105.3-64.2 33.6 0 63.4 13 85.2 35.3 9.2 9.7 14.3 17.2 19.7 27.7 2.1 3.4 3.8 6.7 4.6 10.5 1.3 3.8 2.5 9.7 2.5 15.1 0.5 5.5-0.7 10.2-2 13.9z m0 0" p-id="216087" /></symbol>'});l.a.add(n);e["default"]=n},add0:function(t,e,a){},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-outline",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:"success",staticStyle:{"margin-left":"10px"},attrs:{icon:"el-icon-plus"},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",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}),"已删"!=i.status?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleDelete(i)}}}):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("div",[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",{staticClass:"save",on:{click:function(e){return t.createData_again()}}},[t._v(" 确认新增 ")]):t._e(),a("el-button",{staticClass:"save",on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{staticClass:"cancelClose1",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(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"),p=a("333d"),m=a("5c96"),u={name:"Dict",components:{Pagination:p["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:"30px",height:"30px"},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["c"])(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["m"])(this.getRecuListParm).then((function(e){t.parent=e.data}))},getList:function(){var t=this;this.listLoading=!0,this.getDownList(),Object(c["c"])(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;m["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,b=a("2877"),g=Object(b["a"])(h,i,s,!1,null,null,null);e["default"]=g.exports},b00a:function(t,e,a){},b0ae: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-content"},[a("div",{staticClass:"search"},[a("div",[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px",float:"left","margin-bottom":"10px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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",staticStyle:{float:"left","margin-bottom":"10px"},attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",staticStyle:{float:"left","margin-bottom":"10px"},attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}})],1),a("div",{staticStyle:{clear:"both","margin-top":"10px"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px",float:"left"},attrs:{placeholder:"牧场"},model:{value:t.table.getdataListParm.parammaps.pastureid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"pastureid",e)},expression:"table.getdataListParm.parammaps.pastureid"}},t._l(t.pastureList,(function(t){return a("el-option",{key:t.pastureid,attrs:{label:t.pasturename,value:t.pastureid}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px",float:"left"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.tmrtname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tmrtname",e)},expression:"table.getdataListParm.parammaps.tmrtname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px",float:"left"},attrs:{placeholder:"车次",clearable:""},model:{value:t.table.getdataListParm.parammaps.projname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"projname",e)},expression:"table.getdataListParm.parammaps.projname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px",float:"left"},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-input",{staticClass:"filter-item",staticStyle:{width:"110px",float:"left"},attrs:{placeholder:"配方名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.templetname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"templetname",e)},expression:"table.getdataListParm.parammaps.templetname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px",float:"left"},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:"110px",float:"left"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:t.table.getdataListParm.parammaps.buttontype,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"buttontype",e)},expression:"table.getdataListParm.parammaps.buttontype"}},t._l(t.jumpModeList,(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:"110px",float:"left"},attrs:{filterable:"",placeholder:"上传状态",clearable:""},model:{value:t.table.getdataListParm.parammaps.isuse,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"isuse",e)},expression:"table.getdataListParm.parammaps.isuse"}},t._l(t.isuseList,(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"},on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left"},on:{click:t.handleRefresh}},[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.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:t.myHeight2}},[a("el-table-column",{attrs:{label:"牧场","min-width":"55px",align:"center",prop:"牧场"}}),a("el-table-column",{attrs:{label:"日期","min-width":"55px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"55px",align:"center",prop:"TMR名称"}}),a("el-table-column",{attrs:{label:"车次","min-width":"55px",align:"center",prop:"车次"}}),a("el-table-column",{attrs:{label:"班次","min-width":"55px",align:"center",prop:"班次"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"55px",align:"center",prop:"配方名称"}}),a("el-table-column",{attrs:{label:"栏舍","min-width":"55px",align:"center",prop:"栏舍"}}),a("el-table-column",{attrs:{label:"理论重量","min-width":"55px",align:"center",prop:"理论重量"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"55px",align:"center",prop:"实际重量"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"55px",align:"center",prop:"误差值"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"55px",align:"center",prop:"准确率"}}),a("el-table-column",{attrs:{label:"开始时间","min-width":"55px",align:"center",prop:"开始时间"}}),a("el-table-column",{attrs:{label:"结束时间","min-width":"55px",align:"center",prop:"结束时间"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"55px",align:"center",prop:"跳转方式"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"55px",align:"center",prop:"开始重量"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"55px",align:"center",prop:"结束重量"}})],1)],1)])},s=[],r=(a("b0c0"),a("313e"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d");a("5c96");a("817d");var d={name:"Tab2",components:{Pagination:c["a"]},data:function(){var t=this;return{Beforedisabled:!1,Nextdisabled:!1,pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},requestParams:[{name:"getPastureListJT",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),pasturename:""}}],pastureList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}},jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}],frequencyList:[],isuseList:[{id:"0",name:"未完成"},{id:"2",name:"部分完成"},{id:"1",name:"全部完成"}],table:{getdataListParm:{name:"getStatisticsSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],tmrtname:"",projname:"",times:"",templetname:"",fname:"",buttontype:"",isuse:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight2:document.documentElement.clientHeight-85-210}},create:function(){this.getDownList(),this.getIsDisplay()},activated:function(){this.getTimeFn(),this.getDownList(),this.getIsDisplay()},methods:{getTimeFn:function(){var t=this,e=(new Date,new Date,new Date),a=new Date;e.setTime(e.getTime()-864e5),a.setTime(a.getTime()-864e5),t.table.getdataListParm.parammaps.inputDatetime=[e,a],t.table.getdataListParm.parammaps.startTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.table.getdataListParm.parammaps.stopTime=Object(o["d"])(a,"{y}-{m}-{d}")},getIsDisplay:function(){var t=this;Object(r["c"])(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:"第四班"}])}))},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.pastureList=e.data.getPastureListJT.list,t.table.getdataListParm.parammaps.pastureid=e.data.getPastureListJT.list[0].pastureid,t.getList()}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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)}))},handleSearch:function(){this.table.getdataListParm.name="getStatisticsSL",""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.tmrtname="",this.table.getdataListParm.parammaps.projname="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.templetname="",this.table.getdataListParm.parammaps.buttontype="",this.table.getdataListParm.parammaps.fname="",this.getList()},handleExport:function(){var t=[{tHeader:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","准确率","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],filterVal:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","准确率","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],tableDatas:this.tab3.table.list,sheetName:"撒料统计"}];Object(o["c"])(t,"撒料统计",!0,"xlsx")},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));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),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));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList()}}},p=d,m=(a("a03f"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"a807634c",null);e["default"]=u.exports},b189:function(t,e,a){t.exports=a.p+"static/img/logo1.0121925c.png"},b1a6:function(t,e,a){},b1f7:function(t,e,a){},b20f:function(t,e,a){t.exports={menuText:"#333",menuActiveText:"#fff",menuActiveBg:"#009C69",subMenuActiveText:"#f4f4f5",menuBg:"#fff",menuHover:"#fff",subMenuBg:"#ededed",subMenuHover:"#009C69",sideBarWidth:"210px"}},b21b:function(t,e,a){"use strict";a("82b2")},b2bd:function(t,e,a){},b2ea:function(t,e,a){"use strict";a("084f")},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},b330:function(t,e,a){},b3a7:function(t,e,a){},b3b2: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-history"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"230px"},attrs:{type:"date",placeholder:"请选择历史记录时间",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeDate},model:{value:t.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"date",e)},expression:"table.getdataListParm.parammaps.date"}})],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"}},[a("el-table-column",{attrs:{label:"车次",width:"85px",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:"TMR编号",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrname))])]}}])}),a("el-table-column",{attrs:{label:"描述",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.display))])]}}])}),a("el-table-column",{attrs:{label:"生效",width:"100px",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},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[a("span",[t._v(t._s(e.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"时间",width:"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.begintime))])]}}])}),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[a("span",[t._v(t._s(e.row.ftname))])]}}])}),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,disabled:""},model:{value:e.row.issplit,callback:function(a){t.$set(e.row,"issplit",a)},expression:"scope.row.issplit"}})]}}])}),a("el-table-column",{attrs:{label:"撒料","min-width":"250px",align:"left","header-align":"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.arrList,(function(e){return a("div",{key:e.name,staticClass:"list"},[a("el-tooltip",{attrs:{placement:"top","open-delay":1e3}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("div",[t._v(" 栏舍全称:"+t._s(e.barname)+" ")]),a("div",[t._v(" 饲料重量:"+t._s(e.weight)+" ")])]),a("div",{staticClass:"tmrname",style:{background:e.background}},[t._v(t._s(e.barname))])])],1)}))}}])})],1)],1)])},s=[],r=a("2934"),l=a("b76a"),n=a.n(l),o=a("a78e"),c=a.n(o),d=a("ed08"),p={name:"MaterialIssuancePlan",display:"Two list header slot",order:14,components:{draggable:n.a},data:function(){return{table:{getdataListParm:{name:"getLppListdate",name1:"getLppdListdate",page:1,offset:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:Object(d["d"])(new Date,"{y}-{m}-{d}")}},list:[],total:0,tableKey:0,listLoading:!1,temp:{},changeList:[],startObj:{}},requestParams2:{name:"getTMRListEnable",offset:0,parammaps:{pastureid:c.a.get("pastureid"),eqtype:"1"}},equipmentList:[],height:document.body.clientHeight-255-50,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList()},methods:{changeDate:function(){this.getList()},getDownList:function(){var t=this;Object(r["c"])(this.requestParams2).then((function(e){t.equipmentList=e.data.list}))},getList:function(){var t=this;this.table.listLoading=!0;var e="authdata/GetArrList",a=this.table.getdataListParm;Object(r["n"])(e,a).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)null==e.data.list[a].arrList&&t.$set(e.data.list[a],"arrList",[]);t.table.list=e.data.list,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)}))}}},m=p,u=(a("6ffa"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"96add5ce",null);e["default"]=h.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},b3dc:function(t,e,a){},b3ea:function(t,e,a){"use strict";a("01ae")},b607:function(t,e,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"),a("d9e2");var i=a("bc3a"),s=a.n(i),r=a("5c96"),l=a("4360"),n=a("5f87"),o="/";0==o.indexOf("/")&&1==o.length&&(o=window.location.protocol+"//"+window.location.host+o);var c=s.a.create({baseURL:o,withCredentials:!0,timeout:6e4});c.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 Promise.reject(t)})),c.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 Object(r["Message"])({message:t.message,type:"error",duration:5e3}),Promise.reject(t)})),e["a"]=c},b7b1: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:"successBorder",on:{click:t.handleFormulaDistribution}},[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.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:"120px"},attrs:{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.livestockList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.mixname,value:t.parentname}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{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-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",prop:"tname"}}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center",prop:"ccname"}}),a("el-table-column",{attrs:{label:"配方类型","min-width":"130px",align:"center",prop:"fttype"}}),a("el-table-column",{attrs:{label:"是否为当前配方","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.isissue?a("span",[t._v("否")]):a("span",[t._v("是")])]}}])}),a("el-table-column",{attrs:{label:"已下发牧场","min-width":"130px",align:"center",prop:"grouppastures"}}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center",prop:"remark"}}),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":!0,align:"center","class-name":"small-padding fixed-width",width:"50",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}})]}}])})],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.formulaDistribution.dialogStatus],visible:t.formulaDistribution.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.formulaDistribution,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-formulaDistribution"},[a("h4",[t._v("请选择下发配方:")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.formulaDistribution.table.listLoading,expression:"formulaDistribution.table.listLoading"}],key:t.formulaDistribution.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.formulaDistribution.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",width:"55"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center",prop:"ccname"}}),a("el-table-column",{attrs:{label:"配方类型","min-width":"130px",align:"center",prop:"fttype"}}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center",prop:"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},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"}})]}}])})],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.formulaDistribution.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.nextData()}}},[t._v("下一步")])],1)]),a("el-dialog",{attrs:{title:t.textMap[t.formulaDistribution.pasture.dialogStatus],visible:t.formulaDistribution.pasture.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(e){return t.$set(t.formulaDistribution.pasture,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-pasture"},[a("h4",[t._v("选择下发牧场:")]),a("el-checkbox",{attrs:{indeterminate:t.formulaDistribution.pasture.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.formulaDistribution.pasture.checkAll,callback:function(e){t.$set(t.formulaDistribution.pasture,"checkAll",e)},expression:"formulaDistribution.pasture.checkAll"}},[t._v("全选")]),a("div",{staticStyle:{margin:"15px 0"}}),a("el-checkbox-group",{on:{change:t.handlePastureChange},model:{value:t.formulaDistribution.pasture.checkedList,callback:function(e){t.$set(t.formulaDistribution.pasture,"checkedList",e)},expression:"formulaDistribution.pasture.checkedList"}},t._l(t.formulaDistribution.pasture.list,(function(e){return a("el-checkbox",{key:e.id,attrs:{label:e,value:e.id}},[t._v(t._s(e.pasturename))])})),1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.formulaDistribution.pasture.dialogFormVisible=!1}}},[t._v("关闭")]),a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.formulaDistributionData()}}},[t._v("确认")])],1)]),a("el-dialog",{attrs:{title:t.textMap[t.see.dialogStatus],visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-see"},[a("el-tabs",{on:{"tab-click":t.handleSeeTabClick},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-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"牧场",clearable:""},model:{value:t.see.tab1.table.getdataListParm.parammaps.pasturename,callback:function(e){t.$set(t.see.tab1.table.getdataListParm.parammaps,"pasturename",e)},expression:"see.tab1.table.getdataListParm.parammaps.pasturename"}},t._l(t.formulaDistribution.pasture.list,(function(t){return a("el-option",{key:t.id,attrs:{label:t.pasturename,value:t.pasturename}})})),1),a("el-button",{staticClass:"successBorder",on:{click:t.handleSeeTab1Search}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.tab1.table.listLoading,expression:"see.tab1.table.listLoading"}],key:t.see.tab1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.see.tab1.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle},on:{"row-click":t.handleSeeTab1RowClick}},[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.tab1.table.pageNum-1)*t.see.tab1.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"牧场","min-width":"130px",align:"center",prop:"pasturename"}}),a("el-table-column",{attrs:{label:"下发时间","min-width":"130px",align:"center",prop:"date"}})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.see.tab1.table.total>0,expression:"see.tab1.table.total>0"}],attrs:{total:t.see.tab1.table.total,page:t.see.tab1.table.getdataListParm.offset,limit:t.see.tab1.table.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.see.tab1.table.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.see.tab1.table.getdataListParm,"pagecount",e)},pagination:t.getSeeTab1List}})],1),a("el-tab-pane",{attrs:{label:"使用情况",name:"second"}},[a("div",{staticClass:"search"},[a("el-autocomplete",{staticClass:"inline-input filter-item",staticStyle:{width:"250px"},attrs:{"value-key":"date","fetch-suggestions":t.dateSearch,placeholder:"日期"},on:{select:t.handleSelectDate},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("span",[t._v(t._s(i.date))])]}}]),model:{value:t.see.tab2.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.see.tab2.table.getdataListParm.parammaps,"date",e)},expression:"see.tab2.table.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:t.handleSeeTab2Search}},[t._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.tab2.table.listLoading,expression:"see.tab2.table.listLoading"}],key:t.see.tab2.table.tableKey,ref:"table",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{id:"table","element-loading-text":"给我一点时间",data:t.see.tab2.table.list,border:"","highlight-current-row":"",height:t.height,"row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id","show-header":!1}},[a("el-table-column",{attrs:{label:"1",width:"100px",align:"center",prop:"pasturename"}}),a("el-table-column",{attrs:{label:"1",width:"120px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"1",width:"130px",align:"center",prop:"datestr"}}),a("el-table-column",{attrs:{label:"1","min-width":"800px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.arrList,(function(e){return a("div",{key:e.concatname,staticClass:"list-group-item2 item",staticStyle:{width:"100px",float:"left",margin:"5px 5px",padding:"0",height:"30px"}},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.concatname))]),a("span",{staticStyle:{display:"block",height:"30px","line-height":"30px"},style:{color:e.color}},[t._v(" "+t._s(e.concatname)+" ")])])],1)}))}}])})],1)],1)])],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.see.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],1)},s=[],r=a("2934"),l=a("333d"),n=(a("ed08"),a("a78e")),o=a.n(n),c={name:"FormulaDistribution",components:{Pagination:l["a"]},data:function(){return{formulaTypeList:[],livestockList:[],requestParams:[{name:"getDictByName2",offset:0,pagecount:0,params:["配方类型"]},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],table:{getdataListParm:{name:"getFTListXF",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),tname:"",ccname:"",fttype:"",remark:""}},tableKey:0,list:[],total:0,listLoading:!0},formulaDistribution:{dialogFormVisible:!1,dialogStatus:"",table:{getdataListParm:{name:"getFTListXF",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},tableKey:1,list:[],total:0,listLoading:!0},selectList:[],pasture:{dialogFormVisible:!1,dialogStatus:"",getdataListParm:{name:"getgroupsPasture",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},total:0,listLoading:!0,checkAll:!1,checkedList:[],list:[],isIndeterminate:!1}},see:{dialogFormVisible:!1,dialogStatus:"",activeName:"first",temp:{},tab1:{table:{getdataListParm:{name:"getFTListXFhis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",ftid:"",pasturename:""}},tableKey:2,list:[],total:0,listLoading:!0}},tab2:{table:{getdataListParm:{name:"getFTusageList",name1:"getFTdusageList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:""}},tableKey:3,list:[],total:0,listLoading:!1},date:{getdataListParm:{name:"getFTListXFhisTime",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:""}},list:[]}}},textMap:{formulaDistribution:"配方下发",see:"查看",pasture:"配方下发"},requestParam:{},isokDisable:!1,height:document.body.clientHeight,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getDownList(),this.getList()},methods:{getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.livestockList=e.data.getCowclassListEnable.list,t.formulaTypeList=e.data.getDictByName2.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.tname="",this.table.getdataListParm.parammaps.ccname="",this.table.getdataListParm.parammaps.fttype="",this.table.getdataListParm.parammaps.remark=""},handleFormulaDistribution:function(){this.formulaDistribution.dialogStatus="formulaDistribution",this.formulaDistribution.dialogFormVisible=!0,this.getFormulaDistributionList()},handleSelectionChange:function(t){this.formulaDistribution.selectList=t},getFormulaDistributionList:function(){var t=this;this.formulaDistribution.table.listLoading=!0,Object(r["c"])(this.formulaDistribution.table.getdataListParm).then((function(e){null!==e.data.list?t.formulaDistribution.table.list=e.data.list:t.formulaDistribution.table.list=[],setTimeout((function(){t.formulaDistribution.table.listLoading=!1}),100)}))},nextData:function(){if(0==this.formulaDistribution.selectList.length)return this.$message({type:"error",message:"请选择下发配方",duration:2e3}),!1;for(var t=0;t<this.formulaDistribution.selectList.length;t++)if(0==this.formulaDistribution.selectList[t].enable)return this.$message({type:"error",message:"配方未启用不可下发",duration:2e3}),!1;this.formulaDistribution.pasture.dialogStatus="pasture",this.formulaDistribution.pasture.dialogFormVisible=!0,this.getPastureList()},getPastureList:function(){var t=this;Object(r["c"])(this.formulaDistribution.pasture.getdataListParm).then((function(e){null!==e.data.list?t.formulaDistribution.pasture.list=e.data.list:t.formulaDistribution.pasture.list=[]}))},handleCheckAllChange:function(t){this.formulaDistribution.pasture.checkedList=t?this.formulaDistribution.pasture.list:[],this.formulaDistribution.pasture.isIndeterminate=!1},handlePastureChange:function(t){var e=t.length;this.formulaDistribution.pasture.checkAll=e===this.formulaDistribution.pasture.list.length,this.formulaDistribution.pasture.isIndeterminate=e>0&&e<this.formulaDistribution.pasture.list.length},formulaDistributionData:function(){var t=this;if(0==this.formulaDistribution.pasture.checkedList.length)return this.$message({type:"error",message:"请选择下发牧场",duration:2e3}),!1;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.formulaDistribution.selectList}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"insertfeedtemplet_issue",type:"e",parammaps:{pastureid:o.a.get("pastureid"),ftid:"@insertSpotList.id"}},this.requestParam.data[0].children[1]={name:"insertftdetail_issue",type:"e",parammaps:{pastureid:o.a.get("pastureid"),ftid:"@insertSpotList.id"}},this.requestParam.data[1]={name:"insertSpotList2",resultmaps:{list:this.formulaDistribution.pasture.checkedList}},this.requestParam.data[1].children=[],this.requestParam.data[1].children[0]={name:"deleteFTissue",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[1]={name:"insertfeedtempletISS",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[2]={name:"insertftdetailISS",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[3]={name:"insertfeedtemplet_pastureISS",type:"e",parammaps:{pastureid:"@insertSpotList2.id",pasturename:"@insertSpotList2.pasturename",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[4]={name:"deleteFeedissue",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[5]={name:"insertFeedissue",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},this.requestParam.data[1].children[6]={name:"insertFeednurissue",type:"e",parammaps:{pastureid:"@insertSpotList2.id",groupsid:o.a.get("pastureid")}},Object(r["b"])(this.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.formulaDistribution.dialogFormVisible=!1,t.formulaDistribution.pasture.dialogFormVisible=!1,t.getList())}))},handleSee:function(t){this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.temp=Object.assign({},t),this.see.activeName="first",this.see.tab1.table.list=[],this.formulaDistribution.pasture.list=[],this.see.tab2.date.list=[],this.getSeeTab1List(),this.getPastureList(),this.getSeeTab2DateList()},getSeeTab1List:function(){var t=this;this.see.tab1.table.listLoading=!0,this.see.tab1.table.getdataListParm.parammaps.ftid=this.see.temp.id,this.see.tab1.table.getdataListParm.parammaps.pastureid=this.see.temp.pastureid,Object(r["c"])(this.see.tab1.table.getdataListParm).then((function(e){null!==e.data.list?(t.see.tab1.table.list=e.data.list,t.see.tab1.table.pageNum=e.data.pageNum,t.see.tab1.table.pageSize=e.data.pageSize,t.see.tab1.table.total=e.data.total):t.see.tab1.table.list=[],setTimeout((function(){t.see.tab1.table.listLoading=!1}),100)}))},handleSeeTab1Search:function(){this.getSeeTab1List()},getSeeTab2List:function(){var t=this;this.see.tab2.table.listLoading=!0,this.see.tab2.table.getdataListParm.parammaps.ftid=this.see.temp.id;var e="authdata/GetArrList",a=this.see.tab2.table.getdataListParm;Object(r["n"])(e,a).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)if(null==e.data.list[a].arrList)t.$set(e.data.list[a],"Disabled",!1),t.$set(e.data.list[a],"arrList",[]);else if(e.data.list[a].arrList.length>0)for(var i=0;i<e.data.list[a].arrList.length;i++)e.data.list[a].arrList[i].nowweight==e.data.list[a].arrList[i].fweight?t.$set(e.data.list[a].arrList[i],"color","#333"):-1==e.data.list[a].arrList[i].nowweight?t.$set(e.data.list[a].arrList[i],"color","orange"):e.data.list[a].arrList[i].nowweight!==e.data.list[a].arrList[i].fweight&&parseFloat(e.data.list[a].arrList[i].nowweight)>0&&t.$set(e.data.list[a].arrList[i],"color","red");t.see.tab2.table.list=e.data.list,e.data.total&&(t.see.tab2.table.total=e.data.total)}else t.see.tab2.table.list=[];setTimeout((function(){t.see.tab2.table.listLoading=!1}),100)}))},handleSeeTab2Search:function(){""==this.see.tab2.table.getdataListParm.parammaps.date&&(this.see.tab2.table.getdataListParm.parammaps.date=this.see.tab2.date.list[0].date),this.see.tab2.table.list=[],this.getSeeTab2List()},getSeeTab2DateList:function(){var t=this;this.see.tab2.date.getdataListParm.parammaps.ftid=this.see.temp.id,Object(r["c"])(this.see.tab2.date.getdataListParm).then((function(e){null!==e.data.list?t.see.tab2.date.list=e.data.list:t.see.tab2.table.list=[]}))},dateSearch:function(t,e){this.see.tab2.date.getdataListParm.parammaps["date"]=t,Object(r["c"])(this.see.tab2.date.getdataListParm).then((function(t){null==t.data.list?e([]):e(t.data.list)}))},handleSelectDate:function(t){this.see.tab2.table.getdataListParm.parammaps.date=t.date},handleSeeTabClick:function(){"first"==this.see.activeName?this.getSeeTab1List():(this.see.tab2.table.getdataListParm.parammaps.date=this.see.tab2.date.list[0].date,this.getSeeTab2List())},handleSeeTab1RowClick:function(t){this.see.activeName="second",this.see.tab2.table.getdataListParm.parammaps.date=t.date,this.getSeeTab2List()}}},d=c,p=(a("b7c8"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"2078741e",null);e["default"]=m.exports},b7c8:function(t,e,a){"use strict";a("5ea1")},b897: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="M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-0.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2c-3.9 3.9-3.9 10.2 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM699 387c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z" p-id="219799" /></symbol>'});l.a.add(n);e["default"]=n},b8a0:function(t,e,a){"use strict";a("fe3f")},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="M938.667 554.667v-128c0-29.867-12.8-55.467-38.4-68.267L558.933 119.467c-29.866-21.334-68.266-21.334-98.133 0L119.467 358.4c-21.334 17.067-34.134 42.667-34.134 68.267v426.666c0 46.934 38.4 85.334 85.334 85.334h682.666c46.934 0 85.334-38.4 85.334-85.334v-128H640v85.334L426.667 640 640 469.333v85.334h298.667z" p-id="216371" /></symbol>'});l.a.add(n);e["default"]=n},b914:function(t,e,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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e()],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[t.table.pageNum?a("span",[t._v(t._s(e.$index+(t.table.pageNum-1)*t.table.pageSize+1))]):a("span",[t._v("1")])]}}])}),a("el-table-column",{attrs:{label:"TMR设备编号","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.eqcode))]):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.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":"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:"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":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-color-picker",{staticStyle:{"vertical-align":"middle"},attrs:{size:"mini",predefine:t.predefineColors,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":"90px",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":"110px",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:"",disabled:1==e.row.islock,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":"85px",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:"跳转重量域(kg)","min-width":"85px",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:{type:"textarea",disabled:"0"==e.row.autosecond,autosize:{minRows:1.3,maxRows:4}},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":"100px",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:"",placeholder:"跳转延时"},on:{change:function(a){t.changeAutosecond(a,e.row)}},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[e.row.NoEdit?a("span",[t._v(t._s(e.row.datainterface))]):t._e(),e.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"TMR数据接口"},on:{change:function(a){t.changeDataInterface(a,e.row)}},model:{value:e.row.datainterface,callback:function(a){t.$set(e.row,"datainterface",a)},expression:"scope.row.datainterface"}},t._l(t.dataInterfaceList,(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:"Imei","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.imei))]):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.imei,callback:function(a){t.$set(e.row,"imei",a)},expression:"scope.row.imei"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",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":"70px",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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("d3b7"),a("ac1f"),a("00b4"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("b0c0"),a("a434"),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{predefineColors:["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548","#9E9E9E","#607D8B"],isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["TMR设备类型"]},{name:"getDictByName2",offset:0,pagecount:0,params:["跳转延时"]},{name:"getDictByName3",offset:0,pagecount:0,params:["数据接口"]}],typeList:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],jumpDelayList:[],dataInterfaceList:[],table:{getdataListParm:{name:"getTMRList",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},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},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.typeList=e.data.getDictByName.list,t.jumpDelayList=e.data.getDictByName2.list,t.dataInterfaceList=e.data.getDictByName3.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){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(){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:"",tcolor:"#ccc",autosecond:"0",imei:""})},changeType:function(t){this.table.temp.tclassname=this.typeList.find((function(e){return e.value==t})).label},changeAutosecond:function(t,e){this.table.temp.autosecondname=this.jumpDelayList.find((function(e){return e.value==t})).label,"禁用"==this.table.temp.autosecondname&&(e.autozone="")},changeDataInterface:function(t,e){},createData:function(t){var e=this;if("0"==t.autosecond&&(t.autozone="",t.autosecondname="",this.table.temp.autosecondname=""),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.tcolor=t.tcolor,this.table.temp.datainterface=t.datainterface,this.table.temp.autozone=t.autozone,this.table.temp.autosecond=t.autosecond,this.table.temp.autosecondname=this.table.temp.autosecondname,this.table.temp.imei=t.imei,""==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;if("0"!==t.autosecond){var i=/^(?:[0-9]|1[0-9])$/;if(!i.test(parseFloat(this.table.temp.autozone)))return this.$message({type:"error",message:"跳转重量域请输入0-20之间整数",duration:2e3}),!1}var s=/^[1-9]\d*$/;if(!s.test(parseFloat(this.table.temp.maxstirfeed)))return this.$message({type:"error",message:"最大搅拌量请输入正整数",duration:2e3}),!1;var l=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return l.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):l.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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},createCancel:function(t){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),void 0==t.autosecond?(this.$set(t,"autosecond",""),this.$set(t,"autosecondname","")):t.autosecond=String(t.autosecond),this.table.temp.tclassid=t.tclassid,this.table.temp.tclassname=t.tclassname},updateData:function(t){var e=this;if(null==t.tcolor&&(t.tcolor="#CCCCCC"),"0"==t.autosecond&&(t.autozone="",t.autosecondname="",this.table.temp.autosecondname=""),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.tcolor=t.tcolor,this.table.temp.imei=t.imei,this.table.temp.datainterface=t.datainterface,this.table.temp.autozone=t.autozone,this.table.temp.autosecond=t.autosecond,this.table.temp.autosecondname=this.table.temp.autosecondname,""==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;if("0"!==t.autosecond){var s=/^(?:[0-9]|1[0-9])$/;if(!s.test(parseFloat(this.table.temp.autozone)))return this.$message({type:"error",message:"跳转重量域请输入0-20之间整数",duration:2e3}),!1}var l=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return l.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):l.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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleRowDelete:function(t){var e=this;c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkDeleteTmr",type:"v",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"deleteTMR",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择TMR设备信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){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:"checkDeleteTmr",type:"v",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[0].children[1]={name:"deleteTMR",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))}}},p=d,m=(a("82e9"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"01abc540",null);e["default"]=u.exports},ba33:function(t,e,a){"use strict";a("a3b5")},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="M112.270505 64.303538l31.978319 0 0 863.413582 767.479649 0 0 31.978319L112.270505 959.695438 112.270505 64.303538zM400.075373 448.043363l0 415.71712-191.869912 0 0-223.848231L400.075373 448.043363zM655.901922 480.021681l0 383.738801-191.869912 0L464.03201 448.043363l95.934956 127.912251L655.901922 480.021681zM911.728472 288.151769l0 575.608713-191.869912 0L719.85856 448.043363 911.728472 288.151769zM240.183779 512l-31.978319-31.978319 223.848231-223.848231 127.913275 127.913275 255.82655-223.848231-63.956637-63.956637 159.891593 0 0 159.891593-63.956637-63.956637-287.804868 255.82655-127.913275-127.913275L240.183779 512z" p-id="189469" /></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:"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-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")])],1),a("div",{staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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"},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,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,"max-height":t.myHeight},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":"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:"第一层",align:"center"}},[a("el-table-column",{attrs:{prop:"onerate",label:"比例(%)","min-width":"65px",align:"center"}}),a("el-table-column",{attrs:{prop:"oneweight",label:"重量(g)","min-width":"65px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第二层",align:"center"}},[a("el-table-column",{attrs:{prop:"tworate",label:"比例(%)","min-width":"65px",align:"center"}}),a("el-table-column",{attrs:{prop:"twoweight",label:"重量(g)","min-width":"65px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第三层",align:"center"}},[a("el-table-column",{attrs:{prop:"threerate",label:"比例(%)","min-width":"65px",align:"center"}}),a("el-table-column",{attrs:{prop:"threeweight",label:"重量(g)","min-width":"65px",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:"80","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",["create"==t.create.dialogStatus?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:{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:8}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barname"}},[a("el-input",{ref:"barname",staticClass:"filter-item",attrs:{disabled:"",placeholder:"barname"},model:{value:t.create.temp.barname,callback:function(e){t.$set(t.create.temp,"barname",e)},expression:"create.temp.barname"}})],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:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",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:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.historyRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.historyRecord,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.historyRecord.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"historyRecord"},[a("keep-alive",[a(t.historyRecord.myComponent,{ref:"historyRecord",tag:"component"})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.historyRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2)],1)},s=[],r=(a("7db0"),a("d3b7"),a("b680"),a("ac1f"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),p=a("bc3a"),m=a.n(p),u=a("5f87"),h={name:"FecalScreen",components:{Pagination:c["a"]},data:function(){return{dialogFull:!1,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:parseInt(n.a.get("pageCount")),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["d"])(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:"getDungsieveEmpHis",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:"编辑",historyRecord:"历史记录"},historyRecord:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},requestParam:{},requestParam2:{},download:{getdataListParm:{name:"getDungsieveList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},list:[]},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkbarname,insertDungsieveUpload",importParams:"栏舍名称,第一层重量(g),第二层重量(g),第三层重量(g),备注,操作人,操作日期",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"操作日期",requiredParams:"栏舍名称,第一层重量(g),第二层重量(g),第三层重量(g)",numParams:"第一层重量(g),第二层重量(g),第三层重量(g)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){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(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.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["d"])(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["c"])(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["c"])(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}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(){this.resetTemp(),this.getNoteTakerList(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData: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="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){if("fail"!==e.msg)t.saveData();else{var a=new RegExp("Duplicate entry :pbto");a.test(e.data)?t.$notify({title:"保存失败",message:"同一栏舍不可重复录入",type:"warning",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},saveData:function(){var t=this;this.requestParam2.name="insertDungHistory",this.create.temp.pastureid=n.a.get("pastureid"),this.create.temp.changetime=Object(o["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),this.create.temp.species="fps",this.create.temp.fourrate="",this.create.temp.fourweight="",this.requestParam2.parammaps=this.create.temp,Object(r["f"])(this.requestParam2).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},createDataAgain: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="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){"fail"!==e.msg?(t.saveData(),t.resetTemp(),t.getList(),t.getNoteTakerList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},handleUpdate:function(t){t.barid=String(t.barid),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.dialogFull=!1,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){"fail"!==e.msg?(t.saveData(),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},handleRowDelete:function(t){var e=this;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){this.selectList=t},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(){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){"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}):d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e={common:{returnmap:"0"},data:[{name:"insertSpotList",resultmaps:{list:t.selectList},children:[{name:"copyDungsieve",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}}]}]};Object(r["b"])(e).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:"已取消复制"})}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/栏舍生产/粪便筛导入模板.xlsx";m()({method:"GET",url:i,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="粪便筛导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["栏舍名称","第一层比例(%)","第一层重量(g)","第二层比例(%)","第二层重量(g)","第三层比例(%)","第三层重量(g)","备注","操作人","操作日期"],filterVal:["barname","onerate","oneweight","tworate","twoweight","threerate","threeweight","remark","emp","operatetime"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(o["c"])(a,"粪便筛",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","第一层重量(g)","第二层重量(g)","第三层重量(g)","备注","操作人","操作日期","错误信息"],r=["栏舍名称","第一层重量(g)","第二层重量(g)","第三层重量(g)","备注","操作人","操作日期","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"粪便筛导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))},handleHistoryRecord:function(){this.dialogFull=!1,this.historyRecord.dialogStatus="historyRecord",this.historyRecord.dialogFormVisible=!0;var t=this,e=function(){return Promise.resolve().then(a.bind(null,"283c"))};return t.historyRecord.myComponent=e}}},b=h,g=a("2877"),f=Object(g["a"])(b,i,s,!1,null,null,null);e["default"]=f.exports},bbe7: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-history",staticStyle:{height:"550px",overflow:"auto"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"230px"},attrs:{type:"date",placeholder:"请选择历史记录时间",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:t.changeDate},model:{value:t.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"date",e)},expression:"table.getdataListParm.parammaps.date"}})],1),a("div",{ref:"template",staticClass:"template"},[t._m(0),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"}}),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"}),t._m(1),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"}),t._m(2),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))])]}}])}),3==t.table3.getdataListParm.parammaps.lpplantype?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))])]}}],null,!1,540468947)}):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)])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"recipeTemplate"},[a("p",[t._v("日执行计划")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"contentOperation"},[a("p",[t._v("计划内容"),a("br"),t._v("操作详情")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"contentOperation"},[a("p",[t._v("计划内容"),a("br"),t._v("栏舍详情")])])}],r=(a("4e82"),a("b680"),a("2934")),l=a("ed08"),n=a("a78e"),o=a.n(n),c={name:"MaterialIssuancePlan",display:"Two list header slot",data:function(){return{table:{getdataListParm:{name:"getDownloadedplanList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),barid:"",mydate:Object(l["d"])(new Date,"{y}-{m}-{d}"),times:"",lpplantype:""}},tableKey:0,list:[],total:0,listLoading:!1},table2:{getdataListParm:{name:"getDownloadplandtl1ListV2",page:1,offset:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:"",id:""}},tableKey:0,list:[],total:0,listLoading:!1},table3:{getdataListParm:{name:"getDownloadplandt2ListV2",page:1,offset:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:"",id:""}},tableKey:0,list:[],total:0,listLoading:!1},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.lpplantype=e.data.list[0].lpplantype,t.getList2(),t.getList3()):(t.table.list=[],t.table2.getdataListParm.parammaps.id="",t.table3.getdataListParm.parammaps.id="",t.table2.list=[],t.table3.list=[]),setTimeout((function(){t.table.listLoading=!1}),100)}))},lpplantype:function(t){return 2==t.lpplantype?"撒料":4==t.lpplantype?"预混":3==t.lpplantype?"剩料":void 0},changeDate:function(t){this.getList(),this.getList2(),this.getList3()},tableRowClick:function(t,e,a){this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table2.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table3.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.lpplantype=t.lpplantype,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["c"])(this.table2.getdataListParm).then((function(e){if(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,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["c"])(this.table3.getdataListParm).then((function(e){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)}))}}},d=c,p=(a("b2ea"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"52856046",null);e["default"]=m.exports},bc42:function(t,e,a){"use strict";a("6fb6")},bc6a:function(t,e,a){"use strict";a("e5d1")},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="M854.739 793.068h-685.478c-15.070 0-27.289 12.217-27.289 27.289s12.218 27.289 27.289 27.289h685.479c15.072 0 27.287-12.217 27.287-27.289s-12.217-27.289-27.289-27.289z" p-id="218940" /><path d="M950.794 164.349h-877.587c-39.121 0-70.949 31.827-70.949 70.949v397.315c0 39.122 31.827 70.949 70.949 70.949h877.587c39.121 0 70.949-31.827 70.949-70.949v-397.315c0-39.121-31.828-70.949-70.949-70.949zM141.972 648.987c0 0 0-74.586 0-120.097 2.916-27.733 46.801-36.267 54.37 0l0.206 120.097h-54.576zM277.107 649.342c0 0 0-36.186 0-81.697 2.916-27.734 46.802-36.267 54.371 0l0.206 81.697h-54.577zM412.978 649.342c0 0 0-36.186 0-81.697 2.916-27.734 46.802-36.267 54.371 0l0.206 81.697h-54.577zM548.8 649.342c0 0 0-36.186 0-81.697 2.916-27.734 46.802-36.267 54.371 0l0.206 81.697h-54.577zM683.556 649.342c0 0 0-36.186 0-81.697 2.916-27.734 46.802-36.267 54.371 0l0.206 81.697h-54.577zM818.695 648.987c0 0 0-74.586 0-120.097 2.916-27.733 46.802-36.267 54.371 0l0.206 120.097h-54.577z" p-id="218941" /></symbol>'});l.a.add(n);e["default"]=n},bd25:function(t,e,a){},bda2:function(t,e,a){"use strict";a("2b66")},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:"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.value,attrs:{label:t.label,value:t.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"饲料名称",filterable:"",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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-document-checked"},on:{click:t.handleExamine}},[t._v("审核")]):t._e(),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},attrs:{icon:"el-icon-upload2"},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":"","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":"100px",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":"100px",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":"100px",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":"100px",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":"100px",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":"100px",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:"备注","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.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":"100px",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:"80","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isUpdate&&1!==i.ischarge&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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("333d"),n=a("5c96"),o=a("a78e"),c=a.n(o),d=a("ed08"),p={name:"SystemConsumption",components:{Pagination:l["a"]},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:c.a.get("pastureid")}},{name:"getDictByName",offset:0,pagecount:0,params:["牲畜父类"]}],table:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:parseInt(c.a.get("pageCount")),returntype:"Map",parammaps:{inputDatetime:"",pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",usetype:"系统用量",feedid:"",cowclassid:"",ischarge:""}},tableKey:0,list:[],total:0,listLoading:!0},selectList:[],requestParam:{},download:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{inputDatetime:"",pastureid:c.a.get("pastureid"),startTime:"",stopTime:"",usetype:"系统用量",feedid:"",cowclassid:"",ischarge:""}},list:[]},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"30px",height:"30px"},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["d"])(this.requestParams).then((function(e){t.feedNameList=e.data.getFeedListEnable.list,t.livestockTypeList=e.data.getDictByName.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["c"])(this.table.getdataListParm).then((function(e){if(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}else t.table.list=[];t.table.total=e.data.total,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(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(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="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.cowclassid="",this.table.getdataListParm.parammaps.ischarge="",this.table.getdataListParm.offset=1,this.getList()},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;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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isUpdate=!0,t.isUpdateSave=!1,this.getList()},handleSelectionChange:function(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});n["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:"insertFeedstorageUse",type:"e",parammaps:{snowid:"@insertSpotList.snowid",pastureid:"@insertSpotList.pastureid",feedid:"@insertSpotList.feedid",fname:"@insertSpotList.fname",pcpde:"@insertSpotList.pcpde",operateweight:"@insertSpotList.operateweight",price:"@insertSpotList.price"}},t.requestParam.data[0].children[1]={name:"chargeFeedstorageuse",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",operateweight:"@insertSpotList.operateweight"}},Object(r["b"])(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())}))}))}},handleExport:function(){var t=this;this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(d["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(d["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(e){if(null!==e.data.list){for(var a=0;a<e.data.list.length;a++)1==e.data.list[a].ischarge?e.data.list[a].ischarge="是":e.data.list[a].ischarge="否";t.download.list=e.data.list}else t.download.list=[];var i=[{tHeader:["业务日期","牲畜类别","饲料名称","库存重量(kg)","计划重量(kg)","设备实测重量(kg)","出库重量(kg)","备注","是否审核"],filterVal:["usedate","cowclass","feedname","repertoryweight","planweight","actweight","operateweight","remark","ischarge"],tableDatas:t.download.list,sheetName:"Sheet1"}];Object(d["c"])(i,"系统用量",!0,"xlsx")}))}}},m=p,u=(a("8fbc"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"3802f97e",null);e["default"]=h.exports},be35:function(t,e,a){},be62:function(t,e,a){},bece:function(t,e,a){"use strict";a("9e15")},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",{ref:"search",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:"downminCancel",on:{click:function(e){t.arrowUp=!1,t.arrowDown=!0}}},[t._v("取消")]),a("el-button",{staticClass:"miniPrimary",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",{ref:"operation",staticClass:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),a("el-button",{staticClass:"success",attrs:{icon:"el-icon-receiving"},on:{click:t.handleFeedBank}},[t._v("饲料库")]),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{display:"inline-block"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[t.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")]):t._e()],1),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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:"table"},[a("u-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":"给我一点时间",border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-key":"id","max-height":t.myHeight,"use-virtual":"","row-height":t.rowHeight},on:{"selection-change":t.handleSelectionChange,"table-body-scroll":t.tableScroll}},[a("u-table-column",{attrs:{type:"selection",align:"center",width:"50",fixed:"left"}}),a("u-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"50",fixed:"left"}}),a("u-table-column",{attrs:{label:"饲料名称","min-width":"80px",align:"center",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fname))])]}}])}),a("u-table-column",{attrs:{label:"饲料分类","min-width":"80px",align:"center",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fclass))])]}}])}),a("u-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.feedcode))])]}}])}),a("u-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.source))])]}}])}),a("u-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.printgroup))])]}}])}),t.isInforvalue?a("u-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.smtmrname))])]}}],null,!1,4170585716)}):t._e(),a("u-table-column",{attrs:{label:"允许误差数(kg)","min-width":"85px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.allowratio))])]}}])}),a("u-table-column",{attrs:{label:"包装单位重量(kg)","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.unitweight))])]}}])}),a("u-table-column",{attrs:{label:"单价","min-width":"50px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.uprice))])]}}])}),a("u-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.autozone))])]}}])}),a("u-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.autosecondname))])]}}])}),a("u-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.confirmstartname))])]}}])}),a("u-table-column",{attrs:{label:"继电器位置","min-width":"60px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.trgaddress))])]}}])}),a("u-table-column",{attrs:{label:"无上域","min-width":"60px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.jmp?a("span",[t._v("否")]):a("span",[t._v("是")])]}}])}),a("u-table-column",{attrs:{label:"备用字段01","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.backup1))])]}}])}),a("u-table-column",{attrs:{label:"备用字段02","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.backup2))])]}}])}),a("u-table-column",{attrs:{label:"备用字段03","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.backup3))])]}}])}),a("u-table-column",{attrs:{label:"是否启用","min-width":"80px",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("u-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{staticClass:"correcting",on:{click:function(e){t.handleNutritive(i)}}},[t._v("营养价值")]),a("span",{staticClass:"centerSpan"},[t._v("|")]),t.isRoleEdit?a("a",{staticClass:"correcting",on:{click:function(e){return t.handleRelation(i)}}},[t._v("关联")]):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e()]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",{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-50之间的整数",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),t.isInforvalue?a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"小料秤:",prop:"smtmrid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"小料秤",clearable:""},on:{change:t.changeSmallMaterial},model:{value:t.create.temp.smtmrid,callback:function(e){t.$set(t.create.temp,"smtmrid",e)},expression:"create.temp.smtmrid"}},t._l(t.smallMaterialList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1)],1)],1):t._e(),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"无上域:",prop:"jmp"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"无上域"},on:{change:t.changeSmallMaterial},model:{value:t.create.temp.jmp,callback:function(e){t.$set(t.create.temp,"jmp",e)},expression:"create.temp.jmp"}},t._l(t.jmpList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],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:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus||"update"===t.create.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.feedBank.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.feedBank,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.feedBank.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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":"50",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":"70px",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":"80px",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":"50px",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":"50px",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":"65px",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":"59px",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":"70px",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":"85px",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":"85px",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":"75px",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":"59px",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":"60px",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":"60px",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":"70px",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":"65px",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":"50px",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":"50px",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:"cancelClose cancelClose1",on:{click:function(e){t.feedBank.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.relation.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.relation,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.relation.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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":"50",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":"80px",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":"80px",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":"50px",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":"50px",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":"65px",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":"59px",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":"83px",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":"75px",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":"59px",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":"60px",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":"60px",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":"70px",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":"65px",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":"50px",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":"50px",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("a",{staticClass:"correcting",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.disassociateData(i)}}},[t._v("取消关联")]):t._e(),"0"==i.statueRelation?a("a",{staticClass:"correcting",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:"cancelClose cancelClose1",on:{click:function(e){t.relation.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")])],1)])],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.nutritive.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.nutritive,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.nutritive.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",{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",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.nutritive.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"nutritive"===t.nutritive.dialogStatus&&t.isRoleEdit?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.nutritiveData()}}},[t._v("确认")]):t._e()],1)],1)],2)],1)},s=[],r=(a("ac1f"),a("466d"),a("5319"),a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("7db0"),a("b0c0"),a("00b4"),a("a434"),a("2934")),l=a("a78e"),n=a.n(l),o=a("aa47"),c=a("333d"),d=(a("bc3a"),a("5f87")),p=a("ed08"),m=a("5c96"),u={name:"FeedTable",components:{Pagination:c["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{rowHeight:30,dialogFull:!1,isInforvalue:!1,isRoleEdit:[],download:{getdataListParm:{name:"getFeedList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fname:"",fclassid:"",source:"",autozone:"",autosecond:"",allowratio:"",printgroup:"",enable:""}},list:[]},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:["计划类型"]},{name:"getTMRListEnableTypeFeed",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),eqtype:"4"}}],requestParams2:{name:"getSysoptEnable",offset:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"isSmallMaterial"}},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:[],smallMaterialList:[],jmpList:[{id:"0",name:"否"},{id:"1",name:"是"}],table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFeedList",page:1,offset:1,pagecount:"",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:{printgroupid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],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:"30px",height:"30px"},cellStyle:{padding:"0px"},dropState:!1,isOrder:!0,myHeight:document.documentElement.clientHeight-85-150}},computed:{headers:function(){return{token:Object(d["a"])()}},uploadData:function(){return{name:"checkFeedName,checkProjectType, checkFeedCode, checkFeedType, importFeed,updateFeedSortByCode",importParams:"饲料名称,饲料类别,唯一编码,计划类型,包装单位重量,单价,允许误差数,跳转延时,确认开始,是否启用,继电器位置,无上域",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"",requiredParams:"饲料名称,饲料分类",numParams:""}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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(),this.getInforvalueList()},methods:{beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["饲料名称","饲料分类","唯一编码","计划类型","允许误差数(kg)","包装单位重量(kg)","单价","跳转重量域(kg)","跳转延时","确认开始","继电器位置","无上域","备用字段01","备用字段02","备用字段03","错误信息"],r=["饲料名称","饲料分类","唯一编码","计划类型","允许误差数(kg)","包装单位重量(kg)","单价","跳转重量域(kg)","跳转延时","确认开始","继电器位置","无上域","备用字段01","备用字段02","备用字段03","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"饲料表导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(p["d"])(e[t]):e[t]}))}))},handleExport:function(t){var e=this;1==t?(this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{obj1:"1、文件类型为xlsx类型,对应表格文件名格式为:文件名称.xlsx;"},{obj1:"2、底部工作表名称不可更改,默认为:Sheet1;"}],i=[{tHeader:["饲料名称","饲料分类","唯一编码","饲料来源","计划类型","允许误差数(kg)","包装单位重量(kg)","单价","跳转重量域(kg)","跳转延时","确认开始","继电器位置","无上域","备用字段01","备用字段02","备用字段03"],filterVal:["","","","","","","","","","","","","","","",""],tableDatas:e.download.list,sheetName:"Sheet1"},{tHeader:["填写规范:"],filterVal:["obj1"],tableDatas:a,sheetName:"Sheet2"}];Object(p["c"])(i,"饲料表导入模板",!0,"xlsx")}))):(this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["饲料名称","饲料分类","唯一编码","饲料来源","计划类型","允许误差数(kg)","包装单位重量(kg)","单价","跳转重量域(kg)","跳转延时","确认开始","继电器位置","无上域","备用字段01","备用字段02","备用字段03"],filterVal:["fname","fclass","feedcode","source","printgroup","allowratio","unitweight","uprice","autozone","autosecondnam","onfirmstartname","trgaddress","jmp","backup1","backup2","backup3"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(p["c"])(a,"饲料表",!0,"xlsx")})))},getButtons:function(){var t="FeedTable",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getInforvalueList:function(){var t=this;Object(r["c"])(this.requestParams2).then((function(e){null!==e.data?0==e.data.list[0].inforvalue?t.isInforvalue=!1:t.isInforvalue=!0:t.isInforvalue=!1}))},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.jumpDelayList=e.data.getDictByName.list,t.feedTypeList=e.data.getFeedclassByBig.list,t.planTypeList=e.data.getDictByName2.list,t.smallMaterialList=e.data.getTMRListEnableTypeFeed.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.$refs.table.reloadData(t.table.list),t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},tableScroll:function(t){t.scrollTop,t.scrollLeft,t.table,t.judgeFlse},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList(),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){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:"",jmp:"0"}},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},changeSmallMaterial:function(t){this.create.temp.smtmrname=""!==t?this.smallMaterialList.find((function(e){return e.id===t})).tname:""},handleCreate:function(){this.resetTemp(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var t=this;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+\.\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]|2[0-9]|3[0-9]|4[0-9]|(50)))$/;if(!s.test(parseFloat(t.create.temp.autozone)))return t.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于50的整数",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=/^[0-9]\d*$/;if(""!==t.create.temp.allowratio&&!l.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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):(t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),"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){this.create.dialogStatus="update",this.dialogFull=!1,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),t.jmp=String(t.jmp),""!==t.printgroupid&&(t.printgroup=this.planTypeList.find((function(e){return e.value==t.printgroupid})).label),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=""),"-1"==this.create.temp.smtmrid&&(this.create.temp.smtmrid="")},updateData:function(){var t=this;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+\.\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]|2[0-9]|3[0-9]|4[0-9]|(50)))$/;if(!s.test(parseFloat(t.create.temp.autozone)))return t.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于50的整数",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=/^[0-9]\d*$/;if(""!==t.create.temp.allowratio&&!l.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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):(t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),"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(){this.dialogFull=!1,this.feedBank.dialogStatus="feedBank",this.feedBank.dialogFormVisible=!0,this.getFeedBankList()},getFeedBankList:function(){var t=this;this.feedBank.listLoading=!0,Object(r["c"])(this.feedBank.getdataListParm).then((function(e){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(){this.getFeedBankList(),this.feedBank.getdataListParm.offset=1},handleFeedBankRefresh:function(){this.feedBank.getdataListParm.parammaps.fname="",this.feedBank.getdataListParm.parammaps.statue="",this.getFeedBankList()},handleRelation:function(t){this.dialogFull=!1,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["c"])(this.relation.getdataListParm).then((function(e){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(){this.relation.getdataListParm.offset=1,this.getRelationList()},disassociateData:function(t){var e=this;m["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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getRelationList(),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},relationData:function(t){var e=this;m["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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getRelationList(),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},handleNutritive:function(t){this.dialogFull=!1,this.nutritive.dialogStatus="nutritive",this.nutritive.dialogFormVisible=!0,this.nutritive.temp=Object.assign({},t)},nutritiveData:function(){var t=this;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)))&&(""===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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.nutritive.dialogFormVisible=!1):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))):(this.$message({type:"error",message:"请输入自然数,最多保留俩位小数",duration:2e3}),!1)},handleRowDelete:function(t){var e=this;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkDeleteFeed",type:"v",parammaps:{pastureid:t.pastureid,id:t.id}},e.requestParam.data[1]={name:"deleteFeed",type:"e",parammaps:{pastureid:t.pastureid,id:t.id}},Object(r["b"])(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){this.selectList=t},handleDelete:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择饲料表信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){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:"checkDeleteFeed",type:"v",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},t.requestParam.data[0].children[1]={name:"deleteFeed",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a+1,i.id=this.table.list[a].id,i.pastureid=this.table.list[a].pastureid,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"updateFeedSort",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",sort:"@insertSpotList.sort"}},Object(r["b"])(this.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(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.getList(),this.isOrder=!0},rowDrop:function(){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)}})}}},h=u,b=(a("d6e7"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"1379f8c4",null);e["default"]=g.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="M372 494H105c-22.1 0-40-17.9-40-40V187c0-22.1 17.9-40 40-40h267c22.1 0 40 17.9 40 40v267c0 22.1-17.9 40-40 40zM694.2 537.6L505.4 348.8c-15.6-15.6-15.6-40.9 0-56.6l188.8-188.8c15.6-15.6 40.9-15.6 56.6 0l188.8 188.8c15.6 15.6 15.6 40.9 0 56.6L750.8 537.6c-15.6 15.6-41 15.6-56.6 0zM372 960H105c-22.1 0-40-17.9-40-40V653c0-22.1 17.9-40 40-40h267c22.1 0 40 17.9 40 40v267c0 22.1-17.9 40-40 40zM856 960H589c-22.1 0-40-17.9-40-40V653c0-22.1 17.9-40 40-40h267c22.1 0 40 17.9 40 40v267c0 22.1-17.9 40-40 40z" p-id="217511" /></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},c12f:function(t,e,a){},c195:function(t,e,a){},c1dd:function(t,e,a){},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("h3",{staticClass:"tmrTitle"},[t._v("TMRWatch全混合日粮监管系统")]),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",color:"#fff"}},[t._v("欢迎您,"+t._s(t.employename))]),a("i",{staticClass:"el-icon-caret-bottom",staticStyle:{color:"#fff"}})]),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:"/changpwd/Changpwd"}},[a("el-dropdown-item",[t._v(" 修改密码 ")])],1)],1)],1)],1)])},o=[],c=a("1da1"),d=a("5530"),p=(a("96cf"),a("2f62")),m=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",fill:"#ffffff"}})])])},u=[],h={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},b=h,g=(a("8497"),a("2877")),f=Object(g["a"])(b,m,u,!1,null,"7d61ce6e",null),w=f.exports,y={components:{Hamburger:w},data:function(){return{sumAmount:"",meslist:""}},computed:Object(d["a"])({},Object(p["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)})))()}}},v=y,L=(a("5f89"),a("b8a0"),Object(g["a"])(v,n,o,!1,null,"706c2bcd",null)),x=L.exports,P=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,"unique-opened":!1,"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=[],_=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",{staticStyle:{"max-height":"100%","max-width":"100%"},attrs:{src:a("6c5b")}})])],1)],1)},S=[],C={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{}}},F=C,D=(a("5697"),Object(g["a"])(F,_,S,!1,null,"bcdf35be",null)),T=D.exports,O=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)},j=[],$=(a("4de4"),a("d3b7"),a("b0c0"),a("df7c")),R=a.n($),N=a("61f7"),E={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}},M=E,I=Object(g["a"])(M,i,s,!1,null,null,null),W=I.exports,q=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)},B=[],A={props:{to:{type:String,required:!0}},methods:{linkProps:function(t){return Object(N["a"])(t)?{is:"a",href:t,target:"_blank",rel:"noopener"}:{is:"router-link",to:t}}}},z=A,H=Object(g["a"])(z,q,B,!1,null,null,null),V=H.exports,U={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:W,AppLink:V},mixins:[U],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&&("Changpwd"!==e.name?(t.onlyOneChild=e,!0):void 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(N["a"])(t)?t:Object(N["a"])(this.basePath)?this.basePath:R.a.resolve(this.basePath,t)}}},Y=K,G=Object(g["a"])(Y,O,j,!1,null,null,null),J=G.exports,Q=a("cf1e"),Z=a.n(Q),X={components:{SidebarItem:J,Logo:T},computed:Object(d["a"])(Object(d["a"])({},Object(p["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,P,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("64e3"),a("028b"),Object(g["a"])(lt,it,st,!1,null,"0cdfcc60",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"}},[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=[],pt=a("b85c"),mt=a("2909"),ut=(a("159b"),a("99af"),a("fb6a"),a("ac1f"),a("5319"),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.apply(null,arguments)}}},[t._t("default")],2)}),ht=[],bt=(a("c740"),4),gt={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+bt,p=o.$el.offsetLeft-bt;d>i.scrollLeft+a?i.scrollLeft=d-a:p<i.scrollLeft&&(i.scrollLeft=p)}}}},ft=gt,wt=(a("8ff2"),Object(g["a"])(ft,ut,ht,!1,null,"2dda9ac4",null)),yt=wt.exports,vt={components:{ScrollPane:yt},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=R.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,e=this.affixTags=this.filterAffixTags(this.routes),a=Object(pt["a"])(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(s){a.e(s)}finally{a.f()}},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,i=Object(pt["a"])(e);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(s),s.to.fullPath!==t.$route.fullPath&&t.$store.dispatch("tagsView/updateVisitedView",t.$route);break}}}catch(r){i.e(r)}finally{i.f()}}))},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}}},Lt=vt,xt=(a("c310"),a("cfaa"),Object(g["a"])(Lt,ct,dt,!1,null,"0a1a2b1a",null)),Pt=xt.exports,kt=a("4360"),_t=document,St=_t.body,Ct=992,Ft={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&kt["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&&(kt["a"].dispatch("app/toggleDevice","mobile"),kt["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=St.getBoundingClientRect();return t.width-1<Ct},$_resizeHandler:function(){if(!document.hidden){var t=this.$_isMobile();kt["a"].dispatch("app/toggleDevice",t?"mobile":"desktop"),t&&kt["a"].dispatch("app/closeSideBar",{withoutAnimation:!0})}}}},Dt={name:"Layout",components:{Navbar:x,Sidebar:at,AppMain:ot,TagsView:Pt},mixins:[Ft],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})}}},Tt=Dt,Ot=(a("bc42"),Object(g["a"])(Tt,r,l,!1,null,"49412305",null));e["a"]=Ot.exports},c262: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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e()],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":"180px",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":"180px",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":"100px",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":"150px",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":"90px",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":"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.opratetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","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:{icon:"el-icon-search"},on:{click:function(e){return t.jumpSee(i)}}}),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=t.empid,icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{disabled:i.empid!=t.empid,icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):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:"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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate2}},[t._v("新增")]):t._e()],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":"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.opratetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"200","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:{icon:"el-icon-search"},on:{click:function(e){return t.jumpSee2(i)}}}),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("a",{staticClass:"correcting",attrs:{disabled:i.empid!=t.empid},on:{click:function(e){return t.jumpEdit2(i)}}},[t._v("修改图表")]):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData2(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel2(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=t.empid,icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate2(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{disabled:i.empid!=t.empid,icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete2(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData2(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel2(i)}}}):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("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.editDialogVisible=!1}}},[t._v("取消")]),a("el-button",{staticClass:"save",on:{click:t.handleSubmit}},[t._v(" 确认")])],1)],1)],1)},s=[],r=(a("d81d"),a("ac1f"),a("1276"),a("d3b7"),a("159b"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("00b4"),a("b0c0"),a("a434"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"BoardEchartManagement2",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:parseInt(n.a.get("pageCount")),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:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},cellStyle:{padding:"0px"},activeName:"first",isRoleEdit:[]}},created:function(){this.getList(),this.getList2(),this.getDownList(),this.getButtons(),"second"==this.$route.params.tab?this.activeName="second":this.activeName="first"},methods:{getButtons:function(){var t="BoardEchartManagement",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},handleClick:function(t,e){},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.roleList=e.data.getRoleAll.list}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){if(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,Object(r["c"])(this.table2.getdataListParm).then((function(e){if(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){},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleSearch2:function(){this.table2.getdataListParm.offset=1,this.getList2()},handleRefresh:function(){this.table.getdataListParm.parammaps.cname="",this.table.getdataListParm.parammaps.dname="",this.table.getdataListParm.parammaps.statue="",this.table.getdataListParm.offset=1,this.getList()},handleRefresh2:function(){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){this.table.temp.statueid=t,this.table.temp.statue=t},changeStatue2:function(t){this.table2.temp.statueid=t,this.table2.temp.statue=t},changeRole:function(t){var e=[];this.roleList.forEach((function(a){t.forEach((function(t){a.id==t&&e.push(a)}))})),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(e){t.$message({type:"success",message:t.$t("common.saveSuccess")}),t.editDialogVisible=!1,e.data.LastInsertId&&(t.$router.push({name:"Addboard",params:{id:e.data.LastInsertId,isEdit:"create"}}),n.a.set("AddboardIsEdit","create"),n.a.set("AddboardIsEditId",e.data.LastInsertId),localStorage.setItem("AddboardIsEditId",e.data.LastInsertId))}))},createData:function(t){var e=this;if(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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},createCancel:function(t){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){this.$router.push({name:"Addboard",params:{id:t.id,isEdit:"view",isRoleEdit:this.isRoleEdit}}),n.a.set("AddboardIsEdit","view"),n.a.set("AddboardIsEditId",t.id),localStorage.setItem("AddboardIsEditId",t.id)},jumpEdit:function(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){this.$router.push({name:"ChartPanel",params:{id:t.id,isEdit:"view",isRoleEdit:this.isRoleEdit}}),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){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){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),this.table.temp.statue=t.statue,this.table.temp.statueid=t.statueid,this.table.temp.parentname=t.parentname},handleUpdate2:function(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;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;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);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()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateData2:function(t){var e=this;if(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);var i={name:"updateChart",parammaps:this.table2.temp};Object(r["f"])(i).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList2()):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,t.rolenamesId=t.rolenamesId2B},updateCancel2:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1},handleRowDelete:function(t){var e=this;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,a={name:"getChartuseCount",parammaps:{pastureid:n.a.get("pastureid"),id:t.id}};Object(r["c"])(a).then((function(a){a.data.list[0].cou>0?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:"已取消删除"})})):(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())})))}))}}},p=d,m=(a("3a8c"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"64bb1374",null);e["default"]=u.exports},c310:function(t,e,a){"use strict";a("c86f")},c483: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=[],r=(a("a9e3"),a("09f4")),l={name:"Pagination2",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[12,24,36,48,60]}},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&&Object(r["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},n=l,o=(a("72aa"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"663a55c5",null);e["a"]=c.exports},c4aa: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-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:18}},[a("div",{staticClass:"search"},[a("el-select",{attrs:{placeholder:"查询日期"},on:{change:t.change_date_type},model:{value:t.tableObj.getDataParameters.parammaps.dateType,callback:function(e){t.$set(t.tableObj.getDataParameters.parammaps,"dateType",e)},expression:"tableObj.getDataParameters.parammaps.dateType"}},t._l(t.dateTypeList,(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.tableObj.getDataParameters.parammaps.type,callback:function(e){t.$set(t.tableObj.getDataParameters.parammaps,"type",e)},expression:"tableObj.getDataParameters.parammaps.type"}},t._l(t.typeList,(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:"维度"},on:{change:t.change_dimension},model:{value:t.tableObj.getDataParameters.parammaps.dimension,callback:function(e){t.$set(t.tableObj.getDataParameters.parammaps,"dimension",e)},expression:"tableObj.getDataParameters.parammaps.dimension"}},t._l(t.dimensionList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-cascader",{ref:"cascader1",staticStyle:{width:"400px"},attrs:{options:t.mixtureList,props:{multiple:!0,emitPath:!1},"show-all-levels":!1},on:{change:t.change_cascader1},model:{value:t.tableObj.getDataParameters.parammaps.mixture,callback:function(e){t.$set(t.tableObj.getDataParameters.parammaps,"mixture",e)},expression:"tableObj.getDataParameters.parammaps.mixture"}}),a("el-cascader",{ref:"cascader2",staticStyle:{width:"400px"},attrs:{options:t.spreadList,props:{multiple:!0,emitPath:!1},"show-all-levels":!1},on:{change:t.change_cascader2},model:{value:t.tableObj.getDataParameters.parammaps.spread,callback:function(e){t.$set(t.tableObj.getDataParameters.parammaps,"spread",e)},expression:"tableObj.getDataParameters.parammaps.spread"}}),a("el-button",{staticClass:"successBorder",on:{click:t.form_search}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.form_clear}},[t._v("重置")])],1),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.form_add_screening}},[t._v("添加筛选条件")]),a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.form_clear_screening}},[t._v("清空筛选条件")])],1),t.screeningVisible?a("div",[a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"筛选条件",clearable:""},on:{change:t.change_screening},model:{value:t.screeningObj.screeningCondition,callback:function(e){t.$set(t.screeningObj,"screeningCondition",e)},expression:"screeningObj.screeningCondition"}},t._l(t.screeningList,(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:"筛选字段",clearable:""},model:{value:t.screeningObj.screeningField,callback:function(e){t.$set(t.screeningObj,"screeningField",e)},expression:"screeningObj.screeningField"}}),a("el-select",{attrs:{placeholder:"筛选字段"},model:{value:t.screeningObj.screeningField,callback:function(e){t.$set(t.screeningObj,"screeningField",e)},expression:"screeningObj.screeningField"}},t._l(t.screeningFieldList1,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),a("el-select",{attrs:{placeholder:"筛选字段"},model:{value:t.screeningObj.screeningField,callback:function(e){t.$set(t.screeningObj,"screeningField",e)},expression:"screeningObj.screeningField"}},t._l(t.screeningFieldList2,(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.screeningObj.inputDatetime,callback:function(e){t.$set(t.screeningObj,"inputDatetime",e)},expression:"screeningObj.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:t.form_search_screening}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.form_cancel_screening}},[t._v("重置")])],1),a("div",[a("el-row",{attrs:{gutter:20}},t._l(t.screeningArr,(function(e,i){return a("el-col",{attrs:{span:6}},[a("span",{staticStyle:{"font-size":"14px",color:"#555"}},[t._v(t._s(i+1)+"、条件:"+t._s(e.txt))])])})),1)],1)]):t._e(),a("ChartTable"),a("div",["bar"==t.chartData.chartType?a("BarChart",{attrs:{"chart-data":t.chartData}}):t._e(),"line"==t.chartData.chartType?a("LineChart",{attrs:{"chart-data":t.chartData}}):t._e(),"horizontal_bar"==t.chartData.chartType?a("HorizontalBarChart",{attrs:{"chart-data":t.chartData}}):t._e(),"pie"==t.chartData.chartType?a("PieChart",{attrs:{"chart-data":t.chartData}}):t._e(),"line_bar"==t.chartData.chartType?a("LineBarChart",{attrs:{"chart-data":t.chartData}}):t._e()],1)],1),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"chart-style-panel"},[a("el-form",{attrs:{"label-position":"top",size:"mini"}},[a("el-form-item",{attrs:{label:"图表类型"}},[a("div",{staticClass:"chart-type-list"},t._l(t.chartTypeList,(function(e){return a("span",{staticStyle:{display:"inline-block",height:"30px",width:"30px","margin-right":"10px","margin-bottom":"10px"},on:{click:function(a){return t.switch_chart_type(e)}}},[a("el-tooltip",{attrs:{content:e.desc,placement:"top"}},[a("svg-icon",{staticClass:"icon",staticStyle:{height:"20px",width:"20px"},attrs:{"icon-class":e.isUse?e.icon:e.icon+"_disabled"}})],1)],1)})),0)])],1)],1)])],1)],1)},s=[],r=(a("d3b7"),a("159b"),a("99af"),a("313e"),a("b76a")),l=a.n(r),n=a("586f"),o=a("457e"),c=a("e53e"),d=a("9def"),p=a("77d0"),m=a("3b8b"),u=a("2934"),h=a("a78e"),b=a.n(h),g=a("333d");a("5c96");a("817d");var f={name:"ChartPanel2",components:{Pagination:g["a"],draggable:l.a,ChartTable:n["a"],LineChart:o["a"],BarChart:c["a"],HorizontalBarChart:d["a"],PieChart:p["a"],LineBarChart:m["a"]},data:function(){return{chartType:"line",chartTypeList:[{type:"line",desc:"折线图:任意维度数据",icon:"chart_line",isUse:!1,id:0},{type:"bar",desc:"柱状图:任意维度数据",icon:"chart_bar",isUse:!1,id:1},{type:"horizontal_bar",desc:"条形图:任意维度数据",icon:"horizontal_bar",isUse:!1,id:2},{type:"pie",desc:"饼图:任意维度数据",icon:"chart_pie",isUse:!1,id:3},{type:"line_bar",desc:"线柱图:任意维度数据",icon:"linebar_chart",isUse:!1,id:4}],isRoleEdit:[],dateTypeList:[{id:"汇总",name:"汇总"},{id:"分日",name:"分日"}],typeList:[{id:"车次",name:"车次"},{id:"栏舍",name:"栏舍"}],dimensionList:[{id:"栏舍",name:"栏舍"},{id:"配方",name:"配方"},{id:"班次",name:"班次"},{id:"车次",name:"车次"},{id:"TMR",name:"TMR"},{id:"牲畜大类",name:"牲畜大类"},{id:"牲畜小类",name:"牲畜小类"}],mixtureList:[],spreadList:[],mixtureSpreadArr1:[{value:"理论重量",label:"理论重量",children:[{value:"理论重量-合计",label:"理论重量-合计"},{value:"理论重量-平均",label:"理论重量-平均"},{value:"理论重量-最大值",label:"理论重量-最大值"},{value:"理论重量-最小值",label:"理论重量-最小值"},{value:"理论重量-标准差",label:"理论重量-标准差"},{value:"理论重量-变异系数",label:"理论重量-变异系数"}]},{value:"实际重量",label:"实际重量",children:[{value:"实际重量-合计",label:"实际重量-合计"},{value:"实际重量-平均",label:"实际重量-平均"},{value:"实际重量-最大值",label:"实际重量-最大值"},{value:"实际重量-最小值",label:"实际重量-最小值"},{value:"实际重量-标准差",label:"实际重量-标准差"},{value:"实际重量-变异系数",label:"实际重量-变异系数"}]},{value:"误差值",label:"误差值",children:[{value:"误差值-合计",label:"误差值-合计"},{value:"误差值-平均",label:"误差值-平均"},{value:"误差值-最大值",label:"误差值-最大值"},{value:"误差值-最小值",label:"误差值-最小值"},{value:"误差值-标准差",label:"误差值-标准差"},{value:"误差值-变异系数",label:"误差值-变异系数"}]},{value:"允许误差数",label:"允许误差数",children:[{value:"允许误差数-合计",label:"允许误差数-合计"},{value:"允许误差数-平均",label:"允许误差数-平均"},{value:"允许误差数-最大值",label:"允许误差数-最大值"},{value:"允许误差数-最小值",label:"允许误差数-最小值"},{value:"允许误差数-标准差",label:"允许误差数-标准差"},{value:"允许误差数-变异系数",label:"允许误差数-变异系数"}]},{value:"准确率-平均",label:"准确率-平均"},{value:"是否超出误差",label:"是否超出误差"}],mixtureSpreadArr2:[{value:"理论重量",label:"理论重量",children:[{value:"理论重量-合计",label:"理论重量-合计"},{value:"理论重量-平均",label:"理论重量-平均"},{value:"理论重量-最大值",label:"理论重量-最大值"},{value:"理论重量-最小值",label:"理论重量-最小值"},{value:"理论重量-标准差",label:"理论重量-标准差"},{value:"理论重量-变异系数",label:"理论重量-变异系数"}]},{value:"实际重量",label:"实际重量",children:[{value:"实际重量-合计",label:"实际重量-合计"},{value:"实际重量-平均",label:"实际重量-平均"},{value:"实际重量-最大值",label:"实际重量-最大值"},{value:"实际重量-最小值",label:"实际重量-最小值"},{value:"实际重量-标准差",label:"实际重量-标准差"},{value:"实际重量-变异系数",label:"实际重量-变异系数"}]},{value:"误差值",label:"误差值",children:[{value:"误差值-合计",label:"误差值-合计"},{value:"误差值-平均",label:"误差值-平均"},{value:"误差值-最大值",label:"误差值-最大值"},{value:"误差值-最小值",label:"误差值-最小值"},{value:"误差值-标准差",label:"误差值-标准差"},{value:"误差值-变异系数",label:"误差值-变异系数"}]},{value:"准确率-平均",label:"准确率-平均"}],mixtureSpreadArr3:[{value:"理论重量",label:"理论重量",children:[{value:"理论重量-合计",label:"理论重量-合计"},{value:"理论重量-平均",label:"理论重量-平均"},{value:"理论重量-最大值",label:"理论重量-最大值"},{value:"理论重量-最小值",label:"理论重量-最小值"},{value:"理论重量-标准差",label:"理论重量-标准差"},{value:"理论重量-变异系数",label:"理论重量-变异系数"}]},{value:"实际重量",label:"实际重量",children:[{value:"实际重量-合计",label:"实际重量-合计"},{value:"实际重量-平均",label:"实际重量-平均"},{value:"实际重量-最大值",label:"实际重量-最大值"},{value:"实际重量-最小值",label:"实际重量-最小值"},{value:"实际重量-标准差",label:"实际重量-标准差"},{value:"实际重量-变异系数",label:"实际重量-变异系数"}]},{value:"误差值",label:"误差值",children:[{value:"误差值-合计",label:"误差值-合计"},{value:"误差值-平均",label:"误差值-平均"},{value:"误差值-最大值",label:"误差值-最大值"},{value:"误差值-最小值",label:"误差值-最小值"},{value:"误差值-标准差",label:"误差值-标准差"},{value:"误差值-变异系数",label:"误差值-变异系数"}]},{value:"准确率-平均",label:"准确率-平均"},{value:"开始重量",label:"开始重量",children:[{value:"开始重量-合计",label:"开始重量-合计"},{value:"开始重量-平均",label:"开始重量-平均"},{value:"开始重量-最大值",label:"开始重量-最大值"},{value:"开始重量-最小值",label:"开始重量-最小值"},{value:"开始重量-标准差",label:"开始重量-标准差"},{value:"开始重量-变异系数",label:"开始重量-变异系数"}]},{value:"结束重量",label:"结束重量",children:[{value:"结束重量-合计",label:"结束重量-合计"},{value:"结束重量-平均",label:"结束重量-平均"},{value:"结束重量-最大值",label:"结束重量-最大值"},{value:"结束重量-最小值",label:"结束重量-最小值"},{value:"结束重量-标准差",label:"结束重量-标准差"},{value:"结束重量-变异系数",label:"结束重量-变异系数"}]}],mixtureSpreadArr4:[{value:"理论重量",label:"理论重量",children:[{value:"理论重量-合计",label:"理论重量-合计"},{value:"理论重量-平均",label:"理论重量-平均"},{value:"理论重量-最大值",label:"理论重量-最大值"},{value:"理论重量-最小值",label:"理论重量-最小值"},{value:"理论重量-标准差",label:"理论重量-标准差"},{value:"理论重量-变异系数",label:"理论重量-变异系数"}]},{value:"实际重量",label:"实际重量",children:[{value:"实际重量-合计",label:"实际重量-合计"},{value:"实际重量-平均",label:"实际重量-平均"},{value:"实际重量-最大值",label:"实际重量-最大值"},{value:"实际重量-最小值",label:"实际重量-最小值"},{value:"实际重量-标准差",label:"实际重量-标准差"},{value:"实际重量-变异系数",label:"实际重量-变异系数"}]},{value:"误差值",label:"误差值",children:[{value:"误差值-合计",label:"误差值-合计"},{value:"误差值-平均",label:"误差值-平均"},{value:"误差值-最大值",label:"误差值-最大值"},{value:"误差值-最小值",label:"误差值-最小值"},{value:"误差值-标准差",label:"误差值-标准差"},{value:"误差值-变异系数",label:"误差值-变异系数"}]},{value:"准确率-平均",label:"准确率-平均"},{value:"跳转方式",label:"跳转方式"},{value:"开始重量",label:"开始重量",children:[{value:"开始重量-合计",label:"开始重量-合计"},{value:"开始重量-平均",label:"开始重量-平均"},{value:"开始重量-最大值",label:"开始重量-最大值"},{value:"开始重量-最小值",label:"开始重量-最小值"},{value:"开始重量-标准差",label:"开始重量-标准差"},{value:"开始重量-变异系数",label:"开始重量-变异系数"}]},{value:"结束重量",label:"结束重量",children:[{value:"结束重量-合计",label:"结束重量-合计"},{value:"结束重量-平均",label:"结束重量-平均"},{value:"结束重量-最大值",label:"结束重量-最大值"},{value:"结束重量-最小值",label:"结束重量-最小值"},{value:"结束重量-标准差",label:"结束重量-标准差"},{value:"结束重量-变异系数",label:"结束重量-变异系数"}]},{value:"计划时间",label:"计划时间"},{value:"开始时间",label:"开始时间"},{value:"结束时间",label:"结束时间"},{value:"过程时间",label:"过程时间"}],mixtureSpreadArr5:[{value:"理论重量",label:"理论重量",children:[{value:"理论重量-合计",label:"理论重量-合计"},{value:"理论重量-平均",label:"理论重量-平均"},{value:"理论重量-最大值",label:"理论重量-最大值"},{value:"理论重量-最小值",label:"理论重量-最小值"},{value:"理论重量-标准差",label:"理论重量-标准差"},{value:"理论重量-变异系数",label:"理论重量-变异系数"}]},{value:"实际重量",label:"实际重量",children:[{value:"实际重量-合计",label:"实际重量-合计"},{value:"实际重量-平均",label:"实际重量-平均"},{value:"实际重量-最大值",label:"实际重量-最大值"},{value:"实际重量-最小值",label:"实际重量-最小值"},{value:"实际重量-标准差",label:"实际重量-标准差"},{value:"实际重量-变异系数",label:"实际重量-变异系数"}]},{value:"误差值",label:"误差值",children:[{value:"误差值-合计",label:"误差值-合计"},{value:"误差值-平均",label:"误差值-平均"},{value:"误差值-最大值",label:"误差值-最大值"},{value:"误差值-最小值",label:"误差值-最小值"},{value:"误差值-标准差",label:"误差值-标准差"},{value:"误差值-变异系数",label:"误差值-变异系数"}]},{value:"准确率-平均",label:"准确率-平均"}],mixScreenArr:[],spreadScreenArr:[],screeningVisible:!0,screeningList:[],screeningObj:{screeningCondition:"",screeningField:"",inputDatetime:"",startTime:"",stopTime:""},screeningArr:[],screeningFieldList1:[{id:"是",name:"是"},{id:"否",name:"否"}],screeningFieldList2:[{id:"自动",name:"自动"},{id:"手动",name:"手动"}],fieldTypeList:[{id:"配方A",name:"配方A"},{id:"配方B",name:"配方B"}],tableObj:{getDataParameters:{name:"getDriverList",page:1,offset:1,pagecount:parseInt(b.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:b.a.get("pastureid"),dateType:"",type:"",dimension:"",mixture:[],spread:[]}},tableKey:0,list:[],total:0,listLoading:!1,temp:{}},chartData:{chartType:null},chartLine_data2:{chartType:"pie",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr:["数据1","数据2","数据3","数据4","线条1"],dataArr:[1,10,7,0,1,7,7,6,4,4,1,6]},chartLine_data3:{chartType:"line_bar",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr1:["数据1","数据2","数据3","数据4"],dataArr1:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[2,10,3,2,10,4,4,9,3,9,3,8]],legendArr2:["数据5","线条1"],dataArr2:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6]]},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{getButtons:function(){var t="Driver",e=Object(u["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getList:function(){var t=this;this.tableObj.listLoading=!0,Object(u["c"])(this.tableObj.getDataParameters).then((function(e){if(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.tableObj.list=e.data.list,t.tableObj.pageNum=e.data.pageNum,t.tableObj.pageSize=e.data.pageSize,t.tableObj.total=e.data.total}else t.tableObj.list=[];setTimeout((function(){t.tableObj.listLoading=!1}),100)}))},form_search:function(){},form_clear:function(){},change_date_type:function(t){},change_dimension:function(t){this.tableObj.getDataParameters.parammaps.mixture=[],this.tableObj.getDataParameters.parammaps.spread=[],"栏舍"==t?(this.mixtureList=this.mixtureSpreadArr1,this.spreadList=this.mixtureSpreadArr1):"配方"==t?(this.mixtureList=this.mixtureSpreadArr2,this.spreadList=this.mixtureSpreadArr2):"班次"==t?(this.mixtureList=this.mixtureSpreadArr3,this.spreadList=this.mixtureSpreadArr3):"车次"==t?(this.mixtureList=this.mixtureSpreadArr4,this.spreadList=this.mixtureSpreadArr4):"牲畜大类"!=t&&"牲畜小类"!=t&&"TMR"!=t||(this.mixtureList=this.mixtureSpreadArr5,this.spreadList=this.mixtureSpreadArr5)},change_cascader1:function(t){var e=this.$refs["cascader1"].getCheckedNodes(),a=[];t.forEach((function(t){e.forEach((function(e){t==e.value&&a.push({name:"混料-"+e.label,id:e.value})}))}));var i=this.spreadScreenArr;this.mixScreenArr=a,this.screeningList=a.concat(i)},change_cascader2:function(t){var e=this.$refs["cascader2"].getCheckedNodes(),a=[];t.forEach((function(t){e.forEach((function(e){t==e.value&&a.push({name:"撒料-"+e.label,id:e.value})}))}));var i=this.mixScreenArr;this.spreadScreenArr=a,this.screeningList=i.concat(a)},change_screening:function(t){},handleCreate:function(){},form_search_screening:function(){var t=this.screeningObj.screeningCondition,e=this.screeningObj.screeningField,a={txt:t+e};this.screeningArr.push(a)},form_add_screening:function(){this.tableObj.getDataParameters.offset=1,this.getList()},form_clear_screening:function(){this.tableObj.getDataParameters.offset=1,this.getList()},form_cancel_screening:function(){this.tableObj.getDataParameters.offset=1,this.getList()},switch_chart_type:function(t){var e=this.chartTypeList;e.forEach((function(t){t.isUse=!1})),e[t.id].isUse=!0,this.chartType=t.type,this.chartTypeList=e,"line"==t.type?this.chartData={chartType:"line",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr:["数据1","数据2","数据3"],dataArr:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6]]}:"bar"==t.type?this.chartData={chartType:"bar",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr:["数据1","数据2","数据3"],dataArr:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6]]}:"horizontal_bar"==t.type?this.chartData={chartType:"horizontal_bar",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr:["数据1","数据2","数据3","数据4"],dataArr:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6]]}:"pie"==t.type?this.chartData={chartType:"pie",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr:["数据1","数据2","数据3","数据4","线条1"],dataArr:[1,10,7,0,1,7,7,6,4,4,1,6]}:"line_bar"==t.type&&(this.chartData={chartType:"line_bar",xAxisArr:["2019-01","2019-02","2019-03","2019-04","2019-05","2019-06","2019-07","2019-08","2019-09","2019-10","2019-11","2019-12"],legendArr1:["数据1","数据2","数据3","数据4"],dataArr1:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6],[2,10,3,2,10,4,4,9,3,9,3,8]],legendArr2:["数据5","线条1"],dataArr2:[[1,10,7,0,1,7,7,6,4,4,1,6],[1,10,7,0,1,7,7,6,4,4,1,6]]})}}},w=f,y=(a("823b"),a("2877")),v=Object(y["a"])(w,i,s,!1,null,"0aede170",null);e["default"]=v.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(t.myComponent,{ref:"detail",tag:"component"})},s=[],r=a("5530"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("2f62")),n=a("609a"),o=a("ab93"),c=a("a78e"),d=a.n(c),p={name:"Dashboard",components:{groupDashboard:n["default"],pastureDashboard:o["default"]},data:function(){return{myComponent:null}},computed:Object(r["a"])({},Object(l["b"])(["ispastureuse"])),mounted:function(){this.detailComponent()},methods:{detailComponent:function(){if("1"==d.a.get("ispastureuse")){var t=this,e=function(){return Promise.resolve().then(a.bind(null,"609a"))};return t.myComponent=e}var i=this;e=function(){return Promise.resolve().then(a.bind(null,"ab93"))};return i.myComponent=e}}},m=p,u=a("2877"),h=Object(u["a"])(m,i,s,!1,null,null,null);e["default"]=h.exports},c7d3:function(t,e,a){"use strict";a("bd25")},c86f:function(t,e,a){},c8ca:function(t,e,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},ca2c:function(t,e,a){"use strict";a("cb25")},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="M335.061333 804.48c0 16.981333 13.610667 30.72 30.506667 30.72h251.904a30.592 30.592 0 0 0 30.549333-30.72v-188.16H334.976v188.16z m509.866667-656.64H138.112a30.72 30.72 0 0 0-26.410667 46.08l212.48 360.96h334.805334l212.48-360.96a30.848 30.848 0 0 0-26.624-46.08z" p-id="210704" /></symbol>'});l.a.add(n);e["default"]=n},cafe:function(t,e,a){},cb1c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkY3Q0I2N0FFQzI3QTExRUJBMTA0QzcwM0IyMkY4ODJEIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkY3Q0I2N0FGQzI3QTExRUJBMTA0QzcwM0IyMkY4ODJEIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RjdDQjY3QUNDMjdBMTFFQkExMDRDNzAzQjIyRjg4MkQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RjdDQjY3QURDMjdBMTFFQkExMDRDNzAzQjIyRjg4MkQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4KlZMRAAACdUlEQVR42uyZwW7TQBCGZzemjWsi6jRF4n1AVIDEvVW59NozUl+hFSfOcAB6BwmqIniASjwIVdIkpU7i0Nq77EazYbKJkCC7jpEy0igbO87/ZX57156wb2dnQIJZr/bYR8gZ4/G2wAaLNzZWw7W1QzXeVlmHYqKr8jgdDJ532+2fFDiwKsWrYXgYRdF+rVYDznkhdEKIOEmSfSnlUL090JtMFTmCMRwHjLGdIuFGEEpLayrtPXR1zEUtruDOuEg4Cqm1kUGaDEj1NOAKLD5W0OKRzZyef+SiWWRQi+G/AGSWzYuOCi2cfTWwEgBOLBbc2lEWQGavJP8crz58BCElbG89gKhadT/9zPsFuRDw/eIC3n46hf5wWD7AHVW5zfV1aHa7XiDnBozCEJ493voNefLZKaSTNU1D7hrITscppLNF9zZCNhDynSNI7mOOsO9CSwHYT9PRRdK6vIS79TrsPnroZNrhruDeGLg4dgbnBHAKTp2HLifsuQGPT7+M4DY9wDlZ6irqTvheo+FtqZsbcO/pE7+PAlDyWAIuAZeAfwFonuavhBCFg6DmFeGYWUGZZdlJkiRQJKTW0ppK+z1YLTjaB9FEebvZfCGlDHu93n3GWFQEoNLrK7ivnVbrpWZAFgDSfjOAWZ7nSev8/EiNX6u8o7Lq8YFew+i72h8q2yoTzQCk/TYFqDLFA3ToZuKqZ0Ct0UPNdBbg2F6V1/ghHTd44C3aK3HpLOreYBW17gAZjM0TFucIkZLSB1g95gnQ6GaY1/ia2xUEYrH5ZZwkeAI0uoK4mBOLJ3rUkuwQpGpFdPmlpT/V5ZczDiiq4/XHvyF+CTAANukZdHAqVLgAAAAASUVORK5CYII="},cb25: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},cba0:function(t,e,a){},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="M472.1 136.7L105 551.8c-17.8 20.1-3.5 51.8 23.3 51.8h767.3c26.9 0 41.1-31.7 23.3-51.8l-367-415.1c-21.2-23.9-58.6-23.9-79.8 0z" p-id="189322" /><path d="M192 521.2v320c0 35.3 28.7 64 64 64h128c17.7 0 32-14.3 32-32v-192c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v192c0 17.7 14.3 32 32 32h128c35.3 0 64-28.7 64-64v-320H192z" p-id="189323" /></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="M344.304941 0c29.756235 0 53.910588 24.094118 53.910588 53.910588V913.167059a53.910588 53.910588 0 0 1-53.910588 53.910588H53.850353A53.910588 53.910588 0 0 1 0 913.167059V53.910588C0 24.094118 24.094118 0 53.850353 0h290.454588zM941.658353 0c29.756235 0 53.910588 24.094118 53.910588 53.910588v233.532236a53.910588 53.910588 0 0 1-53.910588 53.910588h-404.178824a53.850353 53.850353 0 0 1-53.910588-53.910588V53.910588c0-29.816471 24.094118-53.910588 53.910588-53.910588h404.178824zM941.658353 455.077647c29.756235 0 53.910588 24.094118 53.910588 53.910588v404.178824a53.910588 53.910588 0 0 1-53.910588 53.910588h-404.178824a53.850353 53.850353 0 0 1-53.910588-53.910588V508.988235c0-29.816471 24.094118-53.910588 53.910588-53.910588h404.178824z" p-id="198140" /></symbol>'});l.a.add(n);e["default"]=n},cd25: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",{staticClass:"save",staticStyle:{float:"right",margin:"0 10px 0 0"},attrs:{disabled:""==t.LastInsertId&&"create"==this.$route.params.id},on:{click:t.handleLinkDB}},[t._v("添加到仪表盘")]):t._e(),"edit"==this.$route.params.isEdit?a("el-button",{staticClass:"save",staticStyle:{float:"right",margin:"0 10px 0 0"},attrs:{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,"is-edit":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]))+" "),t.isRoleEdit?a("el-button",{attrs:{type:"text"},on:{click:function(e){t.editLimit=!0}}},[t._v(t._s(t.$t("common.edit")))]):t._e()],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",{staticClass:"miniPrimary",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),t.sonRefresh?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,messagechart:t.messagechart},on:{"update:chartType":function(e){t.chartType=e},"update:chart-type":function(e){t.chartType=e}}}):t._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",{staticStyle:{"text-align":"center"},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("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{right:"145px"},on:{click:function(e){t.showDashboards=!1}}},[t._v("取消")]),a("el-button",{staticClass:"save",on:{click:t.linkDb}},[t._v("添加到仪表盘")])],1)]),t._e()],1)},s=[],r=(a("99af"),a("d81d"),a("7db0"),a("d3b7"),a("ac1f"),a("5319"),a("3ca3"),a("ddb0"),a("1276"),a("b76a")),l=a.n(r),n=a("c24c"),o=a.n(n),c=(a("01d7"),a("2934")),d=a("ef81"),p=a("88fe"),m=a("4ab3"),u=a("e4fd"),h=a("a78e"),b=a.n(h),g=a("c638"),f=a("5fd4"),w=a("f77d"),y=a("ed08"),v=a("a5e0"),L=a("9225"),x=[{element:"#dataPanel",popover:{title:L["a"].t("guide.dataPanel"),description:L["a"].t("guide.dataPanelDesc"),position:"right"}},{element:"#formPanel",popover:{title:L["a"].t("guide.formPanel"),description:L["a"].t("guide.formPanelDesc"),position:"bottom"}},{element:"#dimensionInput",popover:{title:L["a"].t("guide.dimensionInput"),description:L["a"].t("guide.dimensionInputDesc"),position:"top"}},{element:"#fieldInput",popover:{title:L["a"].t("guide.fieldInput"),description:L["a"].t("guide.fieldInputDesc"),position:"bottom"}},{element:"#vizPanel",popover:{title:L["a"].t("guide.vizPanel"),description:L["a"].t("guide.vizPanelDesc"),position:"top"}}],P=x,k=a("3537"),_=new o.a,S={inject:["reload"],name:"ChartPanel",components:{visualizePanel:m["default"],dataPanel:u["default"],draggable:l.a,filterPanel:d["default"],orderPanel:p["default"]},data:function(){return{messagechart:"sryasdfadsf",isRoleEdit:[],sonRefresh:!0,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:"",isSaving:!1}},computed:{allSelected:function(){return k["a"].state.dimensions.concat(k["a"].state.caculCols).concat(k["a"].state.caculCols2)},sqlSentence:function(){return Object(v["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:{messagechart:function(t,e){},sqlSentence:function(t){t?this.fetchData(t):this.result=[]},"$route.params.id":{immediate:!0,handler:function(){var t=this;if("create"!==this.$route.params.id)if(this.$route.params.id){var e={name:"getChartDetail",parammaps:{pastureid:b.a.get("pastureid"),id:this.$route.params.id}};Object(c["c"])(e).then((function(e){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{e={name:"getChartDetail",parammaps:{pastureid:b.a.get("pastureid"),id:localStorage.getItem("ChartPanelIsEditId")}};Object(c["c"])(e).then((function(e){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 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(){this.isRoleEdit=this.$route.params.isRoleEdit},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:b.a.get("pastureid")};Object(c["a"])(i).then((function(t){null!==t.data&&Array.isArray(t.data)?(e.loading=!1,e.result=t.data):(e.loading=!1,e.result=[])}))},handleDataSrcChange:function(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){var e=this;t.added&&k["a"].addDimensionAction(t.added.element),t.moved&&(this.sonRefresh=!1,this.$nextTick((function(){e.sonRefresh=!0})))},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:b.a.get("pastureid"),empid:b.a.get("employeid"),emp:b.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:b.a.get("pastureid"),empid:b.a.get("employeid"),emp:b.a.get("employename"),content:a}};this.isSaving=!0,e?Object(c["f"])(s).then((function(e){"ok"==e.msg?t.$message({type:"success",message:t.$t("common.saveSuccess")}):t.$message({type:"error",message:"保存失败,请不要输入已有的图表名称!"})})):Object(c["f"])(i).then((function(e){"ok"==e.msg?(t.$message({type:"success",message:t.$t("common.saveSuccess")}),t.LastInsertId=e.data.LastInsertId):t.$message({type:"error",message:"保存失败,请不要输入已有的图表名称!"})}))}else this.$message({type:"warning",message:this.$t("chart.chartNameWarning")})},handleLinkDB:function(){var t=this;this.showDashboards=!0;var e={name:"getdashboards",parammaps:{pastureid:b.a.get("pastureid"),empid:b.a.get("employeid"),emp:b.a.get("employename")}};Object(c["j"])(e).then((function(e){t.dashboardList=e.data.list}))},getDbByChart:function(t){var e=this;Object(f["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;if(void 0==this.selectedDb)return this.$message({type:"error",message:"请选择仪表盘"}),!1;this.showDashboards=!1;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:b.a.get("pastureid")}};Object(c["f"])(a).then((function(e){"ok"==e.msg?t.$message({type:"success",message:t.$t("common.saveSuccess")}):t.$message({type:"error",message:"图表重复,保存失败"})}))},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&&(_.defineSteps(P),_.start())},handleDownload:function(){var t=this;Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).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(y["d"])(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)}))}))}}},C=S,F=(a("e860"),a("2877")),D=Object(F["a"])(C,i,s,!1,null,"06ceec34",null);e["default"]=D.exports},cef2:function(t,e,a){},cf1e:function(t,e,a){t.exports={menuText:"#333",menuActiveText:"#fff",menuActiveBg:"#009C69",subMenuActiveText:"#f4f4f5",menuBg:"#fff",menuHover:"#fff",subMenuBg:"#ededed",subMenuHover:"#009C69",sideBarWidth:"210px"}},cf47:function(t,e,a){"use strict";a("b1a6")},cfaa:function(t,e,a){"use strict";a("e1eb")},d05e:function(t,e,a){},d0e0:function(t,e,a){"use strict";a("dd38")},d152:function(t,e,a){"use strict";a("7c7a")},d15f: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:"form",attrs:{model:t.form,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"每日自动同步:"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-switch",{attrs:{disabled:""==t.form.cmo,"active-value":"1","inactive-value":"0","active-color":"#169bd5","inactive-color":"#8c8c8c"},on:{change:t.changeEnable},model:{value:t.form.delivery,callback:function(e){t.$set(t.form,"delivery",e)},expression:"form.delivery"}})],1),a("el-col",{attrs:{span:4}},[a("el-select",{attrs:{placeholder:"已对接公司"},on:{change:t.change_company},model:{value:t.form.cmo,callback:function(e){t.$set(t.form,"cmo",e)},expression:"form.cmo"}},t._l(t.companyArr,(function(t,e){return a("el-option",{key:e,attrs:{label:t.company,value:t.company}})})),1)],1)],1)],1),a("el-form-item",{attrs:{label:"同步内容:"}},[t._v(" 上传数据 "),a("el-radio-group",{on:{change:t.changeEnable},model:{value:t.form.type1,callback:function(e){t.$set(t.form,"type1",e)},expression:"form.type1"}},t._l(t.autoArr3,(function(e){return a("el-radio",{key:e.id,attrs:{disabled:""==t.form.cmo,label:e.id,value:e.name}},[t._v(t._s(e.name))])})),1),a("el-checkbox-group",{on:{change:function(e){return t.change_auto1("automatic","0",t.form.type2,t.myautoArr2)}},model:{value:t.form.type2,callback:function(e){t.$set(t.form,"type2",e)},expression:"form.type2"}},t._l(t.autoArr2,(function(e,i){return a("el-checkbox",{key:i,attrs:{label:e.name,value:e.name}},[t._v(t._s(e.name))])})),1)],1),a("el-divider"),a("el-form-item",{attrs:{label:"手动同步:"}},[a("el-button",{staticClass:"successBorder",attrs:{disabled:""==t.form.cmo},on:{click:t.handleSyncNow}},[t._v("立刻同步")])],1),a("el-form-item",{attrs:{label:"同步内容:"}},[t._v(" 下载数据 "),a("el-checkbox-group",{on:{change:function(e){return t.change_auto1("manual","1",t.form.type3,t.myautoArr3)}},model:{value:t.form.type3,callback:function(e){t.$set(t.form,"type3",e)},expression:"form.type3"}},t._l(t.autoArr1,(function(e,i){return a("el-checkbox",{key:i,attrs:{label:e.name,value:e.name}},[t._v(t._s(e.name))])})),1),t._v(" 上传数据 "),a("el-checkbox-group",{on:{change:function(e){return t.change_auto1("manual","0",t.form.type4,t.myautoArr2)}},model:{value:t.form.type4,callback:function(e){t.$set(t.form,"type4",e)},expression:"form.type4"}},t._l(t.autoArr2,(function(e,i){return a("el-checkbox",{key:e.index,attrs:{label:e.name,value:e.name}},[t._v(t._s(e.name))])})),1)],1)],1)],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=a("333d"),c={name:"DataSynchronization",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],companyArr:[],autoArr1:[],autoArr2:[],myautoArr2:[],autoArr3:[{id:"0",name:"每车次结束"},{id:"1",name:"每班次结束"},{id:"2",name:"每天计划完成后"}],time1:"",time2:"",time3:"",form:{cmo:"",name:"",region:"",date1:"",date2:"",delivery:"",type1:"",type2:[],type3:[],type4:[],resource:"",desc:""},table:{getdataListParm:{name:"getPastureList",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),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:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getCompanyList(),this.getButtons()},mounted:function(){},methods:{getButtons:function(){var t="RanchInformation",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},onSubmit:function(){},handleEnableChange:function(){},handleConfirmStartChange:function(){},change_time1:function(){},change_select:function(){},getCompanyList:function(){var t=this,e="authdata/GetDataByName",a={name:"getCompanyName"};Object(r["n"])(e,a).then((function(e){null!==e.data.list?t.companyArr=e.data.list:t.companyArr=[]}))},change_company:function(t){this.getUploadCheckedList(),this.getDownloadCheckedList(),this.getUploadRadioCheckedList()},getUploadCheckedList:function(){var t=this,e="authdata/GetDataByName",a={name:"getScheduledUpByCompany",parammaps:{}};a.parammaps.company=this.form.cmo,Object(r["n"])(e,a).then((function(e){if(null!==e.data.list){t.form.type2=[],t.autoArr2=[],t.myautoArr2=[];for(var a=0;a<e.data.list.length;a++){var i={};i.name=e.data.list[a].sname,t.autoArr2.push(i),t.myautoArr2.push(e.data.list[a]),1==e.data.list[a].automatic&&t.form.type2.push(e.data.list[a].sname),1==e.data.list[a].manual&&t.form.type4.push(e.data.list[a].sname)}}else t.companyArr=[]}))},getDownloadCheckedList:function(){var t=this,e="authdata/GetDataByName",a={name:"getScheduledDownByCompany",parammaps:{}};a.parammaps.company=this.form.cmo,Object(r["n"])(e,a).then((function(e){if(null!==e.data.list){t.form.type3=[],t.autoArr1=[],t.myautoArr3=[];for(var a=0;a<e.data.list.length;a++){var i={};i.name=e.data.list[a].sname,t.autoArr1.push(i),t.myautoArr3.push(e.data.list[a]),1==e.data.list[a].manual&&t.form.type3.push(e.data.list[a].sname)}}else t.companyArr=[]}))},getUploadRadioCheckedList:function(){var t=this,e="authdata/GetDataByName",a={name:"getScheduledUpStatusByCompany",parammaps:{}};a.parammaps.company=this.form.cmo,Object(r["n"])(e,a).then((function(e){null!==e.data.list?(t.form.type1=e.data.list[0].times,t.form.delivery=e.data.list[0].enable):(t.form.type1="",t.form.delivery="")}))},changeEnable:function(){var t=this,e="authdata/GetDataByName",a={name:"updateScheduledStatus",parammaps:{}};a.parammaps.company=this.form.cmo,a.parammaps.enable=this.form.delivery,a.parammaps.times=this.form.type1,Object(r["n"])(e,a).then((function(e){"ok"==e.msg?t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}):t.$notify({title:"失败",message:"保存失败",type:"success",duration:2e3})}))},change_auto1:function(t,e,a,i){for(var s=this,l=[],n=0;n<i.length;n++)for(var o=0;o<a.length;o++)i[n].sname==a[o]&&l.push(i[n].scheduledid);var c="authdata/scheduled/status/edit",d={};d.company=this.form.cmo,d.id=l,"automatic"==t?d.automatic="1":d.manual="1",d.type=e,Object(r["n"])(c,d).then((function(t){"ok"==t.msg?s.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}):s.$notify({title:"失败",message:"保存失败",type:"success",duration:2e3})}))},handleSyncNow:function(){var t=this,e="authdata/synchronizeNow",a={};a.company=this.form.cmo,Object(r["n"])(e,a).then((function(e){"ok"==e.msg?t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}):t.$notify({title:"失败",message:"保存失败",type:"success",duration:2e3})}))}}},d=c,p=a("2877"),m=Object(p["a"])(d,i,s,!1,null,"5f0da99a",null);e["default"]=m.exports},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="M1001.6 892.2l-78.3-78.3c166.9-227.3 118-546.9-109.3-713.8s-547-118-713.9 109.3C35.6 297.2 0.9 403.2 1 512.1c0 14.4 1 28.5 2.1 42.6 4.7-19.3 21.8-32.9 41.6-33.1h90.4l77.8-92.9c9.4-10.8 23.3-16.5 37.6-15.5 14.3 1.3 27.1 9.6 34.2 22.1l86 152.5L512 325.1c7.5-13.8 21.7-22.6 37.4-23 16-2 31.5 6.5 38.3 21.1l122.7 202.1 48.8-89.4c10.5-21.8 36.6-30.9 58.4-20.5 21.8 10.5 31 36.6 20.5 58.4-0.7 1.4-1.4 2.7-2.2 4.1L751.2 634c-11.5 21.2-38 29.1-59.2 17.6-6.8-3.7-12.6-9.2-16.6-15.8L553 434.1 410.1 699.2c-7.6 14.1-22.3 22.9-38.3 23h-0.3c-15.9 0.1-30.6-8.4-38.3-22.2l-93.6-166.6-50.3 60c-8.3 9.9-20.6 15.7-33.6 15.6H44.8c-15.8-0.1-30.3-8.9-37.8-22.9 40.2 278.6 298.6 471.8 577.2 431.6 86.1-12.4 167.6-46.7 236.8-99.5l77.4 77.4c28.5 28.5 74.7 28.5 103.2 0s28.5-74.7 0-103.2v-0.2z" p-id="209992" /></symbol>'});l.a.add(n);e["default"]=n},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"},[t._m(0),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:!1},model:{value:t.table.getdataListParm.parammaps.printType,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"printType",e)},expression:"table.getdataListParm.parammaps.printType"}},t._l(t.printingTypeList,(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:!1},model:{value:t.table.getdataListParm.parammaps.plandimen,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"plandimen",e)},expression:"table.getdataListParm.parammaps.plandimen"}},t._l(t.planningDimensionList,(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:!1},model:{value:t.table.getdataListParm.parammaps.enable3,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"enable3",e)},expression:"table.getdataListParm.parammaps.enable3"}},t._l(t.exportTypeList,(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:"TMR名称",clearable:!1},model:{value:t.table.getdataListParm.parammaps.tmrname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tmrname",e)},expression:"table.getdataListParm.parammaps.tmrname"}},t._l(t.tmrDownList,(function(t){return a("el-option",{key:t.tmrname,attrs:{label:t.tmrname,value:t.tmrtname}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"执行状态",clearable:!1},model:{value:t.table.getdataListParm.parammaps.iscompleted,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"iscompleted",e)},expression:"table.getdataListParm.parammaps.iscompleted"}},t._l(t.iscompletedList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.lable,value:t.value}})})),1),a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"},on:{click:t.handleExport}},[t._v("导出")]),a("el-button",{staticClass:"export",staticStyle:{"margin-left":"-5px"},on:{click:t.handleDeleteRecord}},[t._v("删除记录")])],1),a("div",{staticClass:"operation",staticStyle:{"margin-bottom":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新生成")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-edit-outline"},on:{click:t.handleRevisePlan}},[t._v("修改计划")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制计划")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{"margin-left":"10px",display:"inline-block"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v("生效")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v("禁用")]):t._e(),t.dataSynchronization.isDataSynchronization&&t.isRoleEdit?a("el-button",{staticClass:"success",on:{click:t.handleDataSynchronization}},[t._v("数据同步")]):t._e()],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:"parent",staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{id:"table1","element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-key":"sort","row-style":t.rowStyle,"cell-style":t.cellStyle,"row-class-name":t.tableRowClassName,height:370},on:{"row-click":t.tableRowClick,"selection-change":t.handleSelect}},[a("el-table-column",{attrs:{type:"selection","min-width":"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",prop:"sort",width:"50px"}}),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.projname))])]}}])}),a("el-table-column",{attrs:{label:"计划类型",prop:"weight","min-width":"90px",align:"center",formatter:t.lpplantype}}),a("el-table-column",{attrs:{label:"TMR编号","min-width":"90px",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":"80px",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":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.havebutton?a("span",[t._v("否")]):a("span",[t._v("是")])]}}])}),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.times))])]}}])}),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.lweight))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==t.dataDisabled?a("el-switch",{attrs:{disabled:1==e.row.havebutton,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(e.row)}},model:{value:e.row.enable,callback:function(a){t.$set(e.row,"enable",a)},expression:"scope.row.enable"}}):a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(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":"80px",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":"100px",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:"牛头数","min-width":"80px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cowcount))])]}}])}),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.display))])]}}])}),a("el-table-column",{attrs:{label:"发料位","min-width":"80px",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.barnames))])]}}])}),a("el-table-column",{attrs:{align:"center",width:"100",label:"操作","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:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}})]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1)]),4==t.table3.getdataListParm.parammaps.lpplantype?a("div",{staticClass:"content"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table2"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("计划详情")])]),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:"",border:"","highlight-current-row":"",height:"450","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod}},[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)}),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))])]}}],null,!1,4063637959)}),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))])]}}],null,!1,1766064422)}),a("el-table-column",{attrs:{label:"小计",prop:"description","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.subtotal))])]}}],null,!1,2868501184)})],1)],1)])])],1)],1):t._e(),0==t.table3.getdataListParm.parammaps.lpplantype?a("div",{staticClass:"content"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table2"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("计划详情")])]),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:"",border:"","highlight-current-row":"",height:"450","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod}},[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)}),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))])]}}],null,!1,4063637959)}),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))])]}}],null,!1,1766064422)}),a("el-table-column",{attrs:{label:"小计",prop:"description","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.subtotal))])]}}],null,!1,2868501184)})],1)],1)])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table3"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("栏舍详情")])]),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:"",border:"","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))])]}}],null,!1,753807644)}),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)",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))])]}}],null,!1,1766064422)})],1)],1)])])],1)],1):t._e(),3==t.table3.getdataListParm.parammaps.lpplantype?a("div",{staticClass:"content"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table2"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("计划详情")])]),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:"",border:"","highlight-current-row":"",height:"450","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod}},[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)}),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))])]}}],null,!1,4063637959)}),a("el-table-column",{attrs:{label:"处理方式",prop:"useinbar","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.useinbar))])]}}],null,!1,540468947)}),a("el-table-column",{attrs:{label:"小计",prop:"description","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.subtotal))])]}}],null,!1,2868501184)})],1)],1)])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table3"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("栏舍详情")])]),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:"",border:"","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))])]}}],null,!1,753807644)}),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)})],1)],1)])])],1)],1):t._e(),1==t.table3.getdataListParm.parammaps.lpplantype||5==t.table3.getdataListParm.parammaps.lpplantype?a("div",{staticClass:"content"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table2"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("计划详情")])]),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:"",border:"","highlight-current-row":"",height:"450","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod}},[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)}),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))])]}}],null,!1,4063637959)}),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))])]}}],null,!1,1766064422)}),a("el-table-column",{attrs:{label:"小计",prop:"description","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.subtotal))])]}}],null,!1,2868501184)})],1)],1)])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table3"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("栏舍详情")])]),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:"",border:"","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))])]}}],null,!1,753807644)}),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.weight))])]}}],null,!1,1766064422)})],1)],1)])])],1)],1):t._e(),2==t.table3.getdataListParm.parammaps.lpplantype?a("div",{staticClass:"content"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table3"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("栏舍详情")])]),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:"",border:"","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))])]}}],null,!1,753807644)}),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.weight))])]}}],null,!1,1766064422)}),a("el-table-column",{attrs:{label:"小计",prop:"description","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.subtotal))])]}}],null,!1,2868501184)})],1)],1)])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"table2"},[a("div",{staticClass:"contentOperation"},[a("p",[t._v("计划详情")])]),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:"",border:"","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))])]}}],null,!1,753807644)}),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))])]}}],null,!1,4063637959)}),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))])]}}],null,!1,1766064422)})],1)],1)])])],1)],1):t._e(),a("el-dialog",{attrs:{title:t.textMap[t.newGeneration.dialogStatus],"destroy-on-close":!0,visible:t.newGeneration.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(e){return t.$set(t.newGeneration,"dialogFormVisible",e)}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.newGenerationLoading,expression:"newGenerationLoading"}],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":"100px"}},["newGeneration"==t.newGeneration.dialogStatus?a("el-row",[a("el-col",{attrs:{span:24}},[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,"picker-options":t.pickerOptions2},model:{value:t.newGeneration.temp.inputDatetime,callback:function(e){t.$set(t.newGeneration.temp,"inputDatetime",e)},expression:"newGeneration.temp.inputDatetime"}})],1)],1)],1):a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"时间范围:",prop:"copyInputDatetime"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"100%"},attrs:{"picker-options":t.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:t.newGeneration.temp.copyInputDatetime,callback:function(e){t.$set(t.newGeneration.temp,"copyInputDatetime",e)},expression:"newGeneration.temp.copyInputDatetime"}})],1)],1)],1),1==t.newGeneration.temp.tips?a("p",{staticStyle:{"font-weight":"700",color:"red","text-align":"center"}},[t._v("注:撒料计划中存在未分配完栏舍,如下所示;建议及时进行分配")]):t._e(),a("div",{staticStyle:{height:"200px",overflow:"auto"}},[1==t.myMaxTimes?a("div",[a("div",[t._v("第一班:")]),t._l(t.tipsList.one,(function(e,i){return a("div",{key:i+"A"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"a"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])}))],2):2==t.myMaxTimes?a("div",[a("div",[t._v("第一班:")]),t._l(t.tipsList.one,(function(e,i){return a("div",{key:i+"B"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"b"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])})),a("div",[t._v("第二班:")]),t._l(t.tipsList.two,(function(e,i){return a("div",{key:i+"C"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"c"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])}))],2):3==t.myMaxTimes?a("div",[a("div",[t._v("第一班:")]),t._l(t.tipsList.one,(function(e,i){return a("div",{key:i+"D"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"d"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])})),a("div",[t._v("第二班:")]),t._l(t.tipsList.two,(function(e,i){return a("div",{key:i+"E"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"e"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])})),a("div",[t._v("第三班:")]),t._l(t.tipsList.three,(function(e,i){return a("div",{key:i+"F"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"f"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])}))],2):a("div",[a("div",[t._v("第一班:")]),t._l(t.tipsList.one,(function(e,i){return a("div",{key:i+"G"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"g"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])})),a("div",[t._v("第二班:")]),t._l(t.tipsList.two,(function(e,i){return a("div",{key:i+"H"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"h"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])})),a("div",[t._v("第三班:")]),t._l(t.tipsList.three,(function(e,i){return a("div",{key:i+"I"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"i"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])})),a("div",[t._v("第四班:")]),t._l(t.tipsList.four,(function(e,i){return a("div",{key:i+"J"},[null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("b",[t._v(t._s(e.ftname)+":")]):t._e(),null!==e.arrList&&void 0!==e.arrList&&e.arrList.length>0?a("span",t._l(e.arrList,(function(e,i){return a("span",{key:i+"j"},[t._v(" "+t._s(e.barname)+" ")])})),0):t._e()])}))],2)])],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"20px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.newGeneration.dialogFormVisible=!1,t.getList()}}},[t._v("取消")]),"newGeneration"==t.newGeneration.dialogStatus?a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.newGenerationData()}}},[t._v("确认")]):a("el-button",{staticClass:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){return t.copyData()}}},[t._v("确认")])],1)],1)]),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.historyRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.historyRecord,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.historyRecord.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"historyRecord"},[a("keep-alive",[a(t.historyRecord.myComponent,{ref:"historyRecord",tag:"component"})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.historyRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2),a("el-dialog",{attrs:{"destroy-on-close":!0,visible:t.dataSynchronization.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(e){return t.$set(t.dataSynchronization,"dialogFormVisible",e)}}},[a("div",{staticClass:"dataSynchronization",staticStyle:{"text-align":"center","font-size":"18px"}},[a("i",{staticClass:"el-icon-loading"}),a("span",[t._v("正在同步")]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniPrimary",on:{click:function(e){t.dataSynchronization.dialogFormVisible=!1}}},[t._v("确认")])],1)])]),a("RevisePlan",{attrs:{show:t.isShowDialog,"parent-active-name":t.activeName,"parent-date":t.parentDate},on:{"update:show":function(e){t.isShowDialog=e}}}),a("el-dialog",{attrs:{title:t.textMap[t.deleteRecord.dialogStatus],"destroy-on-close":!0,visible:t.deleteRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.deleteRecord,"dialogFormVisible",e)}}},[a("div",{staticClass:"deleteRecord"},[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.changeDeleteRecordDate},model:{value:t.deleteRecord.mydate,callback:function(e){t.$set(t.deleteRecord,"mydate",e)},expression:"deleteRecord.mydate"}})],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.deleteRecord.listLoading,expression:"deleteRecord.listLoading"}],key:t.deleteRecord.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.deleteRecord.list,border:"",fit:"","highlight-current-row":"","row-key":"sort","row-style":t.rowStyle,"cell-style":t.cellStyle,height:370}},[a("el-table-column",{attrs:{label:"序号",align:"center",prop:"sort",width:"50px"}}),a("el-table-column",{attrs:{label:"计划名称","min-width":"90px",align:"center",prop:"projname"}}),a("el-table-column",{attrs:{label:"计划类型",prop:"weight","min-width":"90px",align:"center",formatter:t.lpplantype}}),a("el-table-column",{attrs:{label:"TMR编号","min-width":"90px",align:"center",prop:"tmrtname"}}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"90px",align:"center",prop:"driver"}}),a("el-table-column",{attrs:{label:"已执行","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.havebutton?a("span",[t._v("否")]):a("span",[t._v("是")])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"80px",align:"center",prop:"times"}}),a("el-table-column",{attrs:{label:"理论量","min-width":"80px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"启用","min-width":"70px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[(t.dataDisabled,a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return t.handleEnableChange(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":"80px",align:"center",prop:"plantime"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"100px",align:"center",prop:"ftname"}}),a("el-table-column",{attrs:{label:"牛头数","min-width":"80px",align:"center",prop:"cowcount"}}),a("el-table-column",{attrs:{label:"描述","min-width":"80px",align:"center",prop:"display"}}),a("el-table-column",{attrs:{label:"发料位","min-width":"80px",align:"left",prop:"barnames"}})],1),0==t.deleteRecord.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.deleteRecord.total)+"条")]):t._e()],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"20px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose1",on:{click:function(e){t.deleteRecord.dialogFormVisible=!1,t.getList()}}},[t._v("取消")])],1)])])],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"recipeTemplate"},[a("p",[t._v("日执行计划")])])}],r=a("2909"),l=(a("b0c0"),a("4e82"),a("b680"),a("ac1f"),a("1276"),a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("a434"),a("99af"),a("159b"),a("2934")),n=a("7d24"),o=a("ed08"),c=a("a78e"),d=a.n(c),p=a("aa47"),m=a("5c96"),u={name:"DailyExecutionPlan",components:{RevisePlan:n["default"]},data:function(){var t=this;return{newGenerationLoading:!1,dialogFull:!1,isRoleEdit:[],dataDisabled:!1,requestParams:[],planTypeList:[{lable:"预混计划",value:"4"},{lable:"撒料计划",value:"0"},{lable:"剩料计划",value:"3"},{lable:"撒料计划-混料",value:"1"},{lable:"撒料计划-撒料",value:"2"},{lable:"预称重计划",value:"5"}],printingTypeList:[{lable:"精料",value:"1"},{lable:"铲车",value:"2"}],frequencyList:[],planningDimensionList:[{lable:"发料顺序",value:"0"},{lable:"TMR",value:"1"}],exportTypeList:[{lable:"投料简打",value:"0"},{lable:"累加投料",value:"1"},{lable:"撒料简打",value:"2"},{lable:"投撒料简打",value:"3"},{lable:"投撒料累加",value:"4"},{lable:"包装简打",value:"5"},{lable:"实发简打",value:"6"}],iscompletedList:[{lable:"是",value:"1"},{lable:"否",value:"0"}],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inforname:"times"}}},isOrder:!0,table:{getdataListParm:{name:"getDownloadedplanList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),barid:"",mydate:Object(o["d"])(new Date,"{y}-{m}-{d}"),times:"",lpplantype:"",printType:"",plandimen:"0",enable3:"0",iscompleted:"",tmrname:""}},tableKey:0,list:[],total:0,listLoading:!1},table2:{getdataListParm:{name:"getDownloadplandtl1ListV2",page:1,offset:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),date:"",id:""}},tableKey:0,list:[],total:0,listLoading:!1},table3:{getdataListParm:{name:"getDownloadplandt2ListV2",page:1,offset:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),date:"",id:""}},tableKey:0,list:[],total:0,listLoading:!1},newGeneration:{dialogFormVisible:!1,dialogStatus:"",getdataListParm:{name:"checkLLPIsDistribution",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},temp:{inputDatetime:[Object(o["d"])(new Date,"{y}-{m}-{d}"),Object(o["d"])(new Date,"{y}-{m}-{d}")],tips:""},rules:{inputDatetime:[{type:"array",required:!0,message:"必填",trigger:"blur"}],copyInputDatetime:[{type:"array",required:!0,message:"必填",trigger:"blur"}]}},pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate,s=t.pickerMinDate+a;return e.getTime()<i||e.getTime()>s-864e5}return e.getTime()<Date.now()-864e5}},pickerOptions2:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=12096e5,i=t.pickerMinDate,s=t.pickerMinDate+a;return e.getTime()<i||e.getTime()>s-864e5}return e.getTime()<Date.now()-864e5}},historyRecord:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},dataSynchronization:{dialogFormVisible:!1,dialogStatus:"",getdataListParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inforname:"isDataSync"}},isDataSynchronization:!1},textMap:{newGeneration:"新生成",historyRecord:"历史记录",revisePlan:"修改计划",copy:"复制计划",deleteRecord:"删除记录"},isokDisable:!1,requestParam:{},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},isShowDialog:!1,activeName:"栏舍配方",parentDate:"",downLoad:{getdataListParm:{name:"",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),date:""}},list:[],labelList:[]},tmrDownList:[],getTmrListParam:{name:"getDownloadedplanTmrNameUnfinished",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),mydate:Object(o["d"])(new Date,"{y}-{m}-{d}")}},myMaxTimes:"",tipsList:[],spanObj:{},mergekeys:["sort","description"],deleteRecord:{dialogFormVisible:!1,dialogStatus:"",total:0,tableKey:0,listLoading:!1,list:[],mydate:Object(o["d"])(new Date,"{y}-{m}-{d}")},selectList:[]}},created:function(){this.parentDate=this.table.getdataListParm.parammaps.mydate,this.getDataSynchronization(),this.getButtons(),this.getList(),this.getDownList(),this.getIsDisplay(),this.getTMRList()},mounted:function(){this.getTmrListParam.parammaps.mydate=Object(o["d"])(new Date,"{y}-{m}-{d}")},methods:{getTMRList:function(){var t=this;this.getTmrListParam.parammaps.mydate=this.table.getdataListParm.parammaps.mydate,Object(l["c"])(this.getTmrListParam).then((function(e){null!==e.data.list&&(t.tmrDownList=e.data.list)}))},getButtons:function(){var t="DailyExecutionPlan",e=Object(l["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDataSynchronization:function(){var t=this;Object(l["c"])(this.dataSynchronization.getdataListParm).then((function(e){0==e.data.list[0].inforvalue?t.dataSynchronization.isDataSynchronization=!1:t.dataSynchronization.isDataSynchronization=!0}))},getIsDisplay:function(){var t=this;Object(l["c"])(this.maxTime.getMaxTimesParm).then((function(e){t.myMaxTimes=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(l["d"])(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(o["d"])(t,"{y}-{m}-{d}"),this.parentDate=this.table.getdataListParm.parammaps.mydate,this.getTMRList(),this.getList()}var e=this.table.getdataListParm.parammaps.mydate,a=Object(o["d"])(new Date,"{y}-{m}-{d}");this.dataDisabled=e<a},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(o["d"])(t,"{y}-{m}-{d}"),this.parentDate=this.table.getdataListParm.parammaps.mydate,this.getTMRList(),this.getList()}var e=this.table.getdataListParm.parammaps.mydate,a=Object(o["d"])(new Date,"{y}-{m}-{d}");this.dataDisabled=e<a},getList:function(){var t=this;this.table.listLoading=!0,Object(l["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.getIsColor(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,0==e.data.list[0].lpplantype||1==e.data.list[0].lpplantype?(t.table2.getdataListParm.name="getDownloadplandtl1ListV2",t.table3.getdataListParm.name="getDownloadplandt2ListV2",t.table2.getdataListParm.parammaps.useinbartype="",t.table3.getdataListParm.parammaps.useinbartype="",t.table2.getdataListParm.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.table3.getdataListParm.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.lpplantype=e.data.list[0].lpplantype,t.getList2(),t.getList3()):2==e.data.list[0].lpplantype?(t.table2.getdataListParm.name="getDownloadplandt2ListV2",t.table3.getdataListParm.name="getDownloadplandtl1ListV2",t.table2.getdataListParm.parammaps.useinbartype="",t.table3.getdataListParm.parammaps.useinbartype="",t.table2.getdataListParm.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.table3.getdataListParm.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.lpplantype=e.data.list[0].lpplantype,t.getList2(),t.getList3()):3==e.data.list[0].lpplantype?(t.table2.getdataListParm.name="getDownloadplandt2ListV2",t.table3.getdataListParm.name="getDownloadplandt2ListV2",t.table2.getdataListParm.parammaps.useinbartype=0,t.table3.getdataListParm.parammaps.useinbartype=1,t.table2.getdataListParm.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.table3.getdataListParm.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.lpplantype=e.data.list[0].lpplantype,t.getList2(),t.getList3()):4==e.data.list[0].lpplantype?(t.table2.getdataListParm.name="getDownloadplandtl1ListV2",t.table2.getdataListParm.parammaps.useinbartype="",t.table3.getdataListParm.parammaps.useinbartype="",t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.lpplantype=e.data.list[0].lpplantype,t.getList2()):5==e.data.list[0].lpplantype&&(t.table2.getdataListParm.name="getDownloadplandtl1ListV2",t.table3.getdataListParm.name="getDownloadplandt2ListV2",t.table2.getdataListParm.parammaps.useinbartype="",t.table3.getdataListParm.parammaps.useinbartype="",t.table2.getdataListParm.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.table3.getdataListParm.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.id=e.data.list[0].id,t.table3.getdataListParm.parammaps.lpplantype=e.data.list[0].lpplantype,t.getList2(),t.getList3())):(t.table.list=[],t.table3.getdataListParm.parammaps.lpplantype="",t.table2.getdataListParm.parammaps.id="",t.table3.getdataListParm.parammaps.id="",t.table2.list=[],t.table3.list=[]),setTimeout((function(){t.table.listLoading=!1}),100)}))},handleEnableChange:function(t){var e=this;this.requestParam.name="updatedownloadenable",this.requestParam.parammaps={},this.requestParam.parammaps.pastureid=t.pastureid,this.requestParam.parammaps.id=t.id,this.requestParam.parammaps.enable=t.enable,Object(l["f"])(this.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())}))},getIsColor:function(t){for(var e={},a=[],i=0;i<t.length;i++){var s=t[i];if(e[s.pid])for(var r=0;r<a.length;r++){var l=a[r];if(l.pid==s.pid){l.data.push(s);break}}else a.push({pid:s.pid,data:[s]}),e[s.pid]=s}var n=[];for(i=0;i<a.length;i++)for(a[i].data,r=0;r<a[i].data.length;r++)a[i].data[r].isColor=i,n.push(a[i].data[r]);this.table.list=n},tableRowClassName:function(t){var e=t.row;return e.isColor%2==0?"warning-row":"success-row"},lpplantype:function(t){return 0==t.lpplantype?"撒料计划":1==t.lpplantype?"撒料计划-混料":2==t.lpplantype?"撒料计划-撒料":3==t.lpplantype?"剩料计划":4==t.lpplantype?"预混计划":5==t.lpplantype?"预称重计划":void 0},changeDate:function(t){this.getList();var e=this.table.getdataListParm.parammaps.mydate,a=Object(o["d"])(new Date,"{y}-{m}-{d}");this.dataDisabled=e<a,this.parentDate=this.table.getdataListParm.parammaps.mydate},changePlanType:function(t){this.getList(),this.getList2(),this.getList3()},changeFrequency:function(t){this.getList(),this.getList2(),this.getList3()},tableRowClick:function(t,e,a){0==t.lpplantype||1==t.lpplantype?(this.table2.getdataListParm.name="getDownloadplandtl1ListV2",this.table3.getdataListParm.name="getDownloadplandt2ListV2",this.table2.getdataListParm.parammaps.useinbartype="",this.table3.getdataListParm.parammaps.useinbartype="",this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table2.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.lpplantype=t.lpplantype,this.getList2(),this.getList3()):2==t.lpplantype?(this.table2.getdataListParm.name="getDownloadplandt2ListV2",this.table3.getdataListParm.name="getDownloadplandtl1ListV2",this.table2.getdataListParm.parammaps.useinbartype="",this.table3.getdataListParm.parammaps.useinbartype="",this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table2.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.lpplantype=t.lpplantype,this.getList2(),this.getList3()):3==t.lpplantype?(this.table2.getdataListParm.name="getDownloadplandt2ListV2",this.table3.getdataListParm.name="getDownloadplandt2ListV2",this.table2.getdataListParm.parammaps.useinbartype=0,this.table3.getdataListParm.parammaps.useinbartype=1,this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table2.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.lpplantype=t.lpplantype,this.getList2(),this.getList3()):4==t.lpplantype?(this.table2.getdataListParm.name="getDownloadplandtl1ListV2",this.table3.getdataListParm.name="getDownloadplandt2ListV2",this.table2.getdataListParm.parammaps.useinbartype="",this.table3.getdataListParm.parammaps.useinbartype="",this.table2.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.lpplantype=t.lpplantype,this.getList2()):5==t.lpplantype&&(this.table2.getdataListParm.name="getDownloadplandtl1ListV2",this.table3.getdataListParm.name="getDownloadplandt2ListV2",this.table2.getdataListParm.parammaps.useinbartype="",this.table3.getdataListParm.parammaps.useinbartype="",this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table2.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.lpplantype=t.lpplantype,this.getList2(),this.getList3()),this.$forceUpdate()},getList2:function(){var t=this;this.table2.listLoading=!0,this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,Object(l["c"])(this.table2.getdataListParm).then((function(e){if(null!==e.data.list){if(t.table2.list=e.data.list,0==t.table3.getdataListParm.parammaps.lpplantype||1==t.table3.getdataListParm.parammaps.lpplantype||4==t.table3.getdataListParm.parammaps.lpplantype){for(var a=[],i=t.table2.list[0].sort,s=0,r=0;r<t.table2.list.length;r++)i!==parseInt(t.table2.list[r].sort)&&(i=t.table2.list[r].sort,0),parseFloat(t.table2.list[r].weight),s+=parseFloat(t.table2.list[r].weight),a.push(t.table2.list[r]);a.push({sort:"总计",weight:s.toFixed(parseInt(d.a.get("decimal")))}),t.table2.list=a}if(2==t.table3.getdataListParm.parammaps.lpplantype){for(var l=[],n=t.table2.list[0].sort,o=0,c=0;c<t.table2.list.length;c++)n!==parseInt(t.table2.list[c].sort)&&(n=t.table2.list[c].sort,0),parseFloat(t.table2.list[c].weight),o+=parseFloat(t.table2.list[c].weight),l.push(t.table2.list[c]);l.push({sort:"总计",weight:o.toFixed(parseInt(d.a.get("decimal")))}),t.table2.list=l}t.table2.pageNum=e.data.pageNum,t.table2.pageSize=e.data.pageSize,t.table2.total=e.data.total}else t.table2.list=[];t.handleSpan(),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(l["c"])(this.table3.getdataListParm).then((function(e){if(null!==e.data.list){if(t.table3.list=e.data.list,0==t.table3.getdataListParm.parammaps.lpplantype){for(var a=[],i=t.table3.list[0].sort,s=0,r=0;r<t.table3.list.length;r++)i!==parseInt(t.table3.list[r].sort)&&(i=t.table3.list[r].sort,0),parseFloat(t.table3.list[r].weight),s+=parseFloat(t.table3.list[r].weight),a.push(t.table3.list[r]);a.push({sort:"总计",weight:s.toFixed(parseInt(d.a.get("decimal")))}),t.table3.list=a}t.table3.pageNum=e.data.pageNum,t.table3.pageSize=e.data.pageSize,t.table3.total=e.data.total}else t.table3.list=[];setTimeout((function(){t.table3.listLoading=!1}),100)}))},handleCreate:function(){var t=this;this.newGeneration.temp.inputDatetime=[Object(o["d"])(new Date,"{y}-{m}-{d}"),Object(o["d"])(new Date,"{y}-{m}-{d}")],Object(l["c"])(this.newGeneration.getdataListParm).then((function(e){null!==e.data.list&&("存在未分配"==e.data.list[0].vmsg?(t.newGeneration.temp.tips=!0,t.$message({type:"warning",message:"撒料计划中存在未分配完栏舍,建议及时进行分配",duration:2e3}),t.getTips()):(t.newGeneration.temp.tips=!1,t.newGeneration.dialogStatus="newGeneration",t.newGeneration.dialogFormVisible=!0))}))},getTips:function(){var t=this,e="authdata/feedp/undistribute",a={};a.times=this.myMaxTimes,a.pastureid=d.a.get("pastureid"),this.tipsList=[],Object(l["n"])(e,a).then((function(e){null!==e.data?t.tipsList=e.data:t.tipsList=[],t.newGeneration.dialogStatus="newGeneration",t.newGeneration.dialogFormVisible=!0}))},DateDiff:function(t,e){var a,i,s,r;return a=t.split("-"),i=new Date(a[0],a[1],a[2]),a=e.split("-"),s=new Date(a[0],a[1],a[2]),r=parseInt(Math.abs(i-s)/1e3/60/60/24),this.newGeneration.temp.days=parseInt(r)+1,r},newGenerationData:function(){var t=this;this.newGenerationLoading=!0,this.isokDisable=!0,this.$refs["temp"].validate((function(e){e&&(t.newGeneration.temp.startTime=Object(o["d"])(t.newGeneration.temp.inputDatetime[0],"{y}-{m}-{d}"),t.newGeneration.temp.stopTime=Object(o["d"])(t.newGeneration.temp.inputDatetime[1],"{y}-{m}-{d}"),t.DateDiff(t.newGeneration.temp.stopTime,t.newGeneration.temp.startTime),t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"checkDLPIsStart",type:"v",parammaps:{pastureid:d.a.get("pastureid"),startTime:t.newGeneration.temp.startTime}},t.requestParam.data[1]={name:"checkPreMixStorage",type:"e",parammaps:{pastureid:d.a.get("pastureid"),days:t.newGeneration.temp.days}},t.requestParam.data[2]={name:"createdownloadedplan",type:"e",parammaps:{pastureid:d.a.get("pastureid"),startTime:t.newGeneration.temp.startTime,stopTime:t.newGeneration.temp.stopTime}},Object(l["b"])(t.requestParam).then((function(e){"fail"===e.msg?(t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),t.isokDisable=!1,t.newGenerationLoading=!1):(t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.newGeneration.dialogFormVisible=!1,t.getList(),t.isokDisable=!1,t.newGenerationLoading=!1)})))}))},handleRevisePlan:function(t){this.dialogFull=!1;var e=[];if(this.table.list.length>0)for(var a=0;a<this.table.list.length;a++)1==this.table.list[a].havebutton&&e.push(this.table.list[a]);e.length!==this.table.list.length?(this.isShowDialog=!0,this.activeName="栏舍配方"):this.$message({type:"error",message:"当前日期不可修改计划,请重新选择日期"})},handleExport:function(){var t=this;this.downLoad.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.downLoad.getdataListParm.parammaps.lpplantype=this.table.getdataListParm.parammaps.lpplantype,this.downLoad.getdataListParm.parammaps.times=this.table.getdataListParm.parammaps.times,this.downLoad.getdataListParm.parammaps.enable=this.table.getdataListParm.parammaps.enable,this.downLoad.getdataListParm.parammaps.enable2=this.table.getdataListParm.parammaps.enable2;var e="";"1"==this.table.getdataListParm.parammaps.plandimen?"0"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanTLJDTMR",e=this.table.getdataListParm.parammaps.mydate+"投料简打"):"1"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanTLLDTMR",e=this.table.getdataListParm.parammaps.mydate+"累加投料"):"2"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanSLJDTMR",e=this.table.getdataListParm.parammaps.mydate+"撒料简打"):"3"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanTSLJDTMR",e=this.table.getdataListParm.parammaps.mydate+"投撒料简打"):"4"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanTSLLDTMR",e=this.table.getdataListParm.parammaps.mydate+"投撒料累加"):"5"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanBZJDTMR",e=this.table.getdataListParm.parammaps.mydate+"包装简打"):(this.downLoad.getdataListParm.name="downloadPlanSFJDTMR",e=this.table.getdataListParm.parammaps.mydate+"实发简打"):"0"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanTLJD",e=this.table.getdataListParm.parammaps.mydate+"投料简打"):"1"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanTLLD",e=this.table.getdataListParm.parammaps.mydate+"累加投料"):"2"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanSLJD",e=this.table.getdataListParm.parammaps.mydate+"撒料简打"):"3"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanTSLJD",e=this.table.getdataListParm.parammaps.mydate+"投撒料简打"):"4"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanTSLLD",e=this.table.getdataListParm.parammaps.mydate+"投撒料累加"):"5"==this.table.getdataListParm.parammaps.enable3?(this.downLoad.getdataListParm.name="downloadPlanBZJD",e=this.table.getdataListParm.parammaps.mydate+"包装简打"):(this.downLoad.getdataListParm.name="downloadPlanSFJD",e=this.table.getdataListParm.parammaps.mydate+"实发简打"),Object(l["e"])(this.downLoad.getdataListParm).then((function(i){if(null!==i.data.list){t.downLoad.labelList=[];for(var s=[],r=0;r<i.data.list.data1.length;r++)t.downLoad.labelList.push(i.data.list.data1[r].label),s.push(i.data.list.data1[r].prop);t.downLoad.list=i.data.list.data2}else t.downLoad.list=[];for(var l=[],n=0;n<t.downLoad.labelList.length;n++)0==n?l.push(e):l.push("");Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-52ecc0ac")]).then(a.bind(null,"a1cf")).then((function(a){var i=[l],r=[t.downLoad.labelList],n=s,o=t.downLoad.list.map((function(t){return n.map((function(e){return t[e]}))})),c=[];a.export_json_to_excel({multiHeader:i,multiHeader2:r,data:o,filename:e,merges:c})}))}))},rowDrop:function(){var t=document.querySelector("#table1 .el-table__body-wrapper tbody"),e=this,a=p["default"].create(t,{disabled:e.dropState,onChoose:function(t){t.newIndex,t.oldIndex;1!=e.dropState&&1!=e.isOrder||a.destroy()},onEnd:function(t){var a=Object(r["a"])(e.table.list),i=e.table.list.splice(t.oldIndex,1)[0],s=e.table.list[t.newIndex],l=e.table.list[t.newIndex-1];if(e.table.list.splice(t.newIndex,0,i),1==i.havebutton)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"因已执行的计划不可调整顺序",duration:2e3}),!1;if(void 0!==s&&void 0!==l){if(i.times!==s.times&&i.times!==l.times)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"因班次不同不可调整顺序",duration:2e3}),!1}else if(void 0!==s&&void 0==l){if(i.times!==s.times)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"因班次不同不可调整顺序",duration:2e3}),!1}else if(void 0==s&&void 0!==l&&i.times!==l.times)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"因班次不同不可调整顺序",duration:2e3}),!1;if(1==i.lpplantype){if(void 0==s)e.$nextTick((function(){e.$set(e.table,"list",a)}));else if(void 0!==s&&s.pid==i.pid)e.$nextTick((function(){e.$set(e.table,"list",a)}));else{for(var n,o=[],c=[],d=0;d<a.length;d++)a[d].pid==i.pid?o.push(a[d]):c.push(a[d]);if(void 0!==l)for(var p=0;p<c.length;p++)c[p].id==l.id&&(u=p);else for(var m=0;m<c.length;m++)c[m].id==s.id&&(u=m-1);(n=c).splice.apply(n,[u+1,0].concat(Object(r["a"])(o))),e.$nextTick((function(){e.table.list=c}))}if(void 0!==s&&void 0!==l&&s.pid==l.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"不可将其他计划拖动至预称重计划之间",duration:2e3}),!1}else if(5==i.lpplantype){if(void 0!==s)if(void 0!==l){if(l.pid!==i.pid&&s.pid!==i.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至其他位置",duration:2e3}),!1;if(0==l.lpplantype&&s.pid!==i.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至撒料计划下方",duration:2e3}),!1;if(5!==s.lpplantype&&5!==l.lpplantype)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至其他位置",duration:2e3}),!1}else{if(s.pid!==i.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至其他位置",duration:2e3}),!1;if(s.pid!==i.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至撒料计划下方",duration:2e3}),!1}else{if(void 0==s)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至其他位置",duration:2e3}),!1;if(l.pid!==i.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至其他位置",duration:2e3}),!1;if(0==l.lpplantype)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至撒料计划下方",duration:2e3}),!1}if(void 0!==s&&void 0!==l){if(s.pid!==i.pid&&l.pid!==i.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"不可将其他计划拖动至预称重计划之间",duration:2e3}),!1;if(l.pid==i.pid&&(1==l.lpplantype||2==l.lpplantype))return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"预称重计划不可拖动至其他位置",duration:2e3}),!1}}else if(2==i.lpplantype){if(void 0==s){if(l.pid!==i.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"撒料计划-撒料不可拖动至其他位置",duration:2e3}),!1}else{if(1==s.lpplantype&&(s.pid==i.pid||void 0==s))return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"撒料计划-撒料不可拖动至撒料计划-混料上方",duration:2e3}),!1;if(2!=i.lpplantype||s.pid!=i.pid&&l.pid!=i.pid&&void 0!=s&&void 0!=l)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"撒料计划-撒料不可拖动至其他位置",duration:2e3}),!1}if(void 0!==s&&void 0!==l&&s.pid==l.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"不可将其他计划拖动至预称重计划之间",duration:2e3}),!1}else if(0==i.lpplantype){o=[],c=[];for(var u,h=0;h<a.length;h++)a[h].pid==i.pid?o.push(a[h]):c.push(a[h]);if(o.length>0){var b;if(void 0!==l)for(var g=0;g<c.length;g++)c[g].id==l.id&&(u=g);else for(var f=0;f<c.length;f++)c[f].id==s.id&&(u=f-1);(b=c).splice.apply(b,[u+1,0].concat(Object(r["a"])(o))),e.$nextTick((function(){e.table.list=c}))}if(void 0!==s&&void 0!==l&&s.pid==l.pid)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"不可拖动至其他计划中间;",duration:2e3}),!1}else if((3==i.lpplantype||4==i.lpplantype)&&void 0!==s&&void 0!==l&&s.pid==l.pid){if(5==s.lpplantype&&5==l.lpplantype)return e.$nextTick((function(){e.$set(e.table,"list",a)})),e.$message({type:"error",message:"不可拖动至预称重计划跟预称重计划之间",duration:2e3}),!1;if(!(i.pid==s.pid&&3==i.lpplantype&&3==s.lpplantype||i.pid==l.pid&&3==i.lpplantype&&3==l.lpplantype)){e.$nextTick((function(){e.$set(e.table,"list",a)})),0==l.lpplantype?e.$set(l,"mylpplantype","撒料计划"):1==l.lpplantype?e.$set(l,"mylpplantype","撒料计划-混料"):2==l.lpplantype?e.$set(l,"mylpplantype","撒料计划-撒料"):3==l.lpplantype?e.$set(l,"mylpplantype","剩料计划"):4==l.lpplantype?e.$set(l,"mylpplantype","预混计划"):5==l.lpplantype&&e.$set(l,"mylpplantype","预称重计划"),0==s.lpplantype?e.$set(s,"mylpplantype","撒料计划"):1==s.lpplantype?e.$set(s,"mylpplantype","撒料计划-混料"):2==s.lpplantype?e.$set(s,"mylpplantype","撒料计划-撒料"):3==s.lpplantype?e.$set(s,"mylpplantype","剩料计划"):4==s.lpplantype?e.$set(s,"mylpplantype","预混计划"):5==s.lpplantype&&e.$set(s,"mylpplantype","预称重计划");var w="不可拖动至"+l.mylpplantype+"跟"+s.mylpplantype+"之间";return e.$message({type:"error",message:w,duration:2e3}),!1}}}})},handleCopy:function(){this.table.list.length>0?(this.newGeneration.temp={},this.newGeneration.dialogStatus="copy",this.newGeneration.dialogFormVisible=!0):this.$message({type:"error",message:"当前无计划可复制"})},copyData:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),5e3),this.$refs["temp"].validate((function(e){e&&(t.requestParam.name="copydownloadedplan",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=d.a.get("pastureid"),t.requestParam.parammaps.date=t.table.getdataListParm.parammaps.mydate,t.requestParam.parammaps.startTime=Object(o["d"])(t.newGeneration.temp.copyInputDatetime[0],"{y}-{m}-{d}"),t.requestParam.parammaps.stopTime=Object(o["d"])(t.newGeneration.temp.copyInputDatetime[1],"{y}-{m}-{d}"),Object(l["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.newGeneration.dialogFormVisible=!1,t.getList())})))}))},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a,i.pastureid=this.table.list[a].pastureid,i.id=this.table.list[a].id,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"updatedownloadesort",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",sort:"@insertSpotList.sort"}},Object(l["b"])(this.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(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.getList(),this.isOrder=!0},handleDataSynchronization:function(){var t=this;m["MessageBox"].confirm("是否确认同步数据?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam={},t.requestParam.pastureid=d.a.get("pastureid"),t.dataSynchronization.dialogFormVisible=!0,Object(l["l"])(t.requestParam).then((function(e){"ok"==e.msg?(t.dataSynchronization.dialogFormVisible=!1,t.$notify({title:"同步成功",message:"同步成功",type:"success",duration:2e3})):(t.$notify({title:"同步失败",message:e.data,type:"warning",duration:2e3}),t.dataSynchronization.dialogFormVisible=!1)}))})).catch((function(){t.$message({type:"info",message:"已取消数据同步"})}))},handleRowDelete:function(t){var e=this;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.selectList=[],e.requestParam={},e.requestParam.name="delDownloadedplan",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=t.pastureid,e.requestParam.parammaps.id=t.id,Object(l["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:"已取消删除"})}))},handleSpan:function(){var t=this;this.mergekeys.forEach((function(e){t.spanObj[e]=[];var a=0;t.table2.list.forEach((function(i,s){0===s?(t.spanObj[e].push(1),a=0):"description"==e?t.table2.list[s][e]===t.table2.list[s-1][e]&&t.table2.list[s]["sort"]===t.table2.list[s-1]["sort"]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s):t.table2.list[s][e]===t.table2.list[s-1][e]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s)}))}))},objectSpanMethod:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.mergekeys.length;i++)if(e.property===this.mergekeys[i]){var s=this.spanObj[this.mergekeys[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},handleDeleteRecord:function(){this.deleteRecord.dialogStatus="deleteRecord",this.deleteRecord.dialogFormVisible=!0,this.deleteRecord.mydate=this.table.getdataListParm.parammaps.mydate,this.getDeleteRecordList()},changeDeleteRecordDate:function(){this.getDeleteRecordList()},getDeleteRecordList:function(){var t=this,e="authdata/GetDataByName",a={name:"getDownloadedplanDeleteList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{}};a.parammaps.pastureid=d.a.get("pastureid"),a.parammaps.mydate=this.deleteRecord.mydate,Object(l["n"])(e,a).then((function(e){null!==e.data?t.deleteRecord.list=e.data.list:t.deleteRecord.list=[],t.deleteRecord.total=e.data.total}))},handleSelect:function(t){this.selectList=t},handleTakeEffect:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否生效?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].enable=1;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:"updateDownloadedplanEnable",type:"e",parammaps:{enable:"@insertSpotList.enable",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(l["b"])(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())}))}))},handleDisable:function(){var t=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否禁用?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].enable=0;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:"updateDownloadedplanEnable",type:"e",parammaps:{enable:"@insertSpotList.enable",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(l["b"])(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())}))}))}}},h=u,b=(a("78b6"),a("31ae"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"7f881b25",null);e["default"]=g.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="M512 578.56c128 0 230.4-107.52 230.4-240.64s-102.4-240.64-230.4-240.64-230.4 107.52-230.4 240.64 102.4 240.64 230.4 240.64" p-id="217653" /><path d="M742.4 636.416h-460.8c-128 0-230.4 107.52-230.4 240.64v61.44H967.68v-61.44c5.12-133.12-102.4-240.64-225.28-240.64" p-id="217654" /></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="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.5z m-90 121c-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" p-id="190922" /></symbol>'});l.a.add(n);e["default"]=n},d681: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-down",use:"icon-down-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-down"><defs><style type="text/css"></style></defs><path d="M248.32812499999966 881.1406249999994L775.6718749999992 881.140625C833.6796874999985 881.1406250000005 881.1406249999994 833.6796875000005 881.1406249999989 775.6718750000007l6.821210263296962e-13-527.34375c1.1013412404281553e-13-58.0078125-47.460937499999716-105.46875-105.46874999999977-105.46875000000024l-527.34375-6.821210263296962e-13c-58.0078125-1.1013412404281553e-13-105.46875 47.460937499999716-105.46875000000024 105.46874999999977L142.85937499999972 775.6718749999994C142.85937499999972 833.6796874999992 190.32031249999937 881.140624999999 248.32812499999966 881.1406249999994zM195.59375000000034 248.3281249999995c5.5067062021407764e-14-29.00390625 23.730468750000085-52.734374999999915 52.73437500000012-52.734374999999886L775.6718750000009 195.5937500000008c29.00390625 5.5067062021407764e-14 52.734374999999915 23.730468750000085 52.734374999999886 52.73437500000012L828.4062499999993 775.6718750000005c-5.5067062021407764e-14 29.00390625-23.730468750000085 52.734374999999915-52.73437500000012 52.734374999999886l-527.34375-6.821210263296962e-13c-29.00390625-5.5067062021407764e-14-52.734374999999915-23.730468750000085-52.734374999999886-52.73437500000012L195.59375000000034 248.3281249999995zM490.37890625 527.2929687500001c5.273437499999988 5.2734375000000115 12.656249999999977 7.910156250000025 20.039062499999993 7.382812500000036C517.2734375 535.2031250000001 524.6562500000001 532.56640625 530.45703125 527.2929687500001l184.57031250000045-181.40624999999957c10.546875000000023-10.546874999999975 10.546875000000053-26.894531249999986 8.171241461241152e-14-37.44140625-10.546874999999975-10.546875000000023-27.421874999999968-10.546875000000052-37.44140625-8.171241461241152e-14l-166.64062500000037 164.0039062499996-166.6406249999996-164.00390625000037c-10.546874999999975-10.546875000000023-27.421874999999968-10.546875000000052-37.44140625-8.171241461241152e-14-10.546875000000023 10.546874999999975-10.546875000000053 26.894531249999986-8.171241461241152e-14 37.44140625L490.37890625 527.2929687500001zM490.37890625 738.23046875c5.273437499999988 5.2734375000000115 12.656249999999977 7.910156250000025 20.039062499999993 7.382812500000036C517.2734374999995 746.140625 524.6562499999998 743.50390625 530.4570312499998 738.23046875l184.57031250000045-181.40624999999957c10.546875000000023-10.546874999999975 10.546875000000053-26.894531249999986 8.171241461241152e-14-37.44140625-10.546874999999975-10.546875000000023-27.421874999999968-10.546875000000052-37.44140625-8.171241461241152e-14l-166.64062500000037 164.0039062499996-166.6406249999996-164.00390625000037c-10.546874999999975-10.546875000000023-27.421874999999968-10.546875000000052-37.44140625-8.171241461241152e-14-10.546875000000023 10.546874999999975-10.546875000000053 26.894531249999986-8.171241461241152e-14 37.44140625L490.37890625 738.23046875z" fill="#409EFF" p-id="46791" /></symbol>'});l.a.add(n);e["default"]=n},d6e7:function(t,e,a){"use strict";a("b1f7")},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},d88a: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",staticStyle:{width:"90%"}},[a("div",{staticClass:"el-icon-info",staticStyle:{"font-size":"30px",float:"right",color:"#009C69"},on:{click:t.handleDescription}}),a("el-form",{ref:"createTemp",staticStyle:{"margin-top":"40px","margin-bottom":"30px"},attrs:{rules:t.rules,model:t.createTemp,"label-position":"right","label-width":"270px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"计划准确率预警值(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{type:"number",disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",t._n(e))},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"配方准确率预警值(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牛群准确率预警值(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"车次准确率预警值(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"混料自动跳转准确率预警值(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"混料手动跳转准确率预警值(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"泌乳牛采食量平均值偏差预警值(kg):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"泌乳牛产奶量平均值偏差预警值(kg):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"撒料时间偏差预警值(min):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"超出平均混料时间预警值(min):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"超出平均转化率预警值(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"超出平均公斤奶饲料成本(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牛栏剩料率超出预警值(%):",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"库存预警天数:",prop:"remainOptRate"}},[a("el-input",{ref:"remainOptRate",staticClass:"filter-item",attrs:{disabled:0==t.isRoleEdit,placeholder:"剩料分配占比原混料",type:"text"},model:{value:t.createTemp.remainOptRate,callback:function(e){t.$set(t.createTemp,"remainOptRate",e)},expression:"createTemp.remainOptRate"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[t.isRoleEdit?a("el-button",{staticClass:"save",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),a("el-dialog",{attrs:{title:t.textMap[t.description.dialogStatus],"destroy-on-close":!0,visible:t.description.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(e){return t.$set(t.description,"dialogFormVisible",e)}}},[a("div",{staticClass:"app-description dialogMinHeight"},[a("div",{staticClass:"content"},[t._v(" 1、计划准确率预警值:计划准确率低于此预警值则统计在统计报告中。 "),a("br"),t._v(" 2、配方准确率预警值:配方准确率低于此预警值则统计在统计报告中。 "),a("br"),t._v(" 3、牛群准确率预警值:牛群准确率低于此预警值则统计在统计报告中。 "),a("br"),t._v(" 4、车次准确率预警值:车次准确率低于此预警值则统计在统计报告中。 "),a("br"),t._v(" 5、混料自动跳转准确率预警值:混料自动跳转准确率低于此预警值则统计在统计报告中。 "),a("br"),t._v(" 6、混料手动跳转准确率预警值:混料手动跳转准确率低于此预警值则统计在统计报告中。 "),a("br"),t._v(" 7、泌乳牛采食量平均值偏差预警值:泌乳牛采食量平均值偏差高于此预警值则统计在统计报告中。 "),a("br"),t._v(" 8、泌乳牛产奶量平均值偏差预警值:泌乳牛产奶量平均值偏差高于此预警值则统计在统计报告中。 "),a("br"),t._v(" 9、撒料时间偏差预警值:撒料时间偏差高于此预警值则统计在统计报告中。 "),a("br"),t._v(" 10、超出平均混料时间预警值:平均混料时间高于此预警值则统计在统计报告中。 "),a("br"),t._v(" 11、超出平均转化率预警值:平均转换率高于此预警值则统计在统计报告中。 "),a("br"),t._v(" 12、超出平均公斤奶饲料成本:平均公斤奶饲料成本高于此预警值则统计在统计报告中。 "),a("br"),t._v(" 13、牛栏剩料率超出预警值:牛栏剩料率高于此预警值则统计在统计报告中。 "),a("br"),t._v(" 14、库存预警天数:库存预警模块根据设置天数进行统计。限制正整数。 ")])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.description.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],1)},s=[],r=(a("a4d3"),a("e01a"),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:[],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:"否"}],leftoverMaterialList:[{id:"0",name:"顶额分配"},{id:"1",name:"剩料分配"}],requestParams:[{name:"getRemainFeedList",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],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,description:{dialogFormVisible:!1,dialogStatus:""},textMap:{description:"参数说明"},requestParam:{}}},created:function(){this.getList(),this.getButtons(),this.getDownList()},methods:{getButtons:function(){var t="DefaultParameter",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.disposalList=e.data.getRemainFeedList.list}))},getList:function(){var t=this;this.listLoading=!0,Object(r["c"])(this.getdataListParm).then((function(e){null!==e.data.list?t.createTemp=e.data.list[0]:t.list=[],setTimeout((function(){t.listLoading=!1}),100)}))},handleSave:function(){var t=this;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,remainOptDis:this.createTemp.remainOptDis,remainOptRate:this.createTemp.remainOptRate}},this.requestParam.data[1]={name:"updateFPbyFTChangeALL",type:"e",parammaps:{pastureid:this.createTemp.pastureid}},Object(r["b"])(this.requestParam).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},handleRecovery:function(){var t=this;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){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}))},handleDescription:function(){this.description.dialogStatus="description",this.description.dialogFormVisible=!0}}},d=c,p=(a("3b25"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"8ebc0ca0",null);e["default"]=m.exports},d963:function(t,e,a){"use strict";a("3699")},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}},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="M0.896 581.12v209.984c0 12.16 2.944 23.36 8.96 33.792 5.952 10.432 14.08 18.304 24.32 23.68l210.496 113.152a50.56 50.56 0 0 0 26.816 7.04 50.816 50.816 0 0 0 26.816-7.04l210.432-113.152c1.28-0.64 2.368-1.28 3.264-1.984 0.64 0.64 1.728 1.28 3.328 1.984l210.496 113.152a50.56 50.56 0 0 0 26.816 7.04 50.816 50.816 0 0 0 26.816-7.04l210.432-113.152a58.496 58.496 0 0 0 24.384-23.68c6.016-10.432 8.96-21.76 8.96-33.792V581.12c0-12.8-3.392-24.576-10.176-35.328a65.728 65.728 0 0 0-26.496-24.32l-203.904-93.824V225.664c0-12.736-3.328-24.576-10.112-35.264a65.728 65.728 0 0 0-26.496-24.32L535.552 69.184A55.232 55.232 0 0 0 512.128 64a54.912 54.912 0 0 0-23.488 5.12l-210.496 96.96a63.744 63.744 0 0 0-26.496 24.32 64.896 64.896 0 0 0-10.112 35.264v201.984L37.568 521.472a62.144 62.144 0 0 0-26.88 24.32 67.328 67.328 0 0 0-9.792 35.264z m751.744 77.76l-189.824-87.36 189.824-87.296 189.824 87.232L752.64 658.88zM722.56 888l-180.416-96.896V632.576l180.48 82.752v172.736zM512.128 319.68l-207.232-95.488 207.232-95.424 207.232 95.36-207.232 95.488z m-30.08 191.36l-180.416-83.52V293.312l180.416 82.752v134.848zM271.552 658.88L81.728 571.52l189.824-87.296L461.44 571.52l-189.824 87.36z m-30.08 229.248L61.184 791.04V632.576L241.6 715.328v172.736z" p-id="210134" /></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"},[t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增车次")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("减少车次")]):t._e(),t.isOrder&&t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-sort"},on:{click:t.handleChangeOrder}},[t._v("更改顺序")]):a("div",{staticStyle:{float:"left","margin-left":"10px"}},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-folder-checked"},on:{click:t.saveChangeOrder}},[t._v("保存")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"sortCancel",attrs:{icon:"el-icon-close"},on:{click:t.cancelChangeOrder}},[t._v("取消")]):t._e()],1),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v("生效")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v("禁用")]):t._e(),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":"110px",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","string"===typeof a?a.trim():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.eqcode,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":"90px",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",{ref:"test",staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",clearable:"",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":"70px",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:"最大搅拌量(KG)","min-width":"110px",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":"110px",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:"80","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,icon:"el-icon-folder-checked"},on:{click:function(e){return t.createData(i)}}}):t._e(),i.isCreate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isCreate&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.createCancel(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdate&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1)],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e(),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.history.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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"}})],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:"","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:"最大搅拌量(KG)","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",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.history.dialogFormVisible=!1}}},[t._v("关闭")])],1)])],2)],1)},s=[],r=(a("7db0"),a("d3b7"),a("a434"),a("4e82"),a("ac1f"),a("00b4"),a("b0c0"),a("2934")),l=a("aa47"),n=a("333d"),o=a("a78e"),c=a.n(o),d=a("5c96"),p={name:"PremixedPlan",components:{Pagination:n["a"]},data:function(){return{dialogFull:!1,isRoleEdit:[],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:"",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:"30px",height:"30px"},cellStyle:{padding:"0px"},dropState:!1,isOrder:!0}},created:function(){this.getButtons(),this.getList(),this.getDownList(),this.getIsDisplay()},methods:{getButtons:function(){var t="PremixedPlan",e=Object(r["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.TMRNumberList=e.data.getTMRYHList.list,t.formulaNameList=e.data.getFTYHList.list}))},getIsDisplay:function(){var t=this;Object(r["c"])(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["c"])(this.table.getdataListParm).then((function(e){if(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.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){""==t?e.lppcode="":(e.lppcode=this.carFollowList.find((function(e){return e.id==t})).lppcode,this.$forceUpdate())},changeTimes:function(t,e){this.getCarFollowParm.parammaps.times=t,this.getCarFollowList(e),this.$forceUpdate()},getCarFollowList:function(t){var e=this;Object(r["c"])(this.getCarFollowParm).then((function(a){null!==a.data.list?(e.carFollowList=a.data.list,t.lppid=e.carFollowList[0].id,t.lppcode=e.carFollowList[0].lppcode):(e.carFollowList=[],t.lppid="",t.lppcode="")}))},handleEnableChange:function(){},handleChangeOrder:function(){this.isOrder=!1,this.rowDrop()},saveChangeOrder:function(){for(var t=this,e=[],a=0;a<this.table.list.length;a++){var i={};i.sort=a+1,i.id=this.table.list[a].id,i.pastureid=this.table.list[a].pastureid,e.push(i)}this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"updatePremixplanSort",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",sort:"@insertSpotList.sort"}},Object(r["b"])(this.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(),t.isOrder=!0)}))},cancelChangeOrder:function(){this.getList(),this.isOrder=!0},rowDrop:function(){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)}})},handleCreate:function(){this.dropState=!0;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;var e=1;e=this.table.list.length>0?parseInt(this.table.list[this.table.list.length-1].sort)+1:1,this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,sort:e,ftid:"",ftname:"",tmrcode:"",tmrid:"",times:"",lppcode:"",lppid:"",ptime:"",maxweight:"",operateweight:""})},createData:function(t){var e=this;if(null!=t.ptime&&null!=t.ptime||(t.ptime=""),""==t.sort&&""==t.ftid&&""==t.tmrid&&""==t.times&&""==t.operateweight)return this.$message({type:"error",message:"车次/配方名称/TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==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.sort||0==t.sort)return this.$message({type:"error",message:"车次不能为空且大于0",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&&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(""!==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){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},createCancel:function(t){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=this,a=0;a<this.table.list.length;a++)if(1==this.table.list[a].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?(this.getCarFollowParm.parammaps.times="1",t.times="1"):"第二班"==t.times?(this.getCarFollowParm.parammaps.times="2",t.times="2"):"第三班"==t.times?(this.getCarFollowParm.parammaps.times="3",t.times="3"):"第四班"==t.times&&(this.getCarFollowParm.parammaps.times="4",t.times="4"),Object(r["c"])(this.getCarFollowParm).then((function(t){null!==t.data.list&&(e.carFollowList=t.data.list)})),void 0==t.lppcode&&this.$set(t,"lppid",""),this.dropState=!0},updateData:function(t){var e=this;if(null!=t.ptime&&"null"!=t.ptime||(t.ptime=""),""==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+$/;return""===t.sort||i.test(parseFloat(t.sort))?""==t.sort||0==t.sort?(this.$message({type:"error",message:"车次不能为空且大于0",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.requestParam.name="updatePremixplan",this.requestParam.parammaps=t,void Object(r["f"])(this.requestParam).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.dropState=!1):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))):(this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1)},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isCreate=!1,t.isUpdate=!0,t.isUpdateSave=!1,this.getList(),this.dropState=!1},handleSelect:function(t){this.selectList=t},handleHistoryRecords:function(){this.dialogFull=!1,this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var t=this;Object(r["c"])(this.history.getdataDateParm).then((function(e){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;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["c"])(this.history.getdataListParm).then((function(e){null!==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;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(){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){"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))}))},handleTakeEffect: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(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].enable=1;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:"updatePremixplanEnable",type:"e",parammaps:{enable:"@insertSpotList.enable",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))},handleDisable: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(){for(var e=0;e<t.selectList.length;e++)t.selectList[e].enable=0;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:"updatePremixplanEnable",type:"e",parammaps:{enable:"@insertSpotList.enable",id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(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())}))}))}}},m=p,u=(a("3af5"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"0adea2d3",null);e["default"]=h.exports},db76: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-Up",use:"icon-Up-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-Up"><defs><style type="text/css"></style></defs><path d="M657.371429 443.428571c0 344.685714-390.4 389.485714-390.4 389.485715 204.8-143.542857 178.285714-389.485714 178.285714-389.485715H302.628571l248.685715-247.771428 248.685714 247.771428H657.371429z" fill="#009C69" p-id="8806" /><path d="M997.485714 238.628571v552.228572c0 114.285714-93.257143 207.542857-207.542857 207.542857H237.714286C123.428571 998.4 30.171429 905.142857 30.171429 790.857143V238.628571C30.171429 123.428571 123.428571 31.085714 237.714286 31.085714h552.228571c114.285714 0 207.542857 92.342857 207.542857 207.542857z m-765.257143-146.285714c-76.8 0-138.971429 62.171429-138.971428 138.971429v565.028571c0 76.8 62.171429 138.971429 138.971428 138.971429h565.028572c76.8 0 138.971429-62.171429 138.971428-138.971429V232.228571c0-76.8-62.171429-138.971429-138.971428-138.971428H232.228571v-0.914286z" fill="#009C69" p-id="8807" /></symbol>'});l.a.add(n);e["default"]=n},db80:function(t,e,a){},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},dc20: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"}},[t.isRoleEdit?a("el-button",{staticClass:"successBorder",attrs:{loading:t.control_btn_l},on:{click:function(e){return t.control_edit()}}},[t._v(" "+t._s(t.control_btn)+" ")]):t._e()],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("ac1f"),a("1276"),a("99af"),a("7db0"),a("d3b7"),a("b0c0"),a("d81d"),a("b76a")),l=a.n(r),n=a("4300"),o=a("2934"),c=a("a78e"),d=a.n(c),p=a("5fd4"),m={name:"Addboard",components:{dashboardItem:n["default"],draggable:l.a},data:function(){return{isRoleEdit:[],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(){var t="BoardEchartManagement",e=Object(o["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e,this.did=window.location.href.split("~")[1],this.haha=window.location.href.split("~")[2],3==this.haha?(this.isTitle="3",this.editBtn=!1):(this.isTitle="2",this.get_Role()),this.getList()},methods:{get_Role:function(){var t=this;Object(o["c"])(this.get_role_data).then((function(e){"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}};Object(o["j"])(e).then((function(e){t.loading=!1,t.dashboardList=[],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],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(p["e"])(this.dbObj).then((function(e){t.getList(),t.editDialogVisible=!1}));else{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(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(p["b"])(e)},deleteDashboard:function(t){var e=this;this.$confirm(this.$t("dashboard.deleteConfirm",t.name),this.$t("common.confirm")).then((function(){Object(p["c"])({dashboard_id:t.dashboard_id}).then((function(){e.getList(),e.$message({type:"success",message:e.$t("common.deleteSuccess")})}))}))}}},u=m,h=(a("fcbf"),a("2877")),b=Object(h["a"])(u,i,s,!1,null,"0163e0c7",null);e["default"]=b.exports},dc7d:function(t,e,a){"use strict";a("e1b8")},dcb2: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",{attrs:{clearable:!1,type:"date",placeholder:"选择日期"},model:{value:t.table.getdataListParm.parammaps.date,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"date",e)},expression:"table.getdataListParm.parammaps.date"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备类型",clearable:""},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.equipmentTypeList,(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("设备列表")]),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:t.table1Height},on:{"row-click":t.rowClick1}},[a("el-table-column",{attrs:{label:"设备类型","min-width":"90px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"设备名称","min-width":"80px",align:"center",prop:"field2"}}),a("el-table-column",{attrs:{label:"GPS设备名称","min-width":"90px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"总时长(分钟)","min-width":"100px",align:"center",prop:"field4"}})],1)],1),a("h4",[t._v("设备详情")]),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,height:t.table1Height},on:{"row-click":t.rowClick2}},[a("el-table-column",{attrs:{label:"设备名称","min-width":"90px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"开始时间","min-width":"80px",align:"center",prop:"field2"}}),a("el-table-column",{attrs:{label:"结束时间","min-width":"90px",align:"center",prop:"field3"}}),a("el-table-column",{attrs:{label:"时长(分钟)","min-width":"100px",align:"center",prop:"field4"}})],1)],1)]),a("el-col",{staticClass:"map",attrs:{span:16}},[a("h4",[t._v("设备轨迹图")]),t.isShow?a("div",{staticStyle:{"text-align":"center","line-height":"400px"}},[t._v("设备轨迹图加载失败,请刷新加载设备轨迹图")]):a("div",{staticStyle:{"min-height":"400px"},attrs:{id:"yzMap"}})])],1)],1)},s=[],r=(a("d81d"),a("71ac")),l=a("2934"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"EquipmentRunningTrack",data:function(){return{equipmentTypeList:[{id:0,name:"自走式TMR"},{id:1,name:"撒料设备TMR"},{id:2,name:"铲车"},{id:3,name:"推料车"},{id:4,name:"推粪车"}],table:{getdataListParm:{name:"getprocessAnalysis",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),date:Object(c["d"])(new Date,"{y}-{m}-{d}"),iscompleted:"",tmrtname:"",lpplantype:""}},tableKey:0,list:[],total:0,listLoading:!0},table2:{getdataListParm:{name:"getprocessAnalysisStr",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!0},table3:{getdataListParm:{name:"getprocessAnalysisStr",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),id:""}},tableKey:0,initializationMap:"",startLngLatMap:"",endLngLatMap:"",pointsList:[],total:0,listLoading:!0},table1Height:(document.documentElement.clientHeight-85-250)/2,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},map:"",drivingRoute:"",zoom:16.5,startIcon:"http://lbs.tianditu.gov.cn/images/bus/start.png",endIcon:"http://lbs.tianditu.gov.cn/images/bus/end.png",line:null,points:[],isShow:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.table.listLoading=!0,Object(l["c"])(this.table.getdataListParm).then((function(e){t.table.list=[{field1:"自走式TMR",field2:"1",field3:"自走式GPS",field4:"100",id:"1"},{field1:"铲车",field2:"1号铲车",field3:"铲车GPS",field4:"60",id:"2"}],t.table2.getdataListParm.parammaps.id=t.table.list[0].id,t.getList2(),setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.offset=1,this.getList()},rowClick1:function(t,e,a){"1"==t.id?this.table2.getdataListParm.parammaps.id="1":this.table2.getdataListParm.parammaps.id="2",this.getList2()},getList2:function(){var t=this;this.table2.listLoading=!1,Object(l["c"])(this.table2.getdataListParm).then((function(e){"1"==t.table2.getdataListParm.parammaps.id?t.table2.list=[{field1:"1",field2:"05:29:43",field3:"05:37:47",field4:"8",id:"1"},{field1:"1",field2:"05:37:50",field3:"05:40:33",field4:"2.6",id:"2"}]:t.table2.list=[{field1:"1号铲车",field2:"09:01:28",field3:"09:04:42",field4:"3.2",id:"3"}],t.table3.getdataListParm.parammaps.id=t.table2.list[0].id,t.getList3(),setTimeout((function(){t.table2.listLoading=!1}),100)}))},rowClick2:function(t,e,a){var i=this;"1"==t.id?this.table3.getdataListParm.parammaps.id="1":"2"==t.id?this.table3.getdataListParm.parammaps.id="2":this.table3.getdataListParm.parammaps.id="3","1"==this.table3.getdataListParm.parammaps.id?(this.table3.initializationMap=[117.88,33.82],this.table3.pointsList=[{longitude:117.882677,latitude:33.8208131},{longitude:117.8826372,latitude:33.8213032},{longitude:117.8826971,latitude:33.8217033},{longitude:117.8827081,latitude:33.8220751},{longitude:117.8829982,latitude:33.8220152},{longitude:117.8831583,latitude:33.8220853},{longitude:117.8833981,latitude:33.8221151},{longitude:117.8835982,latitude:33.8219852},{longitude:117.8839703,latitude:33.8220433},{longitude:117.8838709,latitude:33.8222431},{longitude:117.8840024,latitude:33.8225752},{longitude:117.8837024,latitude:33.8226553},{longitude:117.8833024,latitude:33.8225956},{longitude:117.8830024,latitude:33.8226556},{longitude:117.8827133,latitude:33.8226505},{longitude:117.8826033,latitude:33.8218505},{longitude:117.8825471,latitude:33.8208586}]):"2"==this.table3.getdataListParm.parammaps.id?(this.table3.initializationMap=[117.88,33.82],this.table3.pointsList=[{longitude:117.8826684,latitude:33.8220995},{longitude:117.8823899,latitude:33.8222107},{longitude:117.882071,latitude:33.822077},{longitude:117.8819408,latitude:33.8221457},{longitude:117.881294,latitude:33.8222307},{longitude:117.881294,latitude:33.8226243},{longitude:117.8814287,latitude:33.8232728},{longitude:117.8816937,latitude:33.8231791},{longitude:117.8819363,latitude:33.8232328},{longitude:117.8822417,latitude:33.8232791},{longitude:117.882592,latitude:33.8231304},{longitude:117.8827448,latitude:33.8227855},{longitude:117.8826549,latitude:33.8224481},{longitude:117.8826819,latitude:33.822092}]):(this.table3.initializationMap=[117.88,33.82],this.table3.pointsList=[{longitude:117.8828031,latitude:33.823599},{longitude:117.8830906,latitude:33.8236015},{longitude:117.8832433,latitude:33.8235127},{longitude:117.8834544,latitude:33.8235777},{longitude:117.8836161,latitude:33.823509},{longitude:117.8838079,latitude:33.8235015},{longitude:117.8840159,latitude:33.823554},{longitude:117.8840248,latitude:33.8232528},{longitude:117.8838048,latitude:33.8233503},{longitude:117.8835532,latitude:33.8233128},{longitude:117.8833511,latitude:33.8233703},{longitude:117.8831162,latitude:33.8233639},{longitude:117.8828225,latitude:33.8234215},{longitude:117.8825822,latitude:33.8234577},{longitude:117.8825022,latitude:33.8234077},{longitude:117.8821698,latitude:33.8234015},{longitude:117.881797,latitude:33.8235052},{longitude:117.8815096,latitude:33.8234865},{longitude:117.8813659,latitude:33.8235952},{longitude:117.8813614,latitude:33.8237577},{longitude:117.8816353,latitude:33.8237002},{longitude:117.8820108,latitude:33.8236552},{longitude:117.8821708,latitude:33.8237152},{longitude:117.8822708,latitude:33.8236152},{longitude:117.8824708,latitude:33.8236152},{longitude:117.8825531,latitude:33.8235588},{longitude:117.8828031,latitude:33.8236088}]),r["a"].init().then((function(t){i.isShow=!1,i.T=t,i.map=new t.Map("yzMap",a);var e=new t.Control.MapType;i.map.addControl(e),i.map.centerAndZoom(new t.LngLat(i.table3.initializationMap[0],i.table3.initializationMap[1]),i.zoom);var a={policy:0};i.map.setMapType(TMAP_HYBRID_MAP),i.points=[];for(var s=0;s<i.table3.pointsList.length;s++)i.points.push(new t.LngLat(i.table3.pointsList[s].longitude,i.table3.pointsList[s].latitude));i.line=new t.Polyline(i.points,{color:"red"}),i.map.addOverLay(i.line)})).catch((function(t){i.isShow=!0}))},getList3:function(){var t=this;this.table3.listLoading=!1,Object(l["c"])(this.table3.getdataListParm).then((function(e){"1"==t.table3.getdataListParm.parammaps.id?(t.table3.initializationMap=[117.88199,33.8225],t.table3.pointsList=[{longitude:117.882677,latitude:33.8208131},{longitude:117.8826372,latitude:33.8213032},{longitude:117.8826971,latitude:33.8217033},{longitude:117.8827081,latitude:33.8220751},{longitude:117.8829982,latitude:33.8220152},{longitude:117.8831583,latitude:33.8220853},{longitude:117.8833981,latitude:33.8221151},{longitude:117.8835982,latitude:33.8219852},{longitude:117.8839703,latitude:33.8220433},{longitude:117.8838709,latitude:33.8222431},{longitude:117.8840024,latitude:33.8225752},{longitude:117.8837024,latitude:33.8226553},{longitude:117.8833024,latitude:33.8225956},{longitude:117.8830024,latitude:33.8226556},{longitude:117.8827133,latitude:33.8226505},{longitude:117.8826033,latitude:33.8218505},{longitude:117.8825471,latitude:33.8208586}]):"2"==t.table3.getdataListParm.parammaps.id?(t.table3.initializationMap=[117.88,33.82],t.table3.pointsList=[{longitude:117.8826684,latitude:33.8220995},{longitude:117.8823899,latitude:33.8222107},{longitude:117.882071,latitude:33.822077},{longitude:117.8819408,latitude:33.8221457},{longitude:117.881294,latitude:33.8222307},{longitude:117.881294,latitude:33.8226243},{longitude:117.8814287,latitude:33.8232728},{longitude:117.8816937,latitude:33.8231791},{longitude:117.8819363,latitude:33.8232328},{longitude:117.8822417,latitude:33.8232791},{longitude:117.882592,latitude:33.8231304},{longitude:117.8827448,latitude:33.8227855},{longitude:117.8826549,latitude:33.8224481},{longitude:117.8826819,latitude:33.822092}]):(t.table3.initializationMap=[117.88,33.82],t.table3.pointsList=[{longitude:117.8828031,latitude:33.823599},{longitude:117.8830906,latitude:33.8236015},{longitude:117.8832433,latitude:33.8235127},{longitude:117.8834544,latitude:33.8235777},{longitude:117.8836161,latitude:33.823509},{longitude:117.8838079,latitude:33.8235015},{longitude:117.8840159,latitude:33.823554},{longitude:117.8840248,latitude:33.8232528},{longitude:117.8838048,latitude:33.8233503},{longitude:117.8835532,latitude:33.8233128},{longitude:117.8833511,latitude:33.8233703},{longitude:117.8831162,latitude:33.8233639},{longitude:117.8828225,latitude:33.8234215},{longitude:117.8825822,latitude:33.8234577},{longitude:117.8825022,latitude:33.8234077},{longitude:117.8821698,latitude:33.8234015},{longitude:117.881797,latitude:33.8235052},{longitude:117.8815096,latitude:33.8234865},{longitude:117.8813659,latitude:33.8235952},{longitude:117.8813614,latitude:33.8237577},{longitude:117.8816353,latitude:33.8237002},{longitude:117.8820108,latitude:33.8236552},{longitude:117.8821708,latitude:33.8237152},{longitude:117.8822708,latitude:33.8236152},{longitude:117.8824708,latitude:33.8236152},{longitude:117.8825531,latitude:33.8235588},{longitude:117.8828031,latitude:33.8236088}]),t.roadMap()}))},roadMap:function(){var t=this;r["a"].init().then((function(e){t.isShow=!1,t.T=e,t.map=new e.Map("yzMap",i);var a=new e.Control.MapType;t.map.addControl(a),t.map.centerAndZoom(new e.LngLat(t.table3.initializationMap[0],t.table3.initializationMap[1]),t.zoom);var i={policy:0};t.map.disableDrag(),t.map.setMapType(TMAP_HYBRID_MAP),t.points=[];for(var s=0;s<t.table3.pointsList.length;s++)t.points.push(new e.LngLat(t.table3.pointsList[s].longitude,t.table3.pointsList[s].latitude));t.line=new e.Polyline(t.points,{color:"red"}),t.map.addOverLay(t.line)})).catch((function(e){t.isShow=!0}))},getDistance:function(t){for(var e=0,a=0;a<t.length-1;a++)e+=t[a].distanceTo(t[a+1]);return e}}},p=d,m=(a("92b7"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"7eb087ae",null);e["default"]=u.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},dd38:function(t,e,a){},dd8d:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.visible?a("div",[a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.visible,"close-on-click-modal":!1,"append-to-body":"","before-close":t.closeDialog,width:"35%"},on:{"update:visible":function(e){t.visible=e}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" 干物质调节-配方选择 ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticStyle:{"min-height":"200px","justify-content":"center","align-items":"center",display:"flex"}},[a("div",[a("span",{staticStyle:{"margin-right":"10px"}},[t._v("请选择栏舍配方:")]),a("el-select",{staticClass:"filter-item",attrs:{filterable:""},model:{value:t.temp.ftid,callback:function(e){t.$set(t.temp,"ftid",e)},expression:"temp.ftid"}},t._l(t.balconicFormulaList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.tname,value:t.id}})})),1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){return t.closeDialog()}}},[t._v("取消")]),a("el-button",{staticClass:"save",on:{click:function(e){return t.handleNextSamplingSelection()}}},[t._v("下一步")])],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.samplingSelection.dialogFormVisible,"append-to-body":"","close-on-click-modal":!1,"before-close":t.closeDialog,width:"80%"},on:{"update:visible":function(e){return t.$set(t.samplingSelection,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.samplingSelection.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"dialogMinHeight"},[a("div",{staticClass:"search filter-item"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"日期"},model:{value:t.samplingSelection.getdataListParm.parammaps.date,callback:function(e){t.$set(t.samplingSelection.getdataListParm.parammaps,"date",e)},expression:"samplingSelection.getdataListParm.parammaps.date"}},t._l(t.samplingSelection.dateList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.date,value:t.date}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"栏舍名称",clearable:""},model:{value:t.samplingSelection.getdataListParm.parammaps.barid,callback:function(e){t.$set(t.samplingSelection.getdataListParm.parammaps,"barid",e)},expression:"samplingSelection.getdataListParm.parammaps.barid"}},t._l(t.samplingSelection.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.samplingSelection.getdataListParm.parammaps.times,callback:function(e){t.$set(t.samplingSelection.getdataListParm.parammaps,"times",e)},expression:"samplingSelection.getdataListParm.parammaps.times"}},t._l(t.samplingSelection.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("查询")])],1),a("div",{staticClass:"table",staticStyle:{"margin-top":"10px"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.samplingSelection.listLoading,expression:"samplingSelection.listLoading"}],key:t.samplingSelection.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.samplingSelection.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"}}),a("el-table-column",{attrs:{label:"栏舍名称",prop:"barname","min-width":"110px",align:"center"}}),a("el-table-column",{attrs:{label:"班次",prop:"times","min-width":"110px",align:"center"}}),a("el-table-column",{attrs:{label:"鲜样重量(g)",prop:"freshweight","min-width":"110px",align:"center"}}),a("el-table-column",{attrs:{label:"烘干重量(g)",prop:"dryweight","min-width":"110px",align:"center"}}),a("el-table-column",{attrs:{label:"理论干物质",prop:"thoweight","min-width":"110px",align:"center"}}),a("el-table-column",{attrs:{label:"实际干物质",prop:"actweight","min-width":"110px",align:"center"}}),a("el-table-column",{attrs:{label:"操作人",prop:"emp","min-width":"110px",align:"center"}}),a("el-table-column",{attrs:{label:"操作日期",prop:"operatetime","min-width":"110px",align:"center"}})],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){return t.closeDialog()}}},[t._v("取消")]),a("el-button",{staticClass:"save",on:{click:function(e){t.samplingSelection.dialogFormVisible=!1,t.samplingSelection.frequencyList=[]}}},[t._v("上一步")]),a("el-button",{staticClass:"save",on:{click:function(e){return t.handleNextChangeDetails()}}},[t._v("下一步")])],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.changeDetails.dialogFormVisible,"append-to-body":"","close-on-click-modal":!1,"before-close":t.closeDialog,width:"80%"},on:{"update:visible":function(e){return t.$set(t.changeDetails,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.changeDetails.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"dialogMinHeight"},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.changeDetails.listLoading,expression:"changeDetails.listLoading"}],key:t.changeDetails.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.changeDetails.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod}},[a("el-table-column",{attrs:{label:"栏舍",prop:"barname","min-width":"70px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{attrs:{label:"班次",prop:"times","min-width":"70px",align:"center","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{attrs:{label:"调节前班次重量",prop:"weight","min-width":"70px",align:"center"}}),a("el-table-column",{attrs:{label:"调节后班次重量",prop:"weightafter","min-width":"100px",align:"center"}}),a("el-table-column",{attrs:{label:"调节前理论干物质量",prop:"ftweight","min-width":"70px",align:"center"}}),a("el-table-column",{attrs:{label:"调节后理论干物质量",prop:"ftweightafter","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"调节前采样干物质量",prop:"cyweight","min-width":"70px",align:"center"}}),a("el-table-column",{attrs:{label:"调节后采样干物质量",prop:"cyweightafter","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"调节前日投喂量",prop:"totalweight","min-width":"70px",align:"center"}}),a("el-table-column",{attrs:{label:"调节后日投喂量",prop:"totalweightafter","min-width":"100px",align:"center"}})],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){return t.closeDialog()}}},[t._v("取消")]),a("el-button",{staticClass:"save",on:{click:function(e){t.changeDetails.dialogFormVisible=!1,t.samplingSelection.frequencyList=[]}}},[t._v("上一步")]),a("el-button",{staticClass:"save",on:{click:function(e){return t.handleNextLast()}}},[t._v("下一步")])],1)],2)],1):t._e()},s=[],r=(a("d3b7"),a("159b"),a("2934")),l=(a("ed08"),a("a78e")),n=a.n(l),o=a("5c96"),c={name:"RevisePlan",components:{},props:{show:{type:Boolean,default:!1}},data:function(){return{dialogFull:!1,visible:this.show,dialogFormVisible:!1,dialogStatus:"",balconicFormulaListParm:{name:"getFTSWList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},balconicFormulaList:[],temp:{ftid:""},samplingSelection:{dialogFormVisible:!1,dialogStatus:"",dateList:[],getdateListParm:{name:"getftdrydatelist",offset:0,pagecount:30,parammaps:{pastureid:n.a.get("pastureid")}},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:[],getdataListParm:{name:"getftdrycylist",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),ftid:"",date:"",barid:"",times:""}},tableKey:0,list:[],total:0,listLoading:!0},changeDetails:{dialogFormVisible:!1,dialogStatus:"",getdataListParm:{name:"getftdryafterlist",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),ftid:"",actweight:"",thoweight:""}},tableKey:1,list:[],total:0,listLoading:!0,spanObj:{},mergekeys:["barname","ftweight","ftweightafter","cyweight","cyweightafter","totalweight","totalweightafter"]},textMap:{samplingSelection:"干物质调节—采样选择",changeDetails:"干物质调节—变化详情"},selectionList:[],isokDisable:!1,requestParam:{},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},watch:{show:{immediate:!0,handler:function(t){this.visible=t}}},created:function(){},methods:{restTemp:function(){this.temp.ftid=""},getBalconicFormula:function(){var t=this;Object(r["c"])(this.balconicFormulaListParm).then((function(e){null!==e.data.list?t.balconicFormulaList=e.data.list:t.balconicFormulaList=[]}))},closeDialog:function(){this.$emit("update:show",!1),this.dialogFull=!1,this.samplingSelection.dialogFormVisible=!1,this.changeDetails.dialogFormVisible=!1,this.samplingSelection.frequencyList=[]},handleNextSamplingSelection:function(){this.dialogFull=!1,""!==this.temp.ftid?(this.samplingSelection.dialogStatus="samplingSelection",this.samplingSelection.dialogFormVisible=!0,this.getSamplingDateList(),this.getSamplingSelectionDownList()):this.$message({type:"error",message:"选择需调节配方",duration:2e3})},getSamplingSelectionDownList:function(){var t=this;Object(r["d"])(this.samplingSelection.requestParams).then((function(e){if(t.samplingSelection.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.samplingSelection.frequencyList.push(i)}else t.samplingSelection.frequencyList=[]}))},getSamplingDateList:function(){var t=this;this.samplingSelection.getdateListParm.parammaps.ftid=this.temp.ftid,Object(r["c"])(this.samplingSelection.getdateListParm).then((function(e){null!==e.data.list?(t.samplingSelection.dateList=e.data.list,t.samplingSelection.getdataListParm.parammaps.date=e.data.list[0].date):(t.samplingSelection.dateList=[],t.samplingSelection.getdataListParm.parammaps.date=""),t.getListSamplingSelection()}))},handleSearch:function(){this.getListSamplingSelection()},handleSelectionChange:function(t){this.selectionList=t},getListSamplingSelection:function(){var t=this;this.samplingSelection.listLoading=!0,this.samplingSelection.getdataListParm.parammaps.ftid=this.temp.ftid,Object(r["c"])(this.samplingSelection.getdataListParm).then((function(e){null!==e.data.list?(t.samplingSelection.list=e.data.list,t.samplingSelection.pageNum=e.data.pageNum,t.samplingSelection.pageSize=e.data.pageSize,t.samplingSelection.total=e.data.total):t.samplingSelection.list=[],setTimeout((function(){t.samplingSelection.listLoading=!1}),100)}))},handleNextChangeDetails:function(){this.dialogFull=!1,1==this.selectionList.length?(this.changeDetails.dialogStatus="changeDetails",this.changeDetails.dialogFormVisible=!0,this.getListChangeDetails()):0==this.selectionList.length?this.$message({type:"error",message:"请选择采样内容对应干物质比例调节",duration:2e3}):this.$message({type:"error",message:"仅可选择一条采样内容进行调节",duration:2e3})},getListChangeDetails:function(){var t=this;this.changeDetails.listLoading=!0,this.changeDetails.getdataListParm.parammaps.ftid=this.temp.ftid,this.changeDetails.getdataListParm.parammaps.actweight=this.selectionList[0].actweight,this.changeDetails.getdataListParm.parammaps.thoweight=this.selectionList[0].thoweight,Object(r["c"])(this.changeDetails.getdataListParm).then((function(e){null!==e.data.list?(t.changeDetails.list=e.data.list,t.changeDetails.pageNum=e.data.pageNum,t.changeDetails.pageSize=e.data.pageSize,t.changeDetails.total=e.data.total,t.handleSpan()):t.changeDetails.list=[],setTimeout((function(){t.changeDetails.listLoading=!1}),100)}))},handleSpan:function(){var t=this;this.changeDetails.mergekeys.forEach((function(e){t.changeDetails.spanObj[e]=[];var a=0;t.changeDetails.list.forEach((function(i,s){0===s?(t.changeDetails.spanObj[e].push(1),a=0):"ftweight"==e||"ftweightafter"==e||"cyweight"==e||"cyweightafter"==e||"totalweight"==e||"totalweightafter"==e?t.changeDetails.list[s][e]===t.changeDetails.list[s-1][e]&&t.changeDetails.list[s]["barname"]===t.changeDetails.list[s-1]["barname"]?(t.changeDetails.spanObj[e][a]+=1,t.changeDetails.spanObj[e].push(0)):(t.changeDetails.spanObj[e].push(1),a=s):t.changeDetails.list[s][e]===t.changeDetails.list[s-1][e]?(t.changeDetails.spanObj[e][a]+=1,t.changeDetails.spanObj[e].push(0)):(t.changeDetails.spanObj[e].push(1),a=s)}))}))},objectSpanMethod:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.changeDetails.mergekeys.length;i++)if(e.property===this.changeDetails.mergekeys[i]){var s=this.changeDetails.spanObj[this.changeDetails.mergekeys[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},handleNextLast:function(){var t=this;o["MessageBox"].confirm("是否确认进行当前干物质调节操作","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){for(var e=[],a=0;a<t.changeDetails.list.length;a++){for(var i=a+1;i<t.changeDetails.list.length;i++)t.changeDetails.list[a].id==t.changeDetails.list[i].id&&++a;e.push(t.changeDetails.list[a])}t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"saveFPFTdryChange",type:"e",parammaps:{pastureid:n.a.get("pastureid"),ftid:t.temp.ftid,actweight:t.selectionList[0].actweight,thoweight:t.selectionList[0].thoweight}},t.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:e}},t.requestParam.data[1].children=[],t.requestParam.data[1].children[0]={name:"updateLPPbyFPChange",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",fpid:"@insertSpotList.id"}},Object(r["b"])(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.closeDialog(),t.$emit("getIsDisplay"))}))}))}}},d=c,p=a("2877"),m=Object(p["a"])(d,i,s,!1,null,"7f8fbcc9",null);e["default"]=m.exports},de2b:function(t,e,a){"use strict";a("add0")},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.groupsname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"groupsname",e)},expression:"table.getdataListParm.parammaps.groupsname"}}),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.groupscode))])]}}])}),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.groupsname))])]}}])}),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.emp))])]}}])}),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.phone))])]}}])})],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.pasturename,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"pasturename",e)},expression:"table.getdataListParm.parammaps.pasturename"}}),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.pasturecode))])]}}])}),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":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.groupsnames))])]}}])})],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("ade3"),l=(a("b0c0"),a("2934")),n=a("333d"),o=a("a78e"),c=a.n(o),d={name:"GroupInformation",components:{Pagination:n["a"]},data:function(){return{activeName:"first",table:{getdataListParm:{name:"getGroupsList",page:1,offset:1,pagecount:parseInt(c.a.get("pageCount")),returntype:"Map",parammaps:{groupsname:"",pastureid:c.a.get("pastureid"),groupsid:""}},tableKey:0,list:[],total:0,listLoading:!0},table2:{getdataListParm:{name:"getPastureListJT",page:1,offset:1,pagecount:parseInt(c.a.get("pageCount")),returntype:"Map",parammaps:{pasturename:"",pastureid:c.a.get("pastureid"),groupsid:""}},tableKey:0,list:[],total:0,listLoading:!0},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.activeName="first"},methods:Object(r["a"])({handleTabClick:function(t){"first"===t.name?this.getList():"second"===t.name&&this.getList2()},getList:function(){var t=this;this.table.listLoading=!0,Object(l["c"])(this.table.getdataListParm).then((function(e){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(){"first"==this.activeName?this.getList():this.getList2()},getList2:function(){var t=this;this.table2.listLoading=!0,Object(l["c"])(this.table2.getdataListParm).then((function(e){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(){this.getList()}))},p=d,m=a("2877"),u=Object(m["a"])(p,i,s,!1,null,"03639e30",null);e["default"]=u.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},dfd5:function(t,e,a){"use strict";a("1729")},e015: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-SQL管理",use:"icon-SQL管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-SQL管理"><defs><style type="text/css"></style></defs><path d="M669.696 881.664l-143.36 65.536h-2.048c-5.12 2.048-10.24 3.072-15.36 3.072s-10.24-1.024-15.36-3.072H491.52l-143.36-65.536H76.8V537.6H102.4V280.576c0-4.096 1.024-7.168 2.048-10.24 0-1.024 1.024-2.048 1.024-3.072l3.072-6.144c1.024-1.024 2.048-2.048 2.048-3.072 2.048-3.072 5.12-6.144 8.192-8.192 1.024-1.024 2.048-1.024 2.048-2.048 1.024-1.024 2.048-1.024 3.072-2.048 1.024 0 1.024-1.024 2.048-1.024L492.544 79.872c10.24-5.12 22.528-5.12 32.768 0l366.592 162.816c1.024 0 1.024 1.024 2.048 1.024 1.024 1.024 2.048 1.024 3.072 2.048 1.024 1.024 2.048 1.024 2.048 2.048 3.072 2.048 5.12 5.12 8.192 8.192 1.024 1.024 2.048 2.048 2.048 3.072l3.072 6.144c0 1.024 1.024 2.048 1.024 3.072 1.024 3.072 2.048 7.168 2.048 10.24v257.024H942.08v344.064H669.696z m164.864-344.064V344.064L549.888 471.04v66.56h284.672z m-366.592 0V471.04L183.296 344.064v193.536h284.672z m40.96-375.808l-266.24 118.784L389.12 346.112 508.928 399.36l119.808-53.248 146.432-65.536-266.24-118.784z m176.128 431.104v222.208h131.072v-38.912h-82.944V592.896h-48.128z m-246.784 28.672c-20.48 21.504-30.72 50.176-30.72 84.992 0 32.768 10.24 59.392 29.696 80.896 19.456 20.48 46.08 31.744 77.824 31.744 11.264 0 22.528-1.024 31.744-4.096l19.456 19.456h70.656l-46.08-44.032c1.024-1.024 2.048-3.072 4.096-4.096 20.48-21.504 30.72-50.176 30.72-83.968 0-32.768-9.216-60.416-28.672-81.92-19.456-21.504-45.056-31.744-76.8-31.744-33.792 0-61.44 11.264-81.92 32.768zM517.12 778.24c-18.432 0-32.768-7.168-43.008-20.48s-15.36-31.744-15.36-53.248 5.12-39.936 16.384-53.248c10.24-13.312 25.6-20.48 44.032-20.48 18.432 0 32.768 7.168 43.008 20.48s15.36 31.744 15.36 55.296c0 22.528-5.12 39.936-15.36 53.248-12.288 11.264-26.624 18.432-45.056 18.432z m-214.016-37.888c5.12 5.12 8.192 11.264 8.192 17.408 0 7.168-3.072 12.288-10.24 17.408-6.144 4.096-16.384 7.168-28.672 7.168-22.528 0-43.008-7.168-61.44-22.528v47.104c16.384 8.192 36.864 12.288 62.464 12.288 27.648 0 49.152-5.12 64.512-16.384s22.528-27.648 22.528-49.152c0-14.336-4.096-26.624-12.288-37.888-8.192-10.24-23.552-20.48-46.08-29.696-18.432-8.192-30.72-14.336-35.84-19.456s-7.168-10.24-7.168-16.384c0-7.168 3.072-13.312 10.24-17.408 7.168-4.096 16.384-6.144 27.648-6.144 20.48 0 37.888 5.12 52.224 15.36v-44.032c-14.336-6.144-32.768-8.192-54.272-8.192-25.6 0-47.104 6.144-62.464 17.408S208.896 634.88 208.896 655.36c0 27.648 17.408 49.152 52.224 64.512 22.528 8.192 36.864 15.36 41.984 20.48z" p-id="23675" /></symbol>'});l.a.add(n);e["default"]=n},e062: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.apply(null,arguments)}}},[t._v("确认修改")])],1)],1)],1)},s=[],r=a("1da1"),l=(a("96cf"),a("d9e2"),a("d3b7"),a("25f0"),a("2934")),n=a("a78e"),o=a.n(n),c={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){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:{},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;this.$refs["temp"].validate((function(e){e&&(t.resetForm.common={returnmap:"0"},t.resetForm.data=[],t.resetForm.data[0]={name:"checkPassword",type:"v",parammaps:{id:o.a.get("employeid"),password:t.temp.oldpassword}},t.resetForm.data[1]={name:"updatePwd",type:"e",parammaps:{password:t.temp.password,username:o.a.get("name")}},Object(l["b"])(t.resetForm).then((function(e){"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(setTimeout((function(){t.logout()}),1e3),t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},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)})))()}}},d=c,p=(a("aace"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"cb408dfe",null);e["default"]=m.exports},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:"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.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:"operation"},[t.isRoleEdit?a("el-button",{staticClass:"success",attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate}},[t._v("新增")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",attrs:{icon:"el-icon-delete"},on:{click:t.handleDelete}},[t._v("删除")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"copy",attrs:{icon:"el-icon-copy-document"},on:{click:t.handleCopy}},[t._v("复制")]):t._e(),t.isRoleEdit?a("el-upload",{staticStyle:{float:"right"},attrs:{headers:t.headers,data:t.uploadData,action:t.uploadExcelUrl,"show-file-list":!1,"before-upload":t.beforeImport,"on-success":t.handleImportSuccess}},[a("el-button",{staticClass:"import",staticStyle:{float:"right"},attrs:{icon:"el-icon-download"}},[t._v("导入")])],1):t._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export",attrs:{icon:"el-icon-upload2"}},[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"},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,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,"max-height":t.myHeight},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"40"}}),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":"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":"70px",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":"65px",align:"center"}}),a("el-table-column",{attrs:{prop:"oneweight",label:"重量(g)","min-width":"65px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第二层",align:"center"}},[a("el-table-column",{attrs:{prop:"tworate",label:"比例(%)","min-width":"65px",align:"center"}}),a("el-table-column",{attrs:{prop:"twoweight",label:"重量(g)","min-width":"65px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第三层",align:"center"}},[a("el-table-column",{attrs:{prop:"threerate",label:"比例(%)","min-width":"65px",align:"center"}}),a("el-table-column",{attrs:{prop:"threeweight",label:"重量(g)","min-width":"65px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第四层",align:"center"}},[a("el-table-column",{attrs:{prop:"fourrate",label:"比例(%)","min-width":"65px",align:"center"}}),a("el-table-column",{attrs:{prop:"fourweight",label:"重量(g)","min-width":"65px",align:"center"}})],1),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.remark))])]}}])}),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.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"85px",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:"70","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",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleRowDelete(i)}}}):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:{fullscreen:t.dialogFull,visible:t.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.create,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.create.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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",["create"==t.create.dialogStatus?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):a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barname"}},[a("el-input",{ref:"barname",staticClass:"filter-item",attrs:{disabled:"",placeholder:"barname"},model:{value:t.create.temp.barname,callback:function(e){t.$set(t.create.temp,"barname",e)},expression:"create.temp.barname"}})],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:"cancelClose",on:{click:function(e){t.create.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),"create"===t.create.dialogStatus?a("el-button",{staticClass:"save",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:"save",attrs:{disabled:t.isokDisable},on:{click:function(e){"create"===t.create.dialogStatus?t.createData():t.updateData()}}},[t._v("确认")]):t._e()],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.historyRecord.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.historyRecord,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.historyRecord.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"historyRecord"},[a("keep-alive",[a(t.historyRecord.myComponent,{ref:"historyRecord",tag:"component"})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.historyRecord.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2)],1)},s=[],r=(a("7db0"),a("d3b7"),a("b680"),a("ac1f"),a("00b4"),a("b0c0"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("d81d"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),p=a("bc3a"),m=a.n(p),u=a("5f87"),h={name:"PennsylvaniaSieve",components:{Pagination:c["a"]},data:function(){return{dialogFull:!1,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:parseInt(n.a.get("pageCount")),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["d"])(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:"编辑",historyRecord:"历史记录"},historyRecord:{dialogFormVisible:!1,dialogStatus:"",myComponent:null},requestParam:{},requestParam2:{},download:{getdataListParm:{name:"getPennsieveList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},list:[]},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-45}},computed:{headers:function(){return{token:Object(u["a"])()}},uploadData:function(){return{name:"checkbarname,checktimes,insertPennsieveUpload",importParams:"栏舍名称,班次,第一层重量(g),第二层重量(g),第三层重量(g),第四层重量(g),备注,操作人,操作日期",sheetname:"Sheet1",pastureid:n.a.get("pastureid"),dateParams:"操作日期",requiredParams:"栏舍名称,班次,第一层重量(g),第二层重量(g),第三层重量(g),第四层重量(g)",numParams:"第一层重量(g),第二层重量(g),第三层重量(g),第四层重量(g)"}},uploadExcelUrl:function(){return"/authdata/ImportExcel"}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){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(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.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["d"])(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["c"])(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["c"])(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}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(){this.resetTemp(),this.getNoteTakerList(),this.dialogFull=!1,this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData: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="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){if("fail"!==e.msg)t.saveData();else{var a=new RegExp("Duplicate entry :btop");a.test(e.data)?t.$notify({title:"保存失败",message:"同一栏舍同一班次不可重复录入",type:"warning",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}}))}}))},saveData:function(){var t=this;this.requestParam2.name="insertPennsieveHistory",this.create.temp.pastureid=n.a.get("pastureid"),this.create.temp.changetime=Object(o["d"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),this.requestParam2.parammaps=this.create.temp,Object(r["f"])(this.requestParam2).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))},createDataAgain: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="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){"fail"!==e.msg?(t.saveData(),t.resetTemp(),t.getList(),t.getNoteTakerList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},handleUpdate:function(t){"第一班"==t.times?t.times="1":"第二班"==t.times?t.times="2":"第三班"==t.times?t.times="3":"第四班"==t.times&&(t.times="4"),t.barid=String(t.barid),this.create.temp=Object.assign({},t),this.create.temp.id=t.id,this.getNoteTakerList(),this.dialogFull=!1,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){"fail"!==e.msg?(t.saveData(),t.getList()):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}))},handleRowDelete:function(t){var e=this;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){this.selectList=t},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(){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){"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}):d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var e={common:{returnmap:"0"},data:[{name:"insertSpotList",resultmaps:{list:t.selectList},children:[{name:"copyPennsieve",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}}]}]};Object(r["b"])(e).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:"已取消复制"})}))},handleExport:function(t){var e=this;if(1==t){var a=this.requestParam,i="/file/导入导出模板/栏舍生产/宾州筛导入模板.xlsx";m()({method:"GET",url:i,data:a,headers:{token:Object(u["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(t){if(t){e.percentage=99,setTimeout((function(){e.isPercentage=!1}),2e3);var a=new Blob([t.data],{type:"application/octet-stream;charset=utf-8"}),i=window.URL.createObjectURL(a),s=document.createElement("a");s.style.display="none",s.href=i;var r="宾州筛导入模板.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))}else this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,""!==this.download.getdataListParm.parammaps.inputDatetime&&null!==this.download.getdataListParm.parammaps.inputDatetime?(this.download.getdataListParm.parammaps.startTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.download.getdataListParm.parammaps.stopTime=Object(o["d"])(this.download.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.download.getdataListParm.parammaps.inputDatetime="",this.download.getdataListParm.parammaps.startTime="",this.download.getdataListParm.parammaps.stopTime=""),Object(r["c"])(this.download.getdataListParm).then((function(t){null!==t.data.list?e.download.list=t.data.list:e.download.list=[];var a=[{tHeader:["栏舍名称","班次","第一层比例(%)","第一层重量(g)","第二层比例(%)","第二层重量(g)","第三层比例(%)","第三层重量(g)","第四层比例(%)","第四层重量(g)","备注","操作人","操作日期"],filterVal:["barname","times","onerate","oneweight","tworate","twoweight","threerate","threeweight","fourrate","fourweight","remark","emp","operatetime"],tableDatas:e.download.list,sheetName:"Sheet1"}];Object(o["c"])(a,"宾州筛",!0,"xlsx")}))},beforeImport:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("上传文件大小不能超过 2MB!"),e},handleImportSuccess:function(t,e){var i=this;this.getList(),"ok"===t.msg?(this.$message({title:"成功",message:"导入成功:"+t.data.success+"条!",type:"success",duration:2e3}),t.data.err_count>0&&(this.$notify({title:"失败",message:"导入失败:"+t.data.err_count+"条!",type:"danger",duration:2e3}),Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(e){var a=t.data.result,s=["栏舍名称","班次","第一层重量(g)","第二层重量(g)","第三层重量(g)","第四层重量(g)","备注","操作人","操作日期","错误信息"],r=["栏舍名称","班次","第一层重量(g)","第二层重量(g)","第三层重量(g)","第四层重量(g)","备注","操作人","操作日期","error_msg"],l=i.formatJson(r,a);e.export_json_to_excel({header:s,data:l,filename:"宾州筛导入报错信息",autoWidth:!0,bookType:"xlsx"})})))):this.$notify({title:"失败",message:"上传失败",type:"danger",duration:2e3})},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["d"])(e[t]):e[t]}))}))},handleHistoryRecord:function(){this.dialogFull=!1,this.historyRecord.dialogStatus="historyRecord",this.historyRecord.dialogFormVisible=!0;var t=this,e=function(){return Promise.resolve().then(a.bind(null,"ed03"))};return t.historyRecord.myComponent=e}}},b=h,g=a("2877"),f=Object(g["a"])(b,i,s,!1,null,null,null);e["default"]=f.exports},e119:function(t,e,a){},e129:function(t,e,a){"use strict";a("742f")},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="M665.002667 597.333333H256v42.666667h366.336l-147.626667 147.626667L424.362667 938.666667H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666667V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h85.333334v85.333333h341.333333V170.666667h85.333333a42.666667 42.666667 0 0 1 42.666667 42.666666v280.021334a42.666667 42.666667 0 0 1 0 0.981333L665.002667 597.333333zM256 426.666667v42.666666h256v-42.666666H256z" p-id="210988" /><path d="M896 597.333333l-298.666667 298.666667-128 42.666667 42.666667-128 298.666667-298.666667zM341.333333 128h256v85.333333H341.333333z" p-id="210989" /></symbol>'});l.a.add(n);e["default"]=n},e17a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAJbElEQVR4Xu2de6wcVR3Hv7/Ze29bsEB5laISGoGANSBWhUuL2KABYqoYwo2FNqR3Z/fO7K3SKhhpa3qt1ZI0oFi6M7s7e0sMINwaQ6TBRwyFqvhADKAl/icKCY1SHw0+oN055sxu63Jvd+d1zpnZvTPJ/eNmz/n9fuf7mfOYc86cIWRXqhSgVEWTBYMMSMpuggxIBiRlCqQsnKyGZEBSpkDKwslqSAYkBQo4+dNBczaCsaUAewmuVkOx/HwKIpuFw17HvAXARgBL2gD8A7q1IAOiUoHdxYvRyHEQazq43QPdGlEZ0ol8zY4+pG6uB/NqxVldBdfcJRitvJQklP4G4ox/BORuBMN1gURmbAUK9lOB0kpK1J9ApkrvwGHGa8RdoXTTBs7G6M6/hsojOHH/AakbN4HRJgCXh9KK2ATy9ldC5ZGQuH+AVIrnYSC3CQzFUDox9ltouBd5+6FQ+SQl7g8gjqmDwGGcH0onXivYkZ3Q638LlU9i4t4GUh+7DEzjzdPNkTViuAwF68XI+QVn7F0gNfNOr1YAp8bShLAXeWtlLBsCM/cekEnzGjSwGYSPCdOBSEe+XBdmL4ah3gFSKZ7U6rT5cFb0dRCae+3bHgrro/PhDi0FHXlRZR/TG0Ac80aAD2XZB0WTOG6PoY6CpXv/140vgNFmAKd5/yscEqcbiGW8E4PeM4UpDUS7Yd50MTcP0PBMf2wVdPsR2XGkF0jNXNvqtN8jW4SA9p+Dbsmroa0g0gekOr4Emsubi88EFEpdMgVzXekC4pQ2ABwGna5O5RCeZg2Qemk5GON9xfUh5FGddBY0Wd/67BycfGRTazJQU61wYH+E3Tja+CLGqq8HzhMxYXJNllNaCXi14oqIsSvIRvsBdj90a48CZ80RtipHx/3Ubl8IepP3E+uU+w7rkOge5Mt3hM0WJ71aII6xBvAeuC6KE7TavGw5dPvnqnyqAVIpXoxcjjdPq1UVTJgfwtPIWx8VZs/HkHwgNeNz0IivVZytqlDi/dDnoZe/Id7uTIvygNTHhltrFZ9QURDJPv4Fcj+OfOUXnh/HuBwMd4JoERieQMHaIcq/eCBTN+fwzzM2g7w5qEFRgabATnPfVq20CRrjNX5eW0zC9nSJBVI3b4DrrVVclQIBZYTwewDvO7FhloduT8Z1KgZIpXhma61ifdyAeji/kCf5+ECae2V58/TeHhZTTOi6FVvP6AbssQsx4G0wuE1MaXreylPQrRVxSxENSM0cb61VLIobQN/kbzSuxFj1V3HLEw7I7tKH0GD8SfuTcR33Uf7HwbADBeunIsoUHAgf7pEHY64Ix31iowDdckSWJRgQx5yKtRlNZMRpskX0B+TLl4gMyR9IBqO73oJnhLsDaTZT20TeAX1pi2EYBeuXIsrWGcjUhnk4/N+DAE4R4ajPbTwP3Qr3+kMHQToDqRtbwGiiz4UUVzzG7kLBvjuuwQxIXAXb8+doEdaWeasS+cqARJZuRsYXoFvvj2uuM5CaWQShEtfBrMlPdDXy5Z/FLW9nIPy0AwwdiutgluR/BLq1SkRZfYa9xoMgulWEo762Maididt2Cbl5uwNxxq4FtJ/0tZjxC7cFurU1vpmmhSBP6ny9WOneJFGFU2DnDejWfJF+/IGUzQUYwv7OS5ciw+k5WyOidzX6A+EaTZZWwWUP95xcMgMmPIO8tUy0i2BAuFfH/HaXk3REx5V+e43GpRir/k50oMGBNHcf8qar+4k6oiNMpT1WgW4bMkILDoR7bx5zpGQHn4zCCrP56sJBTEwcFWavzVA4IE0oPwx83JGMiBO3Seuhl+/rGoZj8NfxrgboHID2QWs8GfQcrvBAquY10JDomVIJMvEf5p54lvwANHckCJTwQLgaNWM7iL6UoDDJuCa6Dvnyjzs6775kcQBzB67C6p2HuwUfDQg/5YDN4R187NnNZJSN4DXIMNcxnwBwQ0frLrseRftH4oE0h8H8BB6++WF2XBqdh9HyK937DpN1/T3AiRDRasgxrzVzEoS1fU+EwUbB8j9NwjH3Aej8co/GVmLU3iunhni1pHQBwHjT1d87GIPu2XXM7vN+cxrnYk31NXlAPCjGOoB29m0tIZjIW3bg8jnGNwG6fVr6P4Oo0HVA0MoQr8k65tUxeTXshzelpuvuP8w9EanpzyG5o09jbbBpFkFAjGUAf6cb6X35P/At3pbQpWUolp+JkjVqHjFAmqOurwLge3/74woyzJVQUnFA7t0wD6e8yU8+kH6EkQQdZpqcO3Cq30OcjDjEAeHR1Y1Pg9H3ZASq1GbQYa6EoMQCaY66qgAVJMSqyCR7Fbr9bkXOZrgRD8Qyzseg18EnVqjIYjJ2Bwr2PZHzC8goHojXdJkGGCwB8akxQXgW818fxsiehhqHnb3IAeI1XaXHAPappAvo699lq1GUfO57fXwYzF0Jwhlw2Xe6fRJDHpBK8QrktP0ADfmKkkyCx6Fbat6VdIxnAWoffXbcrSIPSHPUlb5XGgh/gctWoWA/qeQ+qJUuAbHpX+3peBSHXCCV4mBrY8SVSgrv54RQRd4a80sm9PeHzAX4D/4E4P8b6rpMw8sF0uxL+FF+3xdayNDG2As4ym6BkdD3pRxjF0B8/egsgB6A1tjRaTlXPhAuXs0sg8+aJnNthW5tScZ1m9epiSEcOnguTPvlbrEoAqK/CzTIn00WKxTmB3gLt6Jk/V2hz9iu1ADxmi6TH3Rfix2xv4HXQNgaag3D36ayFOqANKF8F8BN0kpHqCPf+sKBNCdyDasFMjn+AbguPxPkJMHFeg7ANujWY4LtBjfHXyN/49+Lg+y9Sr4PaY9A7GEEfKpjO3Try8GVk5DSOzOMqgA7GcABaAMron4PUW0N4VowEOom7+CXx5KGYS9y2jaM7op9JFKsOJpN8W8ALD1uh7G7UbDDfdSylVk9EO6Yn83IT/OMchFegcu2o2CnZ/JyOpAA+686FT0ZIDyamvk1kPfB4OAXf9Jm2teh7+JPvum5aualILav9ZmNR6Fbkb99khyQZlXnw+Dmd5+6X79u9RXJddp+EXo32brFKNz/xyBJ01dDjkX0tmmFGWG+DGIPYP6h7RjZ81acgvZK3mRrSLtKzb3CHwaw0Pvj6wYXnvMgVsh5MSatgNIDJK0KKY4rA6JYcD93GRA/hRT/ngFRLLifuwyIn0KKf8+AKBbcz10GxE8hxb9nQBQL7ufufx56ZIPByb37AAAAAElFTkSuQmCC"},e18c:function(t,e,a){},e1b8:function(t,e,a){},e1eb:function(t,e,a){},e23b: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:{filterable:"",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-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},attrs:{icon:"el-icon-upload2"},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":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight}},[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:"50","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:{icon:"el-icon-search",disabled:t.isokDisable},on:{click:function(e){return t.handleSee(i)}}})]}}])})],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:{fullscreen:t.dialogFull,visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.see.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:"cancelClose cancelClose1",on:{click:function(e){t.see.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2)],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{dialogFull:!1,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:parseInt(o.a.get("pageCount")),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:{},download:{getdataListParm:{name:"getFeedstorageList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),feedid:""}},list:[]},isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-10}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.feedid="",this.getList()},handleSee:function(t){this.see.dialogStatus="see",this.dialogFull=!1,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["c"])(this.see.getdataListParm).then((function(e){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["c"])(this.see.getdataListParm2).then((function(e){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(){""!==this.see.getdataListParm.parammaps.inputDatetime&&null!==this.see.getdataListParm.parammaps.inputDatetime?(this.see.getdataListParm.parammaps.startTime=Object(c["d"])(this.see.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.see.getdataListParm.parammaps.stopTime=Object(c["d"])(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(){""!==this.see.getdataListParm2.parammaps.inputDatetime&&null!==this.see.getdataListParm2.parammaps.inputDatetime?(this.see.getdataListParm2.parammaps.startTime=Object(c["d"])(this.see.getdataListParm2.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.see.getdataListParm2.parammaps.stopTime=Object(c["d"])(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()},handleExport:function(){var t=this;this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(e){null!==e.data.list?t.download.list=e.data.list:t.download.list=[];var a=[{tHeader:["饲料名称","批号","当前库存重量(kg)","金额(元)"],filterVal:["feedname","pcpde","stockweight","sumprice"],tableDatas:t.download.list,sheetName:"Sheet1"}];Object(c["c"])(a,"库存统计",!0,"xlsx")}))}}},p=d,m=(a("91fe"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"5b70c219",null);e["default"]=u.exports},e2aa:function(t,e,a){"use strict";a("e5c7")},e2cf:function(t,e,a){},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},e485: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-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px","margin-right":"10px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},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}})],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.tableCellStyle}},[a("el-table-column",{attrs:{sortable:"",label:"配方模板/指标","min-width":"98px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{on:{click:function(e){return t.clickFormulaTemplateIndex(i)}}},[t._v(t._s(i.tname))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"牛头数",prop:"ccount","min-width":"58px",align:"center"}}),a("el-table-column",{attrs:{label:"干物质(kg)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"dry",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.dry)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.dry)))])]}}])})],1),a("el-table-column",{attrs:{label:"产奶净能(MJ)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"nm",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.nm)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.nm)))])]}}])})],1),a("el-table-column",{attrs:{label:"奶牛能量单位(NND)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"nuint",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.nuint)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.nuint)))])]}}])})],1),a("el-table-column",{attrs:{label:"粗蛋白(g)",align:"center"}},[a("el-table-column",{attrs:{prop:"cp",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.cp)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.cp)))])]}}])})],1),a("el-table-column",{attrs:{label:"磷(g)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"p",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.p)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.p)))])]}}])})],1),a("el-table-column",{attrs:{label:"产奶净能(MCal/DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"nmd",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.nmd)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.nmd)))])]}}])})],1),a("el-table-column",{attrs:{label:"粗蛋白(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"cpd",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.cpd)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.cpd)))])]}}])})],1),a("el-table-column",{attrs:{label:"脂肪(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"fat",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.fat)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.fat)))])]}}])})],1),a("el-table-column",{attrs:{label:"淀粉(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"starch",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.starch)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.starch)))])]}}])})],1),a("el-table-column",{attrs:{label:"NDF(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"ndf",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.ndf)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.ndf)))])]}}])})],1),a("el-table-column",{attrs:{label:"粗料中的NDF(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"cndf",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.cndf)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.cndf)))])]}}])})],1),a("el-table-column",{attrs:{label:"ADF(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"adf",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.adf)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.adf)))])]}}])})],1),a("el-table-column",{attrs:{label:"钙(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"cad",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.cad)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.cad)))])]}}])})],1),a("el-table-column",{attrs:{label:"磷(%DM)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"pd",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.pd)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.pd)))])]}}])})],1),a("el-table-column",{attrs:{sortable:"",label:"精粗比(%)",align:"center"}},[a("el-table-column",{attrs:{sortable:"",prop:"jcrate",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR料","min-width":"65",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Hrate*e.row.jcrate)))])]}}])}),a("el-table-column",{attrs:{sortable:"",label:"采食量","min-width":"58",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("keepTreeNum")(e.row.Srate*e.row.jcrate)))])]}}])})],1),a("el-table-column",{attrs:{label:"操作",align:"center",width:"70","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:{icon:"el-icon-search"},on:{click:function(e){return t.handleSee(i)}}})]}}])})],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",{staticClass:"dialogMinHeight",attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.see.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-see dialogMinHeight"},[a("div",{staticClass:"tableSee"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.see.table.listLoading,expression:"see.table.listLoading"}],key:t.see.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.see.table.list,border:"",fit:"","show-summary":"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.tableCellStyle}},[a("el-table-column",{attrs:{label:"栏舍/指标","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("a",{on:{click:function(e){return t.clickFormulaHurdlesIndex(i)}}},[t._v(t._s(i.barname))])]}}])}),a("el-table-column",{attrs:{label:"牛头数","min-width":"100px",align:"center",prop:"ccount"}}),a("el-table-column",{attrs:{label:"干物质(kg)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"dry-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"dry-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"dry-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"dry-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"产奶净能(M)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"nm-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"nm-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"nm-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"nm-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"奶牛能量单位(NND)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"nuint-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"nuint-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"nuint-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"nuint-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"粗蛋白(g)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"cp-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"cp-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"cp-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"cp-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"磷(g)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"p-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"p-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"p-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"p-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"产奶净能(MCal/DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"nmd-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"nmd-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"nmd-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"nmd-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"粗蛋白(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"cpd-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"cpd-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"cpd-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"cpd-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"脂肪(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"fat-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"fat-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"fat-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"fat-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"淀粉(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"starch-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"starch-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"starch-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"starch-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"NDF(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"ndf-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"ndf-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"ndf-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"ndf-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"粗料中的NDF(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"cndf-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"cndf-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"cndf-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"cndf-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"ADF(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"adf-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"adf-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"adf-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"adf-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"钙(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"cad-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"cad-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"cad-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"cad-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"磷(%DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"pd-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"pd-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"pd-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"pd-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"(4.0)饲料转化效率(kg/DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"trans4f-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"trans4f-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"trans4f-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"trans4f-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"(3.5)饲料转化效率(kg/DM)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"trans35f-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"trans35f-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"trans35f-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"trans35f-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"精粗比(%)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"jcrate-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"jcrate-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"jcrate-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"jcrate-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"日粮成本(元)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"uprice-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"uprice-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"uprice-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"uprice-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"干物质成本(元/公斤)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"upriced-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"upriced-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"upriced-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"upriced-S",label:"采食量","min-width":"58",align:"center"}})],1),a("el-table-column",{attrs:{label:"日公斤奶成本(元)","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"kprice-nur",label:"奶牛需要","min-width":"70",align:"center"}}),a("el-table-column",{attrs:{prop:"kprice-FT",label:"配方量","min-width":"58",align:"center"}}),a("el-table-column",{attrs:{prop:"kprice-H",label:"TMR料","min-width":"65",align:"center"}}),a("el-table-column",{attrs:{prop:"kprice-S",label:"采食量","min-width":"58",align:"center"}})],1)],1)],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{right:"20px"},on:{click:function(e){t.see.dialogFormVisible=!1,t.$route.params.tname=""}}},[t._v("关闭")])],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"destroy-on-close":!0,visible:t.details.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.details,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.details.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"details dialogMinHeight"},[a("el-form",{ref:"temp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:t.details.rules,model:t.details.temp,"label-position":"right","label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"历史记录时间:",prop:"maxDate"}},[a("el-date-picker",{attrs:{clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"请选择历史记录时间"},on:{change:t.changeMaxDate},model:{value:t.details.temp.maxDate,callback:function(e){t.$set(t.details.temp,"maxDate",e)},expression:"details.temp.maxDate"}})],1)],1)],1)],1),a("div",{staticClass:"table1"},[a("div",{ref:"templateDialog",staticClass:"templateDialog"},[a("div",{staticClass:"recipeTemplateF"},[a("p",[t._v("配方模板表")])])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.details.table1.listLoading,expression:"details.table1.listLoading"}],key:t.details.table1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.details.table1.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"100px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"100px",align:"center",prop:"ccname"}}),a("el-table-column",{attrs:{label:"配方类型","min-width":"100px",align:"center",prop:"fttype"}}),a("el-table-column",{attrs:{label:"来源","min-width":"100px",align:"center",prop:"source"}}),a("el-table-column",{attrs:{label:"版本号","min-width":"100px",align:"center",prop:"version"}}),a("el-table-column",{attrs:{label:"版本时间","min-width":"100px",align:"center",prop:"versiontime"}})],1)],1),a("div",{staticClass:"table2 detailDialog"},[a("div",{staticClass:"recipeTemplateF"},[a("p",[t._v("配方详情表")])]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.details.table2.listLoading,expression:"details.table2.listLoading"}],key:t.details.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.details.table2.list,border:"",fit:"","show-summary":"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"饲料组","min-width":"100px",align:"center",prop:"feedgroup"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"100px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"重量(KG)","min-width":"100px",align:"center",prop:"fweight"}}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"100px",align:"center",prop:"autosecond"}}),a("el-table-column",{attrs:{label:"是否锁定牛头数比例","min-width":"100",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()]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.sort))])]}}])})],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",staticStyle:{right:"20px"},on:{click:function(e){t.details.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2)],1)},s=[],r=(a("a9e3"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("ed08"),d={name:"FormulationEvaluation",components:{Pagination:o["a"]},filters:{keepTreeNum:function(t){return t=Number(t),t.toFixed(3)}},data:function(){return{dialogFull:!1,table:{getdataListParm:{name:"judgenurFTReport",page:1,offset:1,pagecount:parseInt(n.a.get("pageCount")),returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(c["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(c["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},see:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"judgenurFTReport",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{name:"judgenurBarBmReport",name1:"judgenurBarHSL"}}}},details:{dialogFormVisible:!1,dialogStatus:"",temp:{maxDate:""},rules:{},table1:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFTListDateHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",id:""}}},table2:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFTdetailListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",ftid:"",date:"",version:""}}},maxDate:{getdataListParm:{name:"getFTMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:""}}}},textMap:{see:"",details:"配方详情"},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){var t=this;""!==this.$route.params.tname&&void 0!==this.$route.params.tname&&void 0!==this.$route.params.startTime&&void 0!==this.$route.params.stopTime&&(this.table.getdataListParm.parammaps.startTime=this.$route.params.startTime,this.table.getdataListParm.parammaps.stopTime=this.$route.params.stopTime,this.textMap.see="栏舍详情——"+this.$route.params.tname,setTimeout((function(){t.dialogFull=!1,t.see.dialogStatus="see",t.see.dialogFormVisible=!0}),500),this.see.table.getdataListParm.parammaps.ftid=this.$route.params.ftid,this.see.table.getdataListParm.parammaps.pastureid=this.$route.params.pastureid,this.see.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.startTime,this.see.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.stopTime,this.getListSee()),this.getList()},methods:{getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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)}))},changeDate:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime&&(this.table.getdataListParm.parammaps.startTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList())},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()}this.table.getdataListParm.parammaps.startTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),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.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList()},tableCellStyle:function(t){t.row,t.column,t.rowIndex;var e=t.columnIndex;return 0===e?{textDecoration:"underline"}:{textDecoration:"none"}},clickFormulaTemplateIndex:function(t){this.dialogFull=!1,this.details.dialogStatus="details",this.details.dialogFormVisible=!0,this.details.table1.getdataListParm.parammaps.pastureid=t.pastureid,this.details.table1.getdataListParm.parammaps.id=t.ftid,this.details.maxDate.getdataListParm.parammaps.pastureid=t.pastureid,this.getMaxDate()},getMaxDate:function(){var t=this;Object(r["c"])(this.details.maxDate.getdataListParm).then((function(e){null!==e.data.list?t.details.temp.maxDate=e.data.list[0].maxdate:t.details.temp.maxDate="",t.details.table1.getdataListParm.parammaps.date=t.details.temp.maxDate,t.details.table2.getdataListParm.parammaps.date=t.details.temp.maxDate,t.getListDetails1()}))},changeMaxDate:function(t){this.details.table1.getdataListParm.parammaps.date=this.details.temp.maxDate,this.getListDetails1()},getListDetails1:function(){var t=this;this.details.table1.listLoading=!0,Object(r["c"])(this.details.table1.getdataListParm).then((function(e){null!==e.data.list?(t.details.table1.list=e.data.list,t.details.table1.pageNum=e.data.pageNum,t.details.table1.pageSize=e.data.pageSize,t.details.table1.total=e.data.total,t.details.table2.getdataListParm.parammaps.pastureid=t.details.table1.list[0].pastureid,t.details.table2.getdataListParm.parammaps.ftid=t.details.table1.list[0].id,t.details.table2.getdataListParm.parammaps.version=t.details.table1.list[0].version,t.getListDetails2()):(t.details.table1.list=[],t.details.table2.list=[]),setTimeout((function(){t.details.table1.listLoading=!1}),100)}))},getListDetails2:function(){var t=this;this.details.table2.listLoading=!0,Object(r["c"])(this.details.table2.getdataListParm).then((function(e){null!==e.data.list?(t.details.table2.list=e.data.list,t.details.table2.pageNum=e.data.pageNum,t.details.table2.pageSize=e.data.pageSize,t.details.table2.total=e.data.total):t.details.table2.list=[],setTimeout((function(){t.details.table2.listLoading=!1}),100)}))},clickFormulaHurdlesIndex:function(t){this.$router.push("/formulationPlan/DhedFormula")},handleSee:function(t){this.dialogFull=!1,this.textMap.see="栏舍详情——"+t.tname,this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.table.getdataListParm.parammaps.ftid=t.ftid,this.see.table.getdataListParm.parammaps.pastureid=t.pastureid,this.see.table.getdataListParm.parammaps.startTime=this.table.getdataListParm.parammaps.startTime,this.see.table.getdataListParm.parammaps.stopTime=this.table.getdataListParm.parammaps.stopTime,this.getListSee()},getListSee:function(){var t=this;this.see.table.listLoading=!0;var e="authdata/GETNurJudgeRport",a=this.see.table.getdataListParm;Object(r["n"])(e,a).then((function(e){null!==e.data?(t.see.table.list=e.data,t.see.table.pageNum=e.data.pageNum,t.see.table.pageSize=e.data.pageSize,t.see.table.total=e.data.total):t.see.table.list=[],setTimeout((function(){t.see.table.listLoading=!1}),100)}))}}},p=d,m=(a("81e0"),a("7377"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"77d467a9",null);e["default"]=u.exports},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("d3b7"),a("d81d"),a("1c1e");var r=a("2934"),l=a("b76a"),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){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(){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["c"])(e).then((function(e){null!==e.data.list?t.tableList=e.data.list:t.tableList=[]}))},initWithDataSrc:function(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){this.dataSrcVisible=!1,this.fetchSchema(),o["a"].setAllColsAction([]),this.$emit("change",{table:this.selectedTable,source_id:this.selectedBase})},fetchSchema:function(){var t=this;this.schemaLoading=!0;var e={name:"getColumnName",page:1,offset:1,returntype:"Map",parammaps:{table_name:this.selectedTable}};Object(r["c"])(e).then((function(e){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=[]}))},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,p=(a("4fe7"),a("2877")),m=Object(p["a"])(d,i,s,!1,null,"f9185fa6",null);e["default"]=m.exports},e53e:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chart",staticStyle:{width:"100%",height:"385px"}})},s=[],r=a("313e"),l=a.n(r);a("2934"),a("b76a"),a("a78e"),a("ed08"),a("333d");a("817d");var n={name:"BarChart",props:{chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.renderChart(t)}}},mounted:function(){this.renderChart(this.chartData),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,a={title:{text:""},tooltip:{trigger:"axis"},legend:{data:t.legendArr,right:10,show:!0,type:"scroll"},grid:{top:"15%",left:"8%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:t.xAxisArr}],yAxis:[{type:"value"}],series:function(e){for(var a=[],i=0;i<t.xAxisArr.length;i++){var s={name:t.legendArr[i],data:t.dataArr[i],type:"bar",emphasis:{label:{show:!0,position:"inside"}}};a.push(s)}return a}()};setTimeout((function(){e.chart||(e.chart=l.a.init(e.$refs.chart,"macarons")),e.chart.clear(),e.chart.setOption(a),e.chart.setOption(e.chartOpt)}),0)}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);e["a"]=d.exports},e563:function(t,e,a){},e5c7:function(t,e,a){},e5d1:function(t,e,a){},e62b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkNGNzc4M0ZCQzI3QTExRUJCMkM1OTc3Mzk3MUIwMzUyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkNGNzc4M0ZDQzI3QTExRUJCMkM1OTc3Mzk3MUIwMzUyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0Y3NzgzRjlDMjdBMTFFQkIyQzU5NzczOTcxQjAzNTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0Y3NzgzRkFDMjdBMTFFQkIyQzU5NzczOTcxQjAzNTIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Fq4ZoAAACWUlEQVR42uyZQU8TURDHZ18fpQSJlqAJYsLdBL3oB1BISEkMH4CjJxIiXozxI6AxsdGj8TPopYSIePQAJ0307EEFQcCKLpa260ydV6YvezG8130mneSf3ezb7fx2Znfe22kET+dBWGRt7X0flqTst48pAWFUQJVR26gGqu5Z5GOHfRYsFtBWpAj4PmoBumtF9nmIuodqmigqQasYeA6ys5vM0ObSIno5HixmCFhkhsRIi+gRYB6ytzynuJVmZT1/OgBAmWL4LwAjK81ZW04GTlmDUQCAHZOFsgZCAYzsmcSpnS2cgvXZu/Dmxp0T/5byAfdq5jZcGRmHfE6HBUhwq6VFmCieh/f7X6C08iQcQAN3aXisBXet8gi+xj/CACS4l6VbbbjrlbITOCeAIwx3efgCfNjfbMFtxVVnj41yUxMiXmUmzivCiQG3Dw9garkMb3c/wcUzo7A2swjnBobCAUyDfI1lxhWks7fYQL7b++wU0mkdJMhJLC8Gcnl6ISxACbmx8xFqjbqTtRf4gLz6YimsZ9CX9QB7gD3AfwA0X/PVDHmqgiM1gjRQyRDwOVgtONkHoVYDtcIeogZQU6jBLoH9RK2iHjND00BqQUsHaW6ipfAD1DPUafjbs/P1QU8w1HL7jvrGvusg2m9pgDFfQPYb1e8ZkHwcsM84DVCmt8YnkR3xhX2yV+LQjN8jjiL5/cUMJs0dKW4wRCxCrzl6kSdA49e0g2tw3BbuiCCIFJs7U0LgCdD4bYosNkSKE50ScrONutSvSaxK0lEHtXU3YJ8AGf8N8UeAAQDukPMcvZ68GwAAAABJRU5ErkJggg=="},e699:function(t,e,a){"use strict";a("1855")},e828:function(t,e,a){"use strict";a("1532")},e860:function(t,e,a){"use strict";a("6f1c")},e92a: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},ea49:function(t,e,a){"use strict";a("3722")},eaa3: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 1162 1024",content:'<symbol class="icon" viewBox="0 0 1162 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="M730.11089 404.769836c0-202.35244-163.430514-366.497475-365.055441-366.497475s-365.055441 164.002131-365.055442 366.497475c0 141.540179 108.841085 290.550354 108.841085 290.550354l256.162392 328.67981 241.313339-328.67981c0.10393-0.168887 123.794068-160.793281 123.794067-290.550354zM349.154101 536.657481c-89.639948 0-162.313263-72.439471-162.313262-161.923523s72.751262-161.910533 162.313262-161.910533S511.454373 285.275887 511.454373 374.733958s-72.764254 161.923524-162.300272 161.923523z m583.51709 32.192434l114.972977-113.751795-49.912563 9.977316 96.434397-123.859024s68.100378-83.378143 68.100378-150.893913c0-105.125574-89.977722-190.322499-201.05331-190.322499s-201.066301 85.196925-201.066302 190.322499c0 73.556723 59.915861 150.893913 59.915862 150.893913l112.933343 136.681434-172.719292 34.154119 229.868007 227.269747-402.132603 56.992819-172.394509 227.516582 746.778717-227.516582z m-69.789247-384.867169c0-51.510492 43.923575-93.342468 98.149248-93.342468s98.136256 41.831976 98.136256 93.342468-43.754688 93.199564-97.980361 93.199564-98.305143-41.702063-98.305143-93.199564z" p-id="10609" /></symbol>'});l.a.add(n);e["default"]=n},eae0: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-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-form",{ref:"temp",staticStyle:{width:"100%"},attrs:{rules:t.rules,model:t.temp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"TMR列表:",prop:"eqcode"}},[a("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":t.tmrSearch,placeholder:"TMR列表"},on:{select:t.handleTmrSelect},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.item;return[a("b",[t._v("设备名称:")]),t._v(t._s(i.tname)+"   |  "),a("b",[t._v("设备编号:")]),t._v(t._s(i.eqcode)+" ")]}}]),model:{value:t.temp.eqcode,callback:function(e){t.$set(t.temp,"eqcode",e)},expression:"temp.eqcode"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开始重量:",prop:"startW"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"number"},model:{value:t.temp.startW,callback:function(e){t.$set(t.temp,"startW",e)},expression:"temp.startW"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"结束重量:",prop:"stopW"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"number"},model:{value:t.temp.stopW,callback:function(e){t.$set(t.temp,"stopW",e)},expression:"temp.stopW"}})],1)],1)],1),a("div",{staticStyle:{width:"100%",height:"100px","border-radius":"10px",border:"1px solid #001528",color:"#000","font-size":"20px","line-height":"100px","margin-top":"20px","margin-bottom":"20px","padding-left":"20px"}},[a("el-row",[t._v("信息:"+t._s(t.temp.feedstr))])],1),a("el-row",{staticStyle:{width:"500px",margin:"0 auto"}},[a("el-button",{staticClass:"successBorder",staticStyle:{height:"60px",width:"80px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.handleSubmit(1)}}},[t._v("F1")]),a("el-button",{staticClass:"successBorder",staticStyle:{height:"60px",width:"80px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.handleSubmit(2)}}},[t._v("F2")]),a("el-button",{staticClass:"successBorder",staticStyle:{height:"60px",width:"80px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.handleSubmit(3)}}},[t._v("F3")]),a("el-button",{staticClass:"successBorder",staticStyle:{height:"60px",width:"80px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.handleSubmit(4)}}},[t._v("F4")]),a("el-button",{staticClass:"successBorder",staticStyle:{height:"60px",width:"80px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.handleSubmit(5)}}},[t._v("F5")])],1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form",{ref:"temp",staticStyle:{width:"100%"},attrs:{rules:t.rules,model:t.temp,"label-position":"right","label-width":"130px"}},[a("el-row",[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"实时重量:"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"number"},model:{value:t.temp.SW,callback:function(e){t.$set(t.temp,"SW",e)},expression:"temp.SW"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-button",{staticClass:"successBorder",staticStyle:{"margin-left":"10px"},attrs:{disabled:t.isokDisable},on:{click:function(e){return t.handleInput()}}},[t._v("录入")])],1)],1)],1)],1)],1)],1)],1)},s=[],r=(a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o={name:"HardwareTest",data:function(){return{rules:{eqcode:[{type:"string",required:!0,message:"必填",trigger:"blur"}],startW:[{type:"string",required:!0,message:"必填",trigger:"blur"}],stopW:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getTmrListParam:{name:"getTMRListTest",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),eqcode:""}},searchList:[],temp:{tmrid:"",startW:"",stopW:"",SW:""},requestParam:{},isokDisable:!1}},created:function(){},methods:{tmrSearch:function(t,e){var a=this;this.getTmrListParam.parammaps.eqcode=t,Object(r["c"])(this.getTmrListParam).then((function(t){null!==t.data.list?(a.searchList=t.data.list,e(a.searchList)):e([])}))},handleTmrSelect:function(t){this.temp.eqcode=t.eqcode,this.temp.tmrid=t.id,this.temp.datacaptureno=t.datacaptureno},handleSubmit:function(t){var e=this;this.$refs["temp"].validate((function(a){a&&(e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="ProcNewButtonTest",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=n.a.get("pastureid"),1==t?e.requestParam.parammaps.InButtonType="241":2==t?e.requestParam.parammaps.InButtonType="242":3==t?e.requestParam.parammaps.InButtonType="243":4==t?e.requestParam.parammaps.InButtonType="244":5==t&&(e.requestParam.parammaps.InButtonType="245"),e.requestParam.parammaps.startW=e.temp.startW,e.requestParam.parammaps.stopW=e.temp.stopW,e.requestParam.parammaps.tmrid=e.temp.tmrid,Object(r["c"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),null!==t.data.list?e.temp.feedstr=t.data.list[0].feedstr:e.temp.feedstr="",e.temp.startW=e.temp.stopW):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})})))}))},handleInput:function(){var t=this;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="setRealWeighttest",this.requestParam.parammaps={},this.requestParam.parammaps.pastureid=n.a.get("pastureid"),this.requestParam.parammaps.SW=this.temp.SW,this.requestParam.parammaps.datacaptureno=this.temp.datacaptureno,this.requestParam.parammaps.tmrid=this.temp.tmrid,Object(r["c"])(this.requestParam).then((function(e){"fail"!==e.msg?t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}):t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3})}))}}},c=o,d=a("2877"),p=Object(d["a"])(c,i,s,!1,null,null,null);e["default"]=p.exports},eae4:function(t,e,a){},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},ec5a:function(t,e,a){"use strict";a("aa08")},ed03: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-table"},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!0,placeholder:"年/月/日"},model:{value:t.table.getdataListParm.parammaps.operatetime,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"operatetime",e)},expression:"table.getdataListParm.parammaps.operatetime"}}),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,"span-method":t.objectSpanMethod}},[a("el-table-column",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"栏舍名称",prop:"barname","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"班次",prop:"times","min-width":"90px",align:"center"}}),a("el-table-column",{key:4,attrs:{label:"第一层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"onerate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"oneweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:5,attrs:{label:"第二层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"tworate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"twoweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:6,attrs:{label:"第三层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"threerate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"threeweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:7,attrs:{label:"第四层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"fourrate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"fourweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:8,attrs:{label:"操作",prop:"operation",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("a",{staticClass:"correcting",on:{click:function(e){t.handleSeeHistory(i)}}},[t._v(t._s(i.operation))])]}}])})],1),a("pagination2",{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:{visible:t.seeHistory.dialogFormVisible,"append-to-body":"",title:t.textMap[t.seeHistory.dialogStatus],"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.seeHistory,"dialogFormVisible",e)}}},[a("div",{staticClass:"seeHistory"},[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.seeHistory.getdataListParm.parammaps.inputDatetime,callback:function(e){t.$set(t.seeHistory.getdataListParm.parammaps,"inputDatetime",e)},expression:"seeHistory.getdataListParm.parammaps.inputDatetime"}}),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-table",{directives:[{name:"loading",rawName:"v-loading",value:t.seeHistory.listLoading,expression:"seeHistory.listLoading"}],key:t.seeHistory.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.seeHistory.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"span-method":t.objectSpanMethod2}},[a("el-table-column",{key:1,attrs:{label:"序号",prop:"sort",align:"center",width:"50px"}}),a("el-table-column",{key:2,attrs:{label:"修改时间",prop:"operatetime1","min-width":"90px",align:"center"}}),a("el-table-column",{key:3,attrs:{label:"班次",prop:"times","min-width":"90px",align:"center"}}),a("el-table-column",{key:4,attrs:{label:"第一层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"onerate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"oneweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:5,attrs:{label:"第二层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"tworate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"twoweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:6,attrs:{label:"第三层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"threerate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"threeweight","min-width":"90px",align:"center"}})],1),a("el-table-column",{key:7,attrs:{label:"第四层","min-width":"90px",align:"center"}},[a("el-table-column",{attrs:{label:"比例 (%)",prop:"fourrate","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{label:"重量 (g)",prop:"fourweight","min-width":"90px",align:"center"}})],1)],1),a("pagination2",{directives:[{name:"show",rawName:"v-show",value:t.seeHistory.total>0,expression:"seeHistory.total>0"}],attrs:{total:t.seeHistory.total,page:t.seeHistory.getdataListParm.offset,limit:t.seeHistory.getdataListParm.pagecount},on:{"update:page":function(e){return t.$set(t.seeHistory.getdataListParm,"offset",e)},"update:limit":function(e){return t.$set(t.seeHistory.getdataListParm,"pagecount",e)},pagination:t.getSeeHistoryList}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose cancelClose1",on:{click:function(e){t.seeHistory.dialogFormVisible=!1}}},[t._v("关闭")])],1)])])],1)},s=[],r=(a("d3b7"),a("159b"),a("2934")),l=(a("b76a"),a("a78e")),n=a.n(l),o=a("ed08"),c=a("c483"),d={name:"MaterialIssuancePlan",display:"Two list header slot",order:14,components:{Pagination2:c["a"]},data:function(){return{table:{getdataListParm:{name:"getPennsieveHistory",page:1,offset:1,pagecount:12,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),operatetime:""}},list:[],total:0,tableKey:0,listLoading:!1,temp:{},changeList:[],startObj:{}},spanObj:{},mergekeys:["barname","operation"],textMap:{seeHistory:"宾州筛修改记录"},seeHistory:{dialogFormVisible:!1,dialogStatus:"",total:0,tableKey:0,listLoading:!1,getdataListParm:{name:"getPennsieveHistoryBar",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",inputDatetime:"",time1:"",time2:""}}},spanObj2:{},mergekeys2:["operatetime1"],rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{changeDate:function(){this.getList()},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.handleSpan(),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)}))},handleSpan:function(){var t=this;this.mergekeys.forEach((function(e){t.spanObj[e]=[];var a=0;t.table.list.forEach((function(i,s){0===s?(t.spanObj[e].push(1),a=0):"operation"==e?t.table.list[s][e]===t.table.list[s-1][e]&&t.table.list[s]["barname"]===t.table.list[s-1]["barname"]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s):t.table.list[s][e]===t.table.list[s-1][e]?(t.spanObj[e][a]+=1,t.spanObj[e].push(0)):(t.spanObj[e].push(1),a=s)}))}))},objectSpanMethod:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.mergekeys.length;i++)if(e.property===this.mergekeys[i]){var s=this.spanObj[this.mergekeys[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},handleSearch:function(){""==this.table.getdataListParm.parammaps.operatetime||null==this.table.getdataListParm.parammaps.operatetime?this.table.getdataListParm.parammaps.operatetime="":this.table.getdataListParm.parammaps.operatetime=Object(o["d"])(this.table.getdataListParm.parammaps.operatetime,"{y}-{m}-{d}"),this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.operatetime="",this.getList()},handleSeeHistory:function(t){this.textMap.seeHistory="宾州筛修改记录——栏舍:"+t.barname,this.seeHistory.dialogFormVisible=!0,this.seeHistory.dialogStatus="seeHistory",this.seeHistory.getdataListParm.parammaps.barid=t.barids,this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.getSeeHistoryList()},getSeeHistoryList:function(){var t=this;this.seeHistory.listLoading=!0,Object(r["c"])(this.seeHistory.getdataListParm).then((function(e){null!==e.data.list?(t.seeHistory.list=e.data.list,t.handleSpan2(),t.seeHistory.pageNum=e.data.pageNum,t.seeHistory.pageSize=e.data.pageSize,t.seeHistory.total=e.data.total):t.seeHistory.list=[],setTimeout((function(){t.seeHistory.listLoading=!1}),100)}))},handleSpan2:function(){var t=this;this.mergekeys2.forEach((function(e){t.spanObj2[e]=[];var a=0;t.seeHistory.list.forEach((function(i,s){0===s?(t.spanObj2[e].push(1),a=0):"operation"==e?t.seeHistory.list[s][e]===t.seeHistory.list[s-1][e]&&t.seeHistory.list[s]["barname"]===t.seeHistory.list[s-1]["barname"]?(t.spanObj2[e][a]+=1,t.spanObj2[e].push(0)):(t.spanObj2[e].push(1),a=s):t.seeHistory.list[s][e]===t.seeHistory.list[s-1][e]?(t.spanObj2[e][a]+=1,t.spanObj2[e].push(0)):(t.spanObj2[e].push(1),a=s)}))}))},objectSpanMethod2:function(t){t.row;for(var e=t.column,a=t.rowIndex,i=(t.columnIndex,0);i<this.mergekeys2.length;i++)if(e.property===this.mergekeys2[i]){var s=this.spanObj2[this.mergekeys2[i]][a],r=s>0?1:0;return{rowspan:s,colspan:r}}},handleSearch2:function(){""!==this.seeHistory.getdataListParm.parammaps.inputDatetime&&null!==this.seeHistory.getdataListParm.parammaps.inputDatetime?(this.seeHistory.getdataListParm.parammaps.time1=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.seeHistory.getdataListParm.parammaps.time2=Object(o["d"])(this.seeHistory.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2=""),this.seeHistory.getdataListParm.offset=1,this.getSeeHistoryList()},handleRefresh2:function(){this.seeHistory.getdataListParm.parammaps.time1="",this.seeHistory.getdataListParm.parammaps.time2="",this.seeHistory.getdataListParm.parammaps.inputDatetime="",this.getSeeHistoryList()}}},p=d,m=(a("f607"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"943eea06",null);e["default"]=u.exports},ed08:function(t,e,a){"use strict";a.d(e,"d",(function(){return s})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return l})),a.d(e,"e",(function(){return o}));var i=a("53ca");a("ac1f"),a("00b4"),a("d3b7"),a("25f0"),a("5319"),a("a15b"),a("d81d"),a("b64b"),a("1276"),a("fb6a"),a("159b"),a("d9e2"),a("a630"),a("3ca3"),a("6062"),a("ddb0"),a("466d"),a("4d63"),a("c607"),a("2c3e");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,i,s){Promise.all([a.e("chunk-cf83d4b8"),a.e("chunk-b702d234")]).then(a.bind(null,"4bf8")).then((function(a){var r=[],l=[],o=[];for(var c in t)r.push(t[c].tHeader),l.push(n(t[c].filterVal,t[c].tableDatas)),o.push(t[c].sheetName);a.export_json_to_excel2({header:r,data:l,sheetname:o,filename:e,autoWidth:i,bookType:s})}))}function n(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?s(e[t]):e[t]}))}))}function o(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:"success",staticStyle:{"margin-left":"10px"},attrs:{icon:"el-icon-plus"},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:"80","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:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}),a("span",{staticClass:"centerSpan"},[t._v("|")]),"已删"!=i.status?a("el-button",{staticClass:"miniDanger",attrs:{icon:"el-icon-delete"},on:{click:function(e){return t.handleDelete(i)}}}):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",staticClass:"save",attrs:{type:"success"},on:{click:function(e){return t.createData_again()}}},[t._v(" 确认新增 ")]):t._e(),a("el-button",{staticClass:"save",on:{click:function(e){"create"===t.dialogStatus?t.createData():t.updateData()}}},[t._v(" 确认 ")]),a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" 关闭 ")])],1)],1)],1)])},s=[],r=a("b85c"),l=(a("b0c0"),a("4e82"),a("3de8")),n=a("6724"),o=a("61f7"),c=a("2934"),d=a("5c96"),p={name:"Menu",components:{TreeSelect:l["a"]},directives:{waves:n["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:o["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"30px",height:"30px"},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(c["c"])(this.getListParm).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=Object(c["q"])(e.data.list,"id","parentid","children")}t.getDownList(),setTimeout((function(){t.listLoading=!1}),500)}))},getDownList:function(){var t=this;Object(c["c"])(this.getRecuListParm).then((function(e){null!==e.data.list&&(t.parentmenu=Object(c["q"])(e.data.list,"id","parentid","children"))}))},refreshDownList:function(){var t,e=Object(r["a"])(this.parentmenu);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.parent=[],("noredirect"===a.redirect&&"menu"===this.deptform.menutype||"button"===this.deptform.menutype)&&this.parent.push({id:a.id,title:a.title,parentid:a.parentid})}}catch(i){e.e(i)}finally{e.f()}},resetRequestParam:function(){this.deptform.id="",this.deptform.parentid="-1",this.deptform.name="",this.deptform.title="",this.deptform.path="",this.deptform.component="Layout",this.deptform.icon="",this.deptform.redirect="",this.deptform.sort="0",this.deptform.menutype="",this.deptform.enable="1"},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(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="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(c["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,Object(c["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(c["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="deleteMenu",e.requestParam.params=[],e.requestParam.params[0]=t.id,Object(c["f"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},m=p,u=a("2877"),h=Object(u["a"])(m,i,s,!1,null,null,null);e["default"]=h.exports},eeae: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)}}},[t._v(" "+t._s(e.value.chi_value)+" "+t._s(e.filterOperator)+" "+t._s(e.value.value1)+" ")])})),a("el-button",{staticClass:"save",staticStyle:{width:"150px"},attrs:{disabled:t.disabled},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:"请选择筛选字段"},on:{change:t.comment_change},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.Comment,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:"请选择筛选字段"},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("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"downminCancel",staticStyle:{right:"90px"},attrs:{size:"mini"},on:{click:function(e){t.visible=!1}}},[t._v("取消")]),a("el-button",{staticClass:"miniPrimary",attrs:{size:"mini",type:"primary"},on:{click:t.handleConfirm}},[t._v("确认")])],1)],1)],2)},s=[],r=(a("7db0"),a("d3b7"),a("159b"),a("a434"),a("c740"),a("d81d"),a("a15b"),a("b0c0"),a("ac1f"),a("1276"),a("aa35")),l=a("a5e0"),n=a("3537"),o={props:{roles:{default:Array},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,eng_value:"",chi_value:""}},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:{comment_change:function(t){var e=t,a="";this.sharedState.allCols.forEach((function(t){t.Column==e&&(a=t.Comment)})),this.chi_value=a},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,chi_value:this.chi_value},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,"'"),chi_value:"'".concat(t.chi_value,"'"),arrValue:t.arrValue.map((function(t){return"'".concat(t,"'")}))}}}},c=o,d=(a("f346"),a("2877")),p=Object(d["a"])(c,i,s,!1,null,"25db0006",null);e["default"]=p.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("4e82"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("00b4"),a("b0c0"),a("d3b7"),a("ddb0"),a("6724")),l=a("61f7"),n=a("2934"),o=a("333d"),c=a("5c96"),d=a("a78e"),p=a.n(d),m={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:p.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:p.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:"30px",height:"30px"},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["d"])(this.requestParams).then((function(e){t.rolelist=e.data.getRoleall.list,t.emplist=e.data.getEmpall.list,Object(n["c"])(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,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,isgroups:p.a.get("ispastureuse")}},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("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})}))}}))},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["c"])(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["c"])(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=m,h=a("2877"),b=Object(h["a"])(u,i,s,!1,null,null,null);e["default"]=b.exports},f245:function(t,e,a){},f259:function(t,e,a){"use strict";a("0abe")},f346:function(t,e,a){"use strict";a("453b")},f38c: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="M870.4 204.8a51.2 51.2 0 0 1 51.2 51.2v460.8a51.2 51.2 0 0 1-51.2 51.2H255.9488l-113.7664 75.8784a25.6 25.6 0 0 1-9.216 3.7888l-4.9664 0.512a25.6 25.6 0 0 1-25.1904-20.992L102.4 822.5792V256a51.2 51.2 0 0 1 51.2-51.2h716.8z m-140.8 320h-486.4v76.8h486.4v-76.8z m-204.8-179.2h-281.6v76.8h281.6v-76.8z" p-id="219657" /></symbol>'});l.a.add(n);e["default"]=n},f5d5: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-库存管理1",use:"icon-库存管理1-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-库存管理1"><defs><style type="text/css"></style></defs><path d="M562.65728 73.4848l383.08352 238.71488c13.50144 8.46336 21.9392 23.70048 21.9392 40.06656v566.47424c0 26.5216-21.376 47.40352-47.25248 47.40352H108.69248C82.2528 966.144 61.44 944.69888 61.44 918.74048V352.832c0-16.36608 8.43776-31.6032 21.9392-40.06912l377.4592-239.84384c30.94016-18.62144 70.87872-18.62144 101.81888 0.5632zM202.92608 554.368c-12.81024 0-23.39328 10.73664-23.39328 23.7312v98.88c0 12.99456 10.58304 23.7312 23.39328 23.7312h117.51936c12.81024 0 23.39328-10.73664 23.39328-23.7312V578.0992c0-12.99456-10.58304-23.7312-23.39328-23.7312H202.92608z m0 197.68832c-12.81024 0-23.39328 10.73664-23.39328 23.7312v102.1312a20.48 20.48 0 0 0 20.48 20.48h123.34592a20.48 20.48 0 0 0 20.48-20.48v-102.1312c0-12.99456-10.58304-23.7312-23.39328-23.7312H202.92608z m249.024-197.68832c-12.81024 0-23.39328 10.73664-23.39328 23.7312v98.88c0 12.99456 10.58304 23.7312 23.39328 23.7312h117.51936c12.81024 0 23.39072-10.73664 23.39072-23.7312V578.0992c0-12.99456-10.58048-23.7312-23.39072-23.7312h-117.51936z m0-197.68576c-12.81024 0-23.39328 10.73408-23.39328 23.7312v98.87744c0 12.99456 10.58304 23.7312 23.39328 23.7312h117.51936c12.81024 0 23.39072-10.73664 23.39072-23.7312v-98.88c0-12.99456-10.58048-23.7312-23.39072-23.7312h-117.51936z m0 395.37408c-12.81024 0-23.39328 10.73664-23.39328 23.7312v102.1312a20.48 20.48 0 0 0 20.48 20.48h123.34336a20.48 20.48 0 0 0 20.48-20.48v-102.1312c0-12.99456-10.58048-23.7312-23.39072-23.7312h-117.51936z m228.1984 23.7312v102.1312a20.48 20.48 0 0 0 20.48 20.48h123.34336a20.48 20.48 0 0 0 20.48-20.48v-102.1312c0-12.99456-10.58304-23.7312-23.39328-23.7312H703.5392c-12.81024 0-23.39072 10.73664-23.39072 23.7312z" p-id="216229" /></symbol>'});l.a.add(n);e["default"]=n},f607:function(t,e,a){"use strict";a("306d")},f7062:function(t,e,a){"use strict";a("f7db")},f721:function(t,e,a){"use strict";a("6944")},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="M536.875947 705.066667c-20.266667 0-36.266667 17.066667-36.266667 36.266666 0 20.266667 17.066667 36.266667 36.266667 36.266667 20.266667 0 36.266667-16 36.266666-36.266667 0-19.2-16-36.266667-36.266666-36.266666zM348.075947 661.333333c-48-10.666667-84.266667-23.466667-109.866667-44.8-24.533333-20.266667-39.466667-51.2-46.933333-96 0-3.2-1.066667-6.4-4.266667-9.6l-59.733333-90.666666c-6.4-10.666667-20.266667-12.8-29.866667-6.4-1.066667 0-2.133333 1.066667-3.2 2.133333C33.40928 470.4-13.524053 534.4 3.542613 620.8c5.333333 27.733333 18.133333 53.333333 36.266667 73.6 17.066667 21.333333 40.533333 38.4 66.133333 51.2 69.333333 30.933333 162.133333 26.666667 251.733334-45.866667 9.6-7.466667 10.666667-21.333333 3.2-30.933333-3.2-4.266667-7.466667-6.4-12.8-7.466667z m296.533333 43.733334c-20.266667 0-36.266667 17.066667-36.266667 36.266666 0 20.266667 16 36.266667 36.266667 36.266667s36.266667-16 36.266667-36.266667c1.066667-19.2-16-36.266667-36.266667-36.266666z m108.8 0c-20.266667 0-36.266667 17.066667-36.266667 36.266666 0 20.266667 17.066667 36.266667 36.266667 36.266667 20.266667 0 36.266667-16 36.266667-36.266667 0-19.2-16-36.266667-36.266667-36.266666z" p-id="217938" /><path d="M960.342613 669.866667c-18.133333-18.133333-44.8-29.866667-72.533333-29.866667H511.275947c-28.8 0-54.4 11.733333-72.533334 29.866667-18.133333 18.133333-29.866667 43.733333-29.866666 72.533333 0 27.733333 11.733333 53.333333 29.866666 71.466667 0 0 0 1.066667 1.066667 1.066666 18.133333 18.133333 44.8 29.866667 72.533333 29.866667h376.533334c27.733333 0 53.333333-11.733333 71.466666-28.8l1.066667-1.066667c18.133333-18.133333 29.866667-44.8 29.866667-72.533333 0-27.733333-11.733333-53.333333-30.933334-72.533333 1.066667 0 1.066667 0 0 0z m-30.933333 114.133333c-11.733333 11.733333-25.6 18.133333-41.6 18.133333H511.275947c-16 0-30.933333-6.4-41.6-18.133333 0 0-1.066667 0-1.066667-1.066667-10.666667-10.666667-17.066667-24.533333-17.066667-40.533333s6.4-30.933333 18.133334-41.6c10.666667-10.666667 25.6-17.066667 41.6-17.066667h376.533333c16 0 30.933333 6.4 41.6 17.066667l1.066667 1.066667c10.666667 10.666667 17.066667 24.533333 17.066666 40.533333-1.066667 16-7.466667 30.933333-18.133333 41.6z" p-id="217939" /><path d="M862.20928 705.066667c-20.266667 0-36.266667 17.066667-36.266667 36.266666 0 20.266667 16 36.266667 36.266667 36.266667s36.266667-16 36.266667-36.266667c0-19.2-16-36.266667-36.266667-36.266666z m156.8-273.066667c-9.6-45.866667-34.133333-81.066667-74.666667-81.066667h-82.133333V288c0-28.8 1.066667-57.6 0-86.4 0-11.733333-10.666667-21.333333-22.4-21.333333h-1.066667c-41.6-1.066667-97.066667 0-148.266666 0h-65.066667c-8.533333 0-16 5.333333-19.2 12.8-28.8 46.933333-66.133333 112-98.133333 168.533333-6.4 11.733333-12.8 22.4-19.2 34.133333-14.933333-20.266667-30.933333-42.666667-48-66.133333-24.533333-35.2-50.133333-70.4-67.2-93.866667-19.2-25.6-39.466667-37.333333-60.8-36.266666-20.266667 1.066667-39.466667 14.933333-59.733334 38.4L139.00928 370.133333c-6.4 7.466667-6.4 19.2-1.066667 27.733334 6.4 10.666667 11.733333 19.2 17.066667 28.8 8.533333 14.933333 17.066667 29.866667 32 50.133333 6.4 9.6 20.266667 11.733333 30.933333 5.333333l5.333334-5.333333c10.666667-12.8 18.133333-23.466667 25.6-33.066667 18.133333-22.4 36.266667-44.8 54.4-68.266666 5.333333-6.4 4.266667-11.733333 6.4-10.666667 5.333333 3.2 16 18.133333 32 42.666667l130.133333 199.466666c4.266667 6.4 11.733333 9.6 18.133333 9.6 150.4 2.133333 302.933333 0 453.333334 0 39.466667 0 65.066667-36.266667 74.666666-83.2 3.2-16 5.333333-33.066667 5.333334-50.133333 1.066667-18.133333-1.066667-35.2-4.266667-51.2z m-226.133333-70.4c0 11.733333-9.6 22.4-21.333334 22.4H616.875947c-3.2 0-7.466667-1.066667-10.666667-3.2-10.666667-5.333333-13.866667-19.2-8.533333-29.866667l53.333333-94.933333c3.2-7.466667 11.733333-12.8 20.266667-12.8h99.2c11.733333 0 22.4 10.666667 22.4 22.4v96z" p-id="217940" /></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},f7db:function(t,e,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="M956.288 565.1456v339.8912c0 61.9904-50.304 112.2944-112.3584 112.2944H169.9712a112.3584 112.3584 0 0 1-112.3456-112.2944V565.1456A195.9936 195.9936 0 0 0 198.016 624.128a196.3648 196.3648 0 0 0 162.2016-85.504c45.888 81.024 148.7616 109.4912 229.76 63.616a168.448 168.448 0 0 0 63.616-63.616c61.3632 89.6 183.744 112.4864 273.3568 51.1232a195.9936 195.9936 0 0 0 29.312-24.576" p-id="218655" /><path d="M310.3744 287.1296a28.096 28.096 0 0 0 0 56.1664h393.216a28.0832 28.0832 0 1 0 0-56.1664h-393.216z m692.736 24.1408c33.3696 103.3088-23.3344 214.1056-126.6432 247.4752a196.5568 196.5568 0 0 1-222.7968-76.2368c-45.8624 81.024-148.7104 109.5424-229.76 63.6928a168.5504 168.5504 0 0 1-63.68-63.6928c-61.2352 89.6384-183.552 112.6784-273.2032 51.4432A196.5952 196.5952 0 0 1 10.9184 310.9376c3.3664-18.1248 9.6-35.6864 18.5856-51.8656l108.3008-194.944A112.4224 112.4224 0 0 1 236.0576 6.3232h541.7728A112.2944 112.2944 0 0 1 876.032 64.128l108.3648 194.944a169.1264 169.1264 0 0 1 18.7136 52.1984z" p-id="218656" /></symbol>'});l.a.add(n);e["default"]=n},f9d1: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"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate1}},[t._v("设置推料时间")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-plus"},on:{click:t.handleCreate2}},[t._v("设置允许误差时间")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},attrs:{icon:"el-icon-open"},on:{click:t.handleTakeEffect}},[t._v("启用")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left"},attrs:{icon:"el-icon-turn-off"},on:{click:t.handleDisable}},[t._v("禁用")]):t._e(),t.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:t.handleCheck}},[t._v("校验")]):t._e(),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:t.handleHistoryRecords}},[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:{"element-loading-text":"给我一点时间",data:t.table.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight},on:{"header-click":t.headerClick,"cell-click":t.cellClick,"selection-change":t.handleSelect,"cell-dblclick":t.celldblclick}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{key:1,attrs:{label:"序号",align:"center",type:"index",width:"50px","class-name":"small-padding fixed-width",fixed:"left"}}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"100px",align:"center","class-name":"small-padding fixed-width",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.bname))])]}}])}),a("el-table-column",{key:2,attrs:{label:"推料车名称","min-width":"70px",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%",padding:"10px 0"},attrs:{filterable:"",placeholder:"推料车名称"},on:{change:function(a){return t.changeTmrCode(e.$index,e.row,a)}},model:{value:e.row.tmrid,callback:function(a){t.$set(e.row,"tmrid",a)},expression:"scope.row.tmrid"}},t._l(t.tmrCodeList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1):t._e()]}}])}),a("el-table-column",{key:3,attrs:{label:"推料车编号","min-width":"90px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrcode))])]}}])}),a("el-table-column",{key:4,attrs:{label:"推料时间(每天)","min-width":"85px",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(),t._l(e.row.timesArr,(function(i){return e.row.Edit?a("el-tag",{key:i,attrs:{closable:"",type:"success"},on:{close:function(a){return t.tag_close(e.$index,e.row,i)}}},[t._v(t._s(i))]):t._e()})),e.row.Edit?a("el-time-picker",{attrs:{"picker-options":{selectableRange:"00:00:00 - 23:59:59"},"value-format":"HH:mm",format:"HH:mm",placeholder:"任意时间点"},on:{change:function(a){return t.change_time(e.$index,e.row,a)}},model:{value:e.row.times,callback:function(a){t.$set(e.row,"times",a)},expression:"scope.row.times"}}):t._e()]}}])}),a("el-table-column",{key:5,attrs:{label:"允许误差时间(分钟)","min-width":"85px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.NoEdit?a("span",[t._v(t._s(e.row.allowableerror))]):t._e(),e.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"number"},model:{value:e.row.allowableerror,callback:function(a){t.$set(e.row,"allowableerror",a)},expression:"scope.row.allowableerror"}}):t._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"90px",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},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:"80","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.isUpdate&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{icon:"el-icon-edit-outline"},on:{click:function(e){return t.handleUpdate(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:t.isokDisable,icon:"el-icon-folder-checked"},on:{click:function(e){return t.updateData(i)}}}):t._e(),i.isUpdateSave&&t.isRoleEdit?a("span",{staticClass:"centerSpan"},[t._v("|")]):t._e(),i.isUpdateSave&&t.isRoleEdit?a("el-button",{staticClass:"minCancel",attrs:{icon:"el-icon-close"},on:{click:function(e){return t.updateCancel(i)}}}):t._e()]}}])})],1),0==t.table.listLoading?a("span",{staticStyle:{"margin-right":"30px","margin-top":"10px","font-size":"14px"}},[t._v("共"+t._s(t.table.total)+"条")]):t._e()],1),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.create1.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(e){return t.$set(t.create1,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" 推料计划 ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.create1.rules,model:t.create1.temp,"label-position":"right","label-width":"155px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"设置时间:",prop:"useinbarid"}},[a("el-time-picker",{attrs:{"picker-options":{selectableRange:"00:00:00 - 23:59:59"},"value-format":"HH:mm",format:"HH:mm",placeholder:"任意时间点"},on:{change:t.change_time1},model:{value:t.timevalue1,callback:function(e){t.timevalue1=e},expression:"timevalue1"}})],1)],1)],1),a("el-row",t._l(t.timetags1,(function(e){return a("el-tag",{key:e.name,attrs:{closable:"",type:"success"},on:{close:function(a){return t.tag_close1(e)}}},[t._v(t._s(e))])})),1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create1.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),a("el-button",{staticClass:"save",on:{click:t.create_sure1}},[t._v("确认")])],1)],1)],2),a("el-dialog",{attrs:{fullscreen:t.dialogFull,visible:t.create2.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(e){return t.$set(t.create2,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" 允许误差时间 ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:t.create2.rules,model:t.create2.temp,"label-position":"right","label-width":"155px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"允许误差时间(分钟):",prop:"allowableerror"}},[a("el-input",{ref:"time",staticClass:"filter-item",attrs:{placeholder:"请输入",type:"text"},model:{value:t.create2.temp.allowableerror,callback:function(e){t.$set(t.create2.temp,"allowableerror",e)},expression:"create2.temp.allowableerror"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(e){t.create2.dialogFormVisible=!1,t.getList()}}},[t._v("关闭")]),a("el-button",{staticClass:"save",on:{click:t.create_sure2}},[t._v("确认")])],1)],1)],2),a("el-dialog",{attrs:{title:"提示","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"},["0"==t.check.temp.isDistribution1?a("p",[t._v("未启用分配如下:")]):a("p",[t._v("当前栏舍已分配完")]),t._v(" "+t._s(t.check.temp.banme1)+" "),"0"==t.check.temp.isDistribution2?a("p",[t._v("未启用栏舍如下:")]):a("p",[t._v("当前栏舍已全部启用")]),t._v(" "+t._s(t.check.temp.banme2)+" ")]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"save",on:{click:function(e){t.check.dialogFormVisible=!1}}},[t._v("确认")])],1)]),a("el-dialog",{attrs:{fullscreen:t.dialogFull,"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("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" 历史记录 ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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.changeTime,callback:function(e){t.$set(t.history.getdataListParm.parammaps,"changeTime",e)},expression:"history.getdataListParm.parammaps.changeTime"}})],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.barname))])]}}])}),a("el-table-column",{attrs:{label:"推料车名称",prop:"weight","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tmrname))])]}}])}),a("el-table-column",{attrs:{label:"推料车编号",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.tisms))])]}}])}),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.allowableerror))])]}}])})],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:"cancelClose cancelClose1",on:{click:function(e){t.history.dialogFormVisible=!1}}},[t._v("关闭")])],1)],2)],1)},s=[],r=a("5530"),l=(a("d3b7"),a("159b"),a("ac1f"),a("1276"),a("7db0"),a("b0c0"),a("a15b"),a("a434"),a("00b4"),a("d81d"),a("2934")),n=a("333d"),o=a("c483"),c=a("ed08"),d=a("5c96"),p=a("a78e"),m=a.n(p),u=(a("bc3a"),a("5f87"),{inject:["reload"],name:"PushMaterialPlan",components:{Pagination:n["a"],Pagination2:o["a"]},data:function(){return{history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataDateParm:{name:"getPushingHistoryDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:m.a.get("pastureid")}},getdataListParm:{name:"getPushingHistory",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:m.a.get("pastureid"),changeTime:""}}},tmrCodeList:[],table:{getdataListParm:{name:"getPushingList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:m.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create1:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:m.a.get("pastureid"),fname:""},rules:{}},create2:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:m.a.get("pastureid"),allowableerror:""},rules:{}},check:{dialogFormVisible:!1,dialogStatus:"",getCheckParm:{name:"checkRemainplan",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:m.a.get("pastureid")}},temp:{bnames:"",isDistribution1:"",isDistribution2:""}},timevalue1:new Date(2022,9,10,18,40),timetags1:[],dialogFull:!1,isRoleEdit:[],headerList:[],pickerMinDate:"",rules:{cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},selectList:[],requestParam:{},download:{getdataListParm:{name:"getFPList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:m.a.get("pastureid"),enable:""}},list:[]},spanObj:{},mergekeys:["barname","sumweight"],isShowDialog:!1,isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150,oldRowList:{}}},computed:{},created:function(){this.getButtons(),this.getTMRlist(),this.getList()},methods:{getButtons:function(){var t="DhedFormula",e=Object(l["h"])(JSON.parse(sessionStorage.getItem("buttons")),t);this.isRoleEdit=e},getTMRlist:function(){var t=this,e={name:"getPushingTmrList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{dictname:"推料车"}};Object(l["c"])(e).then((function(e){null!==e.data.list?t.tmrCodeList=e.data.list:t.tmrCodeList=[]}))},getList:function(){var t=this;this.table.listLoading=!0,Object(l["c"])(this.table.getdataListParm).then((function(e){if(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);e.data.list.forEach((function(t){""!==t.times?t.timesArr=t.times.split(","):t.timesArr=[]})),t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize}else t.table.list=[];t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},changeTmrCode:function(t,e,a){var i=this.tmrCodeList.find((function(t){return t.id===e.tmrid})).Code,s=this.tmrCodeList.find((function(t){return t.id===e.tmrid})).name;this.table.list[t].tmrcode=i,this.table.list[t].tmrname=s},handleCreate1:function(){0==this.selectList.length?this.$message({type:"error",message:"请选择推料信息",duration:2e3}):(this.resetTemp1(),this.dialogFull=!1,this.create1.dialogStatus="create",this.create1.dialogFormVisible=!0)},resetTemp1:function(){this.timetags1=[]},create_sure1:function(){var t=this,e=this.timetags1,a=this.selectList,i=[];a.forEach((function(t){i.push(t.id)}));var s=[];a.forEach((function(t){e.forEach((function(e){s.push({time:e,tmrname:t.tmrname,tmrid:t.tmrid,id:t.id})}))}));var r={common:{returnmap:"0"},data:[{name:"checkPushing",resultmaps:{list:s},children:[{name:"checkPushing",type:"e",parammaps:{tmrname:"@checkPushing.tmrname",tmrid:"@checkPushing.tmrid",id:"@checkPushing.id",time:"@checkPushing.time",type:0}}]}]},n={common:{returnmap:"0"},data:[{name:"insertPushingHistory",type:"e",parammaps:{ids:i.join(","),pastureid:m.a.get("pastureid")}},{name:"delPushingDetailByIds",type:"e",parammaps:{ids:i.join(",")}},{name:"insertPushingDetail",resultmaps:{list:s},children:[{name:"insertPushingDetailByPushingId",type:"e",parammaps:{pastureid:m.a.get("pastureid"),id:"@insertPushingDetail.id",time:"@insertPushingDetail.time",type:0}}]}]};Object(l["i"])(r).then((function(e){!0===e.data?Object(l["b"])(n).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.create1.dialogFormVisible=!1,t.getList())})):t.$notify({title:"设置失败",message:e.data,type:"warning",duration:2e3})}))},handleCreate2:function(){0==this.selectList.length?this.$message({type:"error",message:"请选择推料信息",duration:2e3}):(this.resetTemp2(),this.dialogFull=!1,this.create2.dialogStatus="create",this.create2.dialogFormVisible=!0)},resetTemp2:function(){this.create2.temp={pastureid:m.a.get("pastureid"),allowableerror:""}},create_sure2:function(){var t=this,e=this.create2.temp.allowableerror,a=this.selectList,i=[];a.forEach((function(t){i.push(t.id)}));var s={name:"updateAllowableerrorByIds",parammaps:{allowableerror:e,ids:i.join(",")}};Object(l["f"])(s).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.create2.dialogFormVisible=!1,t.getList())}))},change_time1:function(t){this.timetags1.push(t)},tag_close1:function(t){this.timetags1.splice(this.timetags1.indexOf(t),1)},change_time:function(t,e,a){this.table.list[t].timesArr.push(a)},tag_close:function(t,e,a){this.table.list[t].timesArr.splice(this.table.list[t].timesArr.indexOf(a),1)},handleCheck:function(){this.check.dialogStatus="check",this.check.dialogFormVisible=!0,this.getCheckList()},getCheckList:function(){var t=this,e={name:"checkPushingBar",offset:0,pagecount:0,parammaps:{pastureid:m.a.get("pastureid")}};Object(l["c"])(e).then((function(e){void 0!==e.data.list[0].banme1?(t.check.temp.isDistribution1=0,t.check.temp.banme1=e.data.list[0].banme1):t.check.temp.isDistribution1=1,void 0!==e.data.list[0].banme2?(t.check.temp.isDistribution2=0,t.check.temp.banme2=e.data.list[0].banme2):t.check.temp.isDistribution2=1}))},handleTakeEffect: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(){var e=t.selectList,a=[];e.forEach((function(t){a.push(t.id)}));var i={name:"updateEnableByIds",parammaps:{enable:"1",ids:a.join(",")}};Object(l["c"])(i).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())}))}))},handleDisable: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(){var e=t.selectList,a=[];e.forEach((function(t){a.push(t.id)}));var i={name:"updateEnableByIds",parammaps:{enable:"0",ids:a.join(",")}};Object(l["c"])(i).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())}))}))},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){this.headerList.push(e);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],"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[a],"isTwoWeight",!1)))},celldblclick:function(t,e,a,i){this.handleUpdate(t)},handleUpdate:function(t){this.oldRowList=Object(r["a"])({},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;if(t.pastureid=m.a.get("pastureid"),""===t.tmrid||null==t.tmrid)return this.$message({type:"error",message:"推料车名称不能为空",duration:2e3}),!1;var a=/^[0-9]\d*$/;if(!a.test(parseFloat(t.allowableerror)))return this.$message({type:"error",message:"允许误差数请输入0-60正整数",duration:2e3}),!1;if(parseFloat(t.allowableerror)>60)return this.$message({type:"error",message:"允许误差数请输入0-60正整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var i=t.timesArr,s=[];i.forEach((function(t){s.push({time:t})}));var r={common:{returnmap:"0"},data:[{name:"checkPushing",resultmaps:{list:s},children:[{name:"checkPushing",type:"v",parammaps:{tmrname:t.tmrname,tmrid:t.tmrid,id:t.id,time:"@checkPushing.time",type:0}}]}]};if(0==t.id)var n={common:{returnmap:"0"},data:[{name:"insertPushing",type:"e",parammaps:t},{name:"insertPushingDetail",resultmaps:{list:s},children:[{name:"insertPushingDetail",type:"e",parammaps:{pastureid:m.a.get("pastureid"),barid:t.barid,time:"@insertPushingDetail.time",type:0}}]}]};else n={common:{returnmap:"0"},data:[{name:"insertPushingHistory",type:"e",parammaps:{ids:t.id,pastureid:m.a.get("pastureid")}},{name:"updatePushing",type:"e",parammaps:t},{name:"delPushingDetail",type:"e",parammaps:{id:t.id}},{name:"insertPushingDetail",resultmaps:{list:s},children:[{name:"insertPushingDetail",type:"e",parammaps:{pastureid:m.a.get("pastureid"),barid:t.barid,time:"@insertPushingDetail.time",type:0}}]}]};Object(l["i"])(r).then((function(t){!0===t.data?Object(l["b"])(n).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())})):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}))},updateCancel:function(t){t.Edit=!1,t.NoEdit=!0,t.isUpdate=!0,t.isUpdateSave=!1;for(var e=0;e<this.headerList.length;e++)"el-icon-lock"==this.headerList[e].target.className&&(this.headerList[e].target.className="el-icon-unlock",this.$set(this.headerList[e].target,"className","el-icon-unlock"));this.table.getdataListParm.offset=this.table.getdataListParm.offset,this.getList()},cellClick:function(t,e,a){},handleSelect:function(t){this.selectList=t},tableRowClassName:function(t){var e=t.row;return"0"==e.isColor?"red-row":""},handleHistoryRecords:function(){this.dialogFull=!1,this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var t=this;Object(l["c"])(this.history.getdataDateParm).then((function(e){null!==e.data.list?(t.history.getdataListParm.parammaps.changeTime=e.data.list[0].changeTime,t.getHistoryList()):t.history.getdataListParm.parammaps.changeTime=""}))},changeDate:function(){this.getHistoryList()},getHistoryList:function(){var t=this;this.history.listLoading=!0,Object(l["c"])(this.history.getdataListParm).then((function(e){null!==e.data.list?(t.history.list=e.data.list,t.history.pageNum=e.data.pageNum,t.history.pageSize=e.data.pageSize):t.history.list=[],t.history.total=e.data.total,setTimeout((function(){t.history.listLoading=!1}),100)}))},handleApplication:function(){var t=this;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=m.a.get("pastureid"),t.requestParam.parammaps.date=t.history.getdataListParm.parammaps.date,Object(l["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:"已取消应用"})}))},formatJson:function(t,e){return e.map((function(e){return t.map((function(t){return"timestamp"===t?Object(c["d"])(e[t]):e[t]}))}))},blurBw:function(t){},focusBw:function(t){}}}),h=u,b=(a("a1b9"),a("30b5c"),a("2877")),g=Object(b["a"])(h,i,s,!1,null,"83b5dcd0",null);e["default"]=g.exports},faaa: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:"120px"},attrs:{placeholder:"牧场"},model:{value:t.table.getdataListParm.parammaps.pastureid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"pastureid",e)},expression:"table.getdataListParm.parammaps.pastureid"}},t._l(t.pastureList,(function(t){return a("el-option",{key:t.pastureid,attrs:{label:t.pasturename,value:t.pastureid}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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",attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"计划类型",clearable:""},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-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.tmrtname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tmrtname",e)},expression:"table.getdataListParm.parammaps.tmrtname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"工作状态",clearable:""},model:{value:t.table.getdataListParm.parammaps.iscompleted,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"iscompleted",e)},expression:"table.getdataListParm.parammaps.iscompleted"}},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:{sortable:"",label:"牧场","min-width":"80px",align:"center",prop:"pastureName"}}),a("el-table-column",{attrs:{sortable:"",label:"开始时间","min-width":"100px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{sortable:"",label:"计划类型","min-width":"80px",align:"center",prop:"lpplantype"}}),a("el-table-column",{attrs:{sortable:"",label:"描述","min-width":"90px",align:"center",prop:"remark"}}),a("el-table-column",{attrs:{sortable:"",label:"TMR名称","min-width":"80px",align:"center",prop:"tmrtname"}})],1)],1)]),t.isPremixedPlan?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("混料时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Hdif)+"kg")]),a("span",[t._v("混料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].HdifRate))]),a("span",[t._v("混料准确率")])]):t._e()]),a("div",{staticClass:"Mixture"},[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}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"70px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"70px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"50px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"70px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"70px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"70px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"70px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"70px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"70px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"70px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"70px",align:"center",prop:"actualweight"}})],1)],1)]):t._e(),t.isSpreadingPlan?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("混料时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Hdif)+"kg")]),a("span",[t._v("混料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].HdifRate))]),a("span",[t._v("混料准确率")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Sdif)+"kg")]),a("span",[t._v("撒料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].SdifRate))]),a("span",[t._v("撒料准确率")])]):t._e()]),a("div",{staticClass:"Mixture"},[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}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"110px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"110px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"110px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"110px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"110px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"110px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"110px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"110px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"110px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"110px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:t.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,height:"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"70px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"70px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"70px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"70px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"70px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"70px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"70px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"70px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"70px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"70px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"70px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"ControlChart"},[a("h4",[t._v("监控图")]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])]):t._e(),t.isResidualMaterialPlan?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e()]),a("div",{staticClass:"Mixture"},[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",prop:"sort"}}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"110px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"剩料采集重量(kg)","min-width":"110px",align:"center",prop:"sweight"}})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"span-method":t.objectSpanMethod,"element-loading-text":"给我一点时间",data:t.table4.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",prop:"sort"}}),a("el-table-column",{attrs:{label:"转投栏舍","min-width":"110px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"允许分配剩料量","min-width":"110px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际分配重量(kg)","min-width":"110px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"废弃剩料重量","min-width":"110px",align:"center",prop:"aweight"}})],1)],1)]):t._e(),t.isSpreadingPlanSH?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("混料时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Hdif)+"kg")]),a("span",[t._v("混料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].HdifRate))]),a("span",[t._v("混料准确率")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Sdif)+"kg")]),a("span",[t._v("撒料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].SdifRate))]),a("span",[t._v("撒料准确率")])]):t._e()]),a("div",{staticClass:"Mixture"},[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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"60px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"60px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"60px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"60px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"60px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"60px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"60px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"60px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"60px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"60px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"60px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"60px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"撒料车辆","min-width":"60px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"60px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"60px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"60px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"60px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"60px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"60px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"60px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"60px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"60px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"ControlChart"},[a("h4",[t._v("监控图")]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])]):t._e(),t.isSpreadingPlanSS?a("el-col",{attrs:{span:16}},[a("div",{staticClass:"title"},[a("b",[t._v("过程详情")]),a("span",[t._v(" ("+t._s(t.title)+")")])]),a("div",{staticClass:"detail"},[0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("过程时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].proesstime))]),a("span",[t._v("混料时间")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].iscompleted))]),a("span",[t._v("工作状态")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Hdif)+"kg")]),a("span",[t._v("混料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].HdifRate))]),a("span",[t._v("混料准确率")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].Sdif)+"kg")]),a("span",[t._v("撒料误差值")])]):t._e(),0!==t.table2.list.length?a("div",[a("b",[t._v(t._s(t.table2.list[0].SdifRate))]),a("span",[t._v("撒料准确率")])]):t._e()]),a("div",{staticClass:"Mixture"},[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:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table3.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"60px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"撒料车辆","min-width":"60px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"60px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"60px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"60px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"60px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"60px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"60px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"60px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"60px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"60px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[t._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.table4.listLoading,expression:"table4.listLoading"}],key:t.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:t.table4.list,border:"",fit:"","highlight-current-row":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"70px",align:"center",prop:"sort"}}),a("el-table-column",{attrs:{label:"撒料车辆","min-width":"70px",align:"center",prop:"fname"}}),a("el-table-column",{attrs:{label:"计划重量","min-width":"70px",align:"center",prop:"lweight"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"70px",align:"center",prop:"actualweightminus"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"70px",align:"center",prop:"diff"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"70px",align:"center",prop:"diffRate"}}),a("el-table-column",{attrs:{label:"完成时间","min-width":"70px",align:"center",prop:"intime"}}),a("el-table-column",{attrs:{label:"过程时间","min-width":"70px",align:"center",prop:"proesstime"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"70px",align:"center",prop:"buttontype"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"70px",align:"center",prop:"lastactualweight"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"70px",align:"center",prop:"actualweight"}})],1)],1),a("div",{staticClass:"ControlChart"},[a("h4",[t._v("监控图")]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])]):t._e()],1)],1)},s=[],r=(a("b0c0"),a("d3b7"),a("159b"),a("313e")),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08");a("817d");var p={name:"GroupProcessAnalysis",data:function(){var t=this;return{title:"",isPremixedPlan:"",isSpreadingPlan:"",isResidualMaterialPlan:"",isSpreadingPlanSH:"",isSpreadingPlanSS:"",pickerMinDate:"",Beforedisabled:!1,Nextdisabled:!1,pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},requestParams:[{name:"getPastureListJT",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),pasturename:""}}],pastureList:[],planTypeList:[{lable:"预混计划",value:"4"},{lable:"撒料计划",value:"0"},{lable:"剩料计划",value:"3"},{lable:"撒料计划-混料",value:"1"},{lable:"撒料计划-撒料",value:"2"},{lable:"预称重计划",value:"5"}],workingConditionList:[{id:"0",name:"进行中"},{id:"1",name:"已完成"}],table:{getdataListParm:{name:"getprocessAnalysis",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:"",startTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],iscompleted:"",tmrtname:"",lpplantype:""}},tableKey:0,list:[],total:0,listLoading:!1},table2:{getdataListParm:{name:"getprocessAnalysisStr",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!0},table3:{getdataListParm:{name:"getprocessAnalysisHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!0},table4:{getdataListParm:{name:"getprocessAnalysisSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!0},chart1:{getdataListParm:{name:"getprocessAnalysisTB",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),id:""}},tableKey:0,list:[],total:0,listLoading:!1,chartLine_data:[]},chartLine:null,chartLine_data:{},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"}}},created:function(){this.getDownList()},methods:{getDownList:function(){var t=this;Object(n["d"])(this.requestParams).then((function(e){t.pastureList=e.data.getPastureListJT.list,t.table.getdataListParm.parammaps.pastureid=e.data.getPastureListJT.list[0].pastureid,t.getList()}))},getList:function(){var t=this;this.table.listLoading=!0,Object(n["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,"预混计划"==e.data.list[0].lpplantype?(t.isPremixedPlan=!0,t.isSpreadingPlan=!1,t.isResidualMaterialPlan=!1,t.isSpreadingPlanSH=!1,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3()):"剩料计划"==e.data.list[0].lpplantype?(t.isResidualMaterialPlan=!0,t.isPremixedPlan=!1,t.isSpreadingPlan=!1,t.isSpreadingPlanSH=!1,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.name="getprocessAnalysisStrSH",t.table3.getdataListParm.name="getprocessAnalysisHLSH",t.table4.getdataListParm.name="getprocessAnalysisSLSH",t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4()):"撒料计划-混料"==e.data.list[0].lpplantype?(t.isSpreadingPlan=!1,t.isResidualMaterialPlan=!1,t.isPremixedPlan=!1,t.isSpreadingPlanSH=!0,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4(),t.chart1.getdataListParm.parammaps.pid=e.data.list[0].id,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getChart1()):"撒料计划-撒料"==e.data.list[0].lpplantype?(t.isSpreadingPlan=!1,t.isResidualMaterialPlan=!1,t.isPremixedPlan=!1,t.isSpreadingPlanSH=!1,t.isSpreadingPlanSS=!0,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4(),t.chart1.getdataListParm.parammaps.pid=e.data.list[0].id,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getChart1()):"预称重计划"==e.data.list[0].lpplantype?(t.isSpreadingPlan=!1,t.isResidualMaterialPlan=!1,t.isPremixedPlan=!1,t.isSpreadingPlanSH=!0,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4(),t.chart1.getdataListParm.parammaps.pid=e.data.list[0].id,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getChart1()):(t.isSpreadingPlan=!0,t.isResidualMaterialPlan=!1,t.isPremixedPlan=!1,t.isSpreadingPlanSH=!1,t.isSpreadingPlanSS=!1,t.table2.getdataListParm.parammaps.id=e.data.list[0].id,t.table2.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table3.getdataListParm.parammaps.pid=e.data.list[0].id,t.table3.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.table4.getdataListParm.parammaps.pid=e.data.list[0].id,t.table4.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getList2(),t.getList3(),t.getList4(),t.chart1.getdataListParm.parammaps.pid=e.data.list[0].id,t.chart1.getdataListParm.parammaps.pastureid=e.data.list[0].pastureid,t.getChart1()),t.title=e.data.list[0].lpplantype):(t.table.list=[],t.table2.list=[],t.table3.list=[],t.table2.listLoading=!1,t.table3.listLoading=!1,t.table4.listLoading=!1,t.chart1.listLoading=!1),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(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(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.tmrtname="",this.table.getdataListParm.parammaps.iscompleted="",this.table.getdataListParm.parammaps.lpplantype="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},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));e>Date.now()?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),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));e>Date.now()?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList()},rowClick:function(t,e,a){this.table2.getdataListParm.parammaps.id=t.id,this.table3.getdataListParm.parammaps.pid=t.id,this.table4.getdataListParm.parammaps.pid=t.id,this.chart1.getdataListParm.parammaps.pid=t.id,this.chartName=t.tmrtname,"预混计划"==t.lpplantype?(this.isPremixedPlan=!0,this.isResidualMaterialPlan=!1,this.isSpreadingPlan=!1,this.isSpreadingPlanSH=!1,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3()):"剩料计划"==t.lpplantype?(this.isResidualMaterialPlan=!0,this.isPremixedPlan=!1,this.isSpreadingPlan=!1,this.isSpreadingPlanSH=!1,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStrSH",this.table3.getdataListParm.name="getprocessAnalysisHLSH",this.table4.getdataListParm.name="getprocessAnalysisSLSH",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4()):"撒料计划-混料"==t.lpplantype?(this.isSpreadingPlan=!1,this.isPremixedPlan=!1,this.isResidualMaterialPlan=!1,this.isSpreadingPlanSH=!0,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table4.getdataListParm.name="getprocessAnalysisSL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.chart1.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4(),this.getChart1()):"撒料计划-撒料"==t.lpplantype?(this.isSpreadingPlan=!1,this.isPremixedPlan=!1,this.isResidualMaterialPlan=!1,this.isSpreadingPlanSH=!1,this.isSpreadingPlanSS=!0,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table4.getdataListParm.name="getprocessAnalysisSL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.chart1.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4(),this.getChart1()):"预称重计划"==t.lpplantype?(this.isSpreadingPlan=!1,this.isPremixedPlan=!1,this.isResidualMaterialPlan=!1,this.isSpreadingPlanSH=!0,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table4.getdataListParm.name="getprocessAnalysisSL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.chart1.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4(),this.getChart1()):(this.isSpreadingPlan=!0,this.isPremixedPlan=!1,this.isResidualMaterialPlan=!1,this.isSpreadingPlanSH=!1,this.isSpreadingPlanSS=!1,this.table2.getdataListParm.name="getprocessAnalysisStr",this.table3.getdataListParm.name="getprocessAnalysisHL",this.table4.getdataListParm.name="getprocessAnalysisSL",this.table2.getdataListParm.parammaps.pastureid=t.pastureid,this.table3.getdataListParm.parammaps.pastureid=t.pastureid,this.table4.getdataListParm.parammaps.pastureid=t.pastureid,this.chart1.getdataListParm.parammaps.pastureid=t.pastureid,this.getList2(),this.getList3(),this.getList4(),this.getChart1()),this.title=""+t.lpplantype},getList2:function(){var t=this;this.table2.listLoading=!1,Object(n["c"])(this.table2.getdataListParm).then((function(e){null!==e.data.list?t.table2.list=e.data.list:t.table2.list=[],setTimeout((function(){t.table2.listLoading=!1}),100)}))},getList3:function(){var t=this;this.table3.listLoading=!1,Object(n["c"])(this.table3.getdataListParm).then((function(e){if(null!==e.data.list){t.table3.list=e.data.list;for(var a=0,i=0,s=0,r="",l=0;l<e.data.list.length;l++)void 0==e.data.list[l].lweight&&(e.data.list[l].lweight=0),void 0==e.data.list[l].actualweightminus&&(e.data.list[l].actualweightminus=0),void 0==e.data.list[l].sweight&&(e.data.list[l].sweight=0),a+=parseFloat(e.data.list[l].lweight),i+=parseFloat(e.data.list[l].actualweightminus),s+=parseFloat(e.data.list[l].sweight),r=e.data.list[0].sumproesstime;a=Object(n["k"])(a,2),i=Object(n["k"])(i,2),s=Object(n["k"])(s,2),t.table3.list.push({sort:"合计",lweight:a,actualweightminus:i,sweight:s,proesstime:r})}else t.table3.list=[];setTimeout((function(){t.table3.listLoading=!1}),100)}))},getList4:function(){var t=this;this.table4.listLoading=!1,Object(n["c"])(this.table4.getdataListParm).then((function(e){if(null!==e.data.list){t.table4.list=e.data.list;for(var a=0,i=0,s=0,r="",l=0;l<e.data.list.length;l++)void 0==e.data.list[l].lweight&&(e.data.list[l].lweight=0),void 0==e.data.list[l].actualweightminus&&(e.data.list[l].actualweightminus=0),void 0==e.data.list[l].sweight&&(e.data.list[l].sweight=0),a+=parseFloat(e.data.list[l].lweight),i+=parseFloat(e.data.list[l].actualweightminus),s+=parseFloat(e.data.list[l].sweight),r=e.data.list[0].sumproesstime;a=Object(n["k"])(a,2),i=Object(n["k"])(i,2),s=Object(n["k"])(s,2),t.table4.list.push({sort:"合计",lweight:a,actualweightminus:i,sweight:s,proesstime:r}),t.rowspan()}else t.table4.list=[];setTimeout((function(){t.table4.listLoading=!1}),100)}))},rowspan:function(){var t=this;this.spanArr=[],this.table4.list.forEach((function(e,a){0==a?(t.spanArr.push(1),t.position=0):t.table4.list[a].aweight==t.table4.list[a-1].aweight?(t.spanArr[t.position]+=1,t.spanArr.push(0)):(t.spanArr.push(1),t.position=a)}))},objectSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,a=t.columnIndex;if(4==a){var i=this.spanArr[e],s=i>0?1:0;return{rowspan:i,colspan:s}}},getChart1:function(){var t=this;this.chart1.listLoading=!0,Object(n["e"])(this.chart1.getdataListParm).then((function(e){if(null!==e.data.list){t.chart1.list=e.data.data;for(var a=[],i=[],s=0;s<e.data.list.data4.length;s++)0==s?i.push(e.data.list.data4[s]):s%2==0?a.push(e.data.list.data4[s]):i.push(e.data.list.data4[s]);e.data.list.data4=i,e.data.list.data5=a,t.chart1.chartLine_data=e.data.list,t.chart1.total=e.data.total,t.roadChartLine1(t.chart1.chartLine_data)}else t.chart1.list=[];setTimeout((function(){t.chart1.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:["#38c193","#5199e5","#fdb06a","#fb8b73"],legend:[{itemWidth:15,itemHeight:7,right:"25%",textStyle:{fontSize:12},data:[{name:"设计重量"},{name:"实际重量"}]},{itemWidth:15,itemHeight:15,right:"0",textStyle:{fontSize:12},data:[{name:"开始重量",icon:"image://https://kptyun.cn:8081/file/pic/3.png"},{name:"结束重量",icon:"image://https://kptyun.cn:8081/file/pic/4.png"}]}],tooltip:{trigger:"axis",formatter:function(t){for(var e=t[0].name,a=0;a<t.length;a++)e+="<br>"+t[a].seriesName+": ",t[a].value[0]==t[0].name?e+=t[a].value[1]:e+=t[a].value;return e+="<br>"+t[0].data[2]+t[0].data[3],e}},calculable:!0,xAxis:[{type:"category",splitLine:{show:!1},name:"时间",data:t.data1,axisLabel:{show:!0,textStyle:{color:"#666"}}}],yAxis:[{type:"value"}],series:[{symbol:"none",name:"实际重量",type:"line",data:t.data3,smooth:!0,barWidth:"37",itemStyle:{normal:{lineStyle:{color:"#38c193"}}}},{symbol:"none",name:"设计重量",type:"line",step:"middle",data:t.data2},{name:"开始重量",symbol:"image://https://kptyun.cn:8081/file/pic/3.png",symbolSize:10,type:"scatter",data:t.data4},{name:"结束重量",symbol:"image://https://kptyun.cn:8081/file/pic/4.png",symbolSize:10,type:"scatter",data:t.data5}]};this.chartLine.setOption(e),window.onresize=function(){this.chartLine.resize()}}}},m=p,u=(a("2a4c"),a("2877")),h=Object(u["a"])(m,i,s,!1,null,"3b4cf073",null);e["default"]=h.exports},fb98: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("div",[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px",float:"left","margin-bottom":"10px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},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",staticStyle:{float:"left","margin-bottom":"10px"},attrs:{disabled:t.Beforedisabled},on:{click:t.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",staticStyle:{float:"left","margin-bottom":"10px"},attrs:{disabled:t.Nextdisabled},on:{click:t.handleNext}})],1),a("div",{staticStyle:{clear:"both"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px",float:"left"},attrs:{placeholder:"牧场"},model:{value:t.table.getdataListParm.parammaps.pastureid,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"pastureid",e)},expression:"table.getdataListParm.parammaps.pastureid"}},t._l(t.pastureList,(function(t){return a("el-option",{key:t.pastureid,attrs:{label:t.pasturename,value:t.pastureid}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"110px",float:"left"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.tmrtname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"tmrtname",e)},expression:"table.getdataListParm.parammaps.tmrtname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"100px",float:"left"},attrs:{placeholder:"车次",clearable:""},model:{value:t.table.getdataListParm.parammaps.projname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"projname",e)},expression:"table.getdataListParm.parammaps.projname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"100px",float:"left"},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-input",{staticClass:"filter-item",staticStyle:{width:"120px",float:"left"},attrs:{placeholder:"配方名称",clearable:""},model:{value:t.table.getdataListParm.parammaps.templetname,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"templetname",e)},expression:"table.getdataListParm.parammaps.templetname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px",float:"left"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:t.table.getdataListParm.parammaps.buttontype,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"buttontype",e)},expression:"table.getdataListParm.parammaps.buttontype"}},t._l(t.jumpModeList,(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",float:"left"},attrs:{filterable:"",placeholder:"上传状态",clearable:""},model:{value:t.table.getdataListParm.parammaps.isuse,callback:function(e){t.$set(t.table.getdataListParm.parammaps,"isuse",e)},expression:"table.getdataListParm.parammaps.isuse"}},t._l(t.isuseList,(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("重置")]),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.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:t.myHeight2}},[a("el-table-column",{attrs:{label:"牧场","min-width":"90px",align:"center",prop:"牧场"}}),a("el-table-column",{attrs:{label:"日期","min-width":"70px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"70px",align:"center",prop:"TMR名称"}}),a("el-table-column",{attrs:{label:"车次","min-width":"50px",align:"center",prop:"车次"}}),a("el-table-column",{attrs:{label:"班次","min-width":"50px",align:"center",prop:"班次"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"90px",align:"center",prop:"配方名称"}}),a("el-table-column",{attrs:{label:"饲料","min-width":"70px",align:"center",prop:"饲料"}}),a("el-table-column",{attrs:{label:"理论重量","min-width":"55px",align:"center",prop:"理论重量"}}),a("el-table-column",{attrs:{label:"实际重量","min-width":"55px",align:"center",prop:"实际重量"}}),a("el-table-column",{attrs:{label:"误差值","min-width":"45px",align:"center",prop:"误差值"}}),a("el-table-column",{attrs:{label:"准确率","min-width":"45px",align:"center",prop:"准确率"}}),a("el-table-column",{attrs:{label:"计划时间","min-width":"55px",align:"center",prop:"计划时间"}}),a("el-table-column",{attrs:{label:"开始时间","min-width":"55px",align:"center",prop:"开始时间"}}),a("el-table-column",{attrs:{label:"结束时间","min-width":"55px",align:"center",prop:"结束时间"}}),a("el-table-column",{attrs:{label:"搅拌时间","min-width":"55px",align:"center",prop:"搅拌时间"}}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"55px",align:"center",prop:"跳转方式"}}),a("el-table-column",{attrs:{label:"开始重量","min-width":"55px",align:"center",prop:"开始重量"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"55px",align:"center",prop:"结束重量"}})],1)],1)])},s=[],r=(a("b0c0"),a("313e"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d");a("5c96");a("817d");var d={name:"Tab2",components:{Pagination:c["a"]},data:function(){var t=this;return{Beforedisabled:!1,Nextdisabled:!1,pickerMinDate:"",pickerOptions:{onPick:function(e){var a=e.maxDate,i=e.minDate;t.pickerMinDate=i.getTime(),a&&(t.pickerMinDate="")},disabledDate:function(e){if(""!==t.pickerMinDate){var a=26784e5,i=t.pickerMinDate-a,s=t.pickerMinDate+a;return s>new Date&&(s=new Date),e.getTime()<i||e.getTime()>s}return e.getTime()>Date.now()}},requestParams:[{name:"getPastureListJT",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),pasturename:""}}],pastureList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}},frequencyList:[],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}],isuseList:[{id:"0",name:"未完成"},{id:"2",name:"部分完成"},{id:"1",name:"全部完成"}],table:{getdataListParm:{name:"getStatisticsHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["d"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],tmrtname:"",projname:"",times:"",buttontype:"",templetname:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight2:document.documentElement.clientHeight-85-210}},created:function(){this.getTimeFn(),this.getDownList(),this.getIsDisplay()},activated:function(){this.getDownList(),this.getIsDisplay()},methods:{getTimeFn:function(){var t=this,e=(new Date,new Date,new Date),a=new Date;e.setTime(e.getTime()-864e5),a.setTime(a.getTime()-864e5),t.table.getdataListParm.parammaps.inputDatetime=[e,a],t.table.getdataListParm.parammaps.startTime=Object(o["d"])(e,"{y}-{m}-{d}"),t.table.getdataListParm.parammaps.stopTime=Object(o["d"])(a,"{y}-{m}-{d}")},getIsDisplay:function(){var t=this;Object(r["c"])(this.maxTime.getMaxTimesParm).then((function(e){1==e.data.list[0].inforvalue?(t.frequencyList=[{id:"1",name:"第一班"}],t.frequencyList=[{id:"1",name:"第一班"}]):2==e.data.list[0].inforvalue?(t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}],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:"第三班"}],t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}],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:"第四班"}],t.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},getDownList:function(){var t=this;Object(r["d"])(this.requestParams).then((function(e){t.pastureList=e.data.getPastureListJT.list,t.table.getdataListParm.parammaps.pastureid=e.data.getPastureListJT.list[0].pastureid,t.getList()}))},getList:function(){var t=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(e){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)}))},handleSearch:function(){this.table.getdataListParm.name="getStatisticsHL",""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(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.tmrtname="",this.table.getdataListParm.parammaps.projname="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.templetname="",this.table.getdataListParm.parammaps.buttontype="",this.getList()},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));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),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));e>Date.now()-864e5?(this.Nextdisabled=!0,this.Beforedisabled=!1):(this.Nextdisabled=!1,this.Beforedisabled=!1),this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(t,e),this.$forceUpdate()}this.table.getdataListParm.parammaps.startTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["d"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getList()},handleExport:function(){var t=[{tHeader:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","准确率","计划时间","开始时间","结束时间"," 跳转方式","开始重量","结束重量","搅拌时间"],filterVal:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","准确率","计划时间","开始时间","结束时间","跳转方式","开始重量","结束重量","搅拌时间"],tableDatas:this.table.list,sheetName:"混料统计"}];Object(o["c"])(t,"混料统计",!0,"xlsx")}}},p=d,m=(a("de2b"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"4c9bb694",null);e["default"]=u.exports},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="M1011.772003 544.075533 847.606059 108.652606 670.691767 108.652606l0 33.524534 135.027299 0 110.719684 397.644509L678.503687 539.821649l-169.111582 156.39598L329.879638 539.822672 94.542748 539.822672 205.237873 142.17714l137.64901 0L342.886883 108.652606 168.579975 108.652606 7.280312 550.280862l0.906649 0c-0.576121 1.639337-0.906649 3.393283-0.906649 5.230118l0 446.832791c0 8.662287 6.984065 15.689331 15.60542 15.689331l978.22649 0c8.614192 0 15.606443-7.027044 15.606443-15.689331L1016.718665 555.512003C1016.717641 550.997176 1014.808152 546.939767 1011.772003 544.075533zM588.128353 202.977901l90.233094 0L506.79393 0 339.997066 202.977901l90.232071 0 0 219.84608L588.128353 422.823981 588.128353 202.977901zM430.229137 473.558479 588.128353 473.558479l0-28.185946L430.229137 445.372533 430.229137 473.558479z" p-id="216797" /></symbol>'});l.a.add(n);e["default"]=n},fcbf:function(t,e,a){"use strict";a("27ed")},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["c"])(this.getNoMesCountParm).then((function(e){t.sumAmountDCL="待处理("+e.data.list[0].sumAmount+")"}))},getAllMesCount:function(){var t=this;Object(r["c"])(this.getAllMesCountParm).then((function(e){t.sumAmountAll="全部数据("+e.data.list[0].sumAmount+")"}))},getMesCount:function(){var t=this;Object(r["c"])(this.getMesCountParm).then((function(e){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["c"])(this.getdataListParmDCL).then((function(e){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["c"])(this.getdataListParmAll).then((function(e){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["c"])(this.getdataListParmYCL).then((function(e){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){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,"277da752",null);e["default"]=d.exports},fd38: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:{filterable:"",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-button",{staticClass:"successBorder",on:{click:t.handleSearch}},[t._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:t.handleRefresh}},[t._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},attrs:{icon:"el-icon-upload2"},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":"","row-style":t.rowStyle,"cell-style":t.cellStyle,"max-height":t.myHeight}},[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:"当前库存重量(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:"平均单价(元/kg)","min-width":"130px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v("后台待返回")])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"50","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:{icon:"el-icon-search",disabled:t.isokDisable},on:{click:function(e){return t.handleSee(i)}}})]}}])})],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:{fullscreen:t.dialogFull,visible:t.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(e){return t.$set(t.see,"dialogFormVisible",e)}}},[a("template",{slot:"title"},[a("div",{staticClass:"avue-crud__dialog__header"},[a("span",{staticClass:"el-dialog__title"},[a("span",{staticStyle:{display:"inline-block",width:"3px",height:"20px","margin-right":"5px",float:"left","margin-top":"2px"}}),t._v(" "+t._s(t.textMap[t.see.dialogStatus])+" ")]),a("div",{staticClass:"avue-crud__dialog__menu",on:{click:function(e){t.dialogFull?t.dialogFull=!1:t.dialogFull=!0}}},[t.dialogFull?a("svg-icon",{attrs:{"icon-class":"exit-fullscreen"}}):a("svg-icon",{attrs:{"icon-class":"fullscreen"}})],1)])]),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:"cancelClose cancelClose1",on:{click:function(e){t.see.dialogFormVisible=!1}}},[t._v("关闭")])],1)],1)],2)],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{dialogFull:!1,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:parseInt(o.a.get("pageCount")),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:{},download:{getdataListParm:{name:"getFeedstorageList",page:1,offset:1,pagecount:0,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),feedid:""}},list:[]},isokDisable:!1,rowStyle:{maxHeight:"30px",height:"30px"},cellStyle:{padding:"0px"},myHeight:document.documentElement.clientHeight-85-150-10}},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["d"])(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["c"])(this.table.getdataListParm).then((function(e){null!==e.data.list?(t.table.list=e.data.list,t.table.pageNum=e.data.pageNum,t.table.pageSize=e.data.pageSize):t.table.list=[],t.table.total=e.data.total,setTimeout((function(){t.table.listLoading=!1}),100)}))},handleSearch:function(){this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.feedid="",this.getList()},handleSee:function(t){this.see.dialogStatus="see",this.dialogFull=!1,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["c"])(this.see.getdataListParm).then((function(e){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["c"])(this.see.getdataListParm2).then((function(e){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(){""!==this.see.getdataListParm.parammaps.inputDatetime&&null!==this.see.getdataListParm.parammaps.inputDatetime?(this.see.getdataListParm.parammaps.startTime=Object(c["d"])(this.see.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.see.getdataListParm.parammaps.stopTime=Object(c["d"])(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(){""!==this.see.getdataListParm2.parammaps.inputDatetime&&null!==this.see.getdataListParm2.parammaps.inputDatetime?(this.see.getdataListParm2.parammaps.startTime=Object(c["d"])(this.see.getdataListParm2.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.see.getdataListParm2.parammaps.stopTime=Object(c["d"])(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()},handleExport:function(){var t=this;this.download.getdataListParm.parammaps=this.table.getdataListParm.parammaps,Object(r["c"])(this.download.getdataListParm).then((function(e){null!==e.data.list?t.download.list=e.data.list:t.download.list=[];var a=[{tHeader:["饲料名称","批号","当前库存重量(kg)","金额(元)"],filterVal:["feedname","pcpde","stockweight","sumprice"],tableDatas:t.download.list,sheetName:"Sheet1"}];Object(c["c"])(a,"库存统计",!0,"xlsx")}))}}},p=d,m=(a("6fc3"),a("2877")),u=Object(m["a"])(p,i,s,!1,null,"a160d424",null);e["default"]=u.exports},fe14:function(t,e,a){},fe3f:function(t,e,a){},feca:function(t,e,a){var i={"./404.vue":"8cdb","./basicData/defaultParameter/earlyWarning/index.vue":"d88a","./basicData/defaultParameter/function/index.vue":"75ce","./basicData/defaultParameter/index.vue":"54de","./basicData/defaultParameter/index2.vue":"7108","./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/managementGPS/index.vue":"53ca7","./basicData/standardParameters/index.vue":"1521","./basicData/supplier/index.vue":"3a04","./changpwd/changpwd/index.vue":"e062","./console/apisql/index.vue":"3c49","./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/group/index.vue":"acf9","./dashboard/index.vue":"9406","./dashboard/pasture/index.vue":"8618","./formulationPlan/dailyExecutionPlan/historyRecord.vue":"bbe7","./formulationPlan/dailyExecutionPlan/index.vue":"d3b8","./formulationPlan/dailyExecutionPlan/revisePlan.vue":"7d24","./formulationPlan/dailyExecutionPlan/typePage/dhedFormula.vue":"2ddd","./formulationPlan/dailyExecutionPlan/typePage/materialIssuancePlan - 副本.vue":"456b","./formulationPlan/dailyExecutionPlan/typePage/materialIssuancePlan.vue":"8bd9","./formulationPlan/dailyExecutionPlan/typePage/premixedPlan.vue":"64ec","./formulationPlan/dailyExecutionPlan/typePage/surplusMaterialPlan.vue":"4047","./formulationPlan/dhedFormula/dryMatterRegulation.vue":"dd8d","./formulationPlan/dhedFormula/index - 副本.vue":"9f1a","./formulationPlan/dhedFormula/index.vue":"256c","./formulationPlan/formulaDistribution/index.vue":"b7b1","./formulationPlan/formulaDistribution/inde改.vue":"2279","./formulationPlan/materialIssuancePlan/historyRecord.vue":"b3b2","./formulationPlan/materialIssuancePlan/index.vue":"1745","./formulationPlan/premixedPlan/index.vue":"db0c","./formulationPlan/pushMaterialPlan/index.vue":"f9d1","./formulationPlan/recipeTemplate/index.vue":"047c","./formulationPlan/surplusMaterialPlan/index.vue":"980b","./inventoryManagement/feedContract/index.vue":"4f68","./inventoryManagement/inventoryList/index.vue":"1a53","./inventoryManagement/inventoryList/index改.vue":"56e7","./inventoryManagement/laborConsumption/index.vue":"601f","./inventoryManagement/laborConsumption/index改.vue":"8353","./inventoryManagement/statistics/index.vue":"e28b","./inventoryManagement/statistics/index改.vue":"fd38","./inventoryManagement/systemConsumption/index.vue":"bdf4","./inventoryManagement/systemConsumption/index改.vue":"a18d","./inventoryManagement/warehousing/index.vue":"400d","./inventoryManagement/warehousing/index改.vue":"43e8","./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/historyRecord.vue":"3034","./shedProduction/dungScores/index.vue":"1698","./shedProduction/dutyRecord/index.vue":"7342","./shedProduction/fecalScreen/historyRecord.vue":"283c","./shedProduction/fecalScreen/index.vue":"badd","./shedProduction/formulaDryMatter/historyRecord.vue":"2f08","./shedProduction/formulaDryMatter/index.vue":"5a9a","./shedProduction/materialRemainingRecord/index.vue":"3415","./shedProduction/pennsylvaniaSieve/historyRecord.vue":"ed03","./shedProduction/pennsylvaniaSieve/index.vue":"e10e","./shedProduction/performance/index.vue":"5326","./shedProduction/physicalConditionScore/historyRecord.vue":"3c02","./shedProduction/physicalConditionScore/index.vue":"6a67","./statisticalAnalysis/efficiencyAnalysis/index.vue":"b30b","./statisticalAnalysis/efficiencyStatistics/index.vue":"afc7","./statisticalAnalysis/equipmentRunningTrack/index - 副本.vue":"38cb","./statisticalAnalysis/equipmentRunningTrack/index.vue":"dcb2","./statisticalAnalysis/errorAnalysis/group/index.vue":"383d","./statisticalAnalysis/errorAnalysis/group/tab1.vue":"753a","./statisticalAnalysis/errorAnalysis/group/tab2.vue":"fb98","./statisticalAnalysis/errorAnalysis/group/tab3.vue":"b0ae","./statisticalAnalysis/errorAnalysis/index.vue":"1e09","./statisticalAnalysis/errorAnalysis/pasture/index - 副本.vue":"58ea","./statisticalAnalysis/errorAnalysis/pasture/index.vue":"70a1","./statisticalAnalysis/errorAnalysis/pasture/see.vue":"9eac","./statisticalAnalysis/feedingEfficiency/group/index.vue":"6fbc","./statisticalAnalysis/feedingEfficiency/group/tab1.vue":"74186","./statisticalAnalysis/feedingEfficiency/group/tab2.vue":"0e75","./statisticalAnalysis/feedingEfficiency/index.vue":"7f675","./statisticalAnalysis/feedingEfficiency/pasture/index.vue":"672d","./statisticalAnalysis/feedingEfficiency/pasture/index备.vue":"7bf7","./statisticalAnalysis/formulationEvaluation/index.vue":"8eef","./statisticalAnalysis/formulationEvaluation/index备.vue":"e485","./statisticalAnalysis/hardwareTest/index.vue":"eae0","./statisticalAnalysis/inventoryManagement/group/index.vue":"609a","./statisticalAnalysis/inventoryManagement/index.vue":"c684","./statisticalAnalysis/inventoryManagement/pasture/index.vue":"ab93","./statisticalAnalysis/materialAnalysis/index.vue":"9380","./statisticalAnalysis/priceAnalysis/index.vue":"cb9d","./statisticalAnalysis/processAnalysis/group/index.vue":"faaa","./statisticalAnalysis/processAnalysis/index.vue":"9875","./statisticalAnalysis/processAnalysis/pasture/index.vue":"1edb","./statisticalAnalysis/realTimeMonitoring/index.vue":"05f7","./statisticalChart/formulaStatistics/index.vue":"6200","./statisticalChart/shedStatistics/index.vue":"9c18","./systemManagement/boardEchartManagement/index.vue":"7f0e","./systemManagement/boardEchartManagement2/index.vue":"c262","./systemManagement/customboard2/Addboard2/index.vue":"9f32","./systemManagement/customboard2/ChartPanel2/index.vue":"c4aa","./systemManagement/dataSynchronization/index.vue":"d15f","./systemManagement/groupInformation/index.vue":"deb1","./systemManagement/labelManagement/index.vue":"89b8","./systemManagement/notificationManagement/index.vue":"142c","./systemManagement/operation/index.vue":"0f994","./systemManagement/operationManagement/group/index.vue":"0384","./systemManagement/operationManagement/index.vue":"4548","./systemManagement/operationManagement/pasture/index.vue":"7c37","./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"},ff18:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAL20lEQVR4Xu2dC4xcVRnHf9+dpWhogUBVxCLPLBHlUZRCQUKVBBIjDzWUBIiwnbu7c3d5BAVUDC+j1sdCImXn7uNOtyqIAQytJTZUCRWFooAgBJUVpFFSMPJQWkJpd+aYc+/O7uzu7M6de8+9O93OSSab7J7vO//z/Xfu4zvfQ2j08ePuAxmhlWLxaCxpBVpBHYxY81FqAbAA/J+AbAO2IbINVdoOshUYpqSGyWReoIVhLu19o5G3LA0HbvCKRcjIUlDLUJyNyJFGMSr1EsKDIJtQLZtpX/WKUf0xlTUGIas7j0FZ56Pk86CWxtxTneKyGVEPIKW1rOj/S53CxqfPHiH9HQtpaTkPpc4DzjG+s2gK1yOyjpGRdXQOvB5NRTyp9Anxuo4CtQJoAw6KBz8x6deAIZDV2PkXE1uliuL0CPFyi1HShvhEzE9zkzHW2o5iCFFD2H1Px9ATWjR5Qgav+hCy8xpAf3bn0YOa10P7j/6d5CaSJaTg5FA+EWaflJK0yMy69RNaD1m3LykIyRDS33Eymcy3gLOSAj7LejdSLN5I58AfTOMwT0ghdzGK20EOMA22sfSpNxGuJNt3l0lcZgkp5G5Cyc0mATa8LlE3k+27xRROc4QM5u5E5GJTwHYrPUrdRXvfJSYwmyHEcx4GlpkAtBvr2ITtfiYu/viEeM4LgcOvOXxHpu0eHccS8QjxnLcDb2tzVFhgG7a7b1SLRCfEc/4DLIy68ByXex3b/UCUPUYjxHN+D5wWZcE9SOZRbPfT9e63fkI85x7ggnoX2kPn34vtLq9n7/URsic/2tZj1cq5dT4ShydkT3zpi0rCZLk6Xh7DEeK7Q+ROU/j2SD2iLgnjZqlNiO8otH41931TSf+bqDcplj5XyyFZmxDPeXAOe22TZmGy/o3Y7tkzLTozIcF5hps26jm9nuDMdJ4yPSHBSd+jc+hwqVF4fgk177TpTh6nJ8RzfjgHjl0bhYTJOHqw3WurgatOiA5IQP7UqLuZG7jUidUCJ6oTMujcjnDF3Nh4g+5CsYp298opryxT4AZxUzrkZXcJ1WlQi9eEpWOPF0+O+5r6DfGc7wLfqKmuOcGEBVZiu9dXKppIiA7vzGSea+CIQhNGaCQdr1EsHlsZtjqRkEJXFqW8RkI857GI2GTzhfI+JxLiOb9soMDncS4UIwhvQcVHqbfGfyd7A/sjsj+o/VGjP/Xvgk9LAxO7Hts9dyohOiWgZD0/68B946snEOsJSuoJSsUn6Rz4Wyxc/t7kFERORnEKcFwsfaaFrdLHy6kQ49+QgnM9iu+YXiukvg0o9RDwFNbOp8iu1plQyY3+jg/TkjkJxUnAkln31QnfJOvqhynGCfGczeD/96Q1NiBsQMmGtEP+p2xwoOsELPUF4IvAJ9IyQMU6j2O7fqJSQIibO4y95OUUgDQOCdNtdsA5NyBHNEH7pWCTYIld6nCcvi0BIQO5y7BkKMHF12OpAVb0PZDgGmZVFy4/GIqamE6UOtas8iraSqqNjr41ASFe1xCoyxJYtHGIGLrsfbSt2VH3Hn9yzT7sfEe7OPQnwYwvWYOdbxslxNGXq8PqBju9QOMQoTEOOqfwbsvTXLnqvch7XO0cQYlu4CogE1nP9IJbsN3DBZ0HvqtkNsFR5Gyy+Y0JgI6m0nNuwXZviiY8SarQuZSSdCcSWL6XtVAodC9FlR4zArasRDFAu9tpVGdUZYXOT6HkIuy+r0RVUVWu4NyB8r8x5oZYp0pCN/Q3KFmn0tE7bA5tRE2eczciD5DNm0us0ZcvxaMow/eUkmoTkvPuXo/troxoRjNihc7jUdYzWBzJCvcfZpT696RrEX5gTN+4opWakPuAL5lXLk+SzS9BUOZ1h9QYRFqeju0eGlIi3DTPeRw4Odzkumb9QvByj4EkU85ClS6ivf/uuiCZmjzY9TFE6VIZa7Fd/ZJnZniOjmvW8c0JDLVZKHQ9m9iLj8h9ZPOzE5jtOWuAS4EbsN1vG7Oe5/wcuNCYvkpFIs/pS5bpd5DKJRSWtZQVvcbTh2c0SH/HkWQyoyUxrDOwex8xYkAvtwREh0Yl5c7fognR7yAHGgFcXcm0IS+JrVlwPBRZX7/t1o7ODAvEy30f5Lqw0yPMe0PfQ94DmRdBOKzIy2TePZG2Nf8NKxBr3uquQyipf47qeAbbXRxLX1m4v2M/LOsp4/W7JoBTO9MgRPuULyfr9hoxTC0lXlcfqOClVCiQde1aIqH+PphzEMmHmht5kk9I4pcsDe9hbPezkXGGFQzCX3VppfK4GNv9WVjxGed5ud+AnGlE1/RK9CUr0Zv6+NJp+Le83CqQy8cWtXZ8kBVDOjk13ih0nYVSOgsg6bEl2cfeSvjCEFlXFy5LZnjZA2BeZYHL/2G7OsAh/vByBZDksJcRBo+9Cb4YTjTF26MxSOUbbnxDVWrwnFuBCgei/Bo7H78akdd9KJT+nM7poX4xTMx1UtXeZl/Sykv0ds1nbzUxMEK4jqyrI/jjjcHcDYjoUlNpDO06STV09Fls93jjOxvMrUTk6xP0ZmQxbflnYq/lOVqHeczVga1Myv0+kx2WY7v3xjZUWcE9F8zj7YVTTwJNvBAOdl2IKO0qSWf47vckDqhmhC/rsPPnG9uhPg0Mzru3AB8BdEmLv2K7x8Rew+taC34Z23SGf0CVxBFuLfjF4nF0DuigbvOj0L0c1Glk8/rsO/oIYrVSqUQ6BtI/wtVjMPdisi6BKXZJ379VLzVe7jaQq+sVizxfl0Bv7ztqNOok1wvSFVlZ3YLyCsWRI+gc2FW3aBoCt139fhbs+DviXwJTGiqP3dddDgNK8NBlmv1MCsMPvevbr9ibfVnErl2HgCzCkkUotiOlVyGzlZ3FVznwoK0sv3lnaJ2TJ3q5TpDESsFOg8t/2Bm9ZPkdCf4VeQORBOUR7PwZNUUHultpUZ9EqSUov4zgCTVlggmbQO5F1ENkXV31LvyYjfJTquUQ3amhIti667HUOxMUi6fTOaBrb00dXveZiOpG+UHQccfvfGJ2WLfSnd8+o7LB3DJEdA3JFIdsxs6fqhec5XQENYjd1zFh5/pUTulANL6cgEWeBdWD3ffTaXUXnNUovz59eqNqOsJsJOwo3qVU/OhYjl1aXgMl96PooSM/MUBQ541kMvpIW2dkpTeqJuzo5WcjpU34qv8iFyQLmTndC2tKvXbWvW1suud8DfheWHFD86ZJadPaZyfpU3tS0/IVVbGh3yMkOH8vOM+jiP+GXw9TMyZ97rlp0X8EdJTl/fXY0sDcGmnRwWVrTy0c8A6wjwEj16OiRuEAn5BmaY16LBpjbsjSGnqFZvGZGHYOKRq6+Iz/LWmWZwpp1hjT6inPFNxLmgXMYpi7hmidBcz8y1azxF9CfEQs8Rc8lzeLYJpmJXIRzDKQZplYk5TELBOroTQLKRsixFQhZf/S1Sw1HpsVY6XGy0iaxfijc2K8GH8ZSrNdRf2kJNauYvwm3+zIFp6Wuju3RUv3anZmC0NJpI5t0QgJ3uSbHdqmpyVyp7bohASkNDu1TSUlcoc2rSoeIQEpzY5t46RE6sxWyWl8QgJSmp3boO6ObNWueGYI8Z2RzebEYe70teaYIyR4o2+2765l8Rp/N0vImJul2eA+Ki/mCRlzSGZ0Xl78pMuoO0tWbiPF4o21Oq5FgZAMIWP+L/885Zo51MfqJYSemZp6RSHB/FPWTCiCk0dNiv7szqMHNa9numZepjaW7DekEqUOnFDShviBzLtL957tKIYQNVStX5QpEtL9hkxGHcR96aoImpgECxPHMpeulzIEfpjpaN2tWPpCC6f3DZkMSYettrSch/KzXM8JjTjZiesRWcfIyLrKrjfJLjlR++wRUolDp0Io63yUT0yaHRo0iscR1iOlteUeHmkSMHmtxiCkEpXu1JBhGZZ1BiidwmayBLpeaQvIJkql31Jkk+5IMJsEND4hkxHqPPoRWikWj8aSVqAV1MGINR+lFgALwP+pfaW63sk2RLahSjp2diswTEkNk8m8QAvDXNpbWTGokbjwsfwfJPjGeIMkETgAAAAASUVORK5CYII="},ff60:function(t,e,a){}},[[1,"runtime","chunk-elementUI","chunk-libs"]]]);