app.b311a2fc.js 2.2 MB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t){},"008d":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.handleCustomerSelect,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:"",filterable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"投诉人",clearable:""},model:{value:e.table.getdataListParm.parammaps.proposerId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"proposerId",t)},expression:"table.getdataListParm.parammaps.proposerId"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"被投诉人",clearable:""},model:{value:e.table.getdataListParm.parammaps.respondentId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"respondentId",t)},expression:"table.getdataListParm.parammaps.respondentId"}},e._l(e.respondentNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"处理状态",clearable:""},model:{value:e.table.getdataListParm.parammaps.status,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"status",t)},expression:"table.getdataListParm.parammaps.status"}},e._l(e.statusNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"投诉日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cdate))])]}}])}),a("el-table-column",{attrs:{label:"投诉人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.proposerName))])]}}])}),a("el-table-column",{attrs:{label:"投诉电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.telephone))])]}}])}),a("el-table-column",{attrs:{label:"投诉接收人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"被投诉人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.respondentName))])]}}])}),a("el-table-column",{attrs:{label:"投诉内容","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.content))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"处理状态","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statusName))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit&&1==i.isModify&&i.createrId==e.employeid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit&&1==i.isDel&&i.createrId==e.employeid?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),"未处理"==i.statusName&&e.isRoleEdit?a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleDealWith(i)}}},[e._v("处理")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},["create"==e.create.dialogStatus?a("el-autocomplete",{staticStyle:{width:"100%","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer,clear:e.clearCustomerSelectTemp,blur:e.blurCustomerSelectTemp},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}],null,!1,2238609474),model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}}):a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"投诉日期:",prop:"cdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.cdate,callback:function(t){e.$set(e.create.temp,"cdate",t)},expression:"create.temp.cdate"}})],1),a("el-form-item",{attrs:{label:"投诉人:",prop:"proposerId"}},[a("el-select",{ref:"proposerId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请输入或选择投诉人","allow-create":"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceiver},model:{value:e.create.temp.proposerId,callback:function(t){e.$set(e.create.temp,"proposerId",t)},expression:"create.temp.proposerId"}},e._l(e.create.proposerNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"投诉人电话:",prop:"telephone"}},[a("el-input",{ref:"telephone",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入投诉人电话",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.telephone,callback:function(t){e.$set(e.create.temp,"telephone",t)},expression:"create.temp.telephone"}})],1),a("el-form-item",{attrs:{label:"投诉接收人:",prop:"receiverId"}},[a("el-select",{ref:"receiverId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择投诉接收人",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.receiverId,callback:function(t){e.$set(e.create.temp,"receiverId",t)},expression:"create.temp.receiverId"}},e._l(e.receiverNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"被投诉人:",prop:"respondentId"}},[a("el-select",{ref:"respondentId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择拜访人",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.respondentId,callback:function(t){e.$set(e.create.temp,"respondentId",t)},expression:"create.temp.respondentId"}},e._l(e.respondentNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-row",[a("el-form-item",{attrs:{label:"投诉内容:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入情况说明",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.content,callback:function(t){e.$set(e.create.temp,"content",t)},expression:"create.temp.content"}})],1)],1),a("el-row",[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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:"查看",visible:e.see.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.see,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"投诉详情",name:"first"}},[a("el-form",{ref:"seeTemp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.see.rules,model:e.see.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.see.temp.customerName,callback:function(t){e.$set(e.see.temp,"customerName",t)},expression:"see.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.see.temp.groupName,callback:function(t){e.$set(e.see.temp,"groupName",t)},expression:"see.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"投诉日期:",prop:"cdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:""},model:{value:e.see.temp.cdate,callback:function(t){e.$set(e.see.temp,"cdate",t)},expression:"see.temp.cdate"}})],1),a("el-form-item",{attrs:{label:"投诉人:",prop:"proposerId"}},[a("el-select",{ref:"proposerId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请输入或选择投诉人","allow-create":"",disabled:""},on:{change:e.changeReceiver},model:{value:e.see.temp.proposerId,callback:function(t){e.$set(e.see.temp,"proposerId",t)},expression:"see.temp.proposerId"}},e._l(e.see.proposerNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"投诉人电话:",prop:"telephone"}},[a("el-input",{ref:"telephone",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入投诉人电话",disabled:""},model:{value:e.see.temp.telephone,callback:function(t){e.$set(e.see.temp,"telephone",t)},expression:"see.temp.telephone"}})],1),a("el-form-item",{attrs:{label:"投诉接收人:",prop:"receiverId"}},[a("el-select",{ref:"receiverId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择投诉接收人",disabled:""},model:{value:e.see.temp.receiverId,callback:function(t){e.$set(e.see.temp,"receiverId",t)},expression:"see.temp.receiverId"}},e._l(e.receiverNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"被投诉人:",prop:"respondentId"}},[a("el-select",{ref:"respondentId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择拜访人",disabled:""},model:{value:e.see.temp.respondentId,callback:function(t){e.$set(e.see.temp,"respondentId",t)},expression:"see.temp.respondentId"}},e._l(e.respondentNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-row",[a("el-form-item",{attrs:{label:"投诉内容:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入情况说明",maxlength:"255",disabled:""},model:{value:e.see.temp.content,callback:function(t){e.$set(e.see.temp,"content",t)},expression:"see.temp.content"}})],1)],1),a("el-row",[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:"请输入备注,最多255个字",maxlength:"255",disabled:""},model:{value:e.see.temp.remark,callback:function(t){e.$set(e.see.temp,"remark",t)},expression:"see.temp.remark"}})],1)],1)],1)],1),a("el-tab-pane",{attrs:{label:"处理情况",name:"second"}},[a("el-form",{ref:"seeTemp2",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.see.rules,model:e.see.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"处理人:",prop:"handlerName"}},[a("el-input",{ref:"handlerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",maxlength:"255",disabled:""},model:{value:e.see.temp2.handlerName,callback:function(t){e.$set(e.see.temp2,"handlerName",t)},expression:"see.temp2.handlerName"}})],1),a("el-form-item",{attrs:{label:"处理日期:",prop:"hdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:""},model:{value:e.see.temp2.hdate,callback:function(t){e.$set(e.see.temp2,"hdate",t)},expression:"see.temp2.hdate"}})],1),a("el-form-item",{attrs:{label:"处理方式:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",maxlength:"255",disabled:""},model:{value:e.see.temp2.hcontent,callback:function(t){e.$set(e.see.temp2,"hcontent",t)},expression:"see.temp2.hcontent"}})],1),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",maxlength:"255",disabled:""},model:{value:e.see.temp2.hremark,callback:function(t){e.$set(e.see.temp2,"hremark",t)},expression:"see.temp2.hremark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.see.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"处理",visible:e.dealwith.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.dealwith,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"dealTemp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.dealwith.rules,model:e.dealwith.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"处理人:",prop:"handlerId"}},[a("el-select",{ref:"handlerId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择处理人"},model:{value:e.dealwith.temp.handlerId,callback:function(t){e.$set(e.dealwith.temp,"handlerId",t)},expression:"dealwith.temp.handlerId"}},e._l(e.handlerNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"处理日期:",prop:"hdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},model:{value:e.dealwith.temp.hdate,callback:function(t){e.$set(e.dealwith.temp,"hdate",t)},expression:"dealwith.temp.hdate"}})],1),a("el-form-item",{attrs:{label:"处理方式:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入情况说明",maxlength:"255"},model:{value:e.dealwith.temp.content,callback:function(t){e.$set(e.dealwith.temp,"content",t)},expression:"dealwith.temp.content"}})],1),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入情况说明",maxlength:"255"},model:{value:e.dealwith.temp.remark,callback:function(t){e.$set(e.dealwith.temp,"remark",t)},expression:"dealwith.temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.dealwith.dialogFormVisible=!1,e.getList()}}},[e._v("取消")]),a("el-button",{staticClass:"success",on:{click:function(t){return e.completeData()}}},[e._v("确认")])],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("ade3")),l=a("2934"),n=a("a78e"),o=a.n(n),c=a("ed08"),d=a("333d"),m=a("5c96"),p={name:"ComplaintRecord",components:{Pagination:d["a"]},data:function(){var e;return{employeid:o.a.get("employeid"),isRoleEdit:[],activeName:"second",requestParams:[{name:"getDictListSelect",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getEmployeesSelect",offset:0,pagecount:0,parammaps:{}},{name:"getEmployeesSelect2",offset:0,pagecount:0,parammaps:{}}],customerNameList:[],groupNameList:[],respondentNameList:[],proposerNameList:[],receiverNameList:[],statusNameList:[{id:"已处理",name:"已处理"},{id:"未处理",name:"未处理"}],handlerNameList:[],table:{getdataListParm:{name:"getComplaint",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:"",groupId:"",proposerId:"",respondentId:"",status:"",beginDate:"",endDate:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",cdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),telephone:"",receiverId:"",receiverName:"",respondentId:"",content:"",remark:"",modifyName:"add",receiverChoose:"true"},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],cdate:[{required:!0,message:"必填",trigger:"blur"}],proposerId:[{required:!0,message:"必填",trigger:"blur"}],telephone:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],respondentId:[{required:!0,message:"必填",trigger:"blur"}],content:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},getdataListParm2:{name:"getgroupNameById",returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getTelById",returntype:"Map",parammaps:{id:""}},proposerNameList:[]},see:{dialogFormVisible:!1,dialogStatus:"",temp:(e={customerId:"",groupId:"",groupName:"",cdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),telephone:"",receiverId:"",receiverName:"",respondentId:"",content:"",remark:"",modifyName:"add",receiverChoose:"true",handlerId:"",hdate:""},Object(r["a"])(e,"content",""),Object(r["a"])(e,"remark",""),Object(r["a"])(e,"handlerName",""),e),temp2:{handlerId:"",hdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),hcontent:"",hremark:"",cid:""},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],cdate:[{required:!0,message:"必填",trigger:"blur"}],proposerId:[{required:!0,message:"必填",trigger:"blur"}],telephone:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],respondentId:[{required:!0,message:"必填",trigger:"blur"}],content:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},getdataListParm2:{name:"getgroupNameById",returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getTelById",returntype:"Map",parammaps:{id:""}},proposerNameList:[]},textMap:{create:"新增",see:"查看",update:"编辑"},dealwith:{dialogFormVisible:!1,dialogStatus:"",temp:{handlerId:"",hdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),content:"",remark:"",cid:""},rules:{handlerId:[{required:!0,message:"必填",trigger:"blur"}],hdate:[{required:!0,message:"必填",trigger:"blur"}],content:[{required:!0,message:"必填",trigger:"blur"}]}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="complaintRecord",t=Object(l["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(l["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect.list,console.log("集团下拉框",e.groupNameList),e.respondentNameList=t.data.getEmployeesSelect.list,e.handlerNameList=t.data.getEmployeesSelect.list,console.log("被投诉人下拉框",e.respondentNameList),console.log("处理人下拉框",e.respondentNameList),e.receiverNameList=t.data.getEmployeesSelect2.list,console.log("投诉接受人下拉框",e.receiverNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,Object(l["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.proposerId="",this.table.getdataListParm.parammaps.respondentId="",this.table.getdataListParm.parammaps.status="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",cdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),telephone:"",receiverId:"",receiverName:"",respondentId:"",content:"",remark:"",modifyName:"add",receiverChoose:"true"},this.dealwith.temp={handlerId:"",hdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),content:"",remark:"",cid:""}},clearCustomerSelectTemp:function(e){document.activeElement.blur(),this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(l["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},handleCustomerSelect:function(e){console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name},clearCustomerSelect:function(e){document.activeElement.blur(),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName=""},changeCustomer:function(e){console.log(e),this.create.temp.customerId=e.id,this.create.temp.customerName=e.name,this.create.getdataListParm.parammaps.customerId=e,this.getProposerNameList(),this.create.getdataListParm2.parammaps.id=e,this.getGroupNameId()},getGroupNameId:function(){var e=this;Object(l["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},getProposerNameList:function(){var e=this;Object(l["d"])(this.create.getdataListParm).then((function(t){null!==t.data.list?(e.create.proposerNameList=t.data.list,console.log("投诉人数据",t.data.list)):e.create.proposerNameList=[]}))},changeReceiver:function(e){this.create.getdataListParm3.parammaps.id=e,this.create.temp.proposerName=this.create.proposerNameList.find((function(t){return t.id===e})).name,this.getTelephoneName()},getTelephoneName:function(){var e=this;Object(l["d"])(this.create.getdataListParm3).then((function(t){null!==t.data.list&&(e.create.temp.telephone=t.data.list[0].telephone,console.log("投诉人电话",t.data.list))}))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getProposerNameList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="modifyComplaint",e.create.temp.modifyName="add",e.create.temp.id="",e.create.proposerNameList.find((function(t){return t.id==e.create.temp.proposerId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.proposerName=e.create.temp.proposerId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.createrId=o.a.get("employeid"),e.create.temp.receiverId2="";var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.proposerName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"insertComplaint",resultmaps:{list:[e.create.temp]},children:[{name:"insertComplaint",type:"e",parammaps:{customerId:"@insertComplaint.customerId",groupId:"@insertComplaint.groupId",cdate:"@insertComplaint.cdate",proposerId:"@insertComplaint.proposerId",proposerId2:"@insertContactsNew.LastInsertId",telephone:"@insertComplaint.telephone",receiverId:"@insertComplaint.receiverId",respondentId:"@insertComplaint.respondentId",remark:"@insertComplaint.remark",content:"@insertComplaint.content",createrId:"@insertComplaint.createrId",receiverChoose:"@insertComplaint.receiverChoose"}}]}]};console.log("新增保存发送参数 ",a),Object(l["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleSee:function(e){this.resetTemp(),console.log("点击了查看",e),this.see.temp=Object.assign({},e),this.see.temp2=Object.assign({},e),"已处理"==e.statusName?this.activeName="second":this.activeName="first",this.create.getdataListParm.parammaps.customerId=e.customerId,this.getProposerNameList(),this.see.temp.id=e.id,this.see.dialogStatus="see",this.see.dialogFormVisible=!0},handleUpdate:function(e){var t=this;console.log("点击了编辑",e),this.$nextTick((function(){t.$refs.createTemp.resetFields()})),this.create.temp=Object.assign({},e),this.create.getdataListParm.parammaps.customerId=e.customerId,this.getProposerNameList(),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["createTemp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="update",e.requestParam.name="modifyComplaint",e.create.proposerNameList.find((function(t){return t.id==e.create.temp.proposerId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.proposerName=e.create.temp.proposerId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="";var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.proposerName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateComplaint",resultmaps:{list:[e.create.temp]},children:[{name:"updateComplaint",type:"e",parammaps:{customerId:"@updateComplaint.customerId",groupId:"@updateComplaint.groupId",cdate:"@updateComplaint.cdate",proposerId:"@updateComplaint.proposerId",proposerId2:"@insertContactsNew.LastInsertId",telephone:"@updateComplaint.telephone",receiverId:"@updateComplaint.receiverId",respondentId:"@updateComplaint.respondentId",remark:"@updateComplaint.remark",content:"@updateComplaint.content",receiverChoose:"@updateComplaint.receiverChoose",id:"@updateComplaint.id"}}]}]};Object(l["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={common:{returnmap:"0"},data:[{name:"delComplaint",type:"e",parammaps:{id:e.id}}]};Object(l["b"])(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.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},resetDealwithTemp:function(){this.dealwith.temp={handlerId:"",hdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),content:"",remark:"",cid:""}},handleDealWith:function(e){this.resetDealwithTemp(),console.log("点击了处理",e),this.dealwith.temp.cid=e.id,this.dealwith.dialogFormVisible=!0},completeData:function(){var e=this;console.log("点击了处理保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dealTemp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={common:{returnmap:"0"},data:[{name:"insertHandle",type:"e",parammaps:e.dealwith.temp},{name:"updateComplaintStatus",type:"e",parammaps:{cid:e.dealwith.temp.cid}}]};Object(l["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.dealwith.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},u=p,h=(a("166e"),a("2877")),g=Object(h["a"])(u,i,s,!1,null,"159ce6da",null);t["default"]=g.exports},"00b7":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-用户管理",use:"icon-用户管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-用户管理"><defs><style type="text/css"></style></defs><path d="M515.541449 7.082899c-280.359429 0-508.458551 228.120391-508.458551 508.458551s228.120391 508.458551 508.458551 508.458551 508.458551-228.120391 508.458551-508.458551S795.900879 7.082899 515.541449 7.082899zM515.541449 981.864196c-257.132626 0-466.301477-209.190121-466.301477-466.322747 0-257.132626 209.168851-466.322747 466.301477-466.322747s466.301477 209.190121 466.301477 466.322747S772.674075 981.864196 515.541449 981.864196zM614.574414 524.177056 614.574414 524.177056c47.751075-31.96876 79.230625-86.398604 79.230625-148.187857 0-98.437405-79.804915-178.24232-178.24232-178.24232-98.437405 0-178.24232 79.804915-178.24232 178.24232 0 61.810523 31.479551 116.219097 79.251895 148.187857-100.266622 39.519598-171.244501 137.170014-171.244501 251.453545 0 0.23397 0 0.446669 0.02127 0.659369 0 0.04254-0.02127 0.10635-0.02127 0.14889 0 15.612155 12.65563 28.246516 28.267786 28.246516 15.590885 0 21.886796-12.63436 21.886796-28.246516 0-0.340319-0.08508-0.659369-0.10635-1.020958 0.10635-118.005774 102.159649-219.995264 220.207964-219.995264 118.112124 0 220.207964 102.095839 220.207964 220.207964 0 0.14889-1.467628 29.054774 21.971875 29.054774 15.505806 0 28.076356-12.57055 28.076356-28.055086 0-0.06381-0.02127-0.12762-0.02127-0.2127 0-0.25524 0.02127-0.510479 0.02127-0.786989C785.797645 661.34707 714.798496 563.696654 614.574414 524.177056zM515.541449 510.734437c-74.402343 0-134.723968-60.321625-134.723968-134.723968 0-74.423613 60.321625-134.723968 134.723968-134.723968 74.423613 0 134.723968 60.321625 134.723968 134.723968S589.943792 510.734437 515.541449 510.734437z" p-id="78640" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"0118":function(e,t,a){"use strict";var i=a("6398"),s=a.n(i);s.a},"0164":function(e,t,a){"use strict";var i=a("6ef7"),s=a.n(i);s.a},"019f":function(e,t,a){},"01f1":function(e,t,a){"use strict";var i=a("c1d1"),s=a.n(i);s.a},"0204":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"}),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-card",{staticClass:"box-card"},[a("el-tree",{ref:"tree",attrs:{data:e.treedata,"show-checkbox":"","node-key":"id","default-expanded-keys":[2,3],"default-checked-keys":e.defaultCheckedKeys,props:e.defaultProps}})],1)],1),a("el-col",{attrs:{span:20}},[a("el-row",[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"date",placeholder:"开始日期"},model:{value:e.tableObj.getdataListParm.parammaps.startTime,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"startTime",t)},expression:"tableObj.getdataListParm.parammaps.startTime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"品名",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.eventName,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"eventName",t)},expression:"tableObj.getdataListParm.parammaps.eventName"}}),a("el-checkbox",{staticStyle:{margin:"0px 10px"},attrs:{size:"small",label:"关注",border:""},model:{value:e.checked1,callback:function(t){e.checked1=t},expression:"checked1"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")]),a("el-button",{staticClass:"successBorder",on:{click:e.focus}},[e._v("关注")]),a("el-button",{staticClass:"successBorder2",on:{click:e.clear_all}},[e._v("清空关注")]),a("el-button",{staticClass:"successBorder2"},[e._v("打印")])],1),a("el-row",[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.handleSelectionChange}},[e._v(" > "),a("el-table-column",{attrs:{type:"selection",align:"center",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"品名","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productName))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specifications))])]}}])}),a("el-table-column",{attrs:{label:"单位","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._l(e.tableObj.tableHeadList,(function(t,i){return[a("el-table-column",{attrs:{label:t.head,"min-width":"150px",align:"center"}},[e._l(t.headlist,(function(e,t){return[a("el-table-column",{key:t,attrs:{prop:e.column_name,label:e.column_title}})]}))],2)]})),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.handleSee(i)}}},[e._v("全部报价")])]}}])})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.priceTableObj.listLoading,expression:"priceTableObj.listLoading"}],key:e.priceTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.priceTableObj.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.priceTableObj.pageNum-1)*e.priceTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.eventClass))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.eventClass,callback:function(a){e.$set(t.row,"eventClass",a)},expression:"scope.row.eventClass"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.warnCondition))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.warnCondition,callback:function(a){e.$set(t.row,"warnCondition",a)},expression:"scope.row.warnCondition"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.trigCondition))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.trigCondition,callback:function(a){e.$set(t.row,"trigCondition",a)},expression:"scope.row.trigCondition"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"上海","min-width":"110px",align:"center"}},[a("el-table-column",{attrs:{label:"江场路","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"配送价格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.priceTableObj.total>=0,expression:"priceTableObj.total>=0"}],attrs:{total:e.priceTableObj.total,page:e.priceTableObj.getdataListParm.offset,limit:e.priceTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.priceTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.priceTableObj.getdataListParm,"pagecount",t)},pagination:e.get_priceTable_list}})],1)]),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine1"}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)])],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c=a("3de8"),d=a("5c96"),m=a("313e"),p=a.n(m);a("817d");var u={name:"PriceBase",components:{Pagination:o["a"],TreeSelect:c["a"]},data:function(){return{checked1:!0,treedata:[{id:1,label:"阳光配送",children:[{id:4,label:"特色食材",children:[]}]},{id:2,label:"新鲜蔬菜",children:[{id:5,label:"蔬菜"}]},{id:3,label:"新鲜水果",children:[{id:7,label:"国产水果"},{id:8,label:"进口水果"},{id:11,label:"国产水果"},{id:12,label:"进口水果"},{id:13,label:"国产水果"},{id:14,label:"进口水果"},{id:15,label:"国产水果"},{id:152,label:"进口水果"},{id:111,label:"国产水果"},{id:112312,label:"进口水果"},{id:553,label:"国产水果"},{id:3123,label:"进口水果"}]},{id:123,label:"肉类",children:[{id:11230,label:"猪肉"},{id:123,label:"牛肉"},{id:423,label:"鸡肉"}]},{id:12312,label:"肉类",children:[{id:345,label:"猪肉"},{id:6346,label:"牛肉"},{id:34534,label:"鸡肉"}]}],defaultProps:{children:"children",label:"label"},defaultCheckedKeys:[5],selectList:[],employeid:n.a.get("employeid"),isRoleEdit:[],url_add_table:"modifyTelvisit",url_edit_table:"modifyTelvisit",url_del_table:"modifyTelvisit",requestParams:[],tableObj:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eventClassId:"",startTime:"",eventName:""}},tableKey:0,pageNum:1,pageSize:10,total:0,tableHeadList:[{head:"上海1",headlist:[{column_name:"column1",column_title:"龙上"},{column_name:"column2",column_title:"江场"},{column_name:"column3",column_title:"西郊"},{column_name:"column4",column_title:"配送价"}]},{head:"上海2",headlist:[{column_name:"column5",column_title:"九亭"},{column_name:"column6",column_title:"曹家渡"}]}],list:[{productName:"白鲢鱼",specifications:"3斤",unit:"单位",id:1,column1:"18",column2:"18",column3:"18"},{productName:"白鲢鱼",specifications:"3斤",unit:"单位",id:1,column1:"18",column2:"18",column3:"18"},{productName:"白鲢鱼",specifications:"3斤",unit:"单位",id:1,column1:"18",column2:"18",column3:"18"},{productName:"白鲢鱼",specifications:"3斤",unit:"单位",id:1,column1:"18",column2:"18",column3:"18"},{productName:"白鲢鱼",specifications:"3斤",unit:"单位",id:1,column1:"18",column2:"18",column3:"18"},{productName:"白鲢鱼",specifications:"3斤",unit:"单位",id:1,column1:"18",column2:"18",column3:"18"}],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{processName:"",processExplain:"",id:"",modifyName:"add",enable:1},rules:{}},textMap:{create:"新增",see:"查看",update:"编辑"},priceTableObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",processName:"",processExplain:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{eventClass:"牛号",warnCondition:"牛号1",trigCondition:"增加",targetEvent:"牛号",targetEventId:"牛号1",termination:"流产",terminationId:"流产",compleCondition:"流产",compleConditionId:"流产",mustComp:"是",mustCompId:"1",auto:"自动",autoId:"自动1",remark:"备注",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,targetEventList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],terminationList:[{id:"配种",name:"配种"},{id:"流产",name:"流产"}],compleConditionList:[{id:"配种",name:"配种"},{id:"流产",name:"流产"}],mustCompList:[{id:"1",name:"是"},{id:"0",name:"否"}],autoList:[{id:"自动1",name:"自动"},{id:"手动1",name:"手动"}]},chartLine1:null,chartLine_data:[["数据1","数据2","数据3","数据4","线条1"],["2018-01","2018-02","2018-03","2018-04","2018-05","2018-06","2018-07","2018-08","2018-09","2018-10"],[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],[2,10,3,2,10,4,4,9,3,9,3,8]],isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px",fontSize:"16px"},headStyle:{padding:"0px",fontSize:"16px",fontWeight:"bold",color:"#333"}}},created:function(){this.getButtons()},methods:{getCheckedNodes:function(){console.log(this.$refs.tree.getCheckedNodes())},getCheckedKeys:function(){console.log(this.$refs.tree.getCheckedKeys())},handleNodeClick:function(e,t,a){console.log(e,t,a)},getButtons:function(){var e="priceBase",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){Object(r["e"])(this.requestParams).then((function(e){}))},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm),Object(r["d"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):e.tableObj.list=[],setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),console.log(this.defaultCheckedKeys),this.tableObj.getdataListParm.offset=1},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.customerName="",this.tableObj.getdataListParm.parammaps.telVisitCode="",this.tableObj.getdataListParm.parammaps.customerId="",this.tableObj.getdataListParm.parammaps.groupId="",this.tableObj.getdataListParm.parammaps.visiterId="",this.tableObj.getdataListParm.parammaps.receiverName="",this.tableObj.getdataListParm.parammaps.typeIds="",this.tableObj.getdataListParm.parammaps.statusId="",this.tableObj.getdataListParm.parammaps.beginDate="",this.tableObj.getdataListParm.parammaps.endDate="",this.tableObj.getdataListParm.parammaps.inputDatetime="",this.tableObj.getdataListParm.offset=1,this.getList()},focus:function(){var e=this;d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否关注",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList)}))},clear_all:function(e){this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},resetTemp:function(){this.create.temp={eventClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1}},popoverHide:function(e,t){console.log("树形多级选择",e,t),this.create.temp.eventClassId=t.id,this.tableObj.getdataListParm.parammaps.eventClassId=t.id},handleSee:function(e){var t=this;console.log("查看=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="see",this.create.dialogFormVisible=!0,setTimeout((function(){t.roadChartLine1(t.chartLine_data)}),500)},roadChartLine1:function(e){null!=this.chartLine1&&this.chartLine1.dispose(),this.chartLine1=p.a.init(document.getElementById("chartLine1"));var t={title:{text:""},tooltip:{trigger:"axis"},legend:{data:e[0],right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e[1],name:"日期"},yAxis:{},series:function(){for(var t=[],a=0;a<e[0].length;a++){var i={name:e[0][a],type:"line",data:e[a+2]};t.push(i)}return t}()};this.chartLine1.setOption(t),window.onresize=function(){this.chartLine1.resize()}},get_priceTable_list:function(){var e=this;this.priceTableObj.listLoading=!0,Object(r["d"])(this.priceTableObj.getdataListParm).then((function(t){if(console.log("全部价格table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.priceTableObj.list=t.data.list,e.priceTableObj.pageNum=t.data.pageNum,e.priceTableObj.pageSize=t.data.pageSize,e.priceTableObj.total=t.data.total}else e.priceTableObj.list=[];setTimeout((function(){e.priceTableObj.listLoading=!1}),100)}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},h=u,g=(a("ca57"),a("2877")),f=Object(g["a"])(h,i,s,!1,null,"c7f692f0",null);t["default"]=f.exports},"028b":function(e,t,a){"use strict";var i=a("3f4d"),s=a.n(i);s.a},"047c":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{ref:"template",staticClass:"template"},[a("p",{staticClass:"recipeTemplate"}),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]),a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]),a("el-button",{staticClass:"warning",on:{click:e.handleCopy}},[e._v("复制")]),a("el-button",{staticClass:"success",on:{click:e.handleRecipeRecord}},[e._v("配方记录")]),a("el-button",{staticClass:"success",on:{click:e.handleHistory}},[e._v("生成历史")]),a("el-button",{staticClass:"import",staticStyle:{float:"right","margin-right":"80px"},on:{click:e.handleImport}},[e._v("导入")]),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",attrs:{filterable:"",placeholder:"牲畜类别",clearable:""},model:{value:e.table.getdataListParm.parammaps.ccname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"ccname",t)},expression:"table.getdataListParm.parammaps.ccname"}},e._l(e.livestockTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"配方类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.fttype,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"fttype",t)},expression:"table.getdataListParm.parammaps.fttype"}},e._l(e.formulaTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",placeholder:"请点击选择搜索条件"}}),e.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):e._e(),e.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):e._e(),e.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[e._v("配方名称")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.table.getdataListParm.parammaps.tname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"tname",t)},expression:"table.getdataListParm.parammaps.tname"}})],1),a("li",[a("a",[e._v("备注")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.table.getdataListParm.parammaps.remark,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"remark",t)},expression:"table.getdataListParm.parammaps.remark"}})],1),a("li",[a("a",[e._v("来源")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.table.getdataListParm.parammaps.source,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"source",t)},expression:"table.getdataListParm.parammaps.source"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(t){e.arrowUp=!1,e.arrowDown=!0}}},[e._v("取消")]),a("el-button",{staticClass:"miniPrimary",on:{click:e.handleSearch}},[e._v("搜索")])],1)])]):e._e()],1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"row-click":e.tableRowClick,"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.tname))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.tname,callback:function(a){e.$set(t.row,"tname","string"===typeof a?a.trim():a)},expression:"scope.row.tname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"配方颜色","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-color-picker",{staticStyle:{margin:"10px 0"},attrs:{size:"mini",disabled:t.row.NoEdit},model:{value:t.row.tcolor,callback:function(a){e.$set(t.row,"tcolor",a)},expression:"scope.row.tcolor"}})]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ccname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"牲畜类别"},on:{change:e.changeLivestockType},model:{value:t.row.ccid,callback:function(a){e.$set(t.row,"ccid",a)},expression:"scope.row.ccid"}},e._l(e.livestockTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"配方类型","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fttype))]):e._e(),t.row.Edit&&1==t.row.isCreate?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"配方类型"},on:{change:e.changeFormulaType},model:{value:t.row.fttypeid,callback:function(a){e.$set(t.row,"fttypeid",a)},expression:"scope.row.fttypeid"}},e._l(e.formulaTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e(),t.row.Edit&&1==t.row.isUpdateSave?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"",filterable:"",placeholder:"配方类型"},on:{change:e.changeFormulaType},model:{value:t.row.fttypeid,callback:function(a){e.$set(t.row,"fttypeid",a)},expression:"scope.row.fttypeid"}},e._l(e.formulaTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"来源","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.source))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"255"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1)]),e.isDetail?a("div",{ref:"detail",staticClass:"detail",staticStyle:{"margin-top":"30px"}},[a("p",{staticClass:"recipeDetail"}),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate2}},[e._v("新增")]),a("el-button",{staticClass:"danger",on:{click:e.handleDelete2}},[e._v("删除")]),a("el-button",{staticClass:"success",on:{click:e.handleSyntheticPremix}},[e._v("合成预混料")]),a("div",{ref:"selectInput2",staticClass:"filter-item selectInput",staticStyle:{margin:"0 10px"}},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),e.arrowDown2?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):e._e(),e.arrowUp2?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):e._e(),e.arrowUp2?a("ul",{staticClass:"selectUl",staticStyle:{width:"400px"}},[a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("饲料名称")]),a("el-select",{staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:""},model:{value:e.table2.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"fname",t)},expression:"table2.getdataListParm.parammaps.fname"}},e._l(e.feedNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.fname,value:e.fname}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("饲料组名称")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.table2.getdataListParm.parammaps.feedgroup,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"feedgroup",t)},expression:"table2.getdataListParm.parammaps.feedgroup"}})],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("重量")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.table2.getdataListParm.parammaps.fweight,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"fweight",t)},expression:"table2.getdataListParm.parammaps.fweight"}})],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("搅拌延时")]),a("el-select",{staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:"",clearable:""},model:{value:e.table2.getdataListParm.parammaps.autosecondname,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"autosecondname",t)},expression:"table2.getdataListParm.parammaps.autosecondname"}},e._l(e.mixingDelayList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("是否锁定牛头数比例")]),a("el-select",{staticStyle:{width:"245px"},attrs:{placeholder:"",clearable:""},model:{value:e.table2.getdataListParm.parammaps.islockcount,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"islockcount",t)},expression:"table2.getdataListParm.parammaps.islockcount"}},e._l(e.lockBullsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("顺序")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.table2.getdataListParm.parammaps.sort,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"sort",t)},expression:"table2.getdataListParm.parammaps.sort"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(t){e.arrowUp2=!1,e.arrowDown2=!0}}},[e._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:e.handleSearch2}},[e._v("搜索")])],1)])]):e._e()],1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch2}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh2}},[e._v("重置")])],1),a("div",{staticClass:"table2",staticStyle:{"min-height":"400px"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table2.listLoading,expression:"table2.listLoading"}],key:e.table2.tableKey,ref:"table2",staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{id:"table2","element-loading-text":"给我一点时间",data:e.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","show-summary":""},on:{"selection-change":e.handleSelectionChange2}},[a("el-table-column",{attrs:{type:"selection",width:"60"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"饲料组","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.groupNoEdit?a("span",[e._v(e._s(t.row.feedgroup))]):e._e(),t.row.groupEdit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isGroupDisabled,type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.feedgroup,callback:function(a){e.$set(t.row,"feedgroup",a)},expression:"scope.row.feedgroup"}}):e._e()]}}],null,!1,2511738122)}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeFname(a,t.row)}},model:{value:t.row.fid,callback:function(a){e.$set(t.row,"fid",a)},expression:"scope.row.fid"}},e._l(e.feedNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.fname,value:e.id}})})),1):e._e()]}}],null,!1,1368811173)}),a("el-table-column",{attrs:{label:"重量(KG)",prop:"fweight","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fweight))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"重量",step:"0.01",type:"number"},model:{value:t.row.fweight,callback:function(a){e.$set(t.row,"fweight",a)},expression:"scope.row.fweight"}}):e._e()]}}],null,!1,1017651411)}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.autosecond))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"搅拌延时"},model:{value:t.row.autosecond,callback:function(a){e.$set(t.row,"autosecond",a)},expression:"scope.row.autosecond"}},e._l(e.mixingDelayList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}],null,!1,1213852033)}),e.lockCount.isLockCount?a("el-table-column",{attrs:{label:"是否锁定牛头数比例","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit&&"0"==t.row.islockcount?a("span",[e._v("否")]):e._e(),t.row.NoEdit&&"1"==t.row.islockcount?a("span",[e._v("是")]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:""},model:{value:t.row.islockcount,callback:function(a){e.$set(t.row,"islockcount",a)},expression:"scope.row.islockcount"}},e._l(e.lockBullsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}],null,!1,2143123032)}):e._e(),a("el-table-column",{attrs:{label:"顺序","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.sort))]):e._e(),t.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 e.blurSort(t.row)}},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",a)},expression:"scope.row.sort"}}):e._e()]}}],null,!1,3696663391)}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.createData2(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel2(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate2(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.updateData2(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel2(i)}}},[e._v("取消")]):e._e(),parseInt(i.preftid)>0&&0==i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleSplitPremix(i)}}},[e._v("拆分预混料")]):e._e()]}}],null,!1,1391369653)})],1)],1)]):e._e(),a("el-dialog",{attrs:{title:e.textMap[e.template.dialogStatus],"destroy-on-close":!0,visible:e.template.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.template,"dialogFormVisible",t)}}},[a("div",{staticStyle:{height:"400px",overflow:"auto","margin-bottom":"30px"}},[a("div",{ref:"templateDialog",staticClass:"templateDialog"},[a("p",{staticClass:"recipeTemplate"}),a("div",{staticClass:"operation"},[a("el-date-picker",{staticStyle:{width:"180px"},attrs:{type:"date",placeholder:"请选择历史记录时间",clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.changeDate},model:{value:e.template.table.getdataListParm.parammaps.date,callback:function(t){e.$set(e.template.table.getdataListParm.parammaps,"date",t)},expression:"template.table.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleApplication}},[e._v("应用")])],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"牲畜类别",clearable:""},model:{value:e.template.table.getdataListParm.parammaps.ccname,callback:function(t){e.$set(e.template.table.getdataListParm.parammaps,"ccname",t)},expression:"template.table.getdataListParm.parammaps.ccname"}},e._l(e.livestockTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"配方类型",clearable:""},model:{value:e.template.table.getdataListParm.parammaps.fttype,callback:function(t){e.$set(e.template.table.getdataListParm.parammaps,"fttype",t)},expression:"template.table.getdataListParm.parammaps.fttype"}},e._l(e.formulaTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:e.template.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.template.table.getdataListParm.parammaps,"enable",t)},expression:"template.table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),e.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):e._e(),e.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):e._e(),e.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[e._v("配方名称")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.template.table.getdataListParm.parammaps.tname,callback:function(t){e.$set(e.template.table.getdataListParm.parammaps,"tname",t)},expression:"template.table.getdataListParm.parammaps.tname"}})],1),a("li",[a("a",[e._v("备注")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.template.table.getdataListParm.parammaps.remark,callback:function(t){e.$set(e.template.table.getdataListParm.parammaps,"remark",t)},expression:"template.table.getdataListParm.parammaps.remark"}})],1),a("li",[a("a",[e._v("来源")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.template.table.getdataListParm.parammaps.source,callback:function(t){e.$set(e.template.table.getdataListParm.parammaps,"source",t)},expression:"template.table.getdataListParm.parammaps.source"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(t){e.arrowUp=!1,e.arrowDown=!0}}},[e._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:e.handleDialogSearch}},[e._v("搜索")])],1)])]):e._e()],1),a("el-button",{staticClass:"successBorder",on:{click:e.handleDialogSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleDialogRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.template.table.listLoading,expression:"template.table.listLoading"}],key:e.template.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:e.template.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"row-click":e.tableRowClickDialog}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.template.table.pageNum-1)*e.template.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tname))])]}}])}),a("el-table-column",{attrs:{label:"配方颜色","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-color-picker",{staticStyle:{margin:"10px 0"},attrs:{size:"mini",disabled:""},model:{value:t.row.tcolor,callback:function(a){e.$set(t.row,"tcolor",a)},expression:"scope.row.tcolor"}})]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ccname))])]}}])}),a("el-table-column",{attrs:{label:"配方类型","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fttype))])]}}])}),a("el-table-column",{attrs:{label:"来源","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.source))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])})],1)],1)]),e.isDetailDialog?a("div",{staticClass:"detailDialog",staticStyle:{"margin-top":"30px"}},[a("p",{staticClass:"recipeDetail"}),a("div",{staticClass:"operation"},[a("div",{ref:"selectInput2",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),e.arrowDown2?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):e._e(),e.arrowUp2?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):e._e(),e.arrowUp2?a("ul",{staticClass:"selectUl",staticStyle:{width:"400px"}},[a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("饲料名称")]),a("el-select",{staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:""},model:{value:e.template.table2.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.template.table2.getdataListParm.parammaps,"fname",t)},expression:"template.table2.getdataListParm.parammaps.fname"}},e._l(e.feedNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.fname,value:e.fname}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("饲料组名称")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.template.table2.getdataListParm.parammaps.feedgroup,callback:function(t){e.$set(e.template.table2.getdataListParm.parammaps,"feedgroup",t)},expression:"template.table2.getdataListParm.parammaps.feedgroup"}})],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("重量")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.template.table2.getdataListParm.parammaps.fweight,callback:function(t){e.$set(e.template.table2.getdataListParm.parammaps,"fweight",t)},expression:"template.table2.getdataListParm.parammaps.fweight"}})],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("搅拌延时")]),a("el-select",{staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:""},model:{value:e.template.table2.getdataListParm.parammaps.autosecondname,callback:function(t){e.$set(e.template.table2.getdataListParm.parammaps,"autosecondname",t)},expression:"template.table2.getdataListParm.parammaps.autosecondname"}},e._l(e.mixingDelayList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("是否锁定牛头数比例")]),a("el-select",{staticStyle:{width:"245px"},attrs:{placeholder:""},model:{value:e.template.table2.getdataListParm.parammaps.islockcount,callback:function(t){e.$set(e.template.table2.getdataListParm.parammaps,"islockcount",t)},expression:"template.table2.getdataListParm.parammaps.islockcount"}},e._l(e.lockBullsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("li",[a("a",{staticStyle:{width:"130px"}},[e._v("顺序")]),a("el-input",{staticStyle:{width:"245px"},model:{value:e.template.table2.getdataListParm.parammaps.sort,callback:function(t){e.$set(e.template.table2.getdataListParm.parammaps,"sort",t)},expression:"template.table2.getdataListParm.parammaps.sort"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(t){e.arrowUp2=!1,e.arrowDown2=!0}}},[e._v("取消")]),a("el-button",{staticClass:"miniSuccess",on:{click:e.handleDialogSearch2}},[e._v("搜索")])],1)])]):e._e()],1),a("el-button",{staticClass:"successBorder",on:{click:e.handleDialogSearch2}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleDialogRefresh2}},[e._v("重置")])],1),a("div",{staticClass:"table2"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.template.table2.listLoading,expression:"template.table2.listLoading"}],key:e.template.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:e.template.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id"}},[a("el-table-column",{attrs:{label:"饲料组","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedgroup))])]}}],null,!1,4177192955)}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}],null,!1,4063637959)}),a("el-table-column",{attrs:{label:"重量(KG)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fweight))])]}}],null,!1,2905787776)}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.autosecondname))])]}}],null,!1,4277231678)}),a("el-table-column",{attrs:{label:"是否锁定牛头数比例","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["0"==t.row.islockcount?a("span",[e._v("否")]):e._e(),"1"==t.row.islockcount?a("span",[e._v("是")]):e._e()]}}],null,!1,467972028)}),a("el-table-column",{attrs:{label:"顺序","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}],null,!1,753807644)})],1)],1)]):e._e(),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.template.dialogFormVisible=!1}}},[e._v("关闭")])],1)])]),a("el-dialog",{attrs:{title:e.textMap[e.detail.dialogStatus],"destroy-on-close":!0,visible:e.detail.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.detail,"dialogFormVisible",t)}}},[a("div",{staticClass:"detailDialog"},[a("h2",[e._v("饲料")]),a("div",{staticClass:"table1"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.detail.listLoading,expression:"detail.listLoading"}],key:e.detail.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.detail.list,fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),a("el-table-column",{attrs:{prop:"fweight",label:"重量(KG)"}}),a("el-table-column",{attrs:{label:"搅拌延时(min)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.autosecond))])]}}])}),e.lockCount.isLockCount?a("el-table-column",{attrs:{label:"是否锁定牛头数比例","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["0"==t.row.islockcount?a("span",[e._v("否")]):e._e(),"1"==t.row.islockcount?a("span",[e._v("是")]):e._e()]}}],null,!1,467972028)}):e._e(),a("el-table-column",{attrs:{label:"顺序","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])})],1)],1),a("h2",[e._v("合成预混料")]),a("div",{staticClass:"table2",staticStyle:{"margin-bottom":"50px"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.detail.listLoading2,expression:"detail.listLoading2"}],key:e.detail.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.detail.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32",disabled:e.detail.disabled},model:{value:t.row.tname,callback:function(a){e.$set(t.row,"tname",a)},expression:"scope.row.tname"}})]}}])}),a("el-table-column",{attrs:{label:"配方颜色11","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-color-picker",{staticStyle:{margin:"10px 0"},attrs:{size:"mini",disabled:e.detail.disabled},model:{value:t.row.tcolor,callback:function(a){e.$set(t.row,"tcolor",a)},expression:"scope.row.tcolor"}})]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"选择牲畜父类",disabled:e.detail.disabled},on:{change:e.changeLivestockType2},model:{value:t.row.ccid,callback:function(a){e.$set(t.row,"ccid",a)},expression:"scope.row.ccid"}},e._l(e.livestockTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]}}])}),a("el-table-column",{attrs:{label:"配方类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fttype))])]}}])}),a("el-table-column",{attrs:{label:"来源","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.source))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32",disabled:e.detail.disabled},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}})]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0,disabled:e.detail.disabled},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])})],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"-50px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.detail.dialogFormVisible=!1}}},[e._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.syntheticPremixData()}}},[e._v("确认")])],1)])])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("b680"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("aa47"),n=a("5c96"),o=a("a78e"),c=a.n(o),d={name:"RecipeTemplate",data:function(){return{requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["牲畜父类"]},{name:"getDictByName2",offset:0,pagecount:0,params:["配方类型"]},{name:"getFeedAndPre",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],enableList:[{id:"0",name:"否"},{id:"1",name:"是"}],lockBullsList:[{id:"0",name:"否"},{id:"1",name:"是"}],livestockTypeList:[],formulaTypeList:[],feedNameList:[],mixingDelayList:[{id:"0",name:"0"},{id:"1",name:"1"},{id:"2",name:"2"},{id:"3",name:"3"},{id:"4",name:"4"},{id:"5",name:"5"},{id:"6",name:"6"},{id:"7",name:"7"},{id:"8",name:"8"},{id:"9",name:"9"},{id:"10",name:"10"},{id:"11",name:"11"},{id:"12",name:"12"},{id:"13",name:"13"},{id:"14",name:"14"},{id:"15",name:"15"}],selectHistoryTimeList:[{id:0,name:"2020-06-10"},{id:1,name:"2020-06-11"},{id:2,name:"2020-06-12"},{id:3,name:"2020-06-13"}],sourceList:[{id:0,name:"自定义"},{id:1,name:"集团下发"},{id:2,name:"导入"}],arrowDown:!0,arrowUp:!1,table:{getdataListParm:{name:"getFTList",page:1,offset:1,pagecount:30,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),tname:"",ccid:"",ccname:"",fttypeid:"",fttype:"",remark:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},lockCount:{getdataListParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:30,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"isLockCount"}},isLockCount:!1},isDetail:!1,arrowDown2:!0,arrowUp2:!1,table2:{getdataListParm:{name:"getFTdetailList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),fname:"",feedgroup:"",fweight:"",autosecondname:"",islockcount:"",sort:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},isDetailDialog:!1,template:{dialogFormVisible:!1,dialogStatus:"",table:{getdataListParm:{name:"getFTListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),tname:"",ccid:"",ccname:"",fttype:"",remark:"",enable:"",date:"",source:""}},tableKey:0,total:0,listLoading:!0,list:[]},table2:{getdataListParm:{name:"getFTdetailListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),fname:"",fweight:"",islockcount:"",sort:"",feedgroup:"",autosecondname:""}},tableKey:0,total:0,listLoading:!0,list:[]},getdataDateParm:{name:"getFTMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}},detail:{dialogFormVisible:!1,dialogStatus:"",tableKey:0,total:0,listLoading:!0,list:[],tableKey2:0,total2:0,listLoading2:!1,list2:[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],getdataListParm:{name:"getFTDetailCompare",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},list3:[],disabled:!1,getdataListParm2:{name:"getFTCompare",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}},selectList:[],selectList2:[],textMap:{RecipeRecord:"配方记录",SyntheticPremix:"合成预混料"},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},dropState:!1}},mounted:function(){var e=this;document.addEventListener("click",(function(t){void 0!==e.$refs.selectInput&&(e.$refs.selectInput.contains(t.target)?(e.arrowDown=!1,e.arrowUp=!0):(e.arrowDown=!0,e.arrowUp=!1)),void 0!==e.$refs.selectInput2&&(e.$refs.selectInput2.contains(t.target)?(e.arrowDown2=!1,e.arrowUp2=!0):(e.arrowDown2=!0,e.arrowUp2=!1))}))},created:function(){this.getList(),this.getDownList(),this.getIsLockCount()},methods:{handleHistory:function(){var e=this;n["MessageBox"].confirm("是否确认生成历史?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="creatFTdate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["g"])(e.requestParam).then((function(t){console.log("生成历史保存发送参数",e.requestParam),"fail"!==t.msg?e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}):Object(r["l"])(t,e.$notify)}))}))},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.livestockTypeList=t.data.getDictByName.list,e.formulaTypeList=t.data.getDictByName2.list,e.feedNameList=t.data.getFeedAndPre.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList(),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.ccid="",this.table.getdataListParm.parammaps.ccname="",this.table.getdataListParm.parammaps.fttype="",this.table.getdataListParm.parammaps.tname="",this.table.getdataListParm.parammaps.remark="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.source="",this.getList()},handleCreate:function(){console.log("点击了新增");for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,tname:"",tcolor:"#ccc",ccid:"",ccname:"",fttype:"",fttypeid:"",source:"自定义",remark:""}),console.log(this.table.list)},changeLivestockType:function(e){this.table.temp.ccname=this.livestockTypeList.find((function(t){return t.value===e})).label},changeFormulaType:function(e){this.table.temp.fttype=this.formulaTypeList.find((function(t){return t.value===e})).label},createData:function(e){var t=this;if(console.log("点击了新增保存",e),this.table.temp.tname=e.tname,this.table.temp.tcolor=e.tcolor,this.table.temp.ccid=e.ccid,this.table.temp.ccname=this.table.temp.ccname,this.table.temp.fttype=this.table.temp.fttype,this.table.temp.fttypeid=e.fttypeid,this.table.temp.source=e.source,this.table.temp.remark=e.remark,this.table.temp.enable=e.enable,this.table.temp.pastureid=c.a.get("pastureid"),""==this.table.temp.tname&&""==this.table.temp.ccid&&""==this.table.temp.fttypeid)return this.$message({type:"error",message:"配方名称/牲畜类别/配方类型不能为空",duration:2e3}),!1;if(""==this.table.temp.ccid&&""==this.table.temp.fttypeid)return this.$message({type:"error",message:"牲畜类别/配方类型不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==this.table.temp.ccid)return this.$message({type:"error",message:"牲畜类别不能为空",duration:2e3}),!1;if(""==this.table.temp.fttypeid)return this.$message({type:"error",message:"配方类型不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(a.test(this.table.temp.tname))return this.$message({type:"error",message:"配方名称不可输入特殊字符",duration:2e3}),!1;console.log(this.table.temp),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="insertFT",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.ccid=String(e.ccid),e.fttypeid=String(e.fttypeid),this.table.temp.ccname=e.ccname,this.table.temp.fttype=e.fttype},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),this.table.temp.tname=e.tname,this.table.temp.tcolor=e.tcolor,this.table.temp.ccid=e.ccid,this.table.temp.fttypeid=e.fttypeid,this.table.temp.source=e.source,this.table.temp.remark=e.remark,this.table.temp.enable=e.enable,this.table.temp.ccname=this.table.temp.ccname,this.table.temp.fttype=this.table.temp.fttype,this.table.temp.pastureid=e.pastureid,this.table.temp.id=e.id,""==this.table.temp.tname&&""==this.table.temp.ccid&&""==this.table.temp.fttypeid)return this.$message({type:"error",message:"配方名称/牲畜类别/配方类型不能为空",duration:2e3}),!1;if(""==this.table.temp.ccid&&""==this.table.temp.fttypeid)return this.$message({type:"error",message:"牲畜类别/配方类型不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==this.table.temp.ccid)return this.$message({type:"error",message:"牲畜类别不能为空",duration:2e3}),!1;if(""==this.table.temp.fttypeid)return this.$message({type:"error",message:"配方类型不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(a.test(this.table.temp.tname))return this.$message({type:"error",message:"配方名称不可输入特殊字符",duration:2e3}),!1;console.log(this.table.temp),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateFT",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"checkdeleteFT",type:"v",parammaps:{pastureid:e.pastureid,id:e.id}},t.requestParam.data[1]={name:"deleteFT",type:"e",parammaps:{pastureid:e.pastureid,id:e.id}},Object(r["b"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList(),t.isDetail=!1)}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择配方",duration:2e3}):n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"checkdeleteFT",type:"v",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},e.requestParam.data[0].children[1]={name:"deleteFT",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCopy:function(){var e=this;0==this.selectList.length?this.$message({type:"error",message:"请选择配方",duration:2e3}):n["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"copyFT",type:"e",parammaps:{ftid:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("复制保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"复制失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"复制成功",type:"success",duration:2e3}),e.getList())}))}))},handleRecipeRecord:function(){console.log("点击了配方记录"),this.template.dialogStatus="RecipeRecord",this.template.dialogFormVisible=!0,this.template.table.getdataListParm.parammaps.ccname="",this.template.table.getdataListParm.parammaps.fttype="",this.template.table.getdataListParm.parammaps.enable="",this.template.table.getdataListParm.parammaps.tname="",this.template.table.getdataListParm.parammaps.remark="",this.template.table.getdataListParm.parammaps.source="",this.template.table.getdataListParm.offset=1,this.getDateList(),this.isDetailDialog=!1},getDateList:function(){var e=this;Object(r["d"])(this.template.getdataDateParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.template.table.getdataListParm.parammaps.date=t.data.list[0].maxdate,e.getTemplateDialogList()):e.template.table.getdataListParm.parammaps.date=""}))},getTemplateDialogList:function(){var e=this;this.template.table.listLoading=!0,Object(r["d"])(this.template.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.template.table.list=t.data.list,e.template.table.pageNum=t.data.pageNum,e.template.table.pageSize=t.data.pageSize,e.template.table.total=t.data.total):e.template.table.list=[],setTimeout((function(){e.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(e,t,a){console.log("配方记录-模板行点击"),this.isDetailDialog=!0,this.template.table2.getdataListParm.parammaps.ftid=e.id,this.getDialogList(),this.getDownList()},getDialogList:function(){var e=this;this.template.table2.listLoading=!0,Object(r["d"])(this.template.table2.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.template.table2.list=t.data.list,e.template.table2.pageNum=t.data.pageNum,e.template.table2.pageSize=t.data.pageSize,e.template.table2.total=t.data.total):e.template.table2.list=[],setTimeout((function(){e.template.table2.listLoading=!1}),100)}))},handleDialogSearch2:function(){console.log("点击了查询"),this.arrowDown2=!0,this.arrowUp2=!1,this.template.table2.getdataListParm.offset=1,this.getDialogList2()},handleDialogRefresh2:function(){console.log("点击了重置"),this.template.table2.getdataListParm.parammaps.fname="",this.template.table2.getdataListParm.parammaps.feedgroup="",this.template.table2.getdataListParm.parammaps.fweight="",this.template.table2.getdataListParm.parammaps.autosecondname="",this.template.table2.getdataListParm.parammaps.islockcount="0",this.template.table2.getdataListParm.parammaps.sort="",this.template.table2.getdataListParm.offset=1,this.getDialogList2()},getDialogList2:function(){var e=this;this.template.table2.listLoading=!0,Object(r["d"])(this.template.table2.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.template.table2.list=t.data.list,e.template.table2.pageNum=t.data.pageNum,e.template.table2.pageSize=t.data.pageSize,e.template.table2.total=t.data.total):e.template.table2.list=[],e.$nextTick((function(){window.scrollTo({top:this.$refs.templateDialog.clientHeight})})),setTimeout((function(){e.template.table2.listLoading=!1}),100)}))},handleImport:function(){console.log("点击了导入")},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},changeDate:function(){this.getTemplateDialogList()},handleApplication:function(){var e=this;console.log("点击了应用"),n["MessageBox"].confirm("是否确认将"+this.template.table.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="applyFTdate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=c.a.get("pastureid"),e.requestParam.parammaps.date=e.template.table.getdataListParm.parammaps.date,Object(r["g"])(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.getTemplateDialogList(),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消应用"})}))},tableRowClick:function(e,t,a){console.log(e,t,a);for(var i=0;i<this.table.list.length;i++)if(1==this.table.list[i].Edit)return!1;"操作"!==t.label&&(this.isDetail=!0,this.table2.getdataListParm.parammaps.ftid=e.id,this.table2.getdataListParm.parammaps.fttypeid=e.fttypeid,this.getList2(),this.getDownList())},getIsLockCount:function(){var e=this;Object(r["d"])(this.lockCount.getdataListParm).then((function(t){console.log(t.data.list),0==t.data.list[0].inforvalue?e.lockCount.isLockCount=!1:e.lockCount.isLockCount=!0}))},getList2:function(){var e=this;this.table2.listLoading=!0,Object(r["d"])(this.table2.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"groupEdit",!1),e.$set(t.data.list[a],"isGroupDisabled",!1),e.$set(t.data.list[a],"groupNoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table2.list=t.data.list,e.table2.pageNum=t.data.pageNum,e.table2.pageSize=t.data.pageSize,e.table2.total=t.data.total,e.rowDrop()}else e.table2.list=[];e.$nextTick((function(){console.log(this.$refs),console.log(this.$refs.template.clientHeight),window.scrollTo({top:this.$refs.template.clientHeight})})),setTimeout((function(){e.table2.listLoading=!1}),100)}))},rowDrop:function(){console.log(1111),console.log(document.querySelector("#table2 .el-table__body-wrapper tbody"));var e=document.querySelector("#table2 .el-table__body-wrapper tbody"),t=this,a=l["default"].create(e,{disabled:t.dropState,onChoose:function(e){e.newIndex,e.oldIndex;1==t.dropState&&a.destroy()},onEnd:function(e){var a=e.newIndex,i=e.oldIndex,s=t.table2.list.splice(i,1)[0];if(t.table2.list.splice(a,0,s),console.log("索引",a),console.log("拖动数据",s),console.log("上",t.table2.list[a-1]),console.log("下",t.table2.list[a+1]),void 0===t.table2.list[a-1]){for(var l=0;l<t.table2.list.length;l++)t.table2.list[l].sort=parseInt(t.table2.list[l].sort)+1;s.sort=0,s.feedgroup=s.fname,console.log("拖动至最上方无值")}else if(s.sort==t.table2.list[a-1].sort)s.sort=t.table2.list[a-1].sort,console.log("拖动值顺序等于上值顺序");else if(void 0==t.table2.list[a+1])s.sort=parseInt(t.table2.list[a-1].sort)+1,s.feedgroup=s.fname,console.log("拖动至最下方无值");else if(s.sort==t.table2.list[a+1].sort)s.sort,t.table2.list[a+1].sort,console.log("拖动值顺序等于下值顺序");else if(t.table2.list[a-1].sort==t.table2.list[a+1].sort)s.sort=t.table2.list[a-1].sort,s.feedgroup=t.table2.list[a-1].feedgroup,console.log("拖动至上下顺序一致");else if(void 0!==t.table2.list[a-1].sort&&void 0!==t.table2.list[a+1].sort){if(console.log("上下"),parseInt(t.table2.list[a-1].sort)+1==t.table2.list[a+1].sort){console.log(a);for(var n=a;n<t.table2.list.length;n++)t.table2.list[n].sort=parseInt(t.table2.list[n].sort)+1}s.sort=parseInt(t.table2.list[a-1].sort)+1,s.feedgroup=s.fname,console.log(t.table2.list[a+1].sort)}t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:t.table2.list}},t.requestParam.data[0].children=[],t.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"])(t.requestParam).then((function(e){console.log("顺序切换保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"顺序切换失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"顺序切换成功",type:"success",duration:2e3}),t.getList2())}))}});console.log(a.option("disabled"))},handleSearch2:function(){console.log("点击了查询"),this.arrowDown2=!0,this.arrowUp2=!1,this.table2.getdataListParm.offset=1,this.getList2()},handleRefresh2:function(){console.log("点击了重置"),this.table2.getdataListParm.parammaps.fname="",this.table2.getdataListParm.parammaps.feedgroup="",this.table2.getdataListParm.parammaps.fweight="",this.table2.getdataListParm.parammaps.autosecondname="",this.table2.getdataListParm.parammaps.islockcount="0",this.table2.getdataListParm.parammaps.sort="",this.table2.getdataListParm.offset=1,this.getList2()},handleCreate2:function(){console.log("点击了详情新增",this.table2.list),console.log(11);for(var e=0;e<this.table2.list.length;e++)if(!0===this.table2.list[e].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;if(console.log(this.table2.list),0==this.table2.list.length)var t=0;else t=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:t}),console.log(this.table2.list)},changeFname:function(e,t){if(console.log(e,t),this.table2.temp.fname=this.feedNameList.find((function(t){return t.id==e})).fname,t.fname=this.feedNameList.find((function(t){return t.id==e})).fname,"0"==this.feedNameList.find((function(t){return t.id==e})).ispreft?this.table2.temp.preftid="0":this.table2.temp.preftid=e,""==t.sort)t.feedgroup=this.table2.temp.fname;else if(1==t.isCreate)for(var a=1;a<this.table2.list.length;a++){if(this.table2.list[a].sort==t.sort){console.log(this.table2.list[a]),t.feedgroup=this.table2.list[a].feedgroup;break}t.feedgroup=this.table2.temp.fname}else if(1==t.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]==t.sort&&r++;for(var n=0;n<this.table2.list.length;n++){if(r>1){t.feedgroup=this.table2.list[n].feedgroup,console.log(111,this.table2.list[n].feedgroup);break}1==r&&(t.feedgroup=this.table2.temp.fname,console.log(222,this.table2.temp.fname))}}},bort:function(e){if(1==e.isCreate)if(""!==e.sort)for(var t=1;t<this.table2.list.length;t++){if(this.table2.list[t].sort==parseInt(e.sort))return e.feedgroup=this.table2.list[t].feedgroup,!1;e.feedgroup=e.fname}else e.feedgroup=e.fname;else if(1==e.isUpdateSave)if(""!==e.sort)for(var a=0;a<this.table2.list.length;a++)if(this.table2.list[a].sort==e.sort){if(console.log("失去焦点,行内顺序与表格某顺序相同时",this.table2.list[a]),this.table2.list[a].id!==e.id){e.isGroupDisabled=!0,e.feedgroup=this.table2.list[a].feedgroup;break}}else console.log("失去焦点,行内顺序与表格某顺序不相同时"),e.isGroupDisabled=!0,e.feedgroup=e.fname;else e.feedgroup=e.fname},createData2:function(e){var t=this;if(console.log("点击了详情新增保存",e),this.table2.temp.pastureid=c.a.get("pastureid"),this.table2.temp.ftid=this.table2.getdataListParm.parammaps.ftid,this.table2.temp.fid=e.fid,this.table2.temp.fname=this.table2.temp.fname,this.table2.temp.fweight=e.fweight,this.table2.temp.islockcount=e.islockcount,this.table2.temp.sort=e.sort,this.table2.temp.feedgroup=e.feedgroup,this.table2.temp.preftid=this.table2.temp.preftid,this.table2.temp.autosecond=e.autosecond,""==this.table2.temp.fid&&""==this.table2.temp.fweight&&""==this.table2.temp.autosecond)return this.$message({type:"error",message:"饲料名称/重量/搅拌延时不能为空",duration:2e3}),!1;if(""==this.table2.temp.fweight&&""==this.table2.temp.autosecond)return this.$message({type:"error",message:"重量/搅拌延时不能为空",duration:2e3}),!1;if(""==this.table2.temp.fid)return this.$message({type:"error",message:"饲料名称不能为空",duration:2e3}),!1;if(""==this.table2.temp.fweight)return this.$message({type:"error",message:"重量不能为空",duration:2e3}),!1;if(""==this.table2.temp.autosecond)return this.$message({type:"error",message:"搅拌延时不能为空",duration:2e3}),!1;if(""!==this.table2.temp.sort?this.table2.temp.sort=this.table2.temp.sort:(console.log(this.table2.list.length),1==this.table2.list.length?this.table2.temp.sort=0:(this.table2.temp.sort=parseInt(this.table2.list[this.table2.list.length-1].sort)+1,e.sort=parseInt(this.table2.list[this.table2.list.length-1].sort)+1)),2==this.table2.getdataListParm.parammaps.fttypeid&&parseInt(this.table2.temp.preftid)>0)return this.$message({type:"error",message:"饲料名称不能选择预混配方",duration:2e3}),!1;var a=/^\d+$/;if(!a.test(this.table2.temp.sort))return this.$message({type:"error",message:"饲料顺序不可为负数或小数",duration:2e3}),!1;var i=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!i.test(this.table2.temp.fweight))return this.$message({type:"error",message:"重量请输入正数,最多保留俩位小数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.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:e.fid,fname:this.table2.temp.fname,fweight:e.fweight,islockcount:e.islockcount,sort:e.sort,feedgroup:e.feedgroup,preftid:this.table2.temp.preftid,autosecond:e.autosecond}},this.requestParam.data[1]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:this.table2.temp.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,type:this.table2.getdataListParm.parammaps.fttypeid}},Object(r["b"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList2()):Object(r["l"])(e,t.$notify)}))},createCancel2:function(e){console.log("点击了详情新增取消");for(var t=0;t<this.table2.list.length;t++){if(e.myId===this.table2.list[t].myId)var a=this.table2.list.indexOf(this.table2.list[t]);if(a>-1)return void this.table2.list.splice(a,1)}this.getDialogList()},handleUpdate2:function(e){console.log("详情编辑",e),this.dropState=!0,e.isGroupDisabled=!1,e.islockcount=String(e.islockcount),e.fid=String(e.fid),e.autosecond=String(e.autosecond),this.table2.temp.fname=e.fname,this.table2.temp.preftid=e.preftid;for(var t=[],a=0;a<this.table2.list.length;a++){if(1==this.table2.list[a].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;t.push(this.table2.list[a].sort)}for(var i=0,s=0;s<t.length;s++)t[s]==e.sort&&i++;if(1==i)e.groupEdit=!1,e.groupNoEdit=!0,e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0;else if(i>1)return e.groupEdit=!0,e.groupNoEdit=!1,console.log(222),e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,!1},updateData2:function(e){var t=this;if(console.log("点击了详情编辑保存111",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.table2.temp.pastureid=e.pastureid,this.table2.temp.ftid=this.table2.getdataListParm.parammaps.ftid,this.table2.temp.fid=e.fid,this.table2.temp.fname=this.table2.temp.fname,this.table2.temp.fweight=e.fweight,this.table2.temp.islockcount=e.islockcount,this.table2.temp.sort=e.sort,this.table2.temp.feedgroup=e.feedgroup,this.table2.temp.preftid=this.table2.temp.preftid,this.table2.temp.autosecond=e.autosecond,this.table2.temp.id=e.id,""==this.table2.temp.fid&&""==this.table2.temp.fweight&&""==this.table2.temp.autosecond)return this.$message({type:"error",message:"饲料名称/重量/搅拌延时不能为空",duration:2e3}),!1;if(""==this.table2.temp.fweight&&""==this.table2.temp.autosecond)return this.$message({type:"error",message:"重量/搅拌延时不能为空",duration:2e3}),!1;if(""==this.table2.temp.fid)return this.$message({type:"error",message:"饲料名称不能为空",duration:2e3}),!1;if(""==this.table2.temp.fweight)return this.$message({type:"error",message:"重量不能为空",duration:2e3}),!1;if(""==this.table2.temp.autosecond)return this.$message({type:"error",message:"搅拌延时不能为空",duration:2e3}),!1;if(""!==this.table2.temp.sort?this.table2.temp.sort=this.table2.temp.sort:this.table2.temp.sort=parseInt(this.table2.list[this.table2.list.length-1].sort)+1,2==this.table2.getdataListParm.parammaps.fttypeid&&parseInt(this.table2.temp.preftid)>0)return this.$message({type:"error",message:"饲料名称不能选择预混配方",duration:2e3}),!1;var a=/^\d+$/;if(!a.test(this.table2.temp.sort))return this.$message({type:"error",message:"饲料顺序不可为负数或小数",duration:2e3}),!1;var i=/(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;if(!i.test(this.table2.temp.fweight))return this.$message({type:"error",message:"重量请输入正数,最多保留俩位小数",duration:2e3}),!1;this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateFTdetail",type:"e",parammaps:{pastureid:e.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,fid:e.fid,fname:this.table2.temp.fname,fweight:e.fweight,islockcount:e.islockcount,sort:e.sort,feedgroup:e.feedgroup,preftid:this.table2.temp.preftid,autosecond:e.autosecond,id:e.id}},this.requestParam.data[1]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:e.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,type:this.table2.getdataListParm.parammaps.fttypeid}},this.requestParam.data[2]={name:"updateFTdetailbySort",type:"e",parammaps:{pastureid:e.pastureid,ftid:this.table2.getdataListParm.parammaps.ftid,sort:e.sort,feedgroup:e.feedgroup}},Object(r["b"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList2(),t.dropState=!1):Object(r["l"])(e,t.$notify)}))},updateCancel2:function(e){console.log("点击了详情编辑取消"),e.groupEdit=!1,e.groupNoEdit=!0,e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList2(),this.dropState=!1},handleRowDelete2:function(e){var t=this;console.log("点击了行内删除"),n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"deleteFTdetail",type:"e",parammaps:{pastureid:e.pastureid,id:e.id}},t.requestParam.data[1]={name:"updateFPbyFTChange",type:"e",parammaps:{pastureid:e.pastureid,ftid:t.table2.getdataListParm.parammaps.ftid,type:t.table2.getdataListParm.parammaps.fttypeid}},Object(r["b"])(t.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList2())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange2:function(e){console.log("勾选数据",e),this.selectList2=e},handleDelete2:function(){var e=this;console.log("点击了删除"),0==this.selectList2.length?this.$message({type:"error",message:"请选择配方详情",duration:2e3}):n["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList2}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteFTdetail",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList2())}))}))},handleSplitPremix:function(e){var t=this;console.log("点击了拆分预混料"),n["MessageBox"].confirm("是否确认拆分当前预混料?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="splitFTpre",t.requestParam.parammaps={},t.requestParam.parammaps.ftid=t.table2.getdataListParm.parammaps.ftid,t.requestParam.parammaps.preftid=e.preftid,t.requestParam.parammaps.ftdid=e.id,t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.feedgroup=e.feedgroup,t.requestParam.parammaps.sort=e.sort,t.requestParam.parammaps.fweight=e.fweight,Object(r["g"])(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.getList2())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleSyntheticPremix:function(){var e=this;if(console.log("点击了合成预混料",this.selectList2),2==this.table2.getdataListParm.parammaps.fttypeid)return this.$message({type:"error",message:"预混配方不可合成预混料",duration:2e3}),!1;if(!(this.selectList2.length>1))return this.$message({type:"error",message:"请选择俩条及以上饲料进行合成",duration:2e3}),!1;for(var t=0;t<this.selectList2.length;t++)if(parseInt(this.selectList2[t].preftid)>0)return this.$message({type:"error",message:"不可选择预混料",duration:2e3}),!1;void 0!==this.selectList2[0].splitftpreid?(this.detail.getdataListParm.parammaps.ftid=this.selectList2[0].splitftpreid,this.detail.getdataListParm.parammaps.pastureid=this.selectList2[0].pastureid,Object(r["d"])(this.detail.getdataListParm).then((function(t){if(null!==t.data.list){e.detail.list3=t.data.list;for(var a=[],i=0,s=0;s<e.selectList2.length;s++){var l={};l.fid=e.selectList2[s].fid,l.fweight=e.selectList2[s].fweight,i+=parseFloat(e.selectList2[s].fweight),a.push(l)}a.sort((function(e,t){return e.fid.localeCompare(t.fid)}));var n=0;if(e.detail.list3.length==a.length){for(var o=0;o<e.detail.list3.length;o++)e.detail.list3[o].fid==a[o].fid&&(e.detail.list3[o].fweight/e.detail.list3[o].sumWeight).toFixed(2)==(a[o].fweight/i).toFixed(2)&&n++;n==e.detail.list3.length?(e.detail.getdataListParm2.parammaps.ftid=e.selectList2[0].splitftpreid,e.detail.getdataListParm2.parammaps.pastureid=e.selectList2[0].pastureid,Object(r["d"])(e.detail.getdataListParm2).then((function(t){null!==t.data.list?(e.detail.dialogStatus="SyntheticPremix",e.detail.dialogFormVisible=!0,e.detail.list=e.selectList2,e.detail.list2=t.data.list,e.detail.disabled=!0,setTimeout((function(){e.detail.listLoading=!1}),100)):e.detail.list2=[]}))):(e.detail.dialogStatus="SyntheticPremix",e.detail.dialogFormVisible=!0,e.detail.list=e.selectList2,e.detail.disabled=!1,e.detail.list2=[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],setTimeout((function(){e.detail.listLoading=!1}),100))}else e.detail.dialogStatus="SyntheticPremix",e.detail.dialogFormVisible=!0,e.detail.list=e.selectList2,e.detail.disabled=!1,e.detail.list2=[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],setTimeout((function(){e.detail.listLoading=!1}),100)}else e.detail.list3=[],e.detail.dialogStatus="SyntheticPremix",e.detail.dialogFormVisible=!0,e.detail.list=e.selectList2,e.detail.disabled=!1,e.detail.list2=[{tname:"",tcolor:"#ccc",ccid:"",fttype:"预混配方",fttypeid:"2",source:"自定义",remark:"",enable:1}],setTimeout((function(){e.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(){e.detail.listLoading=!1}),100))},changeLivestockType2:function(e){this.detail.list2[0].ccname=this.livestockTypeList.find((function(t){return t.value===e})).label},syntheticPremixData:function(){var e=this;if(console.log("点击了合成预混料确认"),1==this.detail.disabled){for(var t=0,a=0;a<this.detail.list.length;a++)t+=parseFloat(this.detail.list[a].fweight);t=t.toFixed(2),this.isokDisable=!0,setTimeout((function(){e.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:t,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(t){if(console.log("合成预混料保存发送参数",e.requestParam),"fail"===t.msg){var a=new RegExp("key 'tname'");a.test(t.data)?e.$message({type:"error",message:"预混配方已存在,不可重复生成",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}else e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.detail.dialogFormVisible=!1,e.getList(),e.getList2(),e.getDownList()}))}else{if(""==this.detail.list2[0].tname&&""==this.detail.list2[0].ccid)return this.$message({type:"error",message:"配方名称/牲畜类别/不能为空",duration:2e3}),!1;if(""==this.detail.list2[0].tname)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==this.detail.list2[0].ccid)return this.$message({type:"error",message:"牲畜类别不能为空",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(i.test(this.detail.list2[0].tname))return this.$message({type:"error",message:"配方名称不可输入特殊字符",duration:2e3}),!1;for(var s=0,l=0;l<this.detail.list.length;l++)s+=parseFloat(this.detail.list[l].fweight);s=s.toFixed(2),console.log(s),this.isokDisable=!0,setTimeout((function(){e.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(t){if(console.log("合成预混料保存发送参数",e.requestParam),"fail"===t.msg){var a=new RegExp("key 'tname'");a.test(t.data)?e.$message({type:"error",message:"预混配方已存在,不可重复生成",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}else e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.detail.dialogFormVisible=!1,e.getList(),e.getList2(),e.getDownList()}))}}}},m=d,p=(a("4bb1"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"197b0e15",null);t["default"]=u.exports},"056b":function(e,t,a){},"05ba":function(e,t,a){"use strict";var i=a("78b7"),s=a.n(i);s.a},"05f7":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._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);t["default"]=o.exports},"0781":function(e,t,a){"use strict";a.r(t);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(e,t){var a=t.key,i=t.value;e.hasOwnProperty(a)&&(e[a]=i)}},m={changeSetting:function(e,t){var a=e.commit;a("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:c,mutations:d,actions:m}},"07b1":function(e,t,a){"use strict";var i=a("5c6f"),s=a.n(i);s.a},"07da":function(e,t,a){},"08d8":function(e,t,a){},"0979":function(e,t,a){"use strict";var i=a("c1b5"),s=a.n(i);s.a},"09c4":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-牲畜类别",use:"icon-牲畜类别-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-牲畜类别"><defs><style type="text/css"></style></defs><path d="M320 512H192c-70.4 0-128 57.6-128 128v128c0 70.4 57.6 128 128 128h128c70.4 0 128-57.6 128-128V640c0-70.4-57.6-128-128-128z m64 256c0 35.2-28.8 64-64 64H192c-35.2 0-64-28.8-64-64V640c0-35.2 28.8-64 64-64h128c35.2 0 64 28.8 64 64v128zM768 64H640c-70.4 0-128 57.6-128 128v128c0 70.4 57.6 128 128 128h128c70.4 0 128-57.6 128-128V192c0-70.4-57.6-128-128-128z m64 256c0 35.2-28.8 64-64 64H640c-35.2 0-64-28.8-64-64V192c0-35.2 28.8-64 64-64h128c35.2 0 64 28.8 64 64v128z m-64 192H640c-70.4 0-128 57.6-128 128v128c0 70.4 57.6 128 128 128h128c70.4 0 128-57.6 128-128V640c0-70.4-57.6-128-128-128z m64 256c0 35.2-28.8 64-64 64H640c-35.2 0-64-28.8-64-64V640c0-35.2 28.8-64 64-64h128c35.2 0 64 28.8 64 64v128zM320 64H192c-70.4 0-128 57.6-128 128v128c0 70.4 57.6 128 128 128h128c70.4 0 128-57.6 128-128V192c0-70.4-57.6-128-128-128z m64 256c0 35.2-28.8 64-64 64H192c-35.2 0-64-28.8-64-64V192c0-35.2 28.8-64 64-64h128c35.2 0 64 28.8 64 64v128z" p-id="62619" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"0a8e":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"产品规格"}},[a("el-row",[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate1}},[e._v("新增")]):e._e()],1),a("el-row",[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj1.listLoading,expression:"tableObj1.listLoading"}],key:e.tableObj1.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj1.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"规格名称","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specname))])]}}])}),a("el-table-column",{attrs:{label:"排序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ordernum))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate1(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete1(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj1.total>=0,expression:"tableObj1.total>=0"}],attrs:{total:e.tableObj1.total,page:e.tableObj1.getdataListParm.offset,limit:e.tableObj1.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj1.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj1.getdataListParm,"pagecount",t)},pagination:e.getList1}})],1)])],1),a("el-tab-pane",{attrs:{label:"产品单位"}},[a("el-row",[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate2}},[e._v("新增")]):e._e()],1),a("el-row",[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj2.listLoading,expression:"tableObj2.listLoading"}],key:e.tableObj2.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj2.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[e._v(" > "),a("el-table-column",{attrs:{label:"单位名称","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unitname))])]}}])}),a("el-table-column",{attrs:{label:"排序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ordernum))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate2(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj2.total>=0,expression:"tableObj2.total>=0"}],attrs:{total:e.tableObj2.total,page:e.tableObj2.getdataListParm.offset,limit:e.tableObj2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj2.getdataListParm,"pagecount",t)},pagination:e.getList2}})],1)])],1),a("el-tab-pane",{attrs:{label:"产品大类"}},[a("el-row",[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate3}},[e._v("新增")]):e._e()],1),a("el-row",[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj3.listLoading,expression:"tableObj3.listLoading"}],key:e.tableObj3.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj3.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"大类名称","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bigclassname))])]}}])}),a("el-table-column",{attrs:{label:"排序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ordernum))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate3(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete3(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj3.total>=0,expression:"tableObj3.total>=0"}],attrs:{total:e.tableObj3.total,page:e.tableObj3.getdataListParm.offset,limit:e.tableObj3.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj3.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj3.getdataListParm,"pagecount",t)},pagination:e.getList3}})],1)])],1),a("el-tab-pane",{attrs:{label:"产品小类"}},[a("el-row",[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate4}},[e._v("新增")]):e._e()],1),a("el-row",[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj4.listLoading,expression:"tableObj4.listLoading"}],key:e.tableObj4.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj4.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"大类名称","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bigclassname))])]}}])}),a("el-table-column",{attrs:{label:"小类名称","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.smallclassname))])]}}])}),a("el-table-column",{attrs:{label:"排序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ordernum))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate4(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete4(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj4.total>=0,expression:"tableObj4.total>=0"}],attrs:{total:e.tableObj4.total,page:e.tableObj4.getdataListParm.offset,limit:e.tableObj4.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj4.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj4.getdataListParm,"pagecount",t)},pagination:e.getList4}})],1)])],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.create1.dialogStatus],visible:e.create1.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create1,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp1",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create1.rules,model:e.create1.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"规格名称:",prop:"specname"}},[a("el-input",{ref:"specname",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入名称",disabled:"see"==e.create1.dialogStatus},model:{value:e.create1.temp.specname,callback:function(t){e.$set(e.create1.temp,"specname",t)},expression:"create1.temp.specname"}})],1),a("el-form-item",{attrs:{label:"排序:",prop:"ordernum"}},[a("el-input",{ref:"ordernum",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入",disabled:"see"==e.create1.dialogStatus},model:{value:e.create1.temp.ordernum,callback:function(t){e.$set(e.create1.temp,"ordernum",t)},expression:"create1.temp.ordernum"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create1.dialogFormVisible=!1,e.getList1()}}},[e._v("关闭")]),"create"===e.create1.dialogStatus||"update"===e.create1.dialogStatus?a("el-button",{staticClass:"miniEdit",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create1.dialogStatus?e.createData1():e.updateData1()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:e.textMap[e.create2.dialogStatus],visible:e.create2.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create2,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp2",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create2.rules,model:e.create2.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"产品单位:",prop:"unitname"}},[a("el-input",{ref:"unitname",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入名称",disabled:"see"==e.create2.dialogStatus},model:{value:e.create2.temp.unitname,callback:function(t){e.$set(e.create2.temp,"unitname",t)},expression:"create2.temp.unitname"}})],1),a("el-form-item",{attrs:{label:"排序:",prop:"ordernum"}},[a("el-input",{ref:"ordernum",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入排序",disabled:"see"==e.create2.dialogStatus},model:{value:e.create2.temp.ordernum,callback:function(t){e.$set(e.create2.temp,"ordernum",t)},expression:"create2.temp.ordernum"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create2.dialogFormVisible=!1,e.getList2()}}},[e._v("关闭")]),"create"===e.create2.dialogStatus||"update"===e.create2.dialogStatus?a("el-button",{staticClass:"miniEdit",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create2.dialogStatus?e.createData2():e.updateData2()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:e.textMap[e.create3.dialogStatus],visible:e.create3.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create3,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp3",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create3.rules,model:e.create3.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"大类名称:",prop:"classname"}},[a("el-input",{ref:"classname",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入名称"},model:{value:e.create3.temp.classname,callback:function(t){e.$set(e.create3.temp,"classname",t)},expression:"create3.temp.classname"}})],1),a("el-form-item",{attrs:{label:"排序:",prop:"ordernum"}},[a("el-input",{ref:"ordernum",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入",disabled:"see"==e.create3.dialogStatus},model:{value:e.create3.temp.ordernum,callback:function(t){e.$set(e.create3.temp,"ordernum",t)},expression:"create3.temp.ordernum"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create3.dialogFormVisible=!1,e.getList3()}}},[e._v("关闭")]),"create"===e.create3.dialogStatus||"update"===e.create3.dialogStatus?a("el-button",{staticClass:"miniEdit",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create3.dialogStatus?e.createData3():e.updateData3()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:e.textMap[e.create4.dialogStatus],visible:e.create4.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create4,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp4",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create4.rules,model:e.create4.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"小类名称:",prop:"classname"}},[a("el-input",{ref:"classname",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入名称",disabled:"see"==e.create4.dialogStatus},model:{value:e.create4.temp.classname,callback:function(t){e.$set(e.create4.temp,"classname",t)},expression:"create4.temp.classname"}})],1),a("el-form-item",{attrs:{label:"大类名称:",prop:"bigclassid"}},[a("el-select",{ref:"bigclassid",attrs:{filterable:"",placeholder:"请选择大类名称",prop:"bigclassid"},model:{value:e.create4.temp.bigclassid,callback:function(t){e.$set(e.create4.temp,"bigclassid",t)},expression:"create4.temp.bigclassid"}},[a("el-select",{ref:"big",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.create1.dialogStatus}},e._l(e.tableObj3.list,(function(e){return a("el-option",{key:e.bigclassid,attrs:{label:e.bigclassname,value:e.bigclassid}})})),1)],1)],1),a("el-form-item",{attrs:{label:"排序:",prop:"ordernum"}},[a("el-input",{ref:"ordernum",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入",disabled:"see"==e.create4.dialogStatus},model:{value:e.create4.temp.ordernum,callback:function(t){e.$set(e.create4.temp,"ordernum",t)},expression:"create4.temp.ordernum"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create4.dialogFormVisible=!1,e.getList4()}}},[e._v("关闭")]),"create"===e.create4.dialogStatus||"update"===e.create4.dialogStatus?a("el-button",{staticClass:"miniEdit",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create4.dialogStatus?e.createData4():e.updateData4()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c=a("3de8"),d=a("5c96");a("313e");a("817d");var m={name:"ProductDict",components:{Pagination:o["a"],TreeSelect:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],tableObj1:{getdataListParm:{name:"getSpec",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[],listLoading:!1,temp:{}},tableObj2:{getdataListParm:{name:"getProunit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[],listLoading:!1,temp:{}},tableObj3:{getdataListParm:{name:"getProductBigClass",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[],listLoading:!1,temp:{}},tableObj4:{getdataListParm:{name:"getProductSmallClass",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[],listLoading:!1,temp:{}},create1:{dialogFormVisible:!1,dialogStatus:"",temp:{specname:"",ordernum:0,id:""},rules:{specname:[{required:!0,message:"必填",trigger:"blur"}],ordernum:[{required:!0,message:"必填",trigger:"blur"}]}},create2:{dialogFormVisible:!1,dialogStatus:"",temp:{unitname:"",ordernum:0,id:""},rules:{unitname:[{required:!0,message:"必填",trigger:"blur"}],ordernum:[{required:!0,message:"必填",trigger:"blur"}]}},create3:{dialogFormVisible:!1,dialogStatus:"",temp:{classname:"",bigclassname:"",ordernum:"",id:""},rules:{classname:[{required:!0,message:"必填",trigger:"blur"}],ordernum:[{required:!0,message:"必填",trigger:"blur"}]}},create4:{dialogFormVisible:!1,dialogStatus:"",temp:{bigclassid:"",classname:"",bigclassname:"",smallclassname:"",ordernum:"",id:""},rules:{classname:[{required:!0,message:"必填",trigger:"blur"}],bigclassid:[{required:!0,message:"必填",trigger:"blur"}],ordernum:[{required:!0,message:"必填",trigger:"blur"}]}},textMap:{create:"新增",see:"查看",update:"编辑"},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px",fontSize:"16px"},headStyle:{padding:"0px",fontSize:"16px",fontWeight:"bold",color:"#333"}}},created:function(){this.getButtons(),this.getList1(),this.getList2(),this.getList3(),this.getList4()},methods:{getButtons:function(){var e="productDict",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){Object(r["e"])(this.requestParams).then((function(e){}))},getList1:function(){var e=this;this.tableObj1.listLoading=!0,console.log("查询表格1:",this.tableObj1.getdataListParm),Object(r["d"])(this.tableObj1.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj1.list=t.data.list,e.tableObj1.pageNum=t.data.pageNum,e.tableObj1.pageSize=t.data.pageSize,e.tableObj1.total=t.data.total):e.tableObj1.list=[],setTimeout((function(){e.tableObj1.listLoading=!1}),100)}))},getList2:function(){var e=this;this.tableObj2.listLoading=!0,console.log("查询表格2:",this.tableObj2.getdataListParm),Object(r["d"])(this.tableObj2.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj2.list=t.data.list,e.tableObj2.pageNum=t.data.pageNum,e.tableObj2.pageSize=t.data.pageSize,e.tableObj2.total=t.data.total):e.tableObj2.list=[],setTimeout((function(){e.tableObj2.listLoading=!1}),100)}))},getList3:function(){var e=this;this.tableObj3.listLoading=!0,console.log("查询表格3:",this.tableObj3.getdataListParm),Object(r["d"])(this.tableObj3.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj3.list=t.data.list,e.tableObj3.pageNum=t.data.pageNum,e.tableObj3.pageSize=t.data.pageSize,e.tableObj3.total=t.data.total):e.tableObj3.list=[],setTimeout((function(){e.tableObj3.listLoading=!1}),100)}))},getList4:function(){var e=this;this.tableObj4.listLoading=!0,console.log("查询表格4:",this.tableObj4.getdataListParm),Object(r["d"])(this.tableObj4.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj4.list=t.data.list,e.tableObj4.pageNum=t.data.pageNum,e.tableObj4.pageSize=t.data.pageSize,e.tableObj4.total=t.data.total):e.tableObj4.list=[],setTimeout((function(){e.tableObj4.listLoading=!1}),100)}))},handleCreate1:function(){console.log("点击了新增"),this.create1.dialogStatus="create",this.create1.dialogFormVisible=!0,this.resetTemp1()},handleCreate2:function(){console.log("点击了新增"),this.create2.dialogStatus="create",this.create2.dialogFormVisible=!0,this.resetTemp2()},handleCreate3:function(){console.log("点击了新增"),this.create3.dialogStatus="create",this.create3.dialogFormVisible=!0,this.resetTemp3()},handleCreate4:function(){console.log("点击了新增"),this.create4.dialogStatus="create",this.create4.dialogFormVisible=!0,this.resetTemp4()},handleUpdate1:function(e){console.log("点击了编辑",e),this.create1.temp=Object.assign({},e),this.create1.temp.id=e.id,this.create1.dialogStatus="update",this.create1.dialogFormVisible=!0},handleUpdate2:function(e){console.log("点击了编辑",e),this.create2.temp=Object.assign({},e),this.create2.temp.id=e.id,this.create2.dialogStatus="update",this.create2.dialogFormVisible=!0},handleUpdate3:function(e){console.log("点击了编辑",e),this.create3.temp=Object.assign({},e),this.create3.temp.id=e.id,this.$set(this.create3.temp,"classname",e.bigclassname),this.create3.dialogStatus="update",this.create3.dialogFormVisible=!0},handleUpdate4:function(e){console.log("点击了编辑",e),this.create4.temp=Object.assign({},e),this.create4.temp.id=e.id,this.$set(this.create4.temp,"classname",e.smallclassname),this.create4.dialogStatus="update",this.create4.dialogFormVisible=!0},createData1:function(){var e=this;console.log("点击了新增保存",this.create1.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp1"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"insertSpec",offset:0,pagecount:0,parammaps:{specname:e.create1.temp.specname,ordernum:e.create1.temp.ordernum}};console.log("新增保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create1.dialogFormVisible=!1,e.getList1()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},createData2:function(){var e=this;console.log("点击了新增保存",this.create2.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp2"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"insertProunit",offset:0,pagecount:0,parammaps:{unitname:e.create2.temp.unitname,ordernum:e.create2.temp.ordernum}};console.log("新增保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create2.dialogFormVisible=!1,e.getList2()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},createData3:function(){var e=this;console.log("点击了新增保存",this.create3.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp3"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"insertProductClass",offset:0,pagecount:0,parammaps:{classname:e.create3.temp.classname,bigclassid:0,ordernum:e.create3.temp.ordernum,leavel:1}};console.log("新增保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create3.dialogFormVisible=!1,e.getList3()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},createData4:function(){var e=this;console.log("点击了新增保存",this.create4.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp4"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"insertProductClass",offset:0,pagecount:0,parammaps:{classname:e.create4.temp.classname,bigclassid:e.create4.temp.bigclassid,ordernum:e.create4.temp.ordernum,leavel:2}};console.log("新增保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create4.dialogFormVisible=!1,e.getList4()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},updateData1:function(){var e=this;console.log("点击了编辑保存",this.create1.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp1"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"updateSpec",offset:0,pagecount:0,parammaps:{specname:e.create1.temp.specname,id:e.create1.temp.id,ordernum:e.create1.temp.ordernum}};console.log("编辑保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create1.dialogFormVisible=!1,e.getList1()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},updateData2:function(){var e=this;console.log("点击了编辑保存",this.create2.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp2"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"updateProunit",offset:0,pagecount:0,parammaps:{unitname:e.create2.temp.unitname,id:e.create2.temp.id,ordernum:e.create2.temp.ordernum}};console.log("编辑保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create2.dialogFormVisible=!1,e.getList2()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},updateData3:function(){var e=this;console.log("点击了编辑保存",this.create3.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp3"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"updateProductClass",offset:0,pagecount:0,parammaps:{classname:e.create3.temp.classname,bigclassid:0,id:e.create3.temp.bigclassid,ordernum:e.create3.temp.ordernum}};console.log("编辑保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create3.dialogFormVisible=!1,e.getList3()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},updateData4:function(){var e=this;console.log("点击了编辑保存",this.create4.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp4"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"updateProductClass",offset:0,pagecount:0,parammaps:{classname:e.create4.temp.classname,bigclassid:e.create4.temp.bigclassid,ordernum:e.create4.temp.ordernum,id:e.create4.temp.id,leavel:2}};console.log("编辑保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create4.dialogFormVisible=!1,e.getList4()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete1:function(e){var t=this;console.log("点击了行内删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:"deleteSpec",offset:0,pagecount:0,parammaps:{id:e.id}};Object(r["g"])(a).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList1()):t.$notify({title:"失败",message:"删除失败"+e.data,type:"error",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleRowDelete2:function(e){var t=this;console.log("点击了行内删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:"deleteProunit",offset:0,pagecount:0,parammaps:{id:e.id}};Object(r["g"])(a).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList2()):t.$notify({title:"失败",message:"删除失败"+e.data,type:"error",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleRowDelete3:function(e){var t=this;console.log("点击了行内删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:"deleteProductClass",offset:0,pagecount:0,parammaps:{id:e.bigclassid}};Object(r["g"])(a).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList3()):t.$notify({title:"失败",message:"删除失败"+e.data,type:"error",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleRowDelete4:function(e){var t=this;console.log("点击了行内删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:"deleteProductClass",offset:0,pagecount:0,parammaps:{id:e.id}};Object(r["g"])(a).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList4()):t.$notify({title:"失败",message:"删除失败"+e.data,type:"error",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},resetTemp1:function(){this.create1.temp={specname:"",ordernum:0,id:""}},resetTemp2:function(){this.create2.temp={unitname:"",ordernum:0,id:""}},resetTemp3:function(){this.create3.temp={classname:"",bigclassname:"",ordernum:0,bigclassid:0,id:""}},resetTemp4:function(){this.create4.temp={specname:"",ordernum:0,id:""}}}},p=m,u=(a("170c"),a("84a2"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"354d245a",null);t["default"]=h.exports},"0b1a":function(e,t,a){"use strict";var i=a("7a05"),s=a.n(i);s.a},"0bb7":function(e,t,a){},"0bd7":function(e,t,a){},"0c62":function(e,t,a){"use strict";var i=a("6f44"),s=a.n(i);s.a},"0c9d":function(e,t,a){},"0ea2":function(e,t,a){"use strict";var i=a("7d6f"),s=a.n(i);s.a},"0ee2":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-库存管理",use:"icon-库存管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-库存管理"><defs><style type="text/css"></style></defs><path d="M89.15968 508.00128c152.3712-152.3968 304.74752-304.768 457.1136-457.1392h-36.20352c152.47872 152.48384 304.95232 304.96768 457.42592 457.47712 23.36256 23.38304 59.56608-12.85632 36.1984-36.22912L546.26816 14.65856c-9.86112-9.86112-26.3424-9.86112-36.20352 0L52.94592 471.77728c-23.35744 23.36768 12.84608 59.60704 36.21376 36.224z" p-id="20930" fill="#ffffff" /><path d="M829.88544 937.40032H225.94048c-29.96224 0-31.232-27.20256-31.232-49.00864v-367.68256c0-33.01888-51.2-33.01888-51.2 0v369.94048c0 31.02208 5.504 59.7504 31.6416 80.36352 19.6864 15.52896 42.0608 17.59232 65.7664 17.59232h588.96896c33.01376-0.00512 33.01376-51.20512 0-51.20512zM860.60544 520.704v312.17152c0 33.01376 51.2 33.01376 51.2 0V520.704c0-33.01888-51.2-33.01888-51.2 0z" p-id="20931" fill="#ffffff" /><path d="M415.57504 602.5472H289.28l25.6 25.6V501.85216l-25.6 25.6h126.29504l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0V501.85216c0-13.95712-11.64288-25.6-25.6-25.6H289.28c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.29504c33.01888 0 33.01888-51.2 0-51.2zM636.47744 826.89024H510.17728l25.6 25.6v-126.29504l-25.6 25.6h126.30016l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0v-126.29504c0-13.95712-11.648-25.6-25.6-25.6H510.17728c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.30016c33.01376 0 33.01376-51.2 0-51.2zM415.57504 825.42592H289.28l25.6 25.6v-126.29504l-25.6 25.6h126.29504l-25.6-25.6v126.29504c0 33.01376 51.2 33.01376 51.2 0v-126.29504c0-13.95712-11.64288-25.6-25.6-25.6H289.28c-13.95712 0-25.6 11.64288-25.6 25.6v126.29504c0 13.95712 11.64288 25.6 25.6 25.6h126.29504c33.01888 0 33.01888-51.2 0-51.2z" p-id="20932" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"0efa":function(e,t,a){},"0f994":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login"},[e._v(" 操作日志 ")])},s=[],r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text_group"},[a("div",{staticClass:"input_group",class:{"is-invalid":e.error}},[a("input",{attrs:{type:e.type,placeholder:e.placeholder,name:e.name},domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t.target.value)}}}),e.btnTitle?a("button",{attrs:{disabled:e.disabled},on:{click:function(t){return e.$emit("btnClick")}}},[e._v(e._s(e.btnTitle))]):e._e()]),e.error?a("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e()])},l=[],n={name:"InputGroup",props:{type:{type:String,default:"text"},placeholder:String,value:String,name:String,disabled:Boolean,btnTitle:String,error:String}},o=n,c=a("2877"),d=Object(c["a"])(o,r,l,!1,null,null,null),m=d.exports,p={name:"Operation",components:{InputGroup:m},data:function(){return{phone:"",verifyCode:"",btnTitle:"获取验证码",disabled:!1,errors:{}}},computed:{isClick:function(){return!this.phone||!this.verifyCode}},created:function(){},methods:{getVerifyCode:function(){this.validatePhone()&&(this.validateBtn(),this.$axios.post("/api/posts/sms_send",{tpl_id:"",key:"",phone:this.phone}).then((function(e){console.log(e)})))},validatePhone:function(){if(this.phone){if(/^1[345678]\d{9}$/.test(this.phone))return this.errors={},!0;this.errors={phone:"请输入正确是手机号"}}else this.errors={phone:"手机号码不能为空"}},validateBtn:function(){var e=this,t=60,a=setInterval((function(){0==t?(clearInterval(a),e.disabled=!1,e.btnTitle="获取验证码"):(e.btnTitle=t+"秒后重试",e.disabled=!0,t--)}),1e3)},handleLogin:function(){this.errors={}}}},u=p,h=Object(c["a"])(u,i,s,!1,null,null,null);t["default"]=h.exports},"0f9a":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("d3b7"),a("498a");var i=a("b775");function s(e){return Object(i["a"])({url:"/auth",method:"post",data:e})}function r(){return Object(i["a"])({url:"/authdata/userinfo",method:"get"})}function l(){return Object(i["a"])({url:"/authdata/logout",method:"post"})}var n=a("2934"),o=a("5f87"),c=a("a18c"),d=a("5c96"),m=a("a78e"),p=a.n(m),u={token:Object(o["a"])(),name:"",avatar:"",pastureid:"",pasturename:"",pasturenumber:"",employename:"",employeid:"",g_createrId:"",dashchartid:"",dashchartidisedit:"",roles:[],buttons:[]},h={SET_DASHCHARTID:function(e,t){e.dashchartid=t},SET_DASHCHARTIDISEDIT:function(e,t){e.dashchartidisedit=t},SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){e.name=t,p.a.set("name",t)},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_PASTUREID:function(e,t){p.a.set("pastureid",t),e.pastureid=t},SET_CREATE:function(e,t){p.a.set("g_createrId",t),e.g_createrId=t},SET_PASTURENAME:function(e,t){p.a.set("pasturename",t),e.pasturename=t},SET_PASTURENUMBER:function(e,t){p.a.set("pasturenumber",t),e.pasturenumber=t},SET_EMPLOYEID:function(e,t){p.a.set("employeid",t),e.employeid=t},SET_EMPLOYENAME:function(e,t){p.a.set("employename",t),e.employename=t},SET_DEPARTMENTID:function(e,t){p.a.set("departmentid",t),e.departmentid=t},SET_BUTTONS:function(e,t){p.a.set("buttons",t),sessionStorage.setItem("buttons",JSON.stringify(t)),e.buttons=t}},g={login:function(e,t){var a=e.commit,i=t.username,r=t.password;return new Promise((function(e,t){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}),t(s)),a("SET_TOKEN",s.token),null==p.a&&console.log(1),Object(o["c"])(s.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit,a=e.state;return new Promise((function(e,i){r(a.token).then((function(a){var s=a.data;s||i("Verification failed, please Login again.");var r=s.role,l=s.username,o=s.avatar;(!r||r.length<=0)&&i("getInfo: roles must be a non-null array!"),Object(n["d"])({name:"findByUserPastureName",parammaps:{jwt_username:l}}).then((function(e){null!==e.data.list&&(t("SET_PASTUREID",e.data.list[0].pastureId),t("SET_PASTURENAME",e.data.list[0].pastureName),t("SET_PASTURENUMBER",e.data.list[0].pastureNumber),t("SET_EMPLOYEID",e.data.list[0].employeId),t("SET_EMPLOYENAME",e.data.list[0].employeName),t("SET_CREATE",e.data.list[0].employeId),Object(n["d"])({name:"getUserPCButtons",parammaps:{username:l,pastureid:e.data.list[0].pastureId}}).then((function(e){t("SET_BUTTONS",e.data.list)})))})),t("SET_ROLES",r),t("SET_NAME",l),t("SET_AVATAR",o),e(s)})).catch((function(e){i(e)}))}))},logout:function(e){var t=e.commit,a=e.state;return new Promise((function(e,i){l(a.token).then((function(){t("SET_BUTTONS",[]),t("SET_TOKEN",""),t("SET_ROLES",[]),p.a.remove("employename"),p.a.remove("employeid"),p.a.remove("pastureid"),Object(o["b"])(),Object(c["c"])(),e(),location.reload()})).catch((function(e){i(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(o["b"])(),e()}))}};t["default"]={namespaced:!0,state:u,mutations:h,actions:g}},1:function(e,t,a){e.exports=a("56d7")},1009:function(e,t,a){"use strict";var i=a("f51c"),s=a.n(i);s.a},"10a2":function(e,t,a){},"12a5":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-shopping"><path d="M42.913 101.36c1.642 0 3.198.332 4.667.996a12.28 12.28 0 0 1 3.89 2.772c1.123 1.184 1.987 2.582 2.592 4.193.605 1.612.908 3.318.908 5.118 0 1.8-.303 3.507-.908 5.118-.605 1.611-1.469 3.01-2.593 4.194a13.3 13.3 0 0 1-3.889 2.843 10.582 10.582 0 0 1-4.667 1.066c-1.729 0-3.306-.355-4.732-1.066a13.604 13.604 0 0 1-3.825-2.843c-1.123-1.185-1.988-2.583-2.593-4.194a14.437 14.437 0 0 1-.907-5.118c0-1.8.302-3.506.907-5.118.605-1.61 1.47-3.009 2.593-4.193a12.515 12.515 0 0 1 3.825-2.772c1.426-.664 3.003-.996 4.732-.996zm53.932.285c1.643 0 3.22.331 4.733.995a11.386 11.386 0 0 1 3.889 2.772c1.08 1.185 1.945 2.583 2.593 4.194.648 1.61.972 3.317.972 5.118 0 1.8-.324 3.506-.972 5.117-.648 1.611-1.513 3.01-2.593 4.194a12.253 12.253 0 0 1-3.89 2.843 11 11 0 0 1-4.732 1.066 10.58 10.58 0 0 1-4.667-1.066 12.478 12.478 0 0 1-3.824-2.843c-1.08-1.185-1.945-2.583-2.593-4.194a13.581 13.581 0 0 1-.973-5.117c0-1.801.325-3.507.973-5.118.648-1.611 1.512-3.01 2.593-4.194a11.559 11.559 0 0 1 3.824-2.772 11.212 11.212 0 0 1 4.667-.995zm21.781-80.747c2.42 0 4.3.355 5.64 1.066 1.34.71 2.29 1.587 2.852 2.63a6.427 6.427 0 0 1 .778 3.34c-.044 1.185-.195 2.204-.454 3.057-.26.853-.8 2.606-1.62 5.26a589.268 589.268 0 0 1-2.788 8.743 1236.373 1236.373 0 0 0-3.047 9.453c-.994 3.128-1.75 5.592-2.269 7.393-1.123 3.79-2.55 6.42-4.278 7.89-1.728 1.469-3.846 2.203-6.352 2.203H39.023l1.945 12.795h65.342c4.148 0 6.223 1.943 6.223 5.828 0 1.896-.41 3.53-1.232 4.905-.821 1.374-2.442 2.061-4.862 2.061H38.505c-1.729 0-3.176-.426-4.343-1.28-1.167-.852-2.14-1.966-2.917-3.34a21.277 21.277 0 0 1-1.88-4.478 44.128 44.128 0 0 1-1.102-4.55c-.087-.568-.324-1.942-.713-4.122-.39-2.18-.865-4.904-1.426-8.174l-1.88-10.947c-.692-4.027-1.383-8.079-2.075-12.154-1.642-9.572-3.5-20.234-5.574-31.986H6.87c-1.296 0-2.377-.356-3.24-1.067a9.024 9.024 0 0 1-2.14-2.558 10.416 10.416 0 0 1-1.167-3.2C.108 8.53 0 7.488 0 6.54c0-1.896.583-3.46 1.75-4.69C2.917.615 4.494 0 6.482 0h13.095c1.728 0 3.111.284 4.148.853 1.037.569 1.858 1.28 2.463 2.132a8.548 8.548 0 0 1 1.297 2.701c.26.948.475 1.754.648 2.417.173.758.346 1.825.519 3.199.173 1.374.345 2.772.518 4.193.26 1.706.519 3.507.778 5.403h88.678z" /></symbol>'});l.a.add(n);t["default"]=n},"12f1":function(e,t,a){"use strict";var i=a("4e8a"),s=a.n(i);s.a},"139e":function(e,t,a){},"142c":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._v(" 通知管理 ")])},s=[],r=(a("2934"),a("a78e"),a("ed08"),a("5c96"),a("333d")),l={name:"NotificationManagement",components:{Pagination:r["a"]},data:function(){return{rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{}},n=l,o=(a("77e99"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"0cc38871",null);t["default"]=c.exports},"14cd":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},1521:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"体况、粪便评分标准",name:"first"}},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:e.handleExport}},[e._v("导出")])],1),a("div",{staticClass:"table1"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table1.listLoading,expression:"table1.listLoading"}],key:e.table1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ftname))])]}}])}),a("el-table-column",{attrs:{label:"体况评分标准",align:"center","min-width":"300px"}},[a("el-table-column",{attrs:{label:"体况评分标准(分)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bodystandard))])]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dungstandard))])]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dungsource))])]}}])})],1),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e()]}}])})],1)],1)]),a("el-tab-pane",{attrs:{label:"宾州筛、粪便筛标准范围",name:"second"}},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:e.handleExport}},[e._v("导出")])],1),a("div",{staticClass:"table2"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table2.listLoading,expression:"table2.listLoading"}],key:e.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"牲畜类别",align:"center","min-width":"200px"}},[a("el-table-column",{attrs:{label:"牲畜父类","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.parentname))])]}}])}),a("el-table-column",{attrs:{label:"牲畜子类","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bzonemin)+" - "+e._s(t.row.bzonemax))])]}}])}),a("el-table-column",{attrs:{label:"宾州筛二层(%)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bztwomin)+" - "+e._s(t.row.bztwomax))])]}}])}),a("el-table-column",{attrs:{label:"宾州筛三层(%)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bzthreemin)+" - "+e._s(t.row.bzthreemax))])]}}])}),a("el-table-column",{attrs:{label:"宾州筛四层(%)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bzfourmin)+" - "+e._s(t.row.bzfourmax))])]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fbonemin)+" - "+e._s(t.row.fbonemax))])]}}])}),a("el-table-column",{attrs:{label:"粪便筛二层(%)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fbtwomin)+" - "+e._s(t.row.fbtwomax))])]}}])}),a("el-table-column",{attrs:{label:"粪便筛三层(%)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fbthreemin)+" - "+e._s(t.row.fbthreemax))])]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fbsource))])]}}])})],1),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e()]}}])})],1)],1)])],1),a("el-dialog",{attrs:{title:e.textMap[e.table1.dialogStatus],visible:e.table1.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.table1,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.table1.rules,model:e.table1.temp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[e._v("配方")])])],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"配方名称:",prop:"ftname"}},[a("span",[e._v(e._s(e.table1.temp.ftname))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[e._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:e.table1.temp.bodystandard,callback:function(t){e.$set(e.table1.temp,"bodystandard",t)},expression:"table1.temp.bodystandard"}},e._l(e.physicalList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.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:e.table1.temp.bodysource,callback:function(t){e.$set(e.table1.temp,"bodysource",t)},expression:"table1.temp.bodysource"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[e._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:e.table1.temp.dungstandard,callback:function(t){e.$set(e.table1.temp,"dungstandard",t)},expression:"table1.temp.dungstandard"}},e._l(e.faecesList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.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:e.table1.temp.dungsource,callback:function(t){e.$set(e.table1.temp,"dungsource",t)},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(t){e.table1.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData()}}},[e._v("确认")])],1)],1)]),a("el-dialog",{attrs:{title:e.textMap[e.table2.dialogStatus],visible:e.table2.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.table2,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.table2.rules,model:e.table2.temp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[e._v("牲畜类别")])])],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"牲畜父类:",prop:"parentname"}},[a("span",[e._v(e._s(e.table2.temp.parentname))])])],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"牲畜子类:",prop:"cowname"}},[a("span",[e._v(e._s(e.table2.temp.cowname))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[e._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:e.table2.temp.bzonemin,callback:function(t){e.$set(e.table2.temp,"bzonemin",t)},expression:"table2.temp.bzonemin"}}),a("span",{staticStyle:{width:"1%"}},[e._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:e.table2.temp.bzonemax,callback:function(t){e.$set(e.table2.temp,"bzonemax",t)},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:e.table2.temp.bztwomin,callback:function(t){e.$set(e.table2.temp,"bztwomin",t)},expression:"table2.temp.bztwomin"}}),a("span",{staticStyle:{width:"1%"}},[e._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:e.table2.temp.bztwomax,callback:function(t){e.$set(e.table2.temp,"bztwomax",t)},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:e.table2.temp.bzthreemin,callback:function(t){e.$set(e.table2.temp,"bzthreemin",t)},expression:"table2.temp.bzthreemin"}}),a("span",{staticStyle:{width:"1%"}},[e._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:e.table2.temp.bzthreemax,callback:function(t){e.$set(e.table2.temp,"bzthreemax",t)},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:e.table2.temp.bzfourmin,callback:function(t){e.$set(e.table2.temp,"bzfourmin",t)},expression:"table2.temp.bzfourmin"}}),a("span",{staticStyle:{width:"1%"}},[e._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:e.table2.temp.bzfourmax,callback:function(t){e.$set(e.table2.temp,"bzfourmax",t)},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:e.table2.temp.bzsource,callback:function(t){e.$set(e.table2.temp,"bzsource",t)},expression:"table2.temp.bzsource"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10}},[a("h3",{staticStyle:{width:"160px",float:"left"}},[e._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:e.table2.temp.fbonemin,callback:function(t){e.$set(e.table2.temp,"fbonemin",t)},expression:"table2.temp.fbonemin"}}),a("span",{staticStyle:{width:"1%"}},[e._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:e.table2.temp.fbonemax,callback:function(t){e.$set(e.table2.temp,"fbonemax",t)},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:e.table2.temp.fbtwomin,callback:function(t){e.$set(e.table2.temp,"fbtwomin",t)},expression:"table2.temp.fbtwomin"}}),a("span",{staticStyle:{width:"1%"}},[e._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:e.table2.temp.fbtwomax,callback:function(t){e.$set(e.table2.temp,"fbtwomax",t)},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:e.table2.temp.fbthreemin,callback:function(t){e.$set(e.table2.temp,"fbthreemin",t)},expression:"table2.temp.fbthreemin"}}),a("span",{staticStyle:{width:"1%"}},[e._v("-")]),a("el-input-number",{staticStyle:{width:"44%"},attrs:{min:0,max:100,controls:!1,placeholder:"最大值"},model:{value:e.table2.temp.fbthreemax,callback:function(t){e.$set(e.table2.temp,"fbthreemax",t)},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:e.table2.temp.fbsource,callback:function(t){e.$set(e.table2.temp,"fbsource",t)},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(t){e.table2.dialogFormVisible=!1,e.getList2()}}},[e._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData()}}},[e._v("确认")])],1)],1)])],1)},s=[],r=(a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o={name:"StandardParameters",data:function(){return{isRoleEdit:[],activeName:"first",requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["评分标准"]},{name:"getDictByName2",offset:0,pagecount:0,params:["粪便评分标准"]}],physicalList:[],faecesList:[],table1:{getdataListParm:{name:"getOptscoreList",page:1,offset:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:""}},tableKey:0,list:[],total:0,listLoading:!0,dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{bodystandard:[{type:"string",required:!0,message:"必填",trigger:"blur"}],dungstandard:[{type:"string",required:!0,message:"必填",trigger:"blur"}]}},table2:{getdataListParm:{name:"getOptrangeList",page:1,offset:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0,dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{}},textMap:{update:"编辑"},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="StandardParameters",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.physicalList=t.data.getDictByName.list,e.faecesList=t.data.getDictByName2.list}))},handleTabClick:function(e,t){console.log(e,t),"first"===e.name?this.getList():"second"===e.name&&this.getList2()},getList:function(){var e=this;this.table1.listLoading=!0,Object(r["d"])(this.table1.getdataListParm).then((function(t){console.log("table1数据",t.data.list),null!==t.data.list?(e.table1.list=t.data.list,e.table1.total=t.data.total):e.table1.list=[],setTimeout((function(){e.table1.listLoading=!1}),100)}))},getList2:function(){var e=this;this.table2.listLoading=!0,Object(r["d"])(this.table2.getdataListParm).then((function(t){console.log("table1数据",t.data.list),null!==t.data.list?(e.table2.list=t.data.list,t.data.total&&(e.table2.total=t.data.total)):e.table2.list=[],setTimeout((function(){e.table2.listLoading=!1}),100)}))},handleUpdate:function(e){"first"===this.activeName?(console.log("点击了体况、粪便评分标准编辑"),this.table1.dialogStatus="update",this.table1.dialogFormVisible=!0,this.table1.temp=Object.assign({},e)):"second"===this.activeName&&(console.log("点击了宾州筛、粪便筛标准范围编辑"),this.table2.dialogStatus="update",this.table2.dialogFormVisible=!0,this.table2.temp=Object.assign({},e))},updateData:function(){var e=this;if("first"===this.activeName)console.log("点击了体况、粪便评分标准编辑保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateOptscore",e.requestParam.parammaps=e.table1.temp,Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.table1.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)})))}));else if("second"===this.activeName){if(console.log("点击了宾州筛、粪便筛标准范围编辑保存"),this.isokDisable=!0,setTimeout((function(){e.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 t=/^([0-9]{1,2}|100)$/;if(!t.test(parseFloat(this.table2.temp.bzonemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.bzonemax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.bztwomin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.bztwomax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.bzthreemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.bzthreemax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.bzfourmin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.bzfourmax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.fbonemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.fbonemax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.fbtwomin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.fbtwomax)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.test(parseFloat(this.table2.temp.fbthreemin)))return this.$message({type:"error",message:"范围不可输入小数",duration:2e3}),!1;if(!t.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(t){t&&Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.table2.dialogFormVisible=!1,e.getList2(),e.activeName="second"):(Object(r["l"])(t,e.$notify),"0"==e.table2.temp.bzonemin&&(e.table2.temp.bzonemin=""),"0"==e.table2.temp.bzonemax&&(e.table2.temp.bzonemax=""),"0"==e.table2.temp.bztwomin&&(e.table2.temp.bztwomin=""),"0"==e.table2.temp.bztwomax&&(e.table2.temp.bztwomax=""),"0"==e.table2.temp.bzthreemin&&(e.table2.temp.bzthreemin=""),"0"==e.table2.temp.bzthreemax&&(e.table2.temp.bzthreemax=""),"0"==e.table2.temp.bzfourmin&&(e.table2.temp.bzfourmin=""),"0"==e.table2.temp.bzfourmax&&(e.table2.temp.bzfourmax=""),"0"==e.table2.temp.fbonemin&&(e.table2.temp.fbonemin=""),"0"==e.table2.temp.fbonemax&&(e.table2.temp.fbonemax=""),"0"==e.table2.temp.fbtwomin&&(e.table2.temp.fbtwomin=""),"0"==e.table2.temp.fbtwomax&&(e.table2.temp.fbtwomax=""),"0"==e.table2.temp.fbthreemin&&(e.table2.temp.fbthreemin=""),"0"==e.table2.temp.fbthreemax&&(e.table2.temp.fbthreemax=""))}))}))}},handleExport:function(){"first"===this.activeName?console.log("体况、粪便评分标准/导出"):"second"===this.activeName&&console.log("宾州筛、粪便筛标准范围/导出")},handleImport:function(){"first"===this.activeName?console.log("体况、粪便评分标准/导入"):"second"===this.activeName&&console.log("宾州筛、粪便筛标准范围/导入")}}},c=o,d=(a("3dcc"),a("2877")),m=Object(d["a"])(c,i,s,!1,null,"5a51ff42",null);t["default"]=m.exports},"15b1":function(e,t,a){"use strict";var i=a("7d81"),s=a.n(i);s.a},"15eb":function(e,t,a){"use strict";var i=a("2212"),s=a.n(i);s.a},"166e":function(e,t,a){"use strict";var i=a("c8d2"),s=a.n(i);s.a},1698:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.barid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"barid",t)},expression:"table.getdataListParm.parammaps.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"标准分数(分)","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"牛头数(头)","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowsum))])]}}])}),a("el-table-column",{attrs:{label:"评分",align:"center"}},[a("el-table-column",{attrs:{label:"1分(头)","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score1)+"("+e._s(t.row.score1rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"2分(头)","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score2)+"("+e._s(t.row.score2rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3分(头)","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score3)+"("+e._s(t.row.score3rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"4分(头)","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score4)+"("+e._s(t.row.score4rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"5分(头)","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score5)+"("+e._s(t.row.score5rate)+"%)")])]}}])})],1),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.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"}},[e._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"栏舍名称"},on:{change:e.changeBar},model:{value:e.create.temp.barid,callback:function(t){e.$set(e.create.temp,"barid",t)},expression:"create.temp.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[e._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:e.create.temp.standardscore,callback:function(t){e.$set(e.create.temp,"standardscore",t)},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:e.create.temp.cowsum,callback:function(t){e.$set(e.create.temp,"cowsum",t)},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:e.blurScore},model:{value:e.create.temp.score1,callback:function(t){e.$set(e.create.temp,"score1",t)},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:e.blurScore},model:{value:e.create.temp.score2,callback:function(t){e.$set(e.create.temp,"score2",t)},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:e.blurScore},model:{value:e.create.temp.score3,callback:function(t){e.$set(e.create.temp,"score3",t)},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:e.blurScore},model:{value:e.create.temp.score4,callback:function(t){e.$set(e.create.temp,"score4",t)},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:e.blurScore},model:{value:e.create.temp.score5,callback:function(t){e.$set(e.create.temp,"score5",t)},expression:"create.temp.score5"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[e._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:e.blurEmp},model:{value:e.create.temp.emp,callback:function(t){e.$set(e.create.temp,"emp",t)},expression:"create.temp.emp"}},e._l(e.create.noteTakerList,(function(e,t){return a("el-option",{key:e.myId,attrs:{label:e.emp,value:e.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:e.changeOperatetime},model:{value:e.create.temp.operatetime,callback:function(t){e.$set(e.create.temp,"operatetime",t)},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:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},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(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createDataAgain()}}},[e._v("确认新增")]):e._e(),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"DungScores",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getDungscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score1:"",score2:"",score3:"",score4:"",score5:"",remark:"",ftid:"",ftname:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score1:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score2:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score3:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score4:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score5:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getDungscoreEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getDungAndBodyScore",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="DungScores",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){if(e.houseNameList=t.data.getBarListEnable.list,null!==t.data.getSysoptEnable.list)for(var a=1;a<=t.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="第四班"),e.frequencyList.push(i)}else e.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=this.table.getdataListParm.parammaps.inputDatetime[0]-864e5,t=this.table.getdataListParm.parammaps.inputDatetime[1]-864e5;this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=this.table.getdataListParm.parammaps.inputDatetime[0]+864e5,t=this.table.getdataListParm.parammaps.inputDatetime[1]+864e5;this.table.getdataListParm.parammaps.inputDatetime.length=0,this.table.getdataListParm.parammaps.inputDatetime.push(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"score1rate",(parseFloat(t.data.list[a].score1)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score2rate",(parseFloat(t.data.list[a].score2)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score3rate",(parseFloat(t.data.list[a].score3)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score4rate",(parseFloat(t.data.list[a].score4)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score5rate",(100-t.data.list[a].score1rate-t.data.list[a].score2rate-t.data.list[a].score3rate-t.data.list[a].score4rate).toFixed(2));e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score1:"",score2:"",score3:"",score4:"",score5:"",remark:"",ftid:"",ftname:""}},blurEmp:function(e){this.create.temp.emp=e.target.value},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname,this.getRange()},changeOperatetime:function(){this.getRange()},getRange:function(){var e=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list?(e.create.temp.standardscore=t.data.list[0].dungstandard,e.create.temp.ftid=t.data.list[0].ftid,e.create.temp.ftname=t.data.list[0].ftname):(e.create.temp.standardscore="",e.create.temp.ftid="",e.create.temp.ftname="")}))},getNoteTakerList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].myId=a;e.create.noteTakerList=t.data.list,console.log("记录人数据",t.data.list),console.log(e.create.noteTakerList)}else e.create.noteTakerList=[]}))},blurScore:function(){""!==this.create.temp.score1&&""!==this.create.temp.score2&&""!==this.create.temp.score3&&""!==this.create.temp.score4&&""!==this.create.temp.score5&&(this.create.temp.cowsum=parseInt(this.create.temp.score1)+parseInt(this.create.temp.score2)+parseInt(this.create.temp.score3)+parseInt(this.create.temp.score4)+parseInt(this.create.temp.score5))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(e.create.temp.score1))||!a.test(parseFloat(e.create.temp.score2))||!a.test(parseFloat(e.create.temp.score3))||!a.test(parseFloat(e.create.temp.score4))||!a.test(parseFloat(e.create.temp.score5)))return e.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;e.requestParam.name="insertDungscore",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},createDataAgain:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(e.create.temp.score1))||!a.test(parseFloat(e.create.temp.score2))||!a.test(parseFloat(e.create.temp.score3))||!a.test(parseFloat(e.create.temp.score4))||!a.test(parseFloat(e.create.temp.score5)))return e.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;e.requestParam.name="insertDungscore",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.resetTemp(),e.getList(),e.getNoteTakerList()):Object(r["l"])(t,e.$notify)}))}}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),e.score1=String(e.score1),e.score2=String(e.score2),e.score3=String(e.score3),e.score4=String(e.score4),e.score5=String(e.score5),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(e.create.temp.score1))||!a.test(parseFloat(e.create.temp.score2))||!a.test(parseFloat(e.create.temp.score3))||!a.test(parseFloat(e.create.temp.score4))||!a.test(parseFloat(e.create.temp.score5)))return e.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;e.requestParam.name="updateDungscore",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteDungscore",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择粪便评分",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteDungscore",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCopy:function(){var e=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择粪便评分",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="copyDungscore",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.selectList[0].pastureid,e.requestParam.parammaps.id=e.selectList[0].id,Object(r["g"])(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:"已取消删除"})})):this.$message({type:"error",message:"请选择一条粪便评分",duration:2e3})},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("d6ab"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"392e618c",null);t["default"]=h.exports},"170c":function(e,t,a){"use strict";var i=a("679a"),s=a.n(i);s.a},1745:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{ref:"list",staticClass:"list"},[a("div",{staticClass:"list-t"},[a("span",[e._v("班次:")]),a("el-radio-group",{attrs:{size:"small"},on:{change:e.changeMenu},model:{value:e.menuRadio,callback:function(t){e.menuRadio=t},expression:"menuRadio"}},[e.maxTime.isTime1?a("el-radio-button",{attrs:{label:"一班"}},[e._v("一班")]):e._e(),e.maxTime.isTime2?a("el-radio-button",{attrs:{label:"二班"}},[e._v("二班")]):e._e(),e.maxTime.isTime3?a("el-radio-button",{attrs:{label:"三班"}},[e._v("三班")]):e._e(),e.maxTime.isTime4?a("el-radio-button",{attrs:{label:"四班"}},[e._v("四班")]):e._e()],1)],1),a("ul",{staticClass:"draggableList"},e._l(e.MenuList,(function(t){return a("li",{key:t.arrid},[t.isShowTitle?a("span",{staticClass:"draggableTitle"},[e._v(e._s(t.ftname)+":")]):e._e(),a("draggable",{staticClass:"list-group1",attrs:{id:"1","data-source":"juju1",list:t.arrList,draggable:".item",group:"a",move:e.move},on:{change:e.changeLog,start:e.start,end:e.end}},e._l(t.arrList,(function(t,i){return a("div",{key:i,staticClass:"list-group-item1 item",staticStyle:{width:"80px",float:"left",margin:"5px 5px",height:"35px","border-radius":"7px"},style:{background:t.background}},[a("el-tooltip",{staticClass:"list-group-item1 item",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(t.barname))]),a("div",{staticClass:"draggableName"},[e._v(e._s(t.barname))])]),a("div",{staticClass:"draggableWeight"},[e._v(e._s(t.weight))])],1)})),0)],1)})),0)]),a("div",{ref:"listRight",staticClass:"list-r"},[e.isLeftButton?a("div",{staticClass:"rightButton",on:{click:e.handleLeftButton}},[a("i",{staticClass:"el-icon-arrow-left left"}),a("span",[e._v("栏舍统计")])]):e._e(),e.isRightButton?a("div",{staticClass:"rightButton",on:{click:e.handleRightButton}},[a("i",{staticClass:"el-icon-arrow-right right"}),a("div",{staticClass:"smallTable"},[a("el-table",{attrs:{"list-loading":e.smallMenu.listLoading,"element-loading-text":"给我一点时间",data:e.smallMenu.list,"row-style":e.rowStyle2,"cell-style":e.cellStyle2,"header-row-style":e.headerRowStyle2,"header-cell-style":e.headerCellStyle2,height:150,"show-summary":"","sum-text":"总栏舍"}},[a("el-table-column",{attrs:{label:"配方/班次","min-width":"80px",align:"center",prop:"tname"}}),a("el-table-column",{attrs:{label:"总数","min-width":"50px",align:"center",prop:"usedsum"}}),e.maxTime.isTime1?a("el-table-column",{attrs:{label:"第一班未分配","min-width":"105px",align:"center",prop:"onetime"}}):e._e(),e.maxTime.isTime2?a("el-table-column",{attrs:{label:"第二班未分配","min-width":"105px",align:"center",prop:"twotime"}}):e._e(),e.maxTime.isTime3?a("el-table-column",{attrs:{label:"第三班未分配","min-width":"105px",align:"center",prop:"threetime"}}):e._e(),e.maxTime.isTime4?a("el-table-column",{attrs:{label:"第四班未分配","min-width":"105px",align:"center",prop:"fourtime"}}):e._e()],1)],1)]):e._e()]),a("div",{staticClass:"operation",staticStyle:{width:"100%","border-top":"2px solid #d8dce5","box-shadow":"0 1px 6px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04)"}},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:e.handleCreate}},[e._v("新增车次")]),a("el-button",{staticClass:"danger",staticStyle:{float:"left"},on:{click:e.handleReduceTrains}},[e._v("减少车次")]),a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:e.handleAutomaticGeneration}},[e._v("自动生成")]),a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:e.handleCheck}},[e._v("校验")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleHistoryRecord}},[e._v("历史记录")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,ref:"table",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{id:"table","element-loading-text":"给我一点时间",data:e.table.list,border:"","highlight-current-row":"",height:e.height,"row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id"},on:{"selection-change":e.handleSelect}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"车次",width:"85px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.sort))]):e._e(),t.row.Edit?a("el-input",{staticClass:"filter-item",staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"number",placeholder:"车次"},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",a)},expression:"scope.row.sort"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"TMR编号",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.tmrname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%"},attrs:{placeholder:"TMR编号"},on:{change:function(a){e.changeTMRNumber(a,t.row)}},model:{value:t.row.tmrid,callback:function(a){e.$set(t.row,"tmrid",a)},expression:"scope.row.tmrid"}},e._l(e.TMRNumberList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.eqcode,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"描述",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.display))]):e._e(),t.row.Edit?a("el-input",{staticClass:"filter-item",staticStyle:{display:"inline-block",width:"95%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"描述",maxlength:"255"},model:{value:t.row.display,callback:function(a){e.$set(t.row,"display",a)},expression:"scope.row.display"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"生效",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleTakeEffectChange(t.$index,t.row)}},model:{value:t.row.sel,callback:function(a){e.$set(t.row,"sel",a)},expression:"scope.row.sel"}})]}}])}),a("el-table-column",{attrs:{label:"班次",width:"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.timesstr))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%"},attrs:{disabled:t.row.Disabled,placeholder:"班次"},model:{value:t.row.times,callback:function(a){e.$set(t.row,"times",a)},expression:"scope.row.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"时间",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.begintime))]):e._e(),t.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:t.row.begintime,callback:function(a){e.$set(t.row,"begintime",a)},expression:"scope.row.begintime"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"最大重量",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.maxweight))])]}}])}),a("el-table-column",{attrs:{label:"合计重量",width:"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumweight))])]}}])}),a("el-table-column",{attrs:{label:"模板配方",width:"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ftname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%"},attrs:{disabled:t.row.Disabled,placeholder:"模板配方"},on:{change:function(a){e.changeTemplateFormulation(a,t.row)}},model:{value:t.row.ftid,callback:function(a){e.$set(t.row,"ftid",a)},expression:"scope.row.ftid"}},e._l(e.templateFormulationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"撒料",width:"950px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("draggable",{staticClass:"list-group2",attrs:{id:"2","data-source":"juju",list:t.row.arrList,draggable:".item",group:"a",move:e.move2},on:{change:function(a){return e.changeLog2(t.row)},start:e.start2,end:function(a){return e.end2(t.row)}}},e._l(t.row.arrList,(function(i){return a("div",{key:i.name,staticClass:"list-group-item2 item",staticStyle:{width:"100px",float:"left","border-radius":"5px",margin:"5px 5px",padding:"0",height:"60px"},style:{background:i.background}},[a("span",{staticStyle:{display:"block",height:"20px","line-height":"20px","border-radius":"5px",position:"relative",color:"#fff"},style:{background:i.background}},[e._v(" "+e._s(i.barname)+" "),a("i",{staticClass:"el-icon-close",staticStyle:{position:"absolute",right:"0"},on:{click:function(a){return e.handleFLDelete(i,t.row)}}})]),a("div",{staticStyle:{"margin-top":"7px"}},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.tmrname))]),a("el-select",{staticClass:"filter-item2",staticStyle:{display:"inline-block",width:"55px"},attrs:{placeholder:"撒料设备"},on:{change:function(a){e.changeEquipment(a,t.row,i.fttype,i.id)}},model:{value:i.tmrid,callback:function(t){e.$set(i,"tmrid",t)},expression:"element.tmrid"}},e._l(e.equipmentList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1)],1),a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.weight))]),a("el-input",{staticClass:"filter-item2",staticStyle:{display:"inline-block",width:"40px"},attrs:{type:"number",placeholder:"重量",step:"0.01"},on:{blur:function(a){e.blurWeight(t.row,i.fttype,i.id)}},model:{value:i.weight,callback:function(t){e.$set(i,"weight",t)},expression:"element.weight"}})],1)],1)])})),0)]}}])}),a("el-table-column",{attrs:{align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.automaticGeneration.dialogStatus],"destroy-on-close":!0,visible:e.automaticGeneration.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.automaticGeneration,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-automaticGeneration",staticStyle:{margin:"0 auto"}},[a("div",{staticStyle:{width:"210px",margin:"60px auto 120px"}},[e._v(" 请选择自动生成方式:"),a("br"),e._v(" 清空计划并生成新计划; "),a("br"),e._v(" 当前计划基础上继续生成计划; "),a("br")]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.automaticGeneration.dialogFormVisible=!1}}},[e._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.continueData()}}},[e._v("继续生成")]),a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.emptyPlanData()}}},[e._v("清空计划")])],1)])])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("310e"),n=a.n(l),o=a("aa47"),c=a("a78e"),d=a.n(c),m=a("5c96"),p={name:"MaterialIssuancePlan",display:"Two list header slot",order:14,components:{draggable:n.a},data:function(){return{requestParams:{name:"getTMRListEnable",offset:0,parammaps:{pastureid:d.a.get("pastureid"),eqtype:"1"}},requestParams2:{name:"getTMRListEnable",offset:0,parammaps:{pastureid:d.a.get("pastureid"),eqtype:"1"}},requestParams3:{name:"getFTSWList",offset:0,parammaps:{pastureid:d.a.get("pastureid")}},equipmentList:[],TMRNumberList:[],frequencyList:[],templateFormulationList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inforname:"times"}},isTime1:!1,isTime2:!1,isTime3:!1,isTime4:!1},table:{getdataListParm:{name:"getLppList",name1:"getLppdList",page:1,offset:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},list:[],total:0,tableKey:0,listLoading:!1,tabClickIndex:null,tabClickLabel:"",temp:{},move1:"",changeList:[],startObj:{},isGoing:!1},selectList:[],menuRadio:"一班",MenuList:[],getdataListParmTimes:{name:"geFTListByFP",name1:"geFTListByFPDetail",page:1,offset:1,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),times:"1"}},listLoadingTimes:!1,isLeftButton:!0,isRightButton:!1,rowStyle2:{maxHeight:"20px",height:"20px"},cellStyle2:{padding:"0px"},headerRowStyle2:{maxHeight:"20px",height:"20px"},headerCellStyle2:{padding:"0px"},smallMenu:{getdataListParm:{name:"getLppUseSUMList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},total:0,tableKey:0,listLoading:!1,list:[]},automaticGeneration:{dialogFormVisible:!1,dialogStatus:""},textMap:{automaticGeneration:"提示"},isokDisable:!1,requestParam:{},height:document.body.clientHeight-255-50,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},dropState:!1}},created:function(){this.getIsDisplay(),this.getDownList()},methods:{getDownList:function(){var e=this;Object(r["d"])(this.requestParams).then((function(t){e.TMRNumberList=t.data.list})),Object(r["d"])(this.requestParams2).then((function(t){e.equipmentList=t.data.list})),Object(r["d"])(this.requestParams3).then((function(t){e.templateFormulationList=t.data.list}))},getIsDisplay:function(){var e=this;Object(r["d"])(this.maxTime.getMaxTimesParm).then((function(t){console.log(t.data.list[0].inforvalue),1==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"}]:2==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]:3==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]:4==t.data.list[0].inforvalue&&(e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}]),null!==t.data.list?1==t.data.list[0].inforvalue?(e.maxTime.isTime1=!0,e.maxTime.isTime2=!1,e.maxTime.isTime3=!1,e.maxTime.isTime4=!1):2==t.data.list[0].inforvalue?(e.maxTime.isTime1=!0,e.maxTime.isTime2=!0,e.maxTime.isTime3=!1,e.maxTime.isTime4=!1):3==t.data.list[0].inforvalue?(e.maxTime.isTime1=!0,e.maxTime.isTime2=!0,e.maxTime.isTime3=!0,e.maxTime.isTime4=!1):4==t.data.list[0].inforvalue&&(e.maxTime.isTime1=!0,e.maxTime.isTime2=!0,e.maxTime.isTime3=!0,e.maxTime.isTime4=!0):(e.maxTime.isTime1=!1,e.maxTime.isTime2=!1,e.maxTime.isTime3=!1,e.maxTime.isTime4=!1)})),this.getList(),this.getSmallMenuList(),this.getTimesList()},getTimesList:function(){var e=this;this.listLoadingTimes=!0,Object(r["c"])(this.getdataListParmTimes).then((function(t){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"isShowTitle",!0),null==t.data.list[a].arrList&&e.$set(t.data.list[a],"isShowTitle",!1);e.MenuList=t.data.list}))},changeMenu:function(e){console.log(e),"一班"===this.menuRadio?(this.getdataListParmTimes.parammaps.times="1",this.getTimesList()):"二班"===this.menuRadio?(this.getdataListParmTimes.parammaps.times="2",this.getTimesList(),this.MenuList=this.twoMenuList):"三班"===this.menuRadio?(this.getdataListParmTimes.parammaps.times="3",this.getTimesList()):"四班"===this.menuRadio&&(this.getdataListParmTimes.parammaps.times="4",this.getTimesList())},getSmallMenuList:function(){var e=this;this.smallMenu.listLoading=!0,Object(r["d"])(this.smallMenu.getdataListParm).then((function(t){if(console.log("smallMenu数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0==t.data.list[a].onetime?e.$set(t.data.list[a],"onetime",0):t.data.list[a].onetime=parseFloat(t.data.list[a].onetime),void 0==t.data.list[a].twotime?e.$set(t.data.list[a],"twotime",0):t.data.list[a].twotime=parseFloat(t.data.list[a].twotime),void 0==t.data.list[a].threetime?e.$set(t.data.list[a],"threetime",0):t.data.list[a].threetime=parseFloat(t.data.list[a].threetime),void 0==t.data.list[a].fourtime?e.$set(t.data.list[a],"fourtime",0):t.data.list[a].fourtime=parseFloat(t.data.list[a].fourtime),e.$set(t.data.list[a],"usedsum",t.data.list[a].onetime+t.data.list[a].twotime+t.data.list[a].threetime+t.data.list[a].fourtime),e.$set(t.data.list[a],"all","");e.smallMenu.list=t.data.list,e.smallMenu.total=t.data.total}else e.smallMenu.list=[];setTimeout((function(){e.smallMenu.listLoading=!1}),100)}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["c"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1),e.$set(t.data.list[a],"Disabled",!0),null==t.data.list[a].arrList&&(e.$set(t.data.list[a],"Disabled",!1),e.$set(t.data.list[a],"arrList",[]));e.table.list=t.data.list,e.rowDrop(),e.table.changeList=[],e.table.startObj={},t.data.total&&(e.table.total=t.data.total)}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},rowDrop:function(){console.log(document.querySelector("#table .el-table__body-wrapper tbody"));var e=document.querySelector("#table .el-table__body-wrapper tbody"),t=this,a=o["default"].create(e,{disabled:t.dropState,onChoose:function(e){e.newIndex,e.oldIndex;1==t.dropState&&a.destroy()},onEnd:function(e){var a=e.newIndex,i=e.oldIndex,s=t.table.list.splice(i,1)[0];t.table.list.splice(a,0,s),console.log("索引",a),console.log("拖动数据",s),console.log("上",t.table.list[a-1]),console.log("下",t.table.list[a+1])}})},changeTMRNumber:function(e,t){t.tmrname=this.TMRNumberList.find((function(t){return t.id===e})).eqcode,t.maxweight=this.TMRNumberList.find((function(t){return t.id===e})).maxstirfeed},changeTemplateFormulation:function(e,t){t.ftname=this.templateFormulationList.find((function(t){return t.id===e})).tname},handleCreate:function(){for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,tmrname:"",tmrid:"",sort:parseInt(this.table.list[this.table.list.length-1].sort)+1,sel:1,times:"",display:"",begintime:"",ftname:"",ftid:"",sumweight:"",sumcowcount:"",maxweight:"",arrList:[]}),this.$refs.table.bodyWrapper.scrollTop=0,this.dropState=!0},createData:function(e){var t=this;if(console.log("点击了新增保存",e),this.table.temp.pastureid=d.a.get("pastureid"),this.table.temp.tmrname=e.tmrname,this.table.temp.tmrid=e.tmrid,this.table.temp.sort=e.sort,this.table.temp.sel=e.sel,this.table.temp.times=e.times,this.table.temp.display=e.display,this.table.temp.begintime=e.begintime,this.table.temp.ftname=e.ftname,this.table.temp.ftid=e.ftid,this.table.temp.sumweight=0,this.table.temp.maxweight=e.maxweight,""==this.table.temp.sort&&""==this.table.temp.tmrid&&""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"车次/TMR编号/班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.tmrid&&""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"TMR编号/班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.ftid)return this.$message({type:"error",message:"模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;for(var a=0;a<this.table.list.length;a++)if(e.sort==this.table.list[a].sort&&e.myId!==this.table.list[a].myId)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==this.table.temp.sort&&!i.test(parseFloat(this.table.temp.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.name="insertLpp",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.dropState=!1):Object(r["l"])(e,t.$notify)}))},createCancel:function(e){console.log("点击了新增取消"),this.dropState=!1;for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){console.log(e,"点击了行编辑");for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.times=String(e.times),void 0==e.sort&&(e.sort=""),void 0!=e.tmrid&&void 0!=e.tmrname||(e.tmrid="",e.tmrname=""),void 0==e.display&&(e.display=""),void 0==e.times&&(e.times=""),void 0==e.begintime&&(e.begintime=""),void 0!=e.ftid&&void 0!=e.ftname||(e.ftid="",e.ftname=""),this.dropState=!0},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),this.table.temp.pastureid=e.pastureid,this.table.temp.id=e.id,this.table.temp.tmrname=e.tmrname,this.table.temp.tmrid=e.tmrid,this.table.temp.sort=e.sort,this.table.temp.sel=e.sel,this.table.temp.times=e.times,this.table.temp.display=e.display,this.table.temp.begintime=e.begintime,this.table.temp.ftname=e.ftname,this.table.temp.ftid=e.ftid,this.table.temp.sumweight=e.sumweight,this.table.temp.sumcowcount=e.sumcowcount,this.table.temp.maxweight=e.maxweight,""==this.table.temp.sort&&""==this.table.temp.tmrid&&""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"车次/TMR编号/班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.tmrid&&""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"TMR编号/班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.times&&""==this.table.temp.ftid)return this.$message({type:"error",message:"班次/模板配方不能为空",duration:2e3}),!1;if(""==this.table.temp.ftid)return this.$message({type:"error",message:"模板配方不能为空",duration:2e3}),!1;for(var a=0;a<this.table.list.length;a++)if(e.sort==this.table.list[a].sort&&e.id!==this.table.list[a].id)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==this.table.temp.sort&&!i.test(parseFloat(this.table.temp.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam={},this.requestParam.name="updateLpp",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.dropState=!1):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.dropState=!1},handleAutomaticGeneration:function(){this.automaticGeneration.dialogStatus="automaticGeneration",this.automaticGeneration.dialogFormVisible=!0},continueData:function(){console.log("点击继续生成")},emptyPlanData:function(){console.log("点击清空计划")},handleCheck:function(){console.log("点击检验")},handleHistoryRecord:function(){console.log("点击历史记录")},changeLog:function(e){console.log("change1",e)},start:function(e){console.log("start1",e),this.$set(this.table.startObj,"from",e.from.className),this.$set(this.table.startObj,"to",e.from.className)},end:function(e){console.log("end1",e)},move:function(e,t){if("list-group-item1 item"===t.target.className||"draggableWeight"===t.target.className)return!1;console.log(e),this.table.move1=e.draggedContext.element},start2:function(e){console.log("start2",e),this.$set(this.table.startObj,"from",e.from.className),this.$set(this.table.startObj,"to",e.from.className)},move2:function(e,t){if("list-group-item1 item"===t.target.className||"draggableWeight"===t.target.className)return!1;this.table.move1=e.draggedContext.element},end2:function(e){console.log("end2",e)},changeLog2:function(e){var t=this;if(console.log(e,"evt-----"),this.table.changeList.push(e),e=this.table.changeList[0],1==e.arrList.length)e.arrList[0].sort=0;else if(e.arrList.length>1)for(var a=0;a<e.arrList.length;a++)e.arrList[a].id==this.table.move1.id&&e.arrList[a].fttype==this.table.move1.fttype&&(void 0==e.arrList[a-1]?(e.arrList[a].sort=0,e.sort=0):(e.arrList[a].sort=parseFloat(e.arrList[a-1].sort)+1,e.sort=parseFloat(e.arrList[a-1].sort)+1));console.log(e.arrList),"list-group1"==this.table.startObj.from&&"list-group1"==this.table.startObj.to?(this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkLLPDetailInsert",type:"v",parammaps:{pastureid:this.table.move1.pastureid,barid:this.table.move1.barid,lppid:e.id,times:e.times,ftid:this.table.move1.ftid,ptsid:this.table.move1.ptsid,ptid:this.table.move1.ptid,fttype:this.table.move1.fttype,timesTem:this.table.move1.times}},this.requestParam.data[1]={name:"updateLpplandtlSorts",type:"e",parammaps:{pastureid:e.pastureid,sort:e.sort,lppid:e.id}},this.requestParam.data[2]={name:"insertLppd",type:"e",parammaps:{pastureid:e.pastureid,lppid:e.id,barid:this.table.move1.barid,barname:this.table.move1.barname,fpdid:this.table.move1.id,fttype:this.table.move1.fttype,lweight:this.table.move1.weight,sort:e.sort,tmrid:e.tmrid,tmrname:e.tmrname,background:this.table.move1.background,ccountradio:this.table.move1.ccountradio,cowcount:this.table.move1.cowcount}},this.requestParam.data[3]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:this.table.move1.pastureid,id:this.table.move1.id,fttype:this.table.move1.fttype,lweight:this.table.move1.weight}},console.log("撒料位上-下新增",this.requestParam),Object(r["b"])(this.requestParam).then((function(e){console.log("撒料位新增保存发送参数",t.requestParam),"fail"===e.msg?(t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),t.getTimesList(),t.getSmallMenuList(),t.getList()):(t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.getSmallMenuList())}))):"list-group2"==this.table.startObj.from&&"list-group2"==this.table.startObj.to&&(1==this.table.changeList.length?(this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkLLPDetailInsert",type:"v",parammaps:{pastureid:this.table.move1.pastureid,barid:this.table.move1.barid,lppid:e.id,times:e.times,ftid:this.table.move1.ftid,ptsid:this.table.move1.ptsid,ptid:this.table.move1.ptid,fttype:this.table.move1.fttype,timesTem:e.times}},this.requestParam.data[1]={name:"updateLpplandtlSorts",type:"e",parammaps:{pastureid:e.pastureid,sort:e.sort,lppid:e.id}},this.requestParam.data[2]={name:"deleteLppd",type:"e",parammaps:{pastureid:e.pastureid,id:this.table.move1.id}},this.requestParam.data[3]={name:"insertLppd",type:"e",parammaps:{pastureid:e.pastureid,lppid:e.id,barid:this.table.move1.barid,barname:this.table.move1.barname,fpdid:this.table.move1.fpdid,fttype:this.table.move1.fttype,lweight:this.table.move1.weight,sort:e.sort,tmrid:e.tmrid,tmrname:e.tmrname,background:this.table.move1.background,ccountradio:this.table.move1.ccountradio,cowcount:this.table.move1.cowcount}},console.log("撒料位下-下新增",this.requestParam),Object(r["b"])(this.requestParam).then((function(e){console.log("撒料位新增保存发送参数",t.requestParam),"fail"===e.msg?(t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),t.getTimesList(),t.getSmallMenuList(),t.getList()):(t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.getSmallMenuList())}))):1==this.table.changeList.length&&(1==this.table.isGoing?(console.log(11111),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkLLPDetailInsert",type:"e",parammaps:{pastureid:e.pastureid,sort:e.sort,lppid:e.id}},this.requestParam.data[1]={name:"deleteLppd",type:"e",parammaps:{pastureid:e.pastureid,id:this.table.move1.id}},this.requestParam.data[2]={name:"insertLppd",type:"e",parammaps:{pastureid:e.pastureid,lppid:e.id,barid:this.table.move1.barid,barname:this.table.move1.barname,fpdid:this.table.move1.id,fttype:this.table.move1.fttype,lweight:this.table.move1.weight,sort:e.sort,tmrid:e.tmrid,tmrname:e.tmrname,background:this.table.move1.background}},this.requestParam.data[3]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:this.table.move1.pastureid,id:this.table.move1.id,fttype:this.table.move1.fttype,statue:1}},console.log("撒料位新增",this.requestParam),Object(r["b"])(this.requestParam).then((function(e){console.log("撒料位新增保存发送参数",t.requestParam),"fail"===e.msg?(t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),t.getTimesList(),t.getList()):(t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.getList())})),this.table.isGoing=!1):this.table.isGoing=!0))},changeEquipment:function(e,t,a,i){for(var s=this,l={},n=0;n<t.arrList.length;n++)t.arrList[n].tmrname=this.equipmentList.find((function(t){return t.id===e})).tname,t.arrList[n].fttype==a&&t.arrList[n].id==i&&(l=t.arrList[n]);this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateLppd",type:"e",parammaps:{pastureid:t.pastureid,lppid:t.id,barid:l.barid,barname:l.barname,fpdid:l.fpdid,fttype:l.fttype,lweight:l.weight,sort:l.sort,tmrid:l.tmrid,tmrname:l.tmrname,background:l.background,id:l.id}},Object(r["b"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",s.requestParam),"fail"===e.msg?s.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(s.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),s.getList(),s.getTimesList())}))},blurWeight:function(e,t,a){for(var i=this,s={},l=0;l<e.arrList.length;l++)e.arrList[l].fttype==t&&e.arrList[l].id==a&&(s=e.arrList[l]);""==s.weight&&(s.weight=0),this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"checkFPdLeftW",type:"v",parammaps:{pastureid:s.pastureid,fpdid:s.fpdid,fttype:s.fttype,lweight:String(parseFloat(s.weight)-parseFloat(s.lweight))}},this.requestParam.data[1]={name:"updateLppd",type:"e",parammaps:{pastureid:e.pastureid,lppid:e.id,barid:s.barid,barname:s.barname,fpdid:s.fpdid,fttype:s.fttype,lweight:s.weight,sort:s.sort,tmrid:s.tmrid,tmrname:s.tmrname,background:s.background,id:s.id}},this.requestParam.data[2]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:s.pastureid,id:s.fpdid,fttype:s.fttype,lweight:String(parseFloat(s.weight)-parseFloat(s.lweight))}},Object(r["b"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",i.requestParam),"fail"===e.msg?(i.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}),i.getList(),i.getTimesList()):(i.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),i.getList(),i.getTimesList())}))},handleTakeEffectChange:function(){console.log("点击了生效")},handleFLDelete:function(e,t){var a=this;console.log(e,t,"点击了撒料删除"),this.selectList=[],this.requestParam={},this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"deleteLppd",type:"e",parammaps:{pastureid:e.pastureid,id:e.id}},this.requestParam.data[1]={name:"updateFpdetailUse",type:"e",parammaps:{pastureid:e.pastureid,id:e.fpdid,fttype:e.fttype,lweight:"-"+parseFloat(e.weight)}},Object(r["b"])(this.requestParam).then((function(e){console.log("删除保存发送参数",a.requestParam),"fail"===e.msg?a.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(a.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),a.getList(),a.getTimesList())}))},handleSelect:function(e){console.log("勾选数据",e),this.selectList=e},handleReduceTrains:function(){var e=this;if(0==this.selectList.length)return this.$message({type:"error",message:"请选择车次",duration:2e3}),!1;for(var t=0;t<this.selectList.length;t++)if(this.selectList[t].arrList.length>0)return this.$message({type:"error",message:"本车次已添加栏舍不可删除",duration:2e3}),!1;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteLpp",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleRowDelete:function(e){var t=this;if(console.log(e,"点击了行删除"),0!=e.arrList.length)return this.$message({type:"error",message:"本车次已添加栏舍不可删除",duration:2e3}),!1;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam={},t.requestParam.name="deleteLpp",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleLeftButton:function(){this.isLeftButton=!1,this.isRightButton=!0,this.$refs.listRight.style.zIndex=4,this.getSmallMenuList()},handleRightButton:function(){this.isLeftButton=!0,this.isRightButton=!1,this.$refs.listRight.style.zIndex=1}}},u=p,h=(a("178b"),a("4cbe"),a("a4b5"),a("2877")),g=Object(h["a"])(u,i,s,!1,null,"54d10016",null);t["default"]=g.exports},"178b":function(e,t,a){"use strict";var i=a("c8e8"),s=a.n(i);s.a},"181a":function(e,t,a){},"18f0":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},19176:function(e,t,a){"use strict";var i=a("08d8"),s=a.n(i);s.a},"19ef":function(e,t,a){},"19fe":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-体况评分",use:"icon-体况评分-usage",viewBox:"0 0 1145 1024",content:'<symbol class="icon" viewBox="0 0 1145 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-体况评分"><defs><style type="text/css"></style></defs><path d="M1027.245511 0a120.263111 120.263111 0 0 0-115.598222 118.670222 123.676444 123.676444 0 0 0 25.6 72.988445l-188.416 380.017777a137.955556 137.955556 0 0 0-54.158222 12.515556l-182.784-147.342222a81.123556 81.123556 0 0 0 4.437333-32.426667 115.598222 115.598222 0 1 0-231.196444 0 146.318222 146.318222 0 0 0 12.117333 55.751111l-143.587556 187.733334a73.955556 73.955556 0 0 0-31.402666-4.551112 118.670222 118.670222 0 1 0 115.598222 118.328889 143.473778 143.473778 0 0 0-12.060445-55.182222l143.587556-187.733333a73.955556 73.955556 0 0 0 31.402667 4.551111 138.183111 138.183111 0 0 0 54.215111-12.515556l182.044444 146.773334a98.304 98.304 0 0 0-3.527111 32.995555 115.598222 115.598222 0 1 0 231.139556 0 125.952 125.952 0 0 0-32.426667-80.782222l188.131556-372.622222h7.168A118.613333 118.613333 0 0 0 1027.245511 0z m-254.805333 690.574222a23.665778 23.665778 0 1 1-23.665778-24.462222 21.902222 21.902222 0 0 1 23.665778 24.519111z m278.755555-571.904a23.665778 23.665778 0 1 1-23.665777-24.291555 22.016 22.016 0 0 1 23.381333 24.348444z m-905.102222 642.844445a23.665778 23.665778 0 1 1-23.665778-23.893334 22.072889 22.072889 0 0 1 23.381334 24.120889z m278.755556-357.262223a23.665778 23.665778 0 1 1-47.331556 0 23.665778 23.665778 0 1 1 46.762667 0.227556z m-302.136889 190.008889a44.544 44.544 0 0 0 45.966222-47.217777v-381.155556h649.728a47.160889 47.160889 0 0 0 0-94.321778H156.959289a78.336 78.336 0 0 0-80.782222 82.887111v392.533334a44.544 44.544 0 0 0 45.966222 47.502222z m905.102222-237.226666a44.544 44.544 0 0 0-45.966222 47.217777v524.515556H191.775289a47.217778 47.217778 0 0 0 0 94.435556h800.654222a78.392889 78.392889 0 0 0 80.782222-83.057778v-535.893334a44.544 44.544 0 0 0-45.966222-46.990222z" fill="#ffffff" p-id="30331" /></symbol>'});l.a.add(n);t["default"]=n},"1a31":function(e,t,a){"use strict";var i=a("896f"),s=a.n(i);s.a},"1a53":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增盘点单")]),a("el-button",{staticClass:"success",on:{click:e.handleInventoryList}},[e._v("下载盘点单")])],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"盘点日期","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.inventorydate))])]}}])}),a("el-table-column",{attrs:{label:"盘点人","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createuser))])]}}])}),a("el-table-column",{attrs:{label:"盘盈库存(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.moreWeight))])]}}])}),a("el-table-column",{attrs:{label:"盘亏库存(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lessWeight))])]}}])}),a("el-table-column",{attrs:{label:"盈亏净值(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.differWeight))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"miniPrimary",attrs:{disabled:e.isokDisable},on:{click:function(a){return e.handleSee(t.row)}}},[e._v("查看")]),t.$index+(e.table.pageNum-1)*e.table.pageSize+1==1?a("el-button",{staticClass:"miniDanger",on:{click:function(a){return e.handleRowDelete(t.row)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.create.rules,model:e.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"===e.create.dialogStatus,"picker-options":e.create.pickerOptions1,clearable:!1},model:{value:e.create.createTemp.inventorydate,callback:function(t){e.$set(e.create.createTemp,"inventorydate",t)},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:e.create.createTemp.createuser,callback:function(t){e.$set(e.create.createTemp,"createuser",t)},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"===e.create.dialogStatus},model:{value:e.create.createTemp.remark,callback:function(t){e.$set(e.create.createTemp,"remark",t)},expression:"create.createTemp.remark"}})],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.create.listLoading,expression:"create.listLoading"}],key:e.create.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:e.create.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"库存重量(kg)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockweight))])]}}])}),a("el-table-column",{attrs:{label:"实际重量(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["create"===e.create.dialogStatus?a("el-input",{ref:"input",staticStyle:{width:"80%",padding:"10px 0"},on:{blur:function(a){return e.blurFactweight(t.row)}},model:{value:t.row.factweight,callback:function(a){e.$set(t.row,"factweight",a)},expression:"scope.row.factweight"}}):a("span",[e._v(" "+e._s(t.row.factweight))])]}}])}),a("el-table-column",{attrs:{label:"差值(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.differ))])]}}])})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("333d"),n=a("ed08"),o=a("5c96"),c=a("a78e"),d=a.n(c),m={name:"InventoryList",components:{Pagination:l["a"]},data:function(){return{table:{getdataListParm:{name:"getBigInventoryList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{create:"新增",see:"查看盘点单"},create:{pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:d.a.get("pastureid"),remark:"",inventorydate:Object(n["e"])(new Date,"{y}-{m}-{d}"),createuser:d.a.get("employename")},rules:{},getdataListParm:{name:"getFeedstorageWeightList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),emp:d.a.get("employename")}},tableKey:0,list:[],total:0,listLoading:!0},see:{getdataListParm:{name:"getInventoryList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}}},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.table.getdataListParm.parammaps.startTime=Object(n["e"])(e,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(t,"{y}-{m}-{d}"),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.table.getdataListParm.parammaps.startTime=Object(n["e"])(e,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(t,"{y}-{m}-{d}"),this.$forceUpdate()}},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(n["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),remark:"",inventorydate:Object(n["e"])(new Date,"{y}-{m}-{d}"),createuser:d.a.get("employename")}},handleCreate:function(){console.log("点击了新增盘点单"),this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.getCreateList()},getCreateList:function(){var e=this;this.create.listLoading=!0,Object(r["d"])(this.create.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"factweight",""),e.$set(t.data.list[a],"differ","");e.create.list=t.data.list,e.create.pageNum=t.data.pageNum,e.create.pageSize=t.data.pageSize,e.create.total=t.data.total}else e.create.list=[];setTimeout((function(){e.create.listLoading=!1}),100)}))},blurFactweight:function(e){""!==e.factweight&&""!==e.stockweight&&(e.differ=parseFloat(e.factweight)-parseFloat(e.stockweight))},createData:function(){var e=this;this.$refs["createTemp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);for(var a=[],i=0;i<e.create.list.length;i++)""!==e.create.list[i].factweight&&a.push(e.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 e.$message({type:"error",message:"实际重量请输入自然数并保留两位小数",duration:2e3}),!1}e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertBigInventory",type:"e",parammaps:{pastureid:e.create.createTemp.pastureid,inventorydate:Object(n["e"])(e.create.createTemp.inventorydate,"{y}-{m}-{d}"),createuser:e.create.createTemp.createuser,remark:e.create.createTemp.remark}},e.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:a}},e.requestParam.data[1].children=[],e.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"])(e.requestParam).then((function(t){if("fail"===t.msg){var a=new RegExp("key 'inventorydate'");a.test(t.data)?e.$message({type:"error",message:"当前日期已盘点,不可重复录入",duration:2e3}):Object(r["l"])(t,e.$notify)}else e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()}))}}))},handleInventoryList:function(){console.log("点击了下载盘点单")},handleSee:function(e){console.log("点击了查看"),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},e),this.see.getdataListParm.parammaps.pastureid=e.pastureid,this.see.getdataListParm.parammaps.id=e.id,this.getSeeList()},getSeeList:function(){var e=this;this.create.listLoading=!0,Object(r["d"])(this.see.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.create.list=t.data.list,e.create.pageNum=t.data.pageNum,e.create.pageSize=t.data.pageSize,e.create.total=t.data.total):e.create.list=[],setTimeout((function(){e.create.listLoading=!1}),100)}))},handleRowDelete:function(e){var t=this;o["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteBigInventory",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))}}},p=m,u=(a("eff6"),a("60b1"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"9dd7bd28",null);t["default"]=h.exports},"1b9b":function(e,t,a){},"1bf3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.handleCustomerSelect,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:"",filterable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"客户区域",clearable:"",filterable:""},model:{value:e.table.getdataListParm.parammaps.rangeId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"rangeId",t)},expression:"table.getdataListParm.parammaps.rangeId"}},e._l(e.rangeNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"客户状态",clearable:""},model:{value:e.table.getdataListParm.parammaps.customeStatusId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customeStatusId",t)},expression:"table.getdataListParm.parammaps.customeStatusId"}},e._l(e.customeStatusList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"负责人",clearable:"",filterable:""},model:{value:e.table.getdataListParm.parammaps.directorId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"directorId",t)},expression:"table.getdataListParm.parammaps.directorId"}},e._l(e.directorNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"创建人",clearable:"",filterable:""},model:{value:e.table.getdataListParm.parammaps.createrId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"createrId",t)},expression:"table.getdataListParm.parammaps.createrId"}},e._l(e.createrNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"客户集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"客户状态","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customeStatusName))])]}}])}),a("el-table-column",{attrs:{label:"客户区域","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rangeName))])]}}])}),a("el-table-column",{attrs:{label:"省份","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.province))])]}}])}),a("el-table-column",{attrs:{label:"客户地址","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.address))])]}}])}),a("el-table-column",{attrs:{label:"负责人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.director))])]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createrName))])]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createtime))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"500","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]),a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleService(i)}}},[e._v("服务记录")]),a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleContact(i)}}},[e._v("联系人管理")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"客户集团:",prop:"groupId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请选择集团",clearable:"",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.groupId,callback:function(t){e.$set(e.create.temp,"groupId",t)},expression:"create.temp.groupId"}},e._l(e.groupNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"客户状态:",prop:"customeStatusId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态",clearable:"",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.customeStatusId,callback:function(t){e.$set(e.create.temp,"customeStatusId",t)},expression:"create.temp.customeStatusId"}},e._l(e.customeStatusList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"统一社会信用代码:",prop:"scode"}},[a("el-input",{ref:"scode",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.scode,callback:function(t){e.$set(e.create.temp,"scode",t)},expression:"create.temp.scode"}})],1),a("el-form-item",{attrs:{label:"客户区域:",prop:"rangeId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请选择区域",clearable:"",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.rangeId,callback:function(t){e.$set(e.create.temp,"rangeId",t)},expression:"create.temp.rangeId"}},e._l(e.rangeNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"客户省份:",prop:"province"}},[a("el-input",{ref:"province",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.province,callback:function(t){e.$set(e.create.temp,"province",t)},expression:"create.temp.province"}})],1),a("el-form-item",{attrs:{label:"客户地址:",prop:"address"}},[a("el-input",{ref:"address",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.address,callback:function(t){e.$set(e.create.temp,"address",t)},expression:"create.temp.address"}})],1),a("el-form-item",{attrs:{label:"负责人:",prop:"directorId"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请选择",clearable:"",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.directorId,callback:function(t){e.$set(e.create.temp,"directorId",t)},expression:"create.temp.directorId"}},e._l(e.directorNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"创建人:",prop:"createrName"}},[a("el-input",{ref:"province",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.createrName,callback:function(t){e.$set(e.create.temp,"createrName",t)},expression:"create.temp.createrName"}})],1),a("el-form-item",{attrs:{label:"创建日期:",prop:"createtime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.createtime,callback:function(t){e.$set(e.create.temp,"createtime",t)},expression:"create.temp.createtime"}})],1),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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:"服务记录",visible:e.service.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.service,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"拜访记录",name:"first"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.servicetable1.listLoading,expression:"servicetable1.listLoading"}],key:e.servicetable1.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.servicetable1.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.servicetable1.pageNum-1)*e.servicetable1.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"拜访日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.vdate))])]}}])}),a("el-table-column",{attrs:{label:"拜访人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.visiterName))])]}}])}),a("el-table-column",{attrs:{label:"接待人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"接待人电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverTel))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleServiceSee1(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.servicetable1.total>=0,expression:"servicetable1.total>=0"}],attrs:{total:e.servicetable1.total,page:e.servicetable1.getdataListParm.offset,limit:e.servicetable1.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.servicetable1.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.servicetable1.getdataListParm,"pagecount",t)},pagination:e.getServiceTableList1}})],1)]),a("el-tab-pane",{attrs:{label:"电话回访记录",name:"second"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.servicetable2.listLoading,expression:"servicetable2.listLoading"}],key:e.servicetable2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.servicetable2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.servicetable2.pageNum-1)*e.servicetable2.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"回访日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tdate))])]}}])}),a("el-table-column",{attrs:{label:"回访人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.visiterName))])]}}])}),a("el-table-column",{attrs:{label:"被回访人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"被回访人电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverTel))])]}}])}),a("el-table-column",{attrs:{label:"回访状态","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statusName))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleServiceSee2(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.servicetable2.total>=0,expression:"servicetable2.total>=0"}],attrs:{total:e.servicetable2.total,page:e.servicetable2.getdataListParm.offset,limit:e.servicetable2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.servicetable2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.servicetable2.getdataListParm,"pagecount",t)},pagination:e.getServiceTableList2}})],1)]),a("el-tab-pane",{attrs:{label:"快递接收记录",name:"third"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.servicetable3.listLoading,expression:"servicetable3.listLoading"}],key:e.servicetable3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.servicetable3.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.servicetable3.pageNum-1)*e.servicetable3.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"接收日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pdate))])]}}])}),a("el-table-column",{attrs:{label:"寄件人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.posterName))])]}}])}),a("el-table-column",{attrs:{label:"寄件电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.posterTel))])]}}])}),a("el-table-column",{attrs:{label:"寄件单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.postCode))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleServiceSee3(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.servicetable3.total>=0,expression:"servicetable3.total>=0"}],attrs:{total:e.servicetable3.total,page:e.servicetable3.getdataListParm.offset,limit:e.servicetable3.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.servicetable3.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.servicetable3.getdataListParm,"pagecount",t)},pagination:e.getServiceTableList3}})],1)]),a("el-tab-pane",{attrs:{label:"备货记录",name:"fourth"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.servicetable4.listLoading,expression:"servicetable4.listLoading"}],key:e.servicetable4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.servicetable4.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.servicetable4.pageNum-1)*e.servicetable4.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"下单日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sdate))])]}}])}),a("el-table-column",{attrs:{label:"备货单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockupCode))])]}}])}),a("el-table-column",{attrs:{label:"备货日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.successDate))])]}}])}),a("el-table-column",{attrs:{label:"备货人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeeName))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleServiceSee4(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.servicetable4.total>=0,expression:"servicetable4.total>=0"}],attrs:{total:e.servicetable4.total,page:e.servicetable4.getdataListParm.offset,limit:e.servicetable4.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.servicetable4.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.servicetable4.getdataListParm,"pagecount",t)},pagination:e.getServiceTableList4}})],1)]),a("el-tab-pane",{attrs:{label:"发货记录",name:"fifth"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.servicetable5.listLoading,expression:"servicetable5.listLoading"}],key:e.servicetable4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.servicetable5.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.servicetable5.pageNum-1)*e.servicetable5.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"发货单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deliveryCode))])]}}])}),a("el-table-column",{attrs:{label:"发货日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sendDate))])]}}])}),a("el-table-column",{attrs:{label:"收件人姓名","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"收件人电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverTel))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleServiceSee5(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.servicetable5.total>=0,expression:"servicetable5.total>=0"}],attrs:{total:e.servicetable5.total,page:e.servicetable5.getdataListParm.offset,limit:e.servicetable5.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.servicetable5.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.servicetable5.getdataListParm,"pagecount",t)},pagination:e.getServiceTableList5}})],1)]),a("el-tab-pane",{attrs:{label:"远程服务记录",name:"sixth"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.servicetable6.listLoading,expression:"servicetable6.listLoading"}],key:e.servicetable6.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.servicetable6.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.servicetable6.pageNum-1)*e.servicetable6.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"服务日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rdate))])]}}])}),a("el-table-column",{attrs:{label:"技术人员","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeeName))])]}}])}),a("el-table-column",{attrs:{label:"客户对接人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleServiceSee6(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.servicetable6.total>=0,expression:"servicetable6.total>=0"}],attrs:{total:e.servicetable6.total,page:e.servicetable6.getdataListParm.offset,limit:e.servicetable6.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.servicetable6.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.servicetable6.getdataListParm,"pagecount",t)},pagination:e.getServiceTableList6}})],1)]),a("el-tab-pane",{attrs:{label:"现场服务记录",name:"seventh"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.servicetable7.listLoading,expression:"servicetable7.listLoading"}],key:e.servicetable7.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.servicetable7.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.servicetable7.pageNum-1)*e.servicetable7.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"服务单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serviceCode))])]}}])}),a("el-table-column",{attrs:{label:"服务日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serviceDate))])]}}])}),a("el-table-column",{attrs:{label:"服务人员","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeeName))])]}}])}),a("el-table-column",{attrs:{label:"服务类型","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.servicetypeName))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleServiceSee7(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.servicetable7.total>=0,expression:"servicetable7.total>=0"}],attrs:{total:e.servicetable7.total,page:e.servicetable7.getdataListParm.offset,limit:e.servicetable7.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.servicetable7.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.servicetable7.getdataListParm,"pagecount",t)},pagination:e.getServiceTableList7}})],1)]),a("el-tab-pane",{attrs:{label:"投诉记录",name:"eightth"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.servicetable8.listLoading,expression:"servicetable8.listLoading"}],key:e.servicetable8.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.servicetable8.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.servicetable8.pageNum-1)*e.servicetable8.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"投诉日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cdate))])]}}])}),a("el-table-column",{attrs:{label:"投诉人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.proposerName))])]}}])}),a("el-table-column",{attrs:{label:"投诉电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.telephone))])]}}])}),a("el-table-column",{attrs:{label:"被投诉人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.respondentName))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleServiceSee8(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.servicetable8.total>=0,expression:"servicetable8.total>=0"}],attrs:{total:e.servicetable8.total,page:e.servicetable8.getdataListParm.offset,limit:e.servicetable8.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.servicetable8.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.servicetable8.getdataListParm,"pagecount",t)},pagination:e.getServiceTableList8}})],1)])],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.service.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),a("el-button",{staticClass:"success",on:{click:function(t){return e.completeData()}}},[e._v("确认")])],1)],1)]),a("el-dialog",{attrs:{title:"联系人管理",visible:e.contact.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.contact,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate2}},[e._v("新增")]):e._e(),a("div",{staticClass:"table"},[a("el-form",{ref:"form",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.contact.rules,model:e.contact.temp}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.contact.listLoading,expression:"contact.listLoading"}],key:e.contact.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.contact.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.contact.pageNum-1)*e.contact.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"联系人姓名","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.contactName))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.contactName,callback:function(a){e.$set(t.row,"contactName",a)},expression:"scope.row.contactName"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"联系人电话","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.telephone))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number",step:"0.01"},model:{value:t.row.telephone,callback:function(a){e.$set(t.row,"telephone",a)},expression:"scope.row.telephone"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"收货地址","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.address))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.address,callback:function(a){e.$set(t.row,"address",a)},expression:"scope.row.address"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.createData2(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{attrs:{type:"minCancel"},on:{click:function(t){return e.createCancel2(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate2(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.updateData2(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel2(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.contact.total>=0,expression:"contact.total>=0"}],attrs:{total:e.contact.total,page:e.contact.getdataListParm.offset,limit:e.contact.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.contact.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.contact.getdataListParm,"pagecount",t)},pagination:e.getList2}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.contact.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"拜访记录",visible:e.createSee1.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.createSee1,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.createSee1.rules,model:e.createSee1.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerId"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee1.temp.customerName,callback:function(t){e.$set(e.createSee1.temp,"customerName",t)},expression:"createSee1.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee1.temp.groupName,callback:function(t){e.$set(e.createSee1.temp,"groupName",t)},expression:"createSee1.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"拜访日期:",prop:"vdate"}},[a("el-input",{ref:"vdate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee1.temp.vdate,callback:function(t){e.$set(e.createSee1.temp,"vdate",t)},expression:"createSee1.temp.vdate"}})],1),a("el-form-item",{attrs:{label:"拜访人:",prop:"visiterName"}},[a("el-input",{ref:"vdate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee1.temp.visiterName,callback:function(t){e.$set(e.createSee1.temp,"visiterName",t)},expression:"createSee1.temp.visiterName"}})],1),a("el-form-item",{attrs:{label:"接待人:",prop:"visiterId"}},[a("el-input",{ref:"vdate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee1.temp.receiverName,callback:function(t){e.$set(e.createSee1.temp,"receiverName",t)},expression:"createSee1.temp.receiverName"}})],1),a("el-form-item",{attrs:{label:"接待人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee1.temp.receiverTel,callback:function(t){e.$set(e.createSee1.temp,"receiverTel",t)},expression:"createSee1.temp.receiverTel"}})],1),a("el-form-item",{attrs:{label:"现场照片:",prop:"vPhoto1"}},[a("el-upload",{class:{hide:e.hideUpload},attrs:{id:"uploadPic","list-type":"picture-card",action:e.uploadImageUrl,limit:9,headers:e.headers,"file-list":e.fileList,"on-preview":e.handlePicPreview,"auto-upload":!0,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,i){return e.handlePicSuccess(t,a,i)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:"40%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{width:"80%",src:e.dialogImageUrl,alt:""}})])],1),a("el-form-item",{attrs:{label:"定位:",prop:"location"}},[a("el-input",{ref:"location",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee1.temp.location,callback:function(t){e.$set(e.createSee1.temp,"location",t)},expression:"createSee1.temp.location"}})],1),a("el-form-item",{attrs:{label:"情况说明:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",maxlength:"255",disabled:""},model:{value:e.createSee1.temp.content,callback:function(t){e.$set(e.createSee1.temp,"content",t)},expression:"createSee1.temp.content"}})],1),a("el-form-item",{attrs:{label:"下一步计划:",prop:"nextId"}},[a("el-input",{ref:"nextName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee1.temp.nextName,callback:function(t){e.$set(e.createSee1.temp,"nextName",t)},expression:"createSee1.temp.nextName"}})],1),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},maxlength:"255",disabled:""},model:{value:e.createSee1.temp.remark,callback:function(t){e.$set(e.createSee1.temp,"remark",t)},expression:"createSee1.temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.createSee1.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"电话回访",visible:e.createSee2.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.createSee2,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.createSee2.rules,model:e.createSee2.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee2.temp.customerName,callback:function(t){e.$set(e.createSee2.temp,"customerName",t)},expression:"createSee2.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee2.temp.groupName,callback:function(t){e.$set(e.createSee2.temp,"groupName",t)},expression:"createSee2.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"回访日期:",prop:"tdate"}},[a("el-input",{ref:"tdate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee2.temp.tdate,callback:function(t){e.$set(e.createSee2.temp,"tdate",t)},expression:"createSee2.temp.tdate"}})],1),a("el-form-item",{attrs:{label:"回访人:",prop:"visiterId"}},[a("el-input",{ref:"visiterName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee2.temp.visiterName,callback:function(t){e.$set(e.createSee2.temp,"visiterName",t)},expression:"createSee2.temp.visiterName"}})],1),a("el-form-item",{attrs:{label:"被回访人:",prop:"receiverId"}},[a("el-input",{ref:"receiverName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee2.temp.receiverName,callback:function(t){e.$set(e.createSee2.temp,"receiverName",t)},expression:"createSee2.temp.receiverName"}})],1),a("el-form-item",{attrs:{label:"被回访人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",disabled:""},model:{value:e.createSee2.temp.receiverTel,callback:function(t){e.$set(e.createSee2.temp,"receiverTel",t)},expression:"createSee2.temp.receiverTel"}})],1),a("el-form-item",{attrs:{label:"回访类型:",prop:"typeIds"}},[a("el-checkbox-group",{model:{value:e.createSee2.temp.typeIdsArr,callback:function(t){e.$set(e.createSee2.temp,"typeIdsArr",t)},expression:"createSee2.temp.typeIdsArr"}},e._l(e.typeNameList,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:t.id}},[e._v(e._s(t.name))])})),1)],1),a("el-form-item",{attrs:{label:"回访状态:",prop:"statusName"}},[a("el-radio",{attrs:{label:"良好"},model:{value:e.createSee2.temp.statusName,callback:function(t){e.$set(e.createSee2.temp,"statusName",t)},expression:"createSee2.temp.statusName"}},[e._v("良好")]),a("el-radio",{attrs:{label:"不佳"},model:{value:e.createSee2.temp.statusName,callback:function(t){e.$set(e.createSee2.temp,"statusName",t)},expression:"createSee2.temp.statusName"}},[e._v("不佳")])],1),a("el-form-item",{attrs:{label:"回访情况:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入情况说明",maxlength:"255",disabled:""},model:{value:e.createSee2.temp.content,callback:function(t){e.$set(e.createSee2.temp,"content",t)},expression:"createSee2.temp.content"}})],1),a("el-form-item",{attrs:{label:"下一步计划:",prop:"nextId"}},[a("el-input",{ref:"nextName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",disabled:""},model:{value:e.createSee2.temp.nextName,callback:function(t){e.$set(e.createSee2.temp,"nextName",t)},expression:"createSee2.temp.nextName"}})],1),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},maxlength:"255",disabled:""},model:{value:e.createSee2.temp.remark,callback:function(t){e.$set(e.createSee2.temp,"remark",t)},expression:"createSee2.temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.createSee2.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"快递接收",visible:e.createSee3.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.createSee3,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.createSee3.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee3.temp.customerName,callback:function(t){e.$set(e.createSee3.temp,"customerName",t)},expression:"createSee3.temp.customerName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee3.temp.groupName,callback:function(t){e.$set(e.createSee3.temp,"groupName",t)},expression:"createSee3.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"接收日期:",prop:"pdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:""},model:{value:e.createSee3.temp.pdate,callback:function(t){e.$set(e.createSee3.temp,"pdate",t)},expression:"createSee3.temp.pdate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"寄件人:",prop:"posterId"}},[a("el-input",{ref:"posterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee3.temp.posterId,callback:function(t){e.$set(e.createSee3.temp,"posterId",t)},expression:"createSee3.temp.posterId"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"寄件电话:",prop:"posterTel"}},[a("el-input",{ref:"posterTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",disabled:""},model:{value:e.createSee3.temp.posterTel,callback:function(t){e.$set(e.createSee3.temp,"posterTel",t)},expression:"createSee3.temp.posterTel"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"寄件单号:",prop:"postCode"}},[a("el-input",{ref:"postCode",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"30",disabled:""},model:{value:e.createSee3.temp.postCode,callback:function(t){e.$set(e.createSee3.temp,"postCode",t)},expression:"createSee3.temp.postCode"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"寄件原因:",prop:"reason"}},[a("el-input",{ref:"reason",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",disabled:""},model:{value:e.createSee3.temp.reason,callback:function(t){e.$set(e.createSee3.temp,"reason",t)},expression:"createSee3.temp.reason"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"处理方式:",prop:"handletypeId"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee3.temp.handletypeId,callback:function(t){e.$set(e.createSee3.temp,"handletypeId",t)},expression:"createSee3.temp.handletypeId"}})],1)],1)],1),a("el-row",[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},maxlength:"255",disabled:""},model:{value:e.createSee3.temp.remark,callback:function(t){e.$set(e.createSee3.temp,"remark",t)},expression:"createSee3.temp.remark"}})],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"添加收货物品:",prop:"visiterId"}},[a("el-select",{ref:"visiterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择收货物品",disabled:""},model:{value:e.createSee3.temp.visiterId,callback:function(t){e.$set(e.createSee3.temp,"visiterId",t)},expression:"createSee3.temp.visiterId"}},e._l(e.receProductNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:"货品名称:"+e.pname+" 型号:"+e.model+" 规格:"+e.Specifications,value:e.id}})})),1)],1)],1),a("el-row",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.createSee3contact.listLoading,expression:"createSee3contact.listLoading"}],key:e.createSee3contact.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.createSee3contact.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}])}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}])}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}])}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.nums))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.createSee3.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"备货通知",visible:e.createSee4.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.createSee4,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.createSee4.rules,model:e.createSee4.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee4.temp.customerName,callback:function(t){e.$set(e.createSee4.temp,"customerName",t)},expression:"createSee4.temp.customerName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee4.temp.groupName,callback:function(t){e.$set(e.createSee4.temp,"groupName",t)},expression:"createSee4.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"下单日期:",prop:"sdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:""},model:{value:e.createSee4.temp.sdate,callback:function(t){e.$set(e.createSee4.temp,"sdate",t)},expression:"createSee4.temp.sdate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备货原因:",prop:"reasonName"}},[a("el-input",{ref:"reasonName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee4.temp.reasonName,callback:function(t){e.$set(e.createSee4.temp,"reasonName",t)},expression:"createSee4.temp.reasonName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"订单来源:",prop:"sourceName"}},[a("el-input",{ref:"sourceName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee4.temp.sourceName,callback:function(t){e.$set(e.createSee4.temp,"sourceName",t)},expression:"createSee4.temp.sourceName"}})],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},maxlength:"255"},model:{value:e.createSee4.temp.remark,callback:function(t){e.$set(e.createSee4.temp,"remark",t)},expression:"createSee4.temp.remark"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备货状态:",prop:"statusName"}},[a("el-input",{ref:"statusName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee4.temp.statusName,callback:function(t){e.$set(e.createSee4.temp,"statusName",t)},expression:"createSee4.temp.statusName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"created"}},[a("el-input",{ref:"created",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee4.temp.created,callback:function(t){e.$set(e.createSee4.temp,"created",t)},expression:"createSee4.temp.created"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备货人:",prop:"employeeName"}},[a("el-input",{ref:"employeeName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee4.temp.employeeName,callback:function(t){e.$set(e.createSee4.temp,"employeeName",t)},expression:"createSee4.temp.employeeName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备货日期:",prop:"successDate"}},[a("el-input",{ref:"successDate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee4.temp.successDate,callback:function(t){e.$set(e.createSee4.temp,"successDate",t)},expression:"createSee4.temp.successDate"}})],1)],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"关联接收快递:",prop:"postalId"}},[a("el-select",{ref:"postalId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择接收快递",disabled:"",clearable:""},model:{value:e.createSee4.temp.postalId,callback:function(t){e.$set(e.createSee4.temp,"postalId",t)},expression:"createSee4.temp.postalId"}},e._l(e.createSee4.postalNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-row",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.createSee4contact.listLoading,expression:"createSee4contact.listLoading"}],key:e.createSee4contact.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.createSee4contact.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}])}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}])}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}])}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.nums))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.createSee4.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"发货记录",visible:e.createSee5.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.createSee5,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.createSee5.rules,model:e.createSee5.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee5.temp.customerName,callback:function(t){e.$set(e.createSee5.temp,"customerName",t)},expression:"createSee5.temp.customerName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee5.temp.groupName,callback:function(t){e.$set(e.createSee5.temp,"groupName",t)},expression:"createSee5.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"收件人姓名:",prop:"receiverName"}},[a("el-input",{ref:"receiverName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee5.temp.receiverName,callback:function(t){e.$set(e.createSee5.temp,"receiverName",t)},expression:"createSee5.temp.receiverName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"收件人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee5.temp.receiverTel,callback:function(t){e.$set(e.createSee5.temp,"receiverTel",t)},expression:"createSee5.temp.receiverTel"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"快递名称:",prop:"postName"}},[a("el-input",{ref:"postName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee5.temp.postName,callback:function(t){e.$set(e.createSee5.temp,"postName",t)},expression:"createSee5.temp.postName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"快递单号:",prop:"postCode"}},[a("el-input",{ref:"postCode",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee5.temp.postCode,callback:function(t){e.$set(e.createSee5.temp,"postCode",t)},expression:"createSee5.temp.postCode"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"发货日期:",prop:"sendDate"}},[a("el-input",{ref:"sendDate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee5.temp.sendDate,callback:function(t){e.$set(e.createSee5.temp,"sendDate",t)},expression:"createSee5.temp.sendDate"}})],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},maxlength:"255",disabled:""},model:{value:e.createSee5.temp.remark,callback:function(t){e.$set(e.createSee5.temp,"remark",t)},expression:"createSee5.temp.remark"}})],1)],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"发货详情:",prop:"stockupId"}},[a("el-select",{ref:"stockupId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",disabled:""},model:{value:e.createSee5.temp.stockupId,callback:function(t){e.$set(e.createSee5.temp,"stockupId",t)},expression:"createSee5.temp.stockupId"}},e._l(e.create.postalNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._l(e.createSee5tableArrList,(function(t,i){return a("div",[a("el-row",[e._v(" 备货单号:"+e._s(t.title)+" 备货人:"+e._s(t.name)+" 备货日期:"+e._s(t.date)+" ")]),a("el-row",[a("el-table",{key:t.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{data:t.tablelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.nums))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}],null,!0)})],1)],1)],1)}))],2),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.createSee5.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"远程服务",visible:e.createSee6.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){return e.$set(e.createSee6,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.createSee6.rules,model:e.createSee6.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee6.temp.customerName,callback:function(t){e.$set(e.createSee6.temp,"customerName",t)},expression:"createSee6.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee6.temp.groupName,callback:function(t){e.$set(e.createSee6.temp,"groupName",t)},expression:"createSee6.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"服务日期:",prop:"rdate"}},[a("el-input",{ref:"rdate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee6.temp.rdate,callback:function(t){e.$set(e.createSee6.temp,"rdate",t)},expression:"createSee6.temp.rdate"}})],1),a("el-form-item",{attrs:{label:"技术人员:",prop:"employeeName"}},[a("el-input",{ref:"employeeName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee6.temp.employeeName,callback:function(t){e.$set(e.createSee6.temp,"employeeName",t)},expression:"createSee6.temp.employeeName"}})],1),a("el-form-item",{attrs:{label:"客户对接人:",prop:"receiverName"}},[a("el-input",{ref:"receiverName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee6.temp.receiverName,callback:function(t){e.$set(e.createSee6.temp,"receiverName",t)},expression:"createSee6.temp.receiverName"}})],1),a("el-form-item",{attrs:{label:"服务内容:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入服务内容",maxlength:"255",disabled:""},model:{value:e.createSee6.temp.content,callback:function(t){e.$set(e.createSee6.temp,"content",t)},expression:"createSee6.temp.content"}})],1),a("el-form-item",{attrs:{label:"拜访记录关联:",prop:"visitName"}},[a("el-input",{ref:"visitName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee6.temp.visitName,callback:function(t){e.$set(e.createSee6.temp,"visitName",t)},expression:"createSee6.temp.visitName"}})],1),a("el-form-item",{attrs:{label:"回访记录关联:",prop:"telvisitName"}},[a("el-input",{ref:"telvisitName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee6.temp.telvisitName,callback:function(t){e.$set(e.createSee6.temp,"telvisitName",t)},expression:"createSee6.temp.telvisitName"}})],1),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:"请输入备注,最多255个字",maxlength:"255",disabled:""},model:{value:e.createSee6.temp.remark,callback:function(t){e.$set(e.createSee6.temp,"remark",t)},expression:"createSee6.temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.createSee6.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"现场服务",visible:e.createSee7.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.createSee7,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.createSee7.rules,model:e.createSee7.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.customerName,callback:function(t){e.$set(e.createSee7.temp,"customerName",t)},expression:"createSee7.temp.customerName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.groupName,callback:function(t){e.$set(e.createSee7.temp,"groupName",t)},expression:"createSee7.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务单号:",prop:"serviceCode"}},[a("el-input",{ref:"serviceCode",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.serviceCode,callback:function(t){e.$set(e.createSee7.temp,"serviceCode",t)},expression:"createSee7.temp.serviceCode"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务日期:",prop:"serviceDate"}},[a("el-input",{ref:"serviceDate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.serviceDate,callback:function(t){e.$set(e.createSee7.temp,"serviceDate",t)},expression:"createSee7.temp.serviceDate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务人员:",prop:"employeeName"}},[a("el-input",{ref:"employeeName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.employeeName,callback:function(t){e.$set(e.createSee7.temp,"employeeName",t)},expression:"createSee7.temp.employeeName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务类型:",prop:"servicetypeName"}},[a("el-input",{ref:"servicetypeName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.servicetypeName,callback:function(t){e.$set(e.createSee7.temp,"servicetypeName",t)},expression:"createSee7.temp.servicetypeName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"接待人:",prop:"receiverName"}},[a("el-input",{ref:"receiverName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.receiverName,callback:function(t){e.$set(e.createSee7.temp,"receiverName",t)},expression:"createSee7.temp.receiverName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"接待人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.receiverTel,callback:function(t){e.$set(e.createSee7.temp,"receiverTel",t)},expression:"createSee7.temp.receiverTel"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务描述:",prop:"describe"}},[a("el-input",{ref:"describe",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.describe,callback:function(t){e.$set(e.createSee7.temp,"describe",t)},expression:"createSee7.temp.describe"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务结果:",prop:"serviceResult"}},[a("el-input",{ref:"serviceResult",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.serviceResult,callback:function(t){e.$set(e.createSee7.temp,"serviceResult",t)},expression:"createSee7.temp.serviceResult"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"拜访记录关联:",prop:"visitName"}},[a("el-input",{ref:"visitName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.visitName,callback:function(t){e.$set(e.createSee7.temp,"visitName",t)},expression:"createSee7.temp.visitName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"回访记录关联:",prop:"telvisitId"}},[a("el-select",{ref:"telvisitId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选回访记录关联 ",disabled:""},model:{value:e.createSee7.temp.telvisitId,callback:function(t){e.$set(e.createSee7.temp,"telvisitId",t)},expression:"createSee7.temp.telvisitId"}},e._l(e.createSee7.telvisitNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"grouremarkpName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee7.temp.remark,callback:function(t){e.$set(e.createSee7.temp,"remark",t)},expression:"createSee7.temp.remark"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"定位:",prop:"location"}},[a("el-input",{ref:"location",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.location,callback:function(t){e.$set(e.create.temp,"location",t)},expression:"create.temp.location"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"现场照片:",prop:"scenePhoto1"}},[a("el-upload",{class:{hide:e.hideUpload},attrs:{id:"uploadPic1","list-type":"picture-card",action:e.uploadImageUrl,limit:9,headers:e.headers,"file-list":e.fileList,"on-preview":e.handlePicPreview,"auto-upload":!0,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,i){return e.handlePicSuccess(t,a,i)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:"40%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{width:"80%",src:e.dialogImageUrl,alt:""}})])],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务单照片:",prop:"serviceCodePhoto"}},[a("el-upload",{class:{hide:e.hideUpload},attrs:{id:"uploadPic2","list-type":"picture-card",action:e.uploadImageUrl,limit:1,headers:e.headers,"file-list":e.fileList2,"on-preview":e.handlePicPreview2,"auto-upload":!0,"on-change":function(t,a){return e.handlePicChange2(t,a)},"on-success":function(t,a,i){return e.handlePicSuccess2(t,a,i)},"on-remove":function(t,a){return e.handlePicRemove2(t,a)}}},[a("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),a("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(t){e.dialogVisible2=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1)],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"备货关联:",prop:"stockupId"}},[a("el-select",{ref:"stockupId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择备货关联",disabled:""},model:{value:e.createSee7.temp.stockupId,callback:function(t){e.$set(e.createSee7.temp,"stockupId",t)},expression:"createSee7.temp.stockupId"}},e._l(e.createSee7.postalNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._l(e.createSee7tableArrList,(function(t,i){return a("div",{key:i},[a("el-row",[a("el-divider"),e._v(" 备货单号:"+e._s(t.title)+" ")],1),a("el-row",[a("el-table",{key:t.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{data:t.tablelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.nums))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.nums,callback:function(a){e.$set(t.row,"nums",a)},expression:"scope.row.nums"}}):e._e()]}}],null,!0)}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}],null,!0)}),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"110","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return["update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(s,i)}}},[e._v("删除")]):e._e()]}}],null,!0)}):e._e()],1)],1)],1)}))],2),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.createSee7.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)]),a("el-dialog",{attrs:{title:"投诉处理",visible:e.createSee8.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.createSee8,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.createSee8.rules,model:e.createSee8.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},[a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee8.temp.customerName,callback:function(t){e.$set(e.createSee8.temp,"customerName",t)},expression:"createSee8.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee8.temp.groupName,callback:function(t){e.$set(e.createSee8.temp,"groupName",t)},expression:"createSee8.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"投诉日期:",prop:"cdate"}},[a("el-input",{ref:"cdate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee8.temp.cdate,callback:function(t){e.$set(e.createSee8.temp,"cdate",t)},expression:"createSee8.temp.cdate"}})],1),a("el-form-item",{attrs:{label:"投诉人:",prop:"proposerName"}},[a("el-input",{ref:"proposerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee8.temp.proposerName,callback:function(t){e.$set(e.createSee8.temp,"proposerName",t)},expression:"createSee8.temp.proposerName"}})],1),a("el-form-item",{attrs:{label:"投诉人电话:",prop:"telephone"}},[a("el-input",{ref:"telephone",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee8.temp.telephone,callback:function(t){e.$set(e.createSee8.temp,"telephone",t)},expression:"createSee8.temp.telephone"}})],1),a("el-form-item",{attrs:{label:"投诉接收人:",prop:"receiverName"}},[a("el-input",{ref:"receiverName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee8.temp.receiverName,callback:function(t){e.$set(e.createSee8.temp,"receiverName",t)},expression:"createSee8.temp.receiverName"}})],1),a("el-form-item",{attrs:{label:"被投诉人:",prop:"respondentName"}},[a("el-input",{ref:"respondentName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.createSee8.temp.respondentName,callback:function(t){e.$set(e.createSee8.temp,"respondentName",t)},expression:"createSee8.temp.respondentName"}})],1),a("el-row",[a("el-form-item",{attrs:{label:"投诉内容:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入情况说明",maxlength:"255",disabled:""},model:{value:e.createSee8.temp.content,callback:function(t){e.$set(e.createSee8.temp,"content",t)},expression:"createSee8.temp.content"}})],1)],1),a("el-row",[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:"请输入备注,最多255个字",maxlength:"255",disabled:""},model:{value:e.createSee8.temp.remark,callback:function(t){e.$set(e.createSee8.temp,"remark",t)},expression:"createSee8.temp.remark"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.createSee8.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)])],1)},s=[],r=(a("7db0"),a("4160"),a("c975"),a("d81d"),a("a434"),a("b0c0"),a("a9e3"),a("4d63"),a("ac1f"),a("25f0"),a("1276"),a("159b"),a("ade3")),l=a("2934"),n=a("a78e"),o=a.n(n),c=a("ed08"),d=a("333d"),m=a("5c96"),p=a("5f87"),u={name:"CustomerInformation",components:{Pagination:d["a"]},data:function(){var e;return e={hideUpload:!1,isRoleEdit:[],restaurants:[],state:"",timeout:null,requestParams:[{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getDictListSelect2",offset:0,pagecount:0,parammaps:{pid:"53"}},{name:"getDictListSelect3",offset:0,pagecount:0,parammaps:{pid:"52"}},{name:"getEmployeesSelect",offset:0,pagecount:0,parammaps:{}},{name:"getUsersSelect",offset:0,pagecount:0,parammaps:{enable:"1"}},{name:"getProductsEnable",offset:0,pagecount:0,parammaps:{enable:"1"}}],customerNameList:[],loading:!1,groupNameList:[],rangeNameList:[],customeStatusList:[],directorNameList:[],createrNameList:[],typeNameList:[],dialogImageUrl:"",uploadImageUrl:"http://192.168.1.90:8082/authdata/uploaderimage",headers:{optname:"insertcustompic",id:1,token:Object(p["a"])()},fileList:[],receProductNameList:[],createSee7tableArrList:[],createSee1:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",vdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),visiterId:"",receiverId:"",receiverName:"",receiverTel:"",remark:"",content:"",nextId:"",modifyName:"add",receiverChoose:"true",vPhoto1:-1,vPhoto2:-1,vPhoto3:-1,vPhoto4:-1,vPhoto5:-1,vPhoto6:-1,vPhoto7:-1,vPhoto8:-1,vPhoto9:-1,picname1:"",picname2:"",picname3:"",picname4:"",picname5:"",picname6:"",picname7:"",picname8:"",picname9:"",location:""},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],vdate:[{required:!0,message:"必填",trigger:"blur"}],visiterId:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],content:[{type:"string",required:!0,message:"必填",trigger:"blur"}],vPhoto1:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm0:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}}},createSee2:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",tdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),visiterId:"",receiverId:"",receiverName:"",receiverTel:"",typeIds:"",typeIdsArr:[],statusName:"良好",remark:"",content:"",nextId:"",modifyName:"add",receiverChoose:"true"},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],tdate:[{required:!0,message:"必填",trigger:"blur"}],visiterId:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],typeIds:[{required:!0,message:"必填",trigger:"blur"}],statusName:[{required:!0,message:"必填",trigger:"blur"}],content:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},getdataListParm2:{name:"getgroupNameById",returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getTelById",returntype:"Map",parammaps:{id:""}},receiverNameList:[]},createSee3:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",pdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),posterId:"",posterName:"",posterTel:"",postCode:"",reason:"",handletypeId:"",remark:"",id:"",modifyName:"add",receiverChoose:"true"},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],pdate:[{required:!0,message:"必填",trigger:"blur"}],posterId:[{required:!0,message:"必填",trigger:"blur"}],posterTel:[{required:!0,message:"必填",trigger:"blur"}],postCode:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},posterNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getPostalGoodsById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{postalId:""}},getdataListParm4:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}}},createSee3contact:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",contactName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},tableKey:0,list:[],total:0,listLoading:!1},createSee4:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",sdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),reasonId:"",sourceId:"",remark:"",id:"",modifyName:"add",receiverChoose:"true",statusName:"",created:"",employeeName:"",successDate:""},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],sdate:[{required:!0,message:"必填",trigger:"blur"}],reasonId:[{required:!0,message:"必填",trigger:"blur"}],visiterId:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm1:{name:"getPostalsByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},postalNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getPostalGoodsById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{postalId:""}},getdataListParm4:{name:"getStockGoodsBySid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{stockupId:""}}},createSee4contact:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",contactName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},tableKey:0,list:[],total:0,listLoading:!1},stockupIdArr:[],createSee5tableArrList:[],createSee5:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",sendDate:Object(c["e"])(new Date,"{y}-{m}-{d}"),receiverId:"",receiverTel:"",receiverName:"",postId:"",postCode:"",stockupIds:"",remark:"",id:"",modifyName:"add",receiverChoose:"true"},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],sendDate:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],postId:[{required:!0,message:"必填",trigger:"blur"}],postCode:[{required:!0,message:"必填",trigger:"blur"}],stockupIds:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm0:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},getdataListParm01:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm1:{name:"getStockGoodsByCustomerId",returntype:"Map",parammaps:{customerId:""}},postalNameList:[],getdataListParm3:{name:"getStockGoodsBySid",returntype:"Map",parammaps:{stockupId:""}},getdataListParm4:{name:"getStockupGoodsByDeliveryId",returntype:"Map",parammaps:{deliveryId:""}}},createSee6:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",rdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),employeeId:"",receiverId:"",receiverName:"",content:"",remark:"",visitId:"",telvisitId:"",modifyName:"add",receiverChoose:"true"},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],rdate:[{required:!0,message:"必填",trigger:"blur"}],visiterId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],content:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm1:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getVisitByCustomerId",returntype:"Map",parammaps:{customerId:""}},visitNameList:[],getdataListParm4:{name:"getTelvisitByCustomerId",returntype:"Map",parammaps:{customerId:""}},telvisitNameList:[]}},Object(r["a"])(e,"dialogImageUrl",""),Object(r["a"])(e,"dialogVisible",!1),Object(r["a"])(e,"dialogImageUrl2",""),Object(r["a"])(e,"dialogVisible2",!1),Object(r["a"])(e,"uploadImageUrl","http://192.168.1.90:8082/authdata/uploaderimage"),Object(r["a"])(e,"headers",{optname:"insertcustompic",id:1,token:Object(p["a"])()}),Object(r["a"])(e,"fileList",[]),Object(r["a"])(e,"fileList2",[]),Object(r["a"])(e,"createSee7",{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",serviceCode:"",serviceDate:Object(c["e"])(new Date,"{y}-{m}-{d}"),employeeId:"",servicetypeId:"",receiverId:"",receiverTel:"",receiverName:"",describe:"",serviceResult:"",visitId:"",telvisitId:"",stockupIds:"",remark:"",id:"",modifyName:"add",receiverChoose:"true",scenePhoto1:-1,scenePhoto2:-1,scenePhoto3:-1,scenePhoto4:-1,scenePhoto5:-1,scenePhoto6:-1,scenePhoto7:-1,scenePhoto8:-1,scenePhoto9:-1,serviceCodePhoto:-1,picname1:"",picname2:"",picname3:"",picname4:"",picname5:"",picname6:"",picname7:"",picname8:"",picname9:""},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],serviceCode:[{required:!0,message:"必填",trigger:"blur"}],serviceDate:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],servicetypeId:[{required:!0,message:"必填",trigger:"blur"}],serviceResult:[{required:!0,message:"必填",trigger:"blur"}],describe:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],scenePhoto1:[{required:!0,message:"必填",trigger:"blur"}],serviceCodePhoto:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm0:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},getdataListParm01:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm1:{name:"getStockGoodsByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},postalNameList:[],getdataListParm3:{name:"getStockGoodsBySid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{stockupId:""}},getdataListParm4:{name:"getServiceGoodsByServiceId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{serviceId:""}},getdataListParm5:{name:"getVisitByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},visitNameList:[],getdataListParm6:{name:"getTelvisitByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},telvisitNameList:[]}),Object(r["a"])(e,"activeName","second"),Object(r["a"])(e,"createSee8",{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",cdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),telephone:"",receiverId:"",receiverName:"",respondentId:"",content:"",remark:"",modifyName:"add",receiverChoose:"true"},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],cdate:[{required:!0,message:"必填",trigger:"blur"}],proposerId:[{required:!0,message:"必填",trigger:"blur"}],telephone:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],respondentId:[{required:!0,message:"必填",trigger:"blur"}],content:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},getdataListParm2:{name:"getgroupNameById",returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getTelById",returntype:"Map",parammaps:{id:""}},proposerNameList:[]}),Object(r["a"])(e,"table",{getdataListParm:{name:"getCustomer",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:"",groupId:"",rangeId:"",customeStatusId:"",createrId:"",directorId:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"dialogVisible",!1),Object(r["a"])(e,"create",{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:o.a.get("pastureid"),customerName:"",groupId:"",customeStatusId:"",rangeId:"",province:"",address:"",directorId:"",createrId:"",director:"",creater:"",createtime:Object(c["e"])(new Date,"{y}-{m}-{d}"),remark:"",scode:""},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],groupId:[{required:!0,message:"必填",trigger:"blur"}],customeStatusId:[{required:!0,message:"必填",trigger:"blur"}],directorId:[{required:!0,message:"必填",trigger:"blur"}],scode:[{required:!0,message:"必填",trigger:"blur"}]}}),Object(r["a"])(e,"textMap",{create:"新增",see:"查看",update:"编辑"}),Object(r["a"])(e,"activeName","first"),Object(r["a"])(e,"service",{dialogFormVisible:!1,dialogStatus:"",temp:{id:""}}),Object(r["a"])(e,"servicetable1",{getdataListParm:{name:"getVisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{visitCode:"",customerId:"",groupId:"",visiterId:"",receiverName:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"servicetable2",{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{telVisitCode:"",customerId:"",groupId:"",visiterId:"",receiverId:"",typeIds:"",statusId:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"servicetable3",{getdataListParm:{name:"getPostal",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:"",groupId:"",posterName:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"servicetable4",{getdataListParm:{name:"getStockup",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{stockupCode:"",customerId:"",groupId:"",employeeId:"",statusName:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"servicetable5",{getdataListParm:{name:"getDelivery",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{deliveryCode:"",customerId:"",groupId:"",postId:"",postCode:"",stockupCodes:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"servicetable6",{getdataListParm:{name:"getRemote",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:"",groupId:"",employeeId:"",receiverName:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"servicetable7",{getdataListParm:{name:"getService",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{serviceCode:"",customerId:"",groupId:"",employeeId:"",servicetypeId:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"servicetable8",{getdataListParm:{name:"getComplaint",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:"",groupId:"",proposerId:"",respondentId:"",statusName:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"contact",{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",contactName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},tableKey:0,list:[],total:0,listLoading:!0}),Object(r["a"])(e,"requestParam",{}),Object(r["a"])(e,"isokDisable",!1),Object(r["a"])(e,"selectList",[]),Object(r["a"])(e,"rowStyle",{maxHeight:"25px",height:"25px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),e},created:function(){this.getList(),this.getDownList(),this.getSevList()},methods:{queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(l["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},handleCustomerSelect:function(e){console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name},clearCustomerSelect:function(e){document.activeElement.blur(),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},getButtons:function(){var e="DungScores",t=Object(l["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(l["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),e.rangeNameList=t.data.getDictListSelect2.list,console.log("客户区域下拉框",e.rangeNameList),e.customeStatusList=t.data.getDictListSelect3.list,console.log("客户状态下拉框",e.customeStatusList),e.directorNameList=t.data.getEmployeesSelect.list,console.log("负责人下拉框",e.directorNameList),e.createrNameList=t.data.getUsersSelect.list,console.log("创建人下拉框",e.createrNameList),e.receProductNameList=t.data.getProductsEnable.list,console.log("收件货品下拉框",e.receProductNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,Object(l["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},getSevList:function(){var e=this;Object(l["d"])({name:"getDictListSelect2",offset:0,pagecount:0,parammaps:{pid:"56"}}).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.typeNameList=t.data.list,console.log("回访类型",e.typeNameList)):e.typeNameList=[]}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.rangeId="",this.table.getdataListParm.parammaps.customeStatusId="",this.table.getdataListParm.parammaps.createrId="",this.table.getdataListParm.parammaps.directorId="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:o.a.get("pastureid"),customerName:"",groupId:"",customeStatusId:"",rangeId:"",province:"",address:"",directorId:"",createrId:"",createrName:o.a.get("employename"),director:"",creater:"",createtime:Object(c["e"])(new Date,"{y}-{m}-{d}"),remark:"",scode:""}},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname},change_custormer_remote:function(e){var t=this;""!==e?(this.loading=!0,Object(l["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){t.customerNameList=e.data.list,console.log("客户名称下拉框",e),t.loading=!1}))):this.customerNameList=[]},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="checkCustomerByName",e.requestParam.parammaps=e.create.temp;var a={name:"checkCustomerByName",parammaps:{customerName:e.create.temp.customerName,type:"add",id:""}};Object(l["d"])(a).then((function(t){console.log("验证名字是否存在",e.requestParam),0==t.data.list[0].num?18!=e.create.temp.scode.length?e.$notify({title:"失败",message:"社会统一代码必须18位!",type:"error",duration:2e3}):(e.create.temp.createtime=Object(c["e"])(e.create.temp.createtime,"{y}-{m}-{d}"),e.create.temp.createrId=o.a.get("employeid"),e.requestParam.name="insertCustomer",e.requestParam.parammaps=e.create.temp,Object(l["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"客户名称已存在",type:"error",duration:2e3})}))}}))},handleSee:function(e){var t=this;this.create.dialogStatus="see",this.create.dialogFormVisible=!0,console.log("点击了查看",e),this.$nextTick((function(){t.$refs.temp.resetFields(),t.create.temp=Object.assign({},e)}))},handleUpdate:function(e){console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="checkCustomerByName",e.requestParam.parammaps=e.create.temp,Object(l["d"])(e.requestParam).then((function(t){console.log("验证名字是否存在",e.requestParam),t.data.list[0].num>0?e.$notify({title:"失败",message:"客户名称已存在",type:"error",duration:2e3}):18!=e.create.temp.scode.length?e.$notify({title:"失败",message:"社会统一代码必须18位!",type:"error",duration:2e3}):(e.requestParam.name="updateCustomer",e.create.temp.createtime=Object(c["e"])(e.create.temp.createtime,"{y}-{m}-{d}"),e.requestParam.parammaps=e.create.temp,Object(l["g"])(e.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateCustomerEnable",this.requestParam.parammaps={id:t.id,enable:t.enable},Object(l["g"])(this.requestParam).then((function(e){console.log("表格中的启用发送参数",a.requestParam),"fail"!==e.msg?(1==a.requestParam.parammaps.enable?a.$notify({title:"成功",message:"启用成功",type:"success",duration:2e3}):a.$notify({title:"成功",message:"禁用成功",type:"success",duration:2e3}),a.create.dialogFormVisible=!1,a.getList()):a.$notify({title:"失败",message:"失败"+e.data,type:"error",duration:2e3})}))},handleRowDelete:function(e){var t=this;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delCustomer",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["g"])(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:"已取消删除"})}))},handleService:function(e){console.log("点击了服务记录",e),this.service.temp=Object.assign({},e),this.service.temp.id=e.id,this.service.dialogFormVisible=!0,this.servicetable1.getdataListParm.parammaps.customerId=e.id,this.getServiceTableList1(),this.servicetable2.getdataListParm.parammaps.customerId=e.id,this.getServiceTableList2(),this.servicetable3.getdataListParm.parammaps.customerId=e.id,this.getServiceTableList3(),this.servicetable4.getdataListParm.parammaps.customerId=e.id,this.getServiceTableList4(),this.servicetable5.getdataListParm.parammaps.customerId=e.id,this.getServiceTableList5(),this.servicetable6.getdataListParm.parammaps.customerId=e.id,this.getServiceTableList6(),this.servicetable7.getdataListParm.parammaps.customerId=e.id,this.getServiceTableList7(),this.servicetable8.getdataListParm.parammaps.customerId=e.id,this.getServiceTableList8()},getServiceTableList1:function(){var e=this;this.servicetable1.listLoading=!0,Object(l["d"])(this.servicetable1.getdataListParm).then((function(t){console.log("servicetable1数据",t.data.list),null!==t.data.list?(e.servicetable1.list=t.data.list,e.servicetable1.pageNum=t.data.pageNum,e.servicetable1.pageSize=t.data.pageSize,e.servicetable1.total=t.data.total):e.servicetable1.list=[],setTimeout((function(){e.servicetable1.listLoading=!1}),100)}))},getServiceTableList2:function(){var e=this;this.servicetable2.listLoading=!0,Object(l["d"])(this.servicetable2.getdataListParm).then((function(t){console.log("servicetable2数据",t.data.list),null!==t.data.list?(e.servicetable2.list=t.data.list,e.servicetable2.pageNum=t.data.pageNum,e.servicetable2.pageSize=t.data.pageSize,e.servicetable2.total=t.data.total):e.servicetable2.list=[],setTimeout((function(){e.servicetable2.listLoading=!1}),100)}))},getServiceTableList3:function(){var e=this;this.servicetable3.listLoading=!0,Object(l["d"])(this.servicetable3.getdataListParm).then((function(t){console.log("servicetable3数据",t.data.list),null!==t.data.list?(e.servicetable3.list=t.data.list,e.servicetable3.pageNum=t.data.pageNum,e.servicetable3.pageSize=t.data.pageSize,e.servicetable3.total=t.data.total):e.servicetable3.list=[],setTimeout((function(){e.servicetable3.listLoading=!1}),100)}))},getServiceTableList4:function(){var e=this;this.servicetable4.listLoading=!0,Object(l["d"])(this.servicetable4.getdataListParm).then((function(t){console.log("servicetable4数据",t.data.list),null!==t.data.list?(e.servicetable4.list=t.data.list,e.servicetable4.pageNum=t.data.pageNum,e.servicetable4.pageSize=t.data.pageSize,e.servicetable4.total=t.data.total):e.servicetable4.list=[],setTimeout((function(){e.servicetable4.listLoading=!1}),100)}))},getServiceTableList5:function(){var e=this;this.servicetable5.listLoading=!0,Object(l["d"])(this.servicetable5.getdataListParm).then((function(t){console.log("servicetable5数据",t.data.list),null!==t.data.list?(e.servicetable5.list=t.data.list,e.servicetable5.pageNum=t.data.pageNum,e.servicetable5.pageSize=t.data.pageSize,e.servicetable5.total=t.data.total):e.servicetable5.list=[],setTimeout((function(){e.servicetable5.listLoading=!1}),100)}))},getServiceTableList6:function(){var e=this;this.servicetable6.listLoading=!0,Object(l["d"])(this.servicetable6.getdataListParm).then((function(t){console.log("servicetable6数据",t.data.list),null!==t.data.list?(e.servicetable6.list=t.data.list,e.servicetable6.pageNum=t.data.pageNum,e.servicetable6.pageSize=t.data.pageSize,e.servicetable6.total=t.data.total):e.servicetable6.list=[],setTimeout((function(){e.servicetable6.listLoading=!1}),100)}))},getServiceTableList7:function(){var e=this;this.servicetable7.listLoading=!0,Object(l["d"])(this.servicetable7.getdataListParm).then((function(t){console.log("servicetable7数据",t.data.list),null!==t.data.list?(e.servicetable7.list=t.data.list,e.servicetable7.pageNum=t.data.pageNum,e.servicetable7.pageSize=t.data.pageSize,e.servicetable7.total=t.data.total):e.servicetable7.list=[],setTimeout((function(){e.servicetable7.listLoading=!1}),100)}))},getServiceTableList8:function(){var e=this;this.servicetable8.listLoading=!0,Object(l["d"])(this.servicetable8.getdataListParm).then((function(t){console.log("servicetable8数据",t.data.list),null!==t.data.list?(e.servicetable8.list=t.data.list,e.servicetable8.pageNum=t.data.pageNum,e.servicetable8.pageSize=t.data.pageSize,e.servicetable8.total=t.data.total):e.servicetable8.list=[],setTimeout((function(){e.servicetable8.listLoading=!1}),100)}))},handleServiceSee1:function(e){var t=this;Object(l["d"])({name:"getVisitById",parammaps:{id:e.id}}).then((function(e){if(null!==e.data.list){console.log("拜访记录",e),t.createSee1.temp=e.data.list[0];var a=[],i=[],s=[];void 0!=t.createSee1.temp.picname1&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname1),i.push(t.create.temp.vPhoto1)),void 0!=t.createSee1.temp.picname2&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname2),i.push(t.create.temp.vPhoto2)),void 0!=t.createSee1.temp.picname3&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname3),i.push(t.create.temp.vPhoto3)),void 0!=t.createSee1.temp.picname4&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname4),i.push(t.create.temp.vPhoto4)),void 0!=t.createSee1.temp.picname5&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname5),i.push(t.create.temp.vPhoto5)),void 0!=t.createSee1.temp.picname6&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname6),i.push(t.create.temp.vPhoto6)),void 0!=t.createSee1.temp.picname7&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname7),i.push(t.create.temp.vPhoto7)),void 0!=t.createSee1.temp.picname8&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname8),i.push(t.create.temp.vPhoto8)),void 0!=t.createSee1.temp.picname9&&(a.push("http://192.168.1.90:8082/"+t.createSee1.temp.picname9),i.push(t.create.temp.vPhoto9)),console.log("urlArray",a),console.log("urlArrayId",i);for(var r=0;r<a.length;r++){var l={url:"",response:{execresult:{LastInsertId:""}}};l.url=a[r],l.response.execresult.LastInsertId=i[r],s.push(l)}t.fileList=s,console.log("fileList",s),t.createSee1.dialogFormVisible=!0,t.hideUpload=!0,document.getElementById("uploadPic1").lastChild.style.display="none",document.getElementById("uploadPic2").lastChild.style.display="none",document.getElementById("uploadPic").lastChild.style.display="none",document.getElementById("uploadPic").lastChild.style.cssText="display:none!important"}}))},handleServiceSee2:function(e){var t=this;Object(l["d"])({name:"getTelvisitById",parammaps:{id:e.id}}).then((function(e){if(null!==e.data.list){console.log("电话记录",e),t.createSee2.temp=e.data.list[0];var a=e.data.list[0].typeIds.split(",");t.createSee2.temp.typeIdsArr=a.map(Number),t.createSee2.dialogFormVisible=!0}}))},handleServiceSee3:function(e){var t=this;Object(l["d"])({name:"getPostalById",parammaps:{id:e.id}}).then((function(a){null!==a.data.list&&(console.log("快递记录",a),t.createSee3.temp=a.data.list[0],t.createSee3.dialogFormVisible=!0,t.createSee3.getdataListParm.parammaps.customerId=e.customerId,t.getPosterNameList(),t.createSee3.getdataListParm3.parammaps.postalId=e.id,t.getReceProduct())}))},getPosterNameList:function(){var e=this;Object(l["d"])(this.createSee3.getdataListParm).then((function(t){null!==t.data.list?(e.create.posterNameList=t.data.list,console.log("寄件人数据",t.data.list)):e.createSee3.posterNameList=[]}))},getReceProduct:function(){var e=this;Object(l["d"])(this.createSee3.getdataListParm3).then((function(t){console.log("查看和编辑中的小表格",t.data.list),null!==t.data.list&&(e.createSee3contact.list=t.data.list)}))},handleServiceSee4:function(e){var t=this;Object(l["d"])({name:"getStockup",parammaps:{id:e.id}}).then((function(a){null!==a.data.list&&(console.log("备货记录",a),t.createSee4.temp=a.data.list[0],t.createSee4.dialogFormVisible=!0,t.createSee4.getdataListParm1.parammaps.customerId=e.customerId,t.getPostalNameList(),t.createSee4.getdataListParm4.parammaps.stockupId=e.id,t.getReceProduct2())}))},getPostalNameList:function(){var e=this;Object(l["d"])(this.createSee4.getdataListParm1).then((function(t){null!==t.data.list?(e.createSee4.postalNameList=t.data.list,console.log("关联接收数据",t.data.list)):e.createSee4.postalNameList=[]}))},getReceProduct2:function(){var e=this;Object(l["d"])(this.createSee4.getdataListParm4).then((function(t){console.log("查看和编辑中的小表格",t.data.list),null!==t.data.list&&(e.createSee4contact.list=t.data.list)}))},handleServiceSee5:function(e){var t=this;Object(l["d"])({name:"getDeliveryById",parammaps:{id:e.id}}).then((function(a){null!==a.data.list&&(console.log("快递记录",a),t.createSee5.temp=a.data.list[0],t.createSee5.dialogFormVisible=!0,t.createSee5.getdataListParm0.parammaps.customerId=e.customerId,t.getReceiverNameList5(),t.createSee5.getdataListParm1.parammaps.customerId=e.customerId,t.getPostalNameList5(),""!==a.data.list[0].stockupIds&&(t.stockupIdArr=e.stockupIds.split(","),console.log("stockupIdArr",t.stockupIdArr),t.createSee5.getdataListParm4.parammaps.deliveryId=e.id,t.getReceProduct25()))}))},getReceiverNameList5:function(){var e=this;Object(l["d"])(this.createSee5.getdataListParm0).then((function(t){null!==t.data.list?(e.createSee5.receiverNameList=t.data.list,console.log("接待人数据",t.data.list)):e.createSee5.receiverNameList=[]}))},getPostalNameList5:function(){var e=this;Object(l["d"])(this.createSee5.getdataListParm1).then((function(t){null!==t.data.list?(e.createSee5.postalNameList=t.data.list,console.log("关联接收数据",t.data.list)):e.createSee5.postalNameList=[]}))},getReceProduct25:function(){var e=this;Object(l["d"])(this.createSee5.getdataListParm4).then((function(t){if(console.log("查看和编辑中的小表格",t.data.list),console.log("查看和编辑的当前小表格ID",e.stockupIdArr),null!==t.data.list){var a=[];e.stockupIdArr.forEach((function(e){var i={title:"",name:"",date:"",stockupId:e,tablelist:[]};t.data.list.forEach((function(t){e==t.stockupId&&i.tablelist.push(t)})),a.push(i)})),console.log(a),a.map((function(e){return e.title=e.tablelist[0].stockupCode})),a.map((function(e){return e.name=e.tablelist[0].employeeName})),a.map((function(e){return e.date=e.tablelist[0].successDate})),e.createSee5tableArrList=a}}))},handlePicPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleServiceSee6:function(e){var t=this;Object(l["d"])({name:"getRemoteById",parammaps:{id:e.id}}).then((function(e){null!==e.data.list&&(console.log("远程记录",e),t.createSee6.temp=e.data.list[0],t.createSee6.dialogFormVisible=!0)}))},handleServiceSee7:function(e){var t=this;Object(l["d"])({name:"getServiceById",parammaps:{id:e.id}}).then((function(a){if(null!==a.data.list){if(console.log("现场服务记录",a),t.createSee7.temp=a.data.list[0],t.createSee7.getdataListParm1.parammaps.customerId=e.customerId,t.getPostalNameList7(),""!==e.stockupIds&&null!==e.stockupIds&&void 0!==e.stockupIds){t.stockupIdArr=e.stockupIds.split(",");var i=[];t.stockupIdArr.forEach((function(e){i.push(parseInt(e))})),t.stockupIdArr=i,console.log("stockupIdArr",t.stockupIdArr),t.createSee7.getdataListParm4.parammaps.serviceId=e.id,t.getReceProduct27()}var s=[],r=[],l=[];void 0!=t.createSee7.temp.picname1&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname1),r.push(t.createSee7.temp.scenePhoto1)),void 0!=t.createSee7.temp.picname2&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname2),r.push(t.createSee7.temp.scenePhoto2)),void 0!=t.createSee7.temp.picname3&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname3),r.push(t.createSee7.temp.scenePhoto3)),void 0!=t.createSee7.temp.picname4&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname4),r.push(t.createSee7.temp.scenePhoto4)),void 0!=t.createSee7.temp.picname5&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname5),r.push(t.createSee7.temp.scenePhoto5)),void 0!=t.createSee7.temp.picname6&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname6),r.push(t.createSee7.temp.scenePhoto6)),void 0!=t.createSee7.temp.picname7&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname7),r.push(t.createSee7.temp.scenePhoto7)),void 0!=t.createSee7.temp.picname8&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname8),r.push(t.createSee7.temp.scenePhoto8)),void 0!=t.createSee7.temp.picname9&&(s.push("http://192.168.1.90:8082/"+t.createSee7.temp.picname2),r.push(t.createSee7.temp.scenePhoto9)),console.log("urlArray",s),console.log("urlArrayId",r);for(var n=0;n<s.length;n++){var o={url:"",response:{execresult:{LastInsertId:""}}};o.url=s[n],o.response.execresult.LastInsertId=r[n],l.push(o)}t.fileList=l,console.log("fileList",l);var c=[],d=[],m=[];void 0==t.createSee7.temp.codePicname?c.push():(c.push("http://192.168.1.90:8082/"+t.createSee7.temp.codePicname),d.push(t.createSee7.temp.serviceCodePhoto)),console.log("urlArray2",c),console.log("urlArrayId2",d);for(var p=0;p<c.length;p++){var u={url:"",response:{execresult:{LastInsertId:""}}};u.url=c[p],u.response.execresult.LastInsertId=d[p],m.push(u)}t.fileList2=m,console.log("fileList2",m),t.createSee7.dialogFormVisible=!0}}))},getPostalNameList7:function(){var e=this;Object(l["d"])(this.createSee7.getdataListParm1).then((function(t){null!==t.data.list?(e.createSee7.postalNameList=t.data.list,console.log("关联接收数据",t.data.list)):e.createSee7.postalNameList=[]}))},getReceProduct27:function(){var e=this;Object(l["d"])(this.createSee7.getdataListParm4).then((function(t){if(console.log("查看和编辑中的小表格",t.data.list),console.log("查看和编辑的当前小表格ID",e.stockupIdArr),null!==t.data.list){var a=[];e.stockupIdArr.forEach((function(e){var i={title:"",stockupId:e,tablelist:[]};t.data.list.forEach((function(t){e==t.stockupId&&i.tablelist.push(t)})),a.push(i)})),console.log(a),a.map((function(e){return e.title=e.tablelist[0].stockupCode})),e.createSee7tableArrList=a}}))},handleServiceSee8:function(e){var t=this;Object(l["d"])({name:"getComplaintById",parammaps:{id:e.id}}).then((function(e){null!==e.data.list&&(console.log("投诉记录",e),t.createSee8.temp=e.data.list[0],t.createSee8.dialogFormVisible=!0)}))},handleClick:function(e,t){console.log(e,t)},handleContact:function(e){console.log("点击了联系人管理",e),this.contact.getdataListParm.parammaps.customerId=e.id,this.contact.temp.customerId=e.id,this.contact.dialogFormVisible=!0,this.getList2()},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handlePicChange:function(e,t){},handlePicSuccess:function(e,t,a){},handlePicRemove:function(e,t){},getList2:function(){var e=this;this.contact.listLoading=!0,Object(l["d"])(this.contact.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.contact.list=t.data.list,e.contact.pageNum=t.data.pageNum,e.contact.pageSize=t.data.pageSize,e.contact.total=t.data.total}else e.contact.list=[];setTimeout((function(){e.contact.listLoading=!1}),100)}))},handleCreate2:function(){console.log("点击了联系人管理新增");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.contact.list.unshift({id:"",contactName:"",telephone:"",address:"",remark:"",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},createData2:function(e){var t=this;if(console.log("点击了新增保存"),this.contact.temp.contactName=e.contactName,this.contact.temp.telephone=e.telephone,this.contact.temp.address=e.address,this.contact.temp.remark=e.remark,""==this.table.temp.contactName&&""==this.table.temp.telephone)return this.$message({type:"error",message:"联系人姓名/联系人电话不能为空",duration:2e3}),!1;if(""==this.table.temp.contactName)return this.$message({type:"error",message:"联系人姓名不能为空",duration:2e3}),!1;if(""==this.table.temp.telephone)return this.$message({type:"error",message:"联系人电话不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(a.test(this.table.temp.contactName))return this.$message({type:"error",message:"联系人姓名不可输入特殊字符",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="insertContacts",this.requestParam.parammaps=this.contact.temp,Object(l["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList2()):t.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))},createCancel2:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate2:function(e){for(var t=0;t<this.contact.list.length;t++)if(1==this.contact.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},updateData2:function(e){var t=this;if(console.log("点击了编辑保存"),this.contact.temp.contactName=e.contactName,this.contact.temp.telephone=e.telephone,this.contact.temp.address=e.address,this.contact.temp.remark=e.remark,this.contact.temp.id=e.id,""==this.table.temp.contactName&&""==this.table.temp.telephone)return this.$message({type:"error",message:"联系人姓名/联系人电话不能为空",duration:2e3}),!1;if(""==this.table.temp.contactName)return this.$message({type:"error",message:"联系人姓名不能为空",duration:2e3}),!1;if(""==this.table.temp.telephone)return this.$message({type:"error",message:"联系人电话不能为空",duration:2e3}),!1;var a=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(a.test(this.table.temp.contactName))return this.$message({type:"error",message:"联系人姓名不可输入特殊字符",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateContacts",this.requestParam.parammaps=this.contact.temp,Object(l["g"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList2()):t.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))},updateCancel2:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList2()},handleRowDelete2:function(e){var t=this;console.log("点击了行内删除"),m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delContacts",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["g"])(t.requestParam).then((function(e){"fail"===e.msg?t.$notify({title:"失败",message:"删除失败",type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList2())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},h=u,g=(a("3613"),a("6bf9"),a("2877")),f=Object(g["a"])(h,i,s,!1,null,"2455cf6f",null);t["default"]=f.exports},"1c1e":function(e,t,a){"use strict";a("d3b7");var i=a("bc3a"),s=a.n(i),r=a("5c96"),l=(a("a78e"),a("4360"),s.a.create({baseURL:"http://192.168.1.90:8082/"}));l.interceptors.request.use((function(e){return e.withCredentials=!0,e}),(function(e){console.log(e),Promise.reject(e)})),l.interceptors.response.use((function(e){var t=e.data;return 2e4!==t.code?(Object(r["Message"])({message:t.message,type:"error",duration:5e3}),Promise.reject("request error")):e.data}),(function(e){return"cancel"!==e.message&&(console.log("err:"+e),Object(r["Message"])({message:e.message,type:"error",duration:5e3})),Promise.reject(e)})),t["a"]=l},"1e09":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},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":e.pickerOptions},model:{value:e.tab.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.table.getdataListParm.parammaps.inputDatetime"}}),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:e.changeRadio},model:{value:e.tab.radio,callback:function(t){e.$set(e.tab,"radio",t)},expression:"tab.radio"}},[e._v("配方名称")]),a("el-radio",{attrs:{label:"2"},on:{change:e.changeRadio},model:{value:e.tab.radio,callback:function(t){e.$set(e.tab,"radio",t)},expression:"tab.radio"}},[e._v("栏舍名称")]),a("el-radio",{attrs:{label:"3"},on:{change:e.changeRadio},model:{value:e.tab.radio,callback:function(t){e.$set(e.tab,"radio",t)},expression:"tab.radio"}},[e._v("牲畜类别")]),a("el-radio",{attrs:{label:"4"},on:{change:e.changeRadio},model:{value:e.tab.radio,callback:function(t){e.$set(e.tab,"radio",t)},expression:"tab.radio"}},[e._v("车次")]),a("el-checkbox",{staticStyle:{"margin-right":"10px"},on:{change:e.changeChecked},model:{value:e.tab.checked,callback:function(t){e.$set(e.tab,"checked",t)},expression:"tab.checked"}},[e._v("按日期统计")]),e.tab.isFormulaName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"配方名称"},model:{value:e.tab.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"fname",t)},expression:"tab.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"栏舍名称"},model:{value:e.tab.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"fname",t)},expression:"tab.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"牲畜名称"},model:{value:e.tab.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"fname",t)},expression:"tab.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"车次"},model:{value:e.tab.table.getdataListParm.parammaps.sort,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"sort",t)},expression:"tab.table.getdataListParm.parammaps.sort"}}):e._e(),e.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"班次"},model:{value:e.tab.table.getdataListParm.parammaps.times,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"times",t)},expression:"tab.table.getdataListParm.parammaps.times"}}):e._e(),e.tab.isTrainNumber?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"TMR名称"},model:{value:e.tab.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"fname",t)},expression:"tab.table.getdataListParm.parammaps.fname"}}):e._e(),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"export",on:{click:e.handleDownload}},[e._v("导出")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"down"},on:{click:e.handleQuickJumpChart}})],1),a("div",{staticClass:"table"},[a("h4",[e._v("混料")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.table.listLoading,expression:"tab.table.listLoading"}],key:e.tab.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[e.tab.checked?a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"日期"}}):e._e(),e.tab.isFormulaName?a("el-table-column",{attrs:{label:"配方名称","min-width":"110px",align:"center",prop:"配方名称"}}):e._e(),e.tab.isHouseName?a("el-table-column",{attrs:{label:"栏舍名称","min-width":"110px",align:"center",prop:"栏舍名称"}}):e._e(),e.tab.isLivestockType?a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"牲畜类别"}}):e._e(),e.tab.isTrainNumber?a("el-table-column",{attrs:{label:"车次","min-width":"110px",align:"center",prop:"车次"}}):e._e(),e.tab.isTrainNumber?a("el-table-column",{attrs:{label:"班次","min-width":"110px",align:"center",prop:"班次"}}):e._e(),e.tab.isTrainNumber?a("el-table-column",{attrs:{label:"TMR名称","min-width":"110px",align:"center",prop:"TMR名称"}}):e._e(),e.tab.isTrainNumber?a("el-table-column",{attrs:{label:"驾驶员","min-width":"110px",align:"center",prop:"驾驶员"}}):e._e(),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:"已混料操作数","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:"混料自动跳转次数","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:"方差"}})],1),a("h4",[e._v("撒料")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.table2.listLoading,expression:"tab.table2.listLoading"}],key:e.tab.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[e.tab.checked?a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"日期"}}):e._e(),e.tab.isFormulaName?a("el-table-column",{attrs:{label:"配方名称","min-width":"110px",align:"center",prop:"配方名称"}}):e._e(),e.tab.isHouseName?a("el-table-column",{attrs:{label:"栏舍名称","min-width":"110px",align:"center",prop:"栏舍名称"}}):e._e(),e.tab.isLivestockType?a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"牲畜类别"}}):e._e(),e.tab.isTrainNumber?a("el-table-column",{attrs:{label:"车次","min-width":"110px",align:"center",prop:"车次"}}):e._e(),e.tab.isTrainNumber?a("el-table-column",{attrs:{label:"班次","min-width":"110px",align:"center",prop:"班次"}}):e._e(),e.tab.isTrainNumber?a("el-table-column",{attrs:{label:"TMR名称","min-width":"110px",align:"center",prop:"TMR"}}):e._e(),e.tab.isTrainNumber?a("el-table-column",{attrs:{label:"驾驶员","min-width":"110px",align:"center",prop:"驾驶员"}}):e._e(),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:"已撒料操作数","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:"撒料自动跳转次数","min-width":"110px",align:"center",prop:"撒料自动跳转次数"}}),a("el-table-column",{attrs:{label:"撒料手动跳转次数","min-width":"110px",align:"center",prop:"撒料手动跳转次数"}})],1)],1),a("div",{staticStyle:{height:"90px"},attrs:{id:"chartDate"}}),a("div",{staticClass:"AnalysisChart"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:2}},[a("h4",[e._v("图表查询时间:")])]),a("el-col",{staticStyle:{"margin-bottom":"40px"},attrs:{span:22}},[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":"结束日期","picker-options":e.pickerOptions},model:{value:e.tab.chartDate,callback:function(t){e.$set(e.tab,"chartDate",t)},expression:"tab.chartDate"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleChartDate}},[e._v("确认")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:e.handleQuickJumpTop}})],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("计划统计")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:function(t){return e.changeChartDate("chart2")}},model:{value:e.tab.chart2.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart2.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart2.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart2")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart2")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine2"}}),e.tab.chart2.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart2")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart2")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart2.table.listLoading,expression:"tab.chart2.table.listLoading"}],key:e.tab.chart2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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:"实际量"}}),a("el-table-column",{attrs:{label:"配方理论重量(kg)",sortable:"","min-width":"110px",align:"center",prop:"理论量"}}),a("el-table-column",{attrs:{label:"计划准确率",sortable:"","min-width":"110px",align:"center",prop:"field1"}}),a("el-table-column",{attrs:{label:"计划取消重量(kg)",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:"field2"}})],1)],1):e._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("配方准确率")]),a("div",[a("el-select",{staticStyle:{width:"200px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},on:{"visible-change":function(t){return e.changeStatisticChart1()}},model:{value:e.tab.chart1.getdataListParm.parammaps.statisticsList,callback:function(t){e.$set(e.tab.chart1.getdataListParm.parammaps,"statisticsList",t)},expression:"tab.chart1.getdataListParm.parammaps.statisticsList"}},e._l(e.tab.chart1.statisticsList,(function(e,t){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":e.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(t){return e.changeChartDate("chart1")}},model:{value:e.tab.chart1.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart1.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart1.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart1")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart1")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine1"}}),e.tab.chart1.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart1")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart1")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart1.table.listLoading,expression:"tab.chart1.table.listLoading"}],key:e.tab.chart1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("牛群准确率")]),a("div",[a("el-select",{staticStyle:{width:"200px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},on:{"visible-change":function(t){return e.changeStatisticChart3()}},model:{value:e.tab.chart3.getdataListParm.parammaps.statisticsList,callback:function(t){e.$set(e.tab.chart3.getdataListParm.parammaps,"statisticsList",t)},expression:"tab.chart3.getdataListParm.parammaps.statisticsList"}},e._l(e.tab.chart3.statisticsList,(function(e,t){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":e.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(t){return e.changeChartDate("chart3")}},model:{value:e.tab.chart3.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart3.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart3.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart3")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart3")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine3"}}),e.tab.chart3.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart3")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart3")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart3.table.listLoading,expression:"tab.chart3.table.listLoading"}],key:e.tab.chart3.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart3.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("车辆准确率(重量)")]),a("div",[a("el-select",{staticStyle:{width:"200px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},on:{"visible-change":function(t){return e.changeStatisticChart4()}},model:{value:e.tab.chart4.getdataListParm.parammaps.statisticsList,callback:function(t){e.$set(e.tab.chart4.getdataListParm.parammaps,"statisticsList",t)},expression:"tab.chart4.getdataListParm.parammaps.statisticsList"}},e._l(e.tab.chart4.statisticsList,(function(e,t){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":e.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(t){return e.changeChartDate("chart4")}},model:{value:e.tab.chart4.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart4.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart4.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart4")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart4")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine4"}}),e.tab.chart4.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart4")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart4")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart4.table.listLoading,expression:"tab.chart4.table.listLoading"}],key:e.tab.chart4.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart4.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("混料统计")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":e.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(t){return e.changeChartDate("chart5")}},model:{value:e.tab.chart5.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart5.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart5.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart5")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart5")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine5"}}),e.tab.chart5.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart5")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart5")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart5.table.listLoading,expression:"tab.chart5.table.listLoading"}],key:e.tab.chart5.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart5.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("混料计划取消次数")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":e.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(t){return e.changeChartDate("chart6")}},model:{value:e.tab.chart6.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart6.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart6.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart6")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart6")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine6"}}),e.tab.chart6.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart6")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart6")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart6.table.listLoading,expression:"tab.chart6.table.listLoading"}],key:e.tab.chart6.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart6.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:24}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("栏舍撒料时间统计")]),a("div",[a("el-select",{staticStyle:{width:"200px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},on:{"visible-change":function(t){return e.changeStatisticChart7()}},model:{value:e.tab.chart7.getdataListParm.parammaps.statisticsList,callback:function(t){e.$set(e.tab.chart7.getdataListParm.parammaps,"statisticsList",t)},expression:"tab.chart7.getdataListParm.parammaps.statisticsList"}},e._l(e.tab.chart7.statisticsList,(function(e,t){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","picker-options":e.pickerOptions,"end-placeholder":"结束日期"},on:{change:function(t){return e.changeChartDate("chart7")}},model:{value:e.tab.chart7.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart7.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart7.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart7")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart7")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine7"}}),e.tab.chart7.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart7")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart7")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart7.table.listLoading,expression:"tab.chart7.table.listLoading"}],key:e.tab.chart7.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart7.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()])],1)],1)]),a("el-tab-pane",{attrs:{label:"混料统计",name:"second"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},model:{value:e.tab2.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab2.table.getdataListParm.parammaps.inputDatetime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"130px"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:e.tab2.table.getdataListParm.parammaps.tmrtname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"tmrtname",t)},expression:"tab2.table.getdataListParm.parammaps.tmrtname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"130px"},attrs:{placeholder:"车次",clearable:""},model:{value:e.tab2.table.getdataListParm.parammaps.projname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"projname",t)},expression:"tab2.table.getdataListParm.parammaps.projname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"150px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:e.tab2.table.getdataListParm.parammaps.times,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"times",t)},expression:"tab2.table.getdataListParm.parammaps.times"}},e._l(e.tab2.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"130px"},attrs:{placeholder:"配方名称",clearable:""},model:{value:e.tab2.table.getdataListParm.parammaps.templetname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"templetname",t)},expression:"tab2.table.getdataListParm.parammaps.templetname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:e.tab2.table.getdataListParm.parammaps.buttontype,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"buttontype",t)},expression:"tab2.table.getdataListParm.parammaps.buttontype"}},e._l(e.tab2.jumpModeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},on:{click:e.handleSearch2}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},on:{click:e.handleRefresh2}},[e._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},on:{click:e.handleExport2}},[e._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.table.listLoading,expression:"tab2.table.listLoading"}],key:e.tab2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"110px",align:"center",prop:"TMR名称"}}),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:"饲料","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:"准确率","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:"跳转方式","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("el-tab-pane",{attrs:{label:"撒料统计",name:"third"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},model:{value:e.tab3.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab3.table.getdataListParm.parammaps.inputDatetime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:e.tab3.table.getdataListParm.parammaps.tmrtname,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"tmrtname",t)},expression:"tab3.table.getdataListParm.parammaps.tmrtname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{placeholder:"车次",clearable:""},model:{value:e.tab3.table.getdataListParm.parammaps.projname,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"projname",t)},expression:"tab3.table.getdataListParm.parammaps.projname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"100px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:e.tab3.table.getdataListParm.parammaps.times,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"times",t)},expression:"tab3.table.getdataListParm.parammaps.times"}},e._l(e.tab3.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{placeholder:"配方名称",clearable:""},model:{value:e.tab3.table.getdataListParm.parammaps.templetname,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"templetname",t)},expression:"tab3.table.getdataListParm.parammaps.templetname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:e.tab3.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"fname",t)},expression:"tab3.table.getdataListParm.parammaps.fname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px",width:"110px"},attrs:{filterable:"",placeholder:"跳转方式",clearable:""},model:{value:e.tab3.table.getdataListParm.parammaps.buttontype,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"buttontype",t)},expression:"tab3.table.getdataListParm.parammaps.buttontype"}},e._l(e.tab3.jumpModeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},on:{click:e.handleSearch3}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-right":"10px","margin-bottom":"10px"},on:{click:e.handleRefresh3}},[e._v("重置")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},on:{click:e.handleExport3}},[e._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab3.table.listLoading,expression:"tab3.table.listLoading"}],key:e.tab3.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab3.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center",prop:"日期"}}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"110px",align:"center",prop:"TMR名称"}}),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:"栏舍","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:"准确率","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:"开始重量","min-width":"110px",align:"center",prop:"开始重量"}}),a("el-table-column",{attrs:{label:"结束重量","min-width":"110px",align:"center",prop:"结束重量"}})],1)],1)])],1)],1)},s=[],r=(a("7db0"),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"),m=a("333d"),p=a("5c96");a("817d");var u={name:"ErrorAnalysis",components:{Pagination:m["a"]},data:function(){var e=this;return{pickerMinDate:"",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:c.a.get("pastureid"),inforname:"times"}}},activeName:"first",tab:{radio:"1",isFormulaName:!0,isHouseName:!1,isLivestockType:!1,isTrainNumber:!1,checked:!1,table:{getdataListParm:{name:"getAccuracyHFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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:"getAccuracyAllFT",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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:"getAccuracyAllJH",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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:"getAccuracyAllNQ",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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:"getAccuracyAllCC",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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:"getAccuracyAllHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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:"getAccuracyAllQX",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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}},chart7:{chartLine:null,chartLine_data:{},getdataListParm:{name:"getAccuracyAllLS",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date]}},tableKey:1,list:[],total:0,listLoading:!0,statisticsList:[],chart7Data3:[],isChart:!0,isTable:!1,table:{tableKey:1,list:[],total:0,listLoading:!1}}},tab2:{table:{getdataListParm:{name:"getStatisticsHL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],tmrtname:"",projname:"",times:"",buttontype:"",templetname:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},frequencyList:[],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}]},tab3:{table:{getdataListParm:{name:"getStatisticsSL",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],tmrtname:"",projname:"",times:"",templetname:"",fname:"",buttontype:""}},tableKey:1,list:[],total:0,listLoading:!0,temp:{}},frequencyList:[],jumpModeList:[{id:"0",name:"手动跳转"},{id:"1",name:"自动跳转"}]},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getTimeFn(),this.getIsDisplay(),this.getTabList(),this.getTabList2(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5(),this.getChart6(),this.getChart7()},mounted:function(){},methods:{getTimeFn:function(){var e=this,t=new Date,a=new Date,i=new Date,s=new Date;i.setTime(i.getTime()-864e5),s.setTime(s.getTime()-864e5),e.tab.table.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(i,"{y}-{m}-{d}"),e.tab.table.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(s,"{y}-{m}-{d}"),e.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(i,"{y}-{m}-{d}"),e.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(s,"{y}-{m}-{d}"),e.tab2.table.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(i,"{y}-{m}-{d}"),e.tab2.table.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(s,"{y}-{m}-{d}"),e.tab2.table.getdataListParm.parammaps.startTime=Object(d["e"])(i,"{y}-{m}-{d}"),e.tab2.table.getdataListParm.parammaps.stopTime=Object(d["e"])(s,"{y}-{m}-{d}"),e.tab3.table.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(i,"{y}-{m}-{d}"),e.tab3.table.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(s,"{y}-{m}-{d}"),e.tab3.table.getdataListParm.parammaps.startTime=Object(d["e"])(i,"{y}-{m}-{d}"),e.tab3.table.getdataListParm.parammaps.stopTime=Object(d["e"])(s,"{y}-{m}-{d}"),t.setTime(t.getTime()-6048e5),e.tab.chartDate[0]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chartDate[1]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart1.getdataListParm.parammaps.startTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart2.getdataListParm.parammaps.startTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart3.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart3.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart3.getdataListParm.parammaps.startTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart4.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart4.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart4.getdataListParm.parammaps.startTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart5.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart5.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart5.getdataListParm.parammaps.startTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart6.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart6.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart6.getdataListParm.parammaps.startTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart6.getdataListParm.parammaps.stopTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart7.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart7.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart7.getdataListParm.parammaps.startTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart7.getdataListParm.parammaps.stopTime=Object(d["e"])(a,"{y}-{m}-{d}")},getIsDisplay:function(){var e=this;Object(n["d"])(this.maxTime.getMaxTimesParm).then((function(t){1==t.data.list[0].inforvalue?(e.tab2.frequencyList=[{id:"1",name:"第一班"}],e.tab3.frequencyList=[{id:"1",name:"第一班"}]):2==t.data.list[0].inforvalue?(e.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}],e.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]):3==t.data.list[0].inforvalue?(e.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}],e.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}],e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]):4==t.data.list[0].inforvalue&&(e.tab2.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}],e.tab3.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},handleDownload:function(){if("1"==this.tab.radio){var e=[{tHeader:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],filterVal:["配方名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数"],filterVal:["配方名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(d["d"])(e,"汇总统计-配方名称",!0,"xlsx")}else if("2"==this.tab.radio){var t=[{tHeader:["栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],filterVal:["栏舍名称","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数"],filterVal:["栏舍名称","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(d["d"])(t,"汇总统计-栏舍名称",!0,"xlsx")}else if("3"==this.tab.radio){var a=[{tHeader:["牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],filterVal:["牲畜类别","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数"],filterVal:["牲畜类别","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(d["d"])(a,"汇总统计-牲畜类别",!0,"xlsx")}else if("4"==this.tab.radio){var i=[{tHeader:["车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],filterVal:["车次","班次","TMR名称","驾驶员","理论重量","实际重量","计划混料操作数","已混料操作数","混料操作率","混料误差值","混料准确率","混料自动跳转次数","混料手动跳转次数","取消次数","方差"],tableDatas:this.tab.table.list,sheetName:"混料"},{tHeader:["车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数"],filterVal:["车次","理论重量","实际重量","计划撒料操作数","已撒料操作数","撒料操作率","撒料误差值","撒料准确率","撒料自动跳转次数","撒料手动跳转次数"],tableDatas:this.tab.table2.list,sheetName:"撒料"}];Object(d["d"])(i,"汇总统计-车次",!0,"xlsx")}},handleTabClick:function(){if("first"==this.activeName){var e=new Date,t=new Date;e.setTime(e.getTime()-864e5),t.setTime(t.getTime()-864e5),this.tab.table.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(e,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(t,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(e,"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(t,"{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.inputDatetime=[new Date,new Date],this.tab.table2.getdataListParm.parammaps.startTime=Object(d["e"])(new Date,"{y}-{m}-{d}"),this.tab.table2.getdataListParm.parammaps.stopTime=Object(d["e"])(new Date,"{y}-{m}-{d}"),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){var a=new Date,i=new Date;a.setTime(a.getTime()-864e5),i.setTime(i.getTime()-864e5),this.tab2.table.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(a,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(i,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.startTime=Object(d["e"])(a,"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(d["e"])(i,"{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()}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[0]=Object(d["e"])(s,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(r,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.startTime=Object(d["e"])(s,"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(d["e"])(r,"{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()}},changeRadio:function(){console.log(this.tab.radio),this.tab.table.getdataListParm.parammaps.sort="",this.tab.table.getdataListParm.parammaps.times="",this.tab.table.getdataListParm.parammaps.fname="","1"==this.tab.radio?(console.log("配方名称"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHFT",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySFT",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()):"2"==this.tab.radio?(console.log("栏舍名称"),this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHNS",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySNS",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()):"3"==this.tab.radio?(console.log(" 牲畜类别"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHSC",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySSC",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.tab.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.tab.radio&&(console.log("车次"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.table.getdataListParm.name="getAccuracyHCC",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySCC",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.tab.table2.getdataListParm.offset=1,this.getTabList2())},changeChecked:function(){"1"==this.tab.radio?(console.log("配方名称"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHFT",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySFT",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()):"2"==this.tab.radio?(console.log("栏舍名称"),this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHNS",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySNS",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()):"3"==this.tab.radio?(console.log(" 牲畜类别"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHSC",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySSC",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.tab.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.tab.radio&&(console.log("车次"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.table.getdataListParm.name="getAccuracyHCC",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySCC",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.tab.table2.getdataListParm.offset=1,this.getTabList2())},getTabList:function(){var e=this;this.tab.table.listLoading=!0,Object(n["d"])(this.tab.table.getdataListParm).then((function(t){console.log("汇总统计/混料table数据",t.data.list),null!==t.data.list?e.tab.table.list=t.data.list:e.tab.table.list=[],setTimeout((function(){e.tab.table.listLoading=!1}),100)}))},getTabList2:function(){var e=this;this.tab.table2.listLoading=!0,Object(n["d"])(this.tab.table2.getdataListParm).then((function(t){console.log("汇总统计/撒料table数据",t.data.list),null!==t.data.list?e.tab.table2.list=t.data.list:e.tab.table2.list=[],setTimeout((function(){e.tab.table2.listLoading=!1}),100)}))},handleSearch:function(){"1"==this.tab.radio?(console.log("配方名称/查询"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHFT",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySFT",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.tab.table2.getdataListParm.offset=1,this.getTabList2()):"2"==this.tab.radio?(console.log("栏舍名称/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHNS",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySNS",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.tab.table2.getdataListParm.offset=1,this.getTabList2()):"3"==this.tab.radio?(console.log(" 牲畜类别/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.isTrainNumber=!1,this.tab.table.getdataListParm.name="getAccuracyHSC",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySSC",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.tab.table2.getdataListParm.offset=1,this.getTabList2()):"4"==this.tab.radio&&(console.log("车次/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.isTrainNumber=!0,this.tab.table.getdataListParm.name="getAccuracyHCC",""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.tab.table.getdataListParm.offset=1,this.getTabList(),this.tab.table2.getdataListParm.name="getAccuracySCC",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.tab.table2.getdataListParm.offset=1,this.getTabList2())},handleQuickJumpChart:function(){console.log(document.querySelector("#chartDate")),document.querySelector("#chartDate").scrollIntoView()},handleQuickJumpTop:function(){window.scrollTo(0,0)},handleChartDate:function(){var e=this;console.log("点击了确认时间"),p["MessageBox"].confirm("是否调整以下所有图表查询时间?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e,a=Object(d["e"])(e.tab.chartDate[0],"{y}-{m}-{d}"),i=Object(d["e"])(e.tab.chartDate[1],"{y}-{m}-{d}");t.tab.chart1.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart1.getdataListParm.parammaps.startTime=a,t.tab.chart1.getdataListParm.parammaps.stopTime=i,t.getChart1(),t.tab.chart2.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart2.getdataListParm.parammaps.startTime=a,t.tab.chart2.getdataListParm.parammaps.stopTime=i,t.getChart2(),t.tab.chart3.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart3.getdataListParm.parammaps.startTime=a,t.tab.chart3.getdataListParm.parammaps.stopTime=i,t.getChart3(),t.tab.chart4.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart4.getdataListParm.parammaps.startTime=a,t.tab.chart4.getdataListParm.parammaps.stopTime=i,t.getChart4(),t.tab.chart5.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart5.getdataListParm.parammaps.startTime=a,t.tab.chart5.getdataListParm.parammaps.stopTime=i,t.getChart5(),t.tab.chart6.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart6.getdataListParm.parammaps.startTime=a,t.tab.chart6.getdataListParm.parammaps.stopTime=i,t.getChart6(),t.tab.chart7.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart7.getdataListParm.parammaps.startTime=a,t.tab.chart7.getdataListParm.parammaps.stopTime=i,t.getChart7()}))},changeStatisticChart1:function(){for(var e=this,t=[],a=function(a){for(var i=e.tab.chart1.statisticsList.find((function(t){return t.name==e.tab.chart1.getdataListParm.parammaps.statisticsList[a]})).id,s=0;s<e.tab.chart1.chart1Data3.length;s++)s==i&&t.push(e.tab.chart1.chart1Data3[s])},i=0;i<this.tab.chart1.getdataListParm.parammaps.statisticsList.length;i++)a(i);this.tab.chart1.chartLine_data.data3=t,this.tab.chart1.chartLine_data.data1=this.tab.chart1.getdataListParm.parammaps.statisticsList,this.roadChartLine1(this.tab.chart1.chartLine_data)},getChart1:function(){var e=this;this.tab.chart1.listLoading=!0,Object(n["f"])(this.tab.chart1.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.data.length;a++)t.data.data[a].准确率=parseFloat(t.data.data[a].准确率)+"%";e.tab.chart1.table.list=t.data.data,e.tab.chart1.chartLine_data=t.data.list,e.tab.chart1.statisticsList=[],e.tab.chart1.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<t.data.list.data1.length;i++){i<10&&e.tab.chart1.getdataListParm.parammaps.statisticsList.push(t.data.list.data1[i]);var s={};s.id=i,s.name=t.data.list.data1[i],e.tab.chart1.statisticsList.push(s)}e.tab.chart1.chart1Data3=t.data.list.data3,e.tab.chart1.total=t.data.total,console.log("配方准确率表数据",e.tab.chart1.table.list),console.log("配方准确率图数据",e.tab.chart1.chartLine_data);for(var r=[],l=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&&r.push(e.tab.chart1.chart1Data3[i])},n=0;n<e.tab.chart1.getdataListParm.parammaps.statisticsList.length;n++)l(n);e.tab.chart1.chartLine_data.data3=r,e.tab.chart1.chartLine_data.data1=e.tab.chart1.getdataListParm.parammaps.statisticsList,e.roadChartLine1(e.tab.chart1.chartLine_data)}else e.tab.chart1.list=[];setTimeout((function(){e.tab.chart1.listLoading=!1}),100)}))},roadChartLine1:function(e){null!=this.tab.chart1.chartLine&&this.tab.chart1.chartLine.dispose(),this.tab.chart1.chartLine=l.a.init(document.getElementById("chartLine1"));var t={title:{text:""},tooltip:{trigger:"axis"},legend:{data:e.data1,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:function(){for(var t=[],a=0;a<e.data3.length;a++){var i={name:e.data1[a],type:"line",data:e.data3[a].data};t.push(i)}return t}()};this.tab.chart1.chartLine.setOption(t),window.onresize=function(){this.tab.chart1.chartLine.resize()}},getChart2:function(){var e=this;this.tab.chart2.listLoading=!0,Object(n["f"])(this.tab.chart2.getdataListParm).then((function(t){null!==t.data.list?(e.tab.chart2.table.list=t.data.data,e.tab.chart2.chartLine_data=t.data.list,e.tab.chart2.total=t.data.total,console.log("计划统计图数据",e.tab.chart2.chartLine_data),console.log("计划统计表数据",e.tab.chart2.table.list),e.roadChartLine2(e.tab.chart2.chartLine_data)):e.tab.chart2.list=[],setTimeout((function(){e.tab.chart2.listLoading=!1}),100)}))},roadChartLine2:function(e){null!=this.tab.chart2.chartLine&&this.tab.chart2.chartLine.dispose(),this.tab.chart2.chartLine=l.a.init(document.getElementById("chartLine2"));var t={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:e.data1,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:[{name:"计划准确率",type:"line",data:e.data2},{name:"计划正确率",type:"line",data:e.data3},{name:"计划准确率(去除取消重量)",type:"line",data:e.data4}]};this.tab.chart2.chartLine.setOption(t),window.onresize=function(){this.tab.chart2.chartLine.resize()}},changeStatisticChart3:function(){for(var e=this,t=[],a=function(a){for(var i=e.tab.chart3.statisticsList.find((function(t){return t.name==e.tab.chart3.getdataListParm.parammaps.statisticsList[a]})).id,s=0;s<e.tab.chart3.chart3Data3.length;s++)s==i&&t.push(e.tab.chart3.chart3Data3[s])},i=0;i<this.tab.chart3.getdataListParm.parammaps.statisticsList.length;i++)a(i);this.tab.chart3.chartLine_data.data3=t,this.tab.chart3.chartLine_data.data1=this.tab.chart3.getdataListParm.parammaps.statisticsList,this.roadChartLine3(this.tab.chart3.chartLine_data)},getChart3:function(){var e=this;this.tab.chart3.listLoading=!0,Object(n["f"])(this.tab.chart3.getdataListParm).then((function(t){if(null!==t.data.data){for(var a=0;a<t.data.data.length;a++)t.data.data[a].准确率=t.data.data[a].准确率+"%";e.tab.chart3.table.list=t.data.data,e.tab.chart3.chartLine_data=t.data.list,e.tab.chart3.total=t.data.total,e.tab.chart3.statisticsList=[],e.tab.chart3.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<t.data.list.data1.length;i++){i<10&&e.tab.chart3.getdataListParm.parammaps.statisticsList.push(t.data.list.data1[i]);var s={};s.id=i,s.name=t.data.list.data1[i],e.tab.chart3.statisticsList.push(s)}e.tab.chart3.chart3Data3=t.data.list.data3,e.tab.chart3.total=t.data.total,console.log("牛群准确率图数据",e.tab.chart3.chartLine_data),console.log("牛群准确率表数据",e.tab.chart3.table.list);for(var r=[],l=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&&r.push(e.tab.chart3.chart3Data3[i])},n=0;n<e.tab.chart3.getdataListParm.parammaps.statisticsList.length;n++)l(n);e.tab.chart3.chartLine_data.data3=r,e.tab.chart3.chartLine_data.data1=e.tab.chart3.getdataListParm.parammaps.statisticsList,e.roadChartLine3(e.tab.chart3.chartLine_data)}else e.tab.chart3.list=[];setTimeout((function(){e.tab.chart3.listLoading=!1}),100)}))},roadChartLine3:function(e){null!=this.tab.chart3.chartLine&&this.tab.chart3.chartLine.dispose(),this.tab.chart3.chartLine=l.a.init(document.getElementById("chartLine3"));var t={title:{text:""},tooltip:{trigger:"axis"},legend:{data:e.data1,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:function(){for(var t=[],a=0;a<e.data3.length;a++){var i={name:e.data1[a],type:"line",data:e.data3[a].data};t.push(i)}return t}()};this.tab.chart3.chartLine.setOption(t),window.onresize=function(){this.tab.chart3.chartLine.resize()}},changeStatisticChart4:function(){for(var e=this,t=[],a=function(a){for(var i=e.tab.chart4.statisticsList.find((function(t){return t.name==e.tab.chart4.getdataListParm.parammaps.statisticsList[a]})).id,s=0;s<e.tab.chart4.chart4Data3.length;s++)s==i&&t.push(e.tab.chart4.chart4Data3[s])},i=0;i<this.tab.chart4.getdataListParm.parammaps.statisticsList.length;i++)a(i);this.tab.chart4.chartLine_data.data3=t,this.tab.chart4.chartLine_data.data1=this.tab.chart4.getdataListParm.parammaps.statisticsList,this.roadChartLine4(this.tab.chart4.chartLine_data)},getChart4:function(){var e=this;this.tab.chart4.listLoading=!0,Object(n["f"])(this.tab.chart4.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.data.length;a++)t.data.data[a].准确率=t.data.data[a].准确率+"%";e.tab.chart4.table.list=t.data.data,e.tab.chart4.chartLine_data=t.data.list,e.tab.chart4.total=t.data.total,e.tab.chart4.statisticsList=[],e.tab.chart4.getdataListParm.parammaps.statisticsList=[];for(var i=0;i<t.data.list.data1.length;i++){i<10&&e.tab.chart4.getdataListParm.parammaps.statisticsList.push(t.data.list.data1[i]);var s={};s.id=i,s.name=t.data.list.data1[i],e.tab.chart4.statisticsList.push(s)}e.tab.chart4.chart4Data3=t.data.list.data3,e.tab.chart4.total=t.data.total,console.log("车辆准确率(重量)图",e.tab.chart4.chartLine_data),console.log("车辆准确率(重量)表",e.tab.chart4.table.list);for(var r=[],l=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&&r.push(e.tab.chart4.chart4Data3[i])},n=0;n<e.tab.chart4.getdataListParm.parammaps.statisticsList.length;n++)l(n);e.tab.chart4.chartLine_data.data3=r,e.tab.chart4.chartLine_data.data1=e.tab.chart4.getdataListParm.parammaps.statisticsList,e.roadChartLine4(e.tab.chart4.chartLine_data)}else e.tab.chart4.list=[];setTimeout((function(){e.tab.chart4.listLoading=!1}),100)}))},roadChartLine4:function(e){null!=this.tab.chart4.chartLine&&this.tab.chart4.chartLine.dispose(),this.tab.chart4.chartLine=l.a.init(document.getElementById("chartLine4"));var t={title:{text:""},tooltip:{trigger:"axis"},legend:{data:e.data1,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:function(){for(var t=[],a=0;a<e.data3.length;a++){var i={name:e.data1[a],type:"line",data:e.data3[a].data};t.push(i)}return t}()};this.tab.chart4.chartLine.setOption(t),window.onresize=function(){this.tab.chart4.chartLine.resize()}},getChart5:function(){var e=this;this.tab.chart5.listLoading=!0,Object(n["f"])(this.tab.chart5.getdataListParm).then((function(t){null!==t.data.list?(e.tab.chart5.table.list=t.data.data,e.tab.chart5.chartLine_data=t.data.list,e.tab.chart5.total=t.data.total,console.log("混料统计图",e.tab.chart5.chartLine_data),console.log("混料统计表",e.tab.chart5.table.list),e.roadChartLine5(e.tab.chart5.chartLine_data)):e.tab.chart5.list=[],setTimeout((function(){e.tab.chart5.listLoading=!1}),100)}))},roadChartLine5:function(e){null!=this.tab.chart5.chartLine&&this.tab.chart5.chartLine.dispose(),this.tab.chart5.chartLine=l.a.init(document.getElementById("chartLine5"));var t={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:e.data1,axisPointer:{type:"shadow"}}],yAxis:[{type:"value",name:"跳转次数",axisLabel:{formatter:"{value}"}},{type:"value",name:"混料准确率",min:0,max:100,interval:10,axisLabel:{formatter:"{value} %"}}],series:[{name:"自动跳转次数",type:"bar",data:e.data2},{name:"手动跳转次数",type:"bar",data:e.data3},{name:"自动跳转准确率",type:"line",yAxisIndex:1,data:e.data4},{name:"手动跳转准确率",type:"line",yAxisIndex:1,data:e.data5}]};this.tab.chart5.chartLine.setOption(t),window.onresize=function(){this.tab.chart5.chartLine.resize()}},getChart6:function(){var e=this;this.tab.chart6.listLoading=!0,Object(n["f"])(this.tab.chart6.getdataListParm).then((function(t){null!==t.data.list?(e.tab.chart6.table.list=t.data.data,e.tab.chart6.chartLine_data=t.data.list,e.tab.chart6.total=t.data.total,console.log("混料计划取消次数图",e.tab.chart6.chartLine_data),console.log("混料计划取消次数表",e.tab.chart6.table.list),e.roadChartLine6(e.tab.chart6.chartLine_data)):e.tab.chart6.list=[],setTimeout((function(){e.tab.chart6.listLoading=!1}),100)}))},roadChartLine6:function(e){null!=this.tab.chart6.chartLine&&this.tab.chart6.chartLine.dispose(),this.tab.chart6.chartLine=l.a.init(document.getElementById("chartLine6"));var t={color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["取消次数"],right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},xAxis:[{name:"日期",type:"category",data:e.data1,axisTick:{alignWithLabel:!0}}],yAxis:[{name:"次数",interval:1,min:0,type:"value"}],series:[{name:"取消次数",type:"bar",barWidth:"60%",data:e.data2}]};this.tab.chart6.chartLine.setOption(t),window.onresize=function(){this.tab.chart6.chartLine.resize()}},changeStatisticChart7:function(){for(var e=this,t=[],a=function(a){for(var i=e.tab.chart7.statisticsList.find((function(t){return t.name==e.tab.chart7.getdataListParm.parammaps.statisticsList[a]})).id,s=0;s<e.tab.chart7.chart7Data3.length;s++)s==i&&t.push(e.tab.chart7.chart7Data3[s])},i=0;i<this.tab.chart7.getdataListParm.parammaps.statisticsList.length;i++)a(i);this.tab.chart7.chartLine_data.data3=t,this.tab.chart7.chartLine_data.data1=this.tab.chart7.getdataListParm.parammaps.statisticsList,this.roadChartLine7(this.tab.chart7.chartLine_data)},getChart7:function(){var e=this;this.tab.chart7.listLoading=!0,Object(n["f"])(this.tab.chart7.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.data.length;a++){for(var i=[],s=0;s<=t.data.data[a].准确率.length;s++)"."==t.data.data[a].准确率.charAt(s)&&(i[s]=t.data.data[a].准确率.replace(".",":"));t.data.data[a].准确率=i[i.length-1],t.data.data[a].撒料时间=t.data.data[a].准确率}e.tab.chart7.table.list=t.data.data,e.tab.chart7.chartLine_data=t.data.list,e.tab.chart7.statisticsList=[],e.tab.chart7.getdataListParm.parammaps.statisticsList=[];for(var r=0;r<t.data.list.data1.length;r++){r<10&&e.tab.chart7.getdataListParm.parammaps.statisticsList.push(t.data.list.data1[r]);var l={};l.id=r,l.name=t.data.list.data1[r],e.tab.chart7.statisticsList.push(l)}e.tab.chart7.chart7Data3=t.data.list.data3,e.tab.chart7.total=t.data.total,console.log("栏舍撒料时间统计图",e.tab.chart7.chartLine_data),console.log("栏舍撒料时间统计表",e.tab.chart7.table.list);for(var n=[],o=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&&n.push(e.tab.chart7.chart7Data3[i])},c=0;c<e.tab.chart7.getdataListParm.parammaps.statisticsList.length;c++)o(c);e.tab.chart7.chartLine_data.data3=n,e.tab.chart7.chartLine_data.data1=e.tab.chart7.getdataListParm.parammaps.statisticsList,e.roadChartLine7(e.tab.chart7.chartLine_data)}else e.tab.chart7.list=[];setTimeout((function(){e.tab.chart7.listLoading=!1}),100)}))},roadChartLine7:function(e){null!=this.tab.chart7.chartLine&&this.tab.chart7.chartLine.dispose(),this.tab.chart7.chartLine=l.a.init(document.getElementById("chartLine7"));var t={title:{text:""},tooltip:{trigger:"axis",formatter:function(e){for(var t=e[0].name,a=0;a<e.length;a++){for(var i=[],s=0;s<=e[a].value.length;s++)""!==e[a].value?"."==e[a].value.charAt(s)&&(i[s]=e[a].value.replace(".",":")):i[s]="";t+="<br>"+e[a].seriesName+": "+i[i.length-1]}return t}},legend:{data:e.data1,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e.data2,name:"日期"},yAxis:[{type:"",name:"时间",mix:0,max:24,interval:2,axisLabel:{formatter:function(e){var t=[];return e<10?t.push("0"+e+":00"):t.push(e+":00"),t}}}],series:function(){for(var t=[],a=0;a<e.data3.length;a++){var i={name:e.data1[a],type:"line",data:e.data3[a].data};t.push(i)}return t}()};this.tab.chart7.chartLine.setOption(t),window.onresize=function(){this.tab.chart7.chartLine.resize()}},changeChartDate:function(e){console.log(e),"chart1"==e?""!==this.tab.chart1.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart1.getdataListParm.parammaps.inputDatetime?(this.tab.chart1.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["e"])(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"==e?""!==this.tab.chart2.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart2.getdataListParm.parammaps.inputDatetime?(this.tab.chart2.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["e"])(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"==e?""!==this.tab.chart3.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart3.getdataListParm.parammaps.inputDatetime?(this.tab.chart3.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["e"])(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"==e?""!==this.tab.chart4.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart4.getdataListParm.parammaps.inputDatetime?(this.tab.chart4.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["e"])(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"==e?""!==this.tab.chart5.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart5.getdataListParm.parammaps.inputDatetime?(this.tab.chart5.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["e"])(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()):"chart6"==e?""!==this.tab.chart6.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart6.getdataListParm.parammaps.inputDatetime?(this.tab.chart6.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart6.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.chart6.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart6()):(this.tab.chart6.getdataListParm.parammaps.inputDatetime="",this.tab.chart6.getdataListParm.parammaps.startTime="",this.tab.chart6.getdataListParm.parammaps.stopTime="",this.getChart6()):"chart7"==e&&(""!==this.tab.chart6.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart7.getdataListParm.parammaps.inputDatetime?(this.tab.chart7.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart7.getdataListParm.parammaps.stopTime=Object(d["e"])(this.tab.chart7.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.getChart7()):(this.tab.chart7.getdataListParm.parammaps.inputDatetime="",this.tab.chart7.getdataListParm.parammaps.startTime="",this.tab.chart7.getdataListParm.parammaps.stopTime="",this.getChart7()))},handleExport:function(e){if("chart1"==e){console.log("配方准确率导出");var t=[{tHeader:["日期","配方名称","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart1.table.list,sheetName:"配方准确率"}];Object(d["d"])(t,"配方准确率",!0,"xlsx")}else if("chart2"==e){console.log("计划统计导出");var a=[{tHeader:["日期","计划执行重量(kg)","配方理论重量(kg)","计划准确率","计划取消重量(kg)","计划准确率(去除取消重量)","计划正确数","计划数","计划正确率"],filterVal:["日期","实际量","理论量","field1","计划取消重量","field3","正确数","计划数","field2"],tableDatas:this.tab.chart2.table.list,sheetName:"计划统计"}];Object(d["d"])(a,"计划统计",!0,"xlsx")}else if("chart3"==e){console.log("牛群准确率导出");var i=[{tHeader:["日期","牲畜类别","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart3.table.list,sheetName:"牛群准确率"}];Object(d["d"])(i,"牛群准确率",!0,"xlsx")}else if("chart4"==e){console.log("车辆准确率(重量)导出");var s=[{tHeader:["日期","车次","计划重量(kg)","实际重量(kg)","准确率"],filterVal:["日期","名称","理论量","实际量","准确率"],tableDatas:this.tab.chart4.table.list,sheetName:"车辆准确率(重量)"}];Object(d["d"])(s,"车辆准确率(重量)",!0,"xlsx")}else if("chart5"==e){console.log("混料统计导出");var r=[{tHeader:["日期","自动跳转次数","手动跳转次数","自动跳转理论重量","自动跳转实际重量","自动跳转准确率","手动跳转理论重量","手动跳转实际重量","手动跳转准确率"],filterVal:["日期","field1","field2","理论自动","实际自动","field3","理论手动","实际手动","field4"],tableDatas:this.tab.chart5.table.list,sheetName:"混料统计"}];Object(d["d"])(r,"混料统计",!0,"xlsx")}else if("chart6"==e){console.log("混料计划取消次数导出");var l=[{tHeader:["日期","混料计划取消次数"],filterVal:["日期","field1"],tableDatas:this.tab.chart6.table.list,sheetName:"混料计划取消次数"}];Object(d["d"])(l,"混料计划取消次数",!0,"xlsx")}else if("chart7"==e){console.log("栏舍撒料时间统计导出");var n=[{tHeader:["日期","栏舍","撒料时间"],filterVal:["日期","fname","准确率"],tableDatas:this.tab.chart7.table.list,sheetName:"栏舍撒料时间统计"}];Object(d["d"])(n,"栏舍撒料时间统计",!0,"xlsx")}},handleTable:function(e){"chart1"==e?(console.log("配方准确率表格"),this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1):"chart2"==e?(console.log("计划统计表格"),this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1):"chart3"==e?(console.log("牛群准确率表格"),this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1):"chart4"==e?(console.log("车辆准确率(重量)表格"),this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1):"chart5"==e?(console.log("混料统计表格"),this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1):"chart6"==e?(console.log("混料计划取消次数表格"),this.tab.chart6.isTable=!0,this.tab.chart6.isChart=!1):"chart7"==e&&(console.log("栏舍撒料时间统计表格"),this.tab.chart7.isTable=!0,this.tab.chart7.isChart=!1)},handleChart:function(e){"chart1"==e?(console.log("配方准确率图表"),this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0):"chart2"==e?(console.log("计划统计图表"),this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0):"chart3"==e?(console.log("牛群准确率图表"),this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0):"chart4"==e?(console.log("车辆准确率(重量)图表"),this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0):"chart5"==e?(console.log("混料统计图表"),this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0):"chart6"==e?(console.log("混料计划取消次数图表"),this.tab.chart6.isTable=!1,this.tab.chart6.isChart=!0):"chart7"==e&&(console.log("栏舍撒料时间统计图表"),this.tab.chart7.isTable=!1,this.tab.chart7.isChart=!0)},getTab2List:function(){var e=this;this.tab2.table.listLoading=!0,Object(n["d"])(this.tab2.table.getdataListParm).then((function(t){console.log("混料统计table数据",t.data.list),null!==t.data.list?(e.tab2.table.list=t.data.list,e.tab2.table.total=t.data.total):e.tab2.table.list=[],setTimeout((function(){e.tab2.table.listLoading=!1}),100)}))},handleSearch2:function(){this.tab2.table.getdataListParm.name="getStatisticsHL",""!==this.tab2.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime?(console.log(this.tab2.table.getdataListParm.parammaps.inputDatetime),this.tab2.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(d["e"])(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.tab2.table.getdataListParm.offset=1,this.getTab2List()},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(){var e=[{tHeader:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","准确率","计划时间","开始时间","结束时间"," 跳转方式","开始重量","结束重量"],filterVal:["日期","TMR名称","车次","班次","配方名称","饲料","理论重量","实际重量","误差值","准确率","计划时间","开始时间","结束时间","跳转方式","开始重量","结束重量"],tableDatas:this.tab2.table.list,sheetName:"混料统计"}];Object(d["d"])(e,"混料统计",!0,"xlsx")},getTab3List:function(){var e=this;this.tab3.table.listLoading=!0,Object(n["d"])(this.tab3.table.getdataListParm).then((function(t){console.log("撒料统计table数据",t.data.list),null!==t.data.list?(e.tab3.table.list=t.data.list,e.tab3.table.total=t.data.total):e.tab3.table.list=[],setTimeout((function(){e.tab3.table.listLoading=!1}),100)}))},handleSearch3:function(){this.tab3.table.getdataListParm.name="getStatisticsSL",""!==this.tab3.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime?(this.tab3.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(d["e"])(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.tab3.table.getdataListParm.offset=1,this.getTab3List()},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(){var e=[{tHeader:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","准确率","开始时间","结束时间","跳转方式","开始重量","结束重量"],filterVal:["日期","TMR名称","车次","班次","配方名称","栏舍","理论重量","实际重量","误差值","准确率","开始时间","结束时间","跳转方式","开始重量","结束重量"],tableDatas:this.tab3.table.list,sheetName:"撒料统计"}];Object(d["d"])(e,"撒料统计",!0,"xlsx")}}},h=u,g=(a("74cf"),a("2877")),f=Object(g["a"])(h,i,s,!1,null,"5099efad",null);t["default"]=f.exports},"1e9f":function(e,t,a){},"1ea7":function(e,t,a){},"1fb3":function(e,t,a){},"1fc4":function(e,t,a){},"1fff":function(e,t,a){},2:function(e,t){},2017:function(e,t,a){"use strict";var i=a("cafe"),s=a.n(i);s.a},2044:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},s=[],r=a("313e"),l=a.n(r),n=a("a7dc");a("817d");var o={mixins:[n["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{left:"center",bottom:"10",data:["Industries","Technology","Forex","Gold","Forecasts"]},series:[{name:"WEEKLY WRITE ARTICLES",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:[{value:320,name:"Industries"},{value:240,name:"Technology"},{value:149,name:"Forex"},{value:100,name:"Gold"},{value:59,name:"Forecasts"}],animationEasing:"cubicInOut",animationDuration:2600}]})}}},c=o,d=a("2877"),m=Object(d["a"])(c,i,s,!1,null,null,null);t["default"]=m.exports},"213e":function(e,t,a){"use strict";var i=a("5027"),s=a.n(i);s.a},"218b":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.bname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"bname",t)},expression:"table.getdataListParm.parammaps.bname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"栏舍编号",clearable:""},model:{value:e.table.getdataListParm.parammaps.bcode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"bcode",t)},expression:"table.getdataListParm.parammaps.bcode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),e.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):e._e(),e.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):e._e(),e.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[e._v("允许误差数")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:e.table.getdataListParm.parammaps.allowratio,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"allowratio",t)},expression:"table.getdataListParm.parammaps.allowratio"}})],1),a("li",[a("a",[e._v("跳转重量域")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:e.table.getdataListParm.parammaps.autozone,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"autozone",t)},expression:"table.getdataListParm.parammaps.autozone"}})],1),a("li",[a("a",[e._v("跳转延时")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{filterable:"",clearable:""},model:{value:e.table.getdataListParm.parammaps.autosecond,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"autosecond",t)},expression:"table.getdataListParm.parammaps.autosecond"}},e._l(e.jumpDelayList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(t){e.arrowUp=!1,e.arrowDown=!0}}},[e._v("取消")]),a("el-button",{staticClass:"miniPrimary",on:{click:e.handleSearch}},[e._v("搜索")])],1)])]):e._e()],1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.bname))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.bname,callback:function(a){e.$set(t.row,"bname",a)},expression:"scope.row.bname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"栏舍编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.bcode))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"number"},model:{value:t.row.bcode,callback:function(a){e.$set(t.row,"bcode",a)},expression:"scope.row.bcode"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"允许误差数(kg)","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.allowratio))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.allowratio,callback:function(a){e.$set(t.row,"allowratio",a)},expression:"scope.row.allowratio"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"跳转重量域(kg)","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.autozone))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"0"==t.row.autosecond},model:{value:t.row.autozone,callback:function(a){e.$set(t.row,"autozone",a)},expression:"scope.row.autozone"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"跳转延时(s)","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.autosecondname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:""},on:{change:e.changeAutosecond},model:{value:t.row.autosecond,callback:function(a){e.$set(t.row,"autosecond",a)},expression:"scope.row.autosecond"}},e._l(e.jumpDelayList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"确认开始","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleConfirmStartChange(t.$index,t.row)}},model:{value:t.row.isstart,callback:function(a){e.$set(t.row,"isstart",a)},expression:"scope.row.isstart"}})]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"GroupColumn",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["跳转延时"]}],enableList:[{id:"1",name:"是"},{id:"0",name:"否"}],jumpDelayList:[],table:{getdataListParm:{name:"getBarList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),bcode:"",bname:"",allowratio:"",autozone:"",autosecond:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],arrowDown:!0,arrowUp:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},mounted:function(){var e=this;document.addEventListener("click",(function(t){void 0!==e.$refs.selectInput&&(e.$refs.selectInput.contains(t.target)?(e.arrowDown=!1,e.arrowUp=!0):(e.arrowDown=!0,e.arrowUp=!1))}))},methods:{getButtons:function(){var e="GroupColumn",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.jumpDelayList=t.data.getDictByName.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleConfirmStartChange:function(){console.log("点击了确认开始")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList(),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.bcode="",this.table.getdataListParm.parammaps.bname="",this.table.getdataListParm.parammaps.allowratio="",this.table.getdataListParm.parammaps.autozone="",this.table.getdataListParm.parammaps.autosecond="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},changeAutosecond:function(e){this.table.temp.autosecondname=this.jumpDelayList.find((function(t){return t.value===e})).label,console.log(this.table.temp.autosecondname)},handleCreate:function(){console.log("点击了新增");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;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(e){var t=this;if(console.log("点击了新增保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.bcode=e.bcode,this.table.temp.bname=e.bname,this.table.temp.allowratio=e.allowratio,this.table.temp.autozone=e.autozone,this.table.temp.autosecond=e.autosecond,""==this.table.temp.autosecondname?this.table.temp.autosecondname=e.autosecondname:this.table.temp.autosecondname=this.table.temp.autosecondname,this.table.temp.isstart=e.isstart,this.table.temp.enable=e.enable,""==this.table.temp.bname&&""==this.table.temp.bcode)return this.$message({type:"error",message:"栏舍名称/栏舍编号不能为空",duration:2e3}),!1;if(""==this.table.temp.bname)return this.$message({type:"error",message:"栏舍名称不能为空",duration:2e3}),!1;if(""==this.table.temp.bcode)return this.$message({type:"error",message:"栏舍编号不能为空",duration:2e3}),!1;if(this.table.temp.bcode.length>8)return this.$message({type:"error",message:"栏舍编号请输入1-8位数字",duration:2e3}),!1;if(""!==this.table.temp.allowratio){console.log(this.table.temp.allowratio);var a=/^[0-9]\d*$/;if(!a.test(parseFloat(this.table.temp.allowratio)))return this.$message({type:"error",message:"允许误差数请输入大于等于0的整数",duration:2e3}),!1}else this.table.temp.allowratio="0";if(""!==this.table.temp.autozone){console.log(this.table.temp.autozone);var i=/^([0-9]|(1[0-9]|(20)))$/;if(!i.test(parseFloat(this.table.temp.autozone)))return this.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于20的整数",duration:2e3}),!1}else this.table.temp.autozone="0";var s=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return s.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):s.test(this.table.temp.tname)?(this.$message({type:"error",message:"TMR设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="insertBar",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){console.log("点击了编辑",e);for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.autosecond=String(e.autosecond),this.table.temp.autosecondname=e.autosecondname,this.table.temp.autosecond=e.autosecond},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.bcode=e.bcode,this.table.temp.bname=e.bname,this.table.temp.allowratio=e.allowratio,this.table.temp.autozone=e.autozone,this.table.temp.autosecond=e.autosecond,this.table.temp.autosecondname=this.table.temp.autosecondname,this.table.temp.isstart=e.isstart,this.table.temp.enable=e.enable,this.table.temp.id=e.id,""==this.table.temp.bname&&""==this.table.temp.bcode)return this.$message({type:"error",message:"栏舍名称/栏舍编号不能为空",duration:2e3}),!1;if(""==this.table.temp.bname)return this.$message({type:"error",message:"栏舍名称不能为空",duration:2e3}),!1;if(""==this.table.temp.bcode)return this.$message({type:"error",message:"栏舍编号不能为空",duration:2e3}),!1;if(this.table.temp.bcode.length>8)return this.$message({type:"error",message:"栏舍编号请输入1-8位数字",duration:2e3}),!1;if(""!==this.table.temp.allowratio){console.log(this.table.temp.allowratio);var a=/^[0-9]\d*$/;if(!a.test(parseFloat(this.table.temp.allowratio)))return this.$message({type:"error",message:"允许误差数请输入大于等于0的整数",duration:2e3}),!1}else this.table.temp.allowratio="0";if(""!==this.table.temp.autozone){console.log(this.table.temp.autozone);var i=/^([0-9]|(1[0-9]|(20)))$/;if(!i.test(parseFloat(this.table.temp.autozone)))return this.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于20的整数",duration:2e3}),!1}else this.table.temp.autozone="0";var s=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return s.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):s.test(this.table.temp.tname)?(this.$message({type:"error",message:"TMR设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateBar",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteBar",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择舍组栏信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteBar",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},m=d,p=(a("69b4"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"351e99ba",null);t["default"]=u.exports},2212:function(e,t,a){},"228b":function(e,t,a){},"22e8":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[e._v(e._s(e.message))]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.contact.listLoading,expression:"contact.listLoading"}],key:e.contact.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.contact.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}])}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}])}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}])}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.nums))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.nums,callback:function(a){e.$set(t.row,"nums",a)},expression:"scope.row.nums"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"110","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(i)}}},[e._v("删除")])]}}])})],1)],1)},s=[],r=(a("2934"),a("a78e"),a("ed08"),a("333d")),l=(a("5c96"),{name:"LittleTable",components:{Pagination:r["a"]},data:function(){return{message:"",isRoleEdit:[],contact:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",contactName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},tableKey:0,list:[],total:0,listLoading:!1}}},created:function(){},methods:{}}),n=l,o=(a("7cc0"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"5a917e54",null);t["default"]=c.exports},2452:function(e,t,a){"use strict";var i=a("e871"),s=a.n(i);s.a},2502:function(e,t,a){"use strict";var i=a("d05e"),s=a.n(i);s.a},2544:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addTodo(t)}}})]),a("section",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:e.allChecked},on:{change:function(t){return e.toggleAll({done:!e.allChecked})}}}),a("label",{attrs:{for:"toggle-all"}}),a("ul",{staticClass:"todo-list"},e._l(e.filteredTodos,(function(t,i){return a("todo",{key:i,attrs:{todo:t},on:{toggleTodo:e.toggleTodo,editTodo:e.editTodo,deleteTodo:e.deleteTodo}})})),1)]),a("footer",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[e._v(e._s(e.remaining))]),e._v(" "+e._s(e._f("pluralize")(e.remaining,"item"))+" left ")]),a("ul",{staticClass:"filters"},e._l(e.filters,(function(t,i){return a("li",{key:i},[a("a",{class:{selected:e.visibility===i},on:{click:function(t){t.preventDefault(),e.visibility=i}}},[e._v(e._s(e._f("capitalize")(i)))])])})),0)])])},s=[],r=(a("a623"),a("4de4"),a("4160"),a("c975"),a("fb6a"),a("a434"),a("498a"),a("159b"),a("ced4")),l="todos",n={all:function(e){return e},active:function(e){return e.filter((function(e){return!e.done}))},completed:function(e){return e.filter((function(e){return e.done}))}},o=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],c={components:{Todo:r["default"]},filters:{pluralize:function(e,t){return 1===e?t:t+"s"},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},data:function(){return{visibility:"all",filters:n,todos:o}},computed:{allChecked:function(){return this.todos.every((function(e){return e.done}))},filteredTodos:function(){return n[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(e){return!e.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(l,JSON.stringify(this.todos))},addTodo:function(e){var t=e.target.value;t.trim()&&(this.todos.push({text:t,done:!1}),this.setLocalStorage()),e.target.value=""},toggleTodo:function(e){e.done=!e.done,this.setLocalStorage()},deleteTodo:function(e){this.todos.splice(this.todos.indexOf(e),1),this.setLocalStorage()},editTodo:function(e){var t=e.todo,a=e.value;t.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(e){return!e.done})),this.setLocalStorage()},toggleAll:function(e){var t=this,a=e.done;this.todos.forEach((function(e){e.done=a,t.setLocalStorage()}))}}},d=c,m=(a("76f2"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,null,null);t["default"]=p.exports},"256c":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:e.handleNutritional}},[e._v("营养评估")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"}},[e._v("导入")]),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:e.handleHistoryRecords}},[e._v("历史记录")])],1),a("div",{staticClass:"search"}),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"header-click":e.headerClick,"cell-click":e.cellClick,"selection-change":e.handleSelect}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{key:1,attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{key:2,attrs:{label:"栏舍名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{key:3,attrs:{label:"软件牛头数","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.softccount))])]}}])}),a("el-table-column",{key:4,attrs:{label:"实际牛头数","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ccount))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return e.blurCcount(t.row)}},model:{value:t.row.ccount,callback:function(a){e.$set(t.row,"ccount",a)},expression:"scope.row.ccount"}}):e._e()]}}])}),a("el-table-column",{key:5,attrs:{label:"系数(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ratio))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return e.blurRatio(t.row)}},model:{value:t.row.ratio,callback:function(a){e.$set(t.row,"ratio",a)},expression:"scope.row.ratio"}}):e._e()]}}])}),a("el-table-column",{key:6,attrs:{label:"系数头数","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ccountratio))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return e.blurCcountratio(t.row)}},model:{value:t.row.ccountratio,callback:function(a){e.$set(t.row,"ccountratio",a)},expression:"scope.row.ccountratio"}}):e._e()]}}])}),a("el-table-column",{key:7,attrs:{label:"配方模板","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ftname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"配方模板"},on:{change:function(a){e.changeRecipeTemplate(a,t.row)}},model:{value:t.row.ftid,callback:function(a){e.$set(t.row,"ftid",a)},expression:"scope.row.ftid"}},e._l(e.recipeTemplateList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1):e._e()]}}])}),e.table.isPtsfname?a("el-table-column",{key:8,attrs:{label:"补料配方","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ptsfname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{clearable:"",filterable:"",placeholder:"补料配方"},on:{change:function(a){e.changeFeedingFormula(a,t.row)}},model:{value:t.row.ptsfid,callback:function(a){e.$set(t.row,"ptsfid",a)},expression:"scope.row.ptsfid"}},e._l(e.feedingFormulaList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1):e._e()]}}],null,!1,297539038)}):e._e(),e.table.isRW1?a("el-table-column",{key:9,attrs:{label:"第一班比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.r1))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isOneWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurR(t.row)}},model:{value:t.row.r1,callback:function(a){e.$set(t.row,"r1",a)},expression:"scope.row.r1"}}):e._e()]}}],null,!1,995467629)}):e._e(),e.table.isRW1?a("el-table-column",{key:10,attrs:{label:"第一班重量","min-width":"130px",align:"center","render-header":e.renderHeader},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.w1))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isOneWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurW(t.row)},focus:function(a){return e.focusW(t.row)}},model:{value:t.row.w1,callback:function(a){e.$set(t.row,"w1",a)},expression:"scope.row.w1"}}):e._e()]}}],null,!1,578237569)}):e._e(),e.table.isRW2?a("el-table-column",{key:11,attrs:{label:"第二班比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.r2))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:t.row.isTwoWeight},on:{blur:function(a){return e.blurR(t.row)}},model:{value:t.row.r2,callback:function(a){e.$set(t.row,"r2",a)},expression:"scope.row.r2"}}):e._e()]}}],null,!1,1521340005)}):e._e(),e.table.isRW2?a("el-table-column",{key:12,attrs:{label:"第二班重量","min-width":"130px",align:"center","render-header":e.renderHeader},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.w2))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isTwoWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurW2(t.row)},focus:function(a){return e.focusW2(t.row)}},model:{value:t.row.w2,callback:function(a){e.$set(t.row,"w2",a)},expression:"scope.row.w2"}}):e._e()]}}],null,!1,3566672329)}):e._e(),e.table.isRW3?a("el-table-column",{key:13,attrs:{label:"第三班比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.r3))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:t.row.isThreeWeight},on:{blur:function(a){return e.blurR(t.row)}},model:{value:t.row.r3,callback:function(a){e.$set(t.row,"r3",a)},expression:"scope.row.r3"}}):e._e()]}}],null,!1,2808300679)}):e._e(),e.table.isRW3?a("el-table-column",{key:14,attrs:{label:"第三班重量","min-width":"130px",align:"center","render-header":e.renderHeader},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.w3))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isThreeWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurW3(t.row)},focus:function(a){return e.focusW3(t.row)}},model:{value:t.row.w3,callback:function(a){e.$set(t.row,"w3",a)},expression:"scope.row.w3"}}):e._e()]}}],null,!1,4064722827)}):e._e(),e.table.isRW4?a("el-table-column",{key:15,attrs:{label:"第四班比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.r4))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:t.row.isFourWeight},on:{blur:function(a){return e.blurR(t.row)}},model:{value:t.row.r4,callback:function(a){e.$set(t.row,"r4",a)},expression:"scope.row.r4"}}):e._e()]}}],null,!1,4090104935)}):e._e(),e.table.isRW4?a("el-table-column",{key:16,attrs:{label:"第四班重量","min-width":"130px",align:"center","render-header":e.renderHeader},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.w4))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isFourWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurW4(t.row)},focus:function(a){return e.focusW4(t.row)}},model:{value:t.row.w4,callback:function(a){e.$set(t.row,"w4",a)},expression:"scope.row.w4"}}):e._e()]}}],null,!1,3133848811)}):e._e(),a("el-table-column",{key:17,attrs:{label:"总比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumr))])]}}])}),a("el-table-column",{key:18,attrs:{label:"投喂量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedweight))])]}}])}),a("el-table-column",{key:19,attrs:{label:"配方重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ftweight))])]}}])}),e.table.isPtsfname?a("el-table-column",{key:20,attrs:{label:"补料重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.supplyweight))])]}}],null,!1,2371522197)}):e._e(),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;t.column,t.event;return[i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.history.dialogStatus],"destroy-on-close":!0,visible:e.history.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.history,"dialogFormVisible",t)}}},[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:e.changeDate},model:{value:e.history.getdataListParm.parammaps.date,callback:function(t){e.$set(e.history.getdataListParm.parammaps,"date",t)},expression:"history.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleApplication}},[e._v("应用")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.history.listLoading,expression:"history.listLoading"}],key:e.history.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.history.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.history.pageNum-1)*e.history.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"软件牛头数","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.softccount))])]}}])}),a("el-table-column",{attrs:{label:"实际牛头数","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ccount))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return e.blurCcount(t.row)}},model:{value:t.row.ccount,callback:function(a){e.$set(t.row,"ccount",a)},expression:"scope.row.ccount"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"系数(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ratio))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return e.blurRatio(t.row)}},model:{value:t.row.ratio,callback:function(a){e.$set(t.row,"ratio",a)},expression:"scope.row.ratio"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"系数头数","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ccountratio))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number"},on:{blur:function(a){return e.blurCcountratio(t.row)}},model:{value:t.row.ccountratio,callback:function(a){e.$set(t.row,"ccountratio",a)},expression:"scope.row.ccountratio"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"配方模板","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ftname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"配方模板"},on:{change:function(a){e.changeRecipeTemplate(a,t.row)}},model:{value:t.row.ftid,callback:function(a){e.$set(t.row,"ftid",a)},expression:"scope.row.ftid"}},e._l(e.recipeTemplateList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1):e._e()]}}])}),e.history.isPtsfname?a("el-table-column",{attrs:{label:"补料配方","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ptsfname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"补料配方"},on:{change:function(a){e.changeFeedingFormula(a,t.row)}},model:{value:t.row.ptsfid,callback:function(a){e.$set(t.row,"ptsfid",a)},expression:"scope.row.ptsfid"}},e._l(e.feedingFormulaList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1):e._e()]}}],null,!1,3743297499)}):e._e(),e.history.isRW1?a("el-table-column",{attrs:{label:"第一班比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.r1))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:t.row.isOneWeight},on:{blur:function(a){return e.blurR(t.row)}},model:{value:t.row.r1,callback:function(a){e.$set(t.row,"r1",a)},expression:"scope.row.r1"}}):e._e()]}}],null,!1,3332630957)}):e._e(),e.history.isRW1?a("el-table-column",{attrs:{label:"第一班重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.w1))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isTwoWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurW(t.row)}},model:{value:t.row.w1,callback:function(a){e.$set(t.row,"w1",a)},expression:"scope.row.w1"}}):e._e()]}}],null,!1,219125184)}):e._e(),e.table.isRW2?a("el-table-column",{attrs:{label:"第二班比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.r2))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:t.row.isTwoWeight},on:{blur:function(a){return e.blurR(t.row)}},model:{value:t.row.r2,callback:function(a){e.$set(t.row,"r2",a)},expression:"scope.row.r2"}}):e._e()]}}],null,!1,1521340005)}):e._e(),e.history.isRW2?a("el-table-column",{attrs:{label:"第二班重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.w2))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isTwoWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurW2(t.row)}},model:{value:t.row.w2,callback:function(a){e.$set(t.row,"w2",a)},expression:"scope.row.w2"}}):e._e()]}}],null,!1,3154295090)}):e._e(),e.history.isRW3?a("el-table-column",{attrs:{label:"第三班比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.r3))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:t.row.isThreeWeight},on:{blur:function(a){return e.blurR(t.row)}},model:{value:t.row.r3,callback:function(a){e.$set(t.row,"r3",a)},expression:"scope.row.r3"}}):e._e()]}}],null,!1,2808300679)}):e._e(),e.history.isRW3?a("el-table-column",{attrs:{label:"第三班重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.w3))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isThreeWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurW3(t.row)}},model:{value:t.row.w3,callback:function(a){e.$set(t.row,"w3",a)},expression:"scope.row.w3"}}):e._e()]}}],null,!1,647352753)}):e._e(),e.table.isRW4?a("el-table-column",{attrs:{label:"第四班比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.r4))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{step:"0.01",type:"number",disabled:"scope.row.isFourWeight"},on:{blur:function(a){return e.blurR(t.row)}},model:{value:t.row.r4,callback:function(a){e.$set(t.row,"r4",a)},expression:"scope.row.r4"}}):e._e()]}}],null,!1,2476780071)}):e._e(),e.history.isRW4?a("el-table-column",{attrs:{label:"第四班重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.w4))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:t.row.isFourWeight,step:"0.01",type:"number"},on:{blur:function(a){return e.blurW4(t.row)}},model:{value:t.row.w4,callback:function(a){e.$set(t.row,"w4",a)},expression:"scope.row.w4"}}):e._e()]}}],null,!1,492430774)}):e._e(),a("el-table-column",{attrs:{label:"总比例(%)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumr))])]}}])}),a("el-table-column",{attrs:{label:"投喂量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedweight))])]}}])}),a("el-table-column",{attrs:{label:"配方重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ftweight))])]}}])}),e.history.isPtsfname?a("el-table-column",{attrs:{label:"补料重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.supplyweight))])]}}],null,!1,2371522197)}):e._e()],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.history.total>0,expression:"history.total>0"}],attrs:{total:e.history.total,page:e.history.getdataListParm.offset,limit:e.history.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.history.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.history.getdataListParm,"pagecount",t)},pagination:e.getHistoryList}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.history.dialogFormVisible=!1}}},[e._v("关闭")])],1)])]),a("el-dialog",{attrs:{title:e.textMap[e.nutritional.dialogStatus],"destroy-on-close":!0,visible:e.nutritional.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.nutritional,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-nutritional"},[a("h4",{staticStyle:{position:"absolute",top:"-5px",left:"140px",font:"18px/24px ''",color:"#303133"}},[e._v("栏舍:"+e._s(e.nutritional.temp.barname))]),a("el-form",{ref:"temp",staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.nutritional.temp,"label-position":"right","label-width":"95px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"类别",prop:"cowclassid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:e.nutritional.disabledCowclass,filterable:"",placeholder:""},model:{value:e.nutritional.temp.cowclassid,callback:function(t){e.$set(e.nutritional.temp,"cowclassid",t)},expression:"nutritional.temp.cowclassid"}},e._l(e.livestockTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.mixname,value:e.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:e.nutritional.temp.avgmonthage,callback:function(t){e.$set(e.nutritional.temp,"avgmonthage",t)},expression:"nutritional.temp.avgmonthage"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"体重(kg)",prop:"bw"}},[a("el-input",{ref:"bw",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.bw,callback:function(t){e.$set(e.nutritional.temp,"bw",t)},expression:"nutritional.temp.bw"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"日增重(kg)",prop:"dayw"}},[a("el-input",{ref:"dayw",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.dayw,callback:function(t){e.$set(e.nutritional.temp,"dayw",t)},expression:"nutritional.temp.dayw"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"胎次(次)",prop:"fetal"}},[a("el-input",{ref:"fetal",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.fetal,callback:function(t){e.$set(e.nutritional.temp,"fetal",t)},expression:"nutritional.temp.fetal"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"泌乳天数(天)",prop:"avgdim"}},[a("el-input",{ref:"avgdim",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.avgdim,callback:function(t){e.$set(e.nutritional.temp,"avgdim",t)},expression:"nutritional.temp.avgdim"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"怀孕天数(天)",prop:"dayspre"}},[a("el-input",{ref:"dayspre",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.dayspre,callback:function(t){e.$set(e.nutritional.temp,"dayspre",t)},expression:"nutritional.temp.dayspre"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"产奶量(kg)",prop:"product"}},[a("el-input",{ref:"product",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.product,callback:function(t){e.$set(e.nutritional.temp,"product",t)},expression:"nutritional.temp.product"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"乳脂率(%)",prop:"fat"}},[a("el-input",{ref:"fat",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.fat,callback:function(t){e.$set(e.nutritional.temp,"fat",t)},expression:"nutritional.temp.fat"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"乳蛋白率(%)",prop:"pro"}},[a("el-input",{ref:"pro",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.pro,callback:function(t){e.$set(e.nutritional.temp,"pro",t)},expression:"nutritional.temp.pro"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"乳糖率(%)",prop:"lactose"}},[a("el-input",{ref:"lactose",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.lactose,callback:function(t){e.$set(e.nutritional.temp,"lactose",t)},expression:"nutritional.temp.lactose"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"温度(℃)",prop:"tem"}},[a("el-input",{ref:"tem",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:""},model:{value:e.nutritional.temp.tem,callback:function(t){e.$set(e.nutritional.temp,"tem",t)},expression:"nutritional.temp.tem"}})],1)],1)],1)],1),a("div",{staticStyle:{position:"relative",height:"50px"}},[a("el-button",{staticClass:"success",staticStyle:{position:"absolute",left:"0",right:"0",margin:"0 auto"},attrs:{disabled:e.isokDisable},on:{click:function(t){return e.assessmentData()}}},[e._v("评估")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.nutritional.listLoading,expression:"nutritional.listLoading"}],key:e.nutritional.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"60px"},attrs:{"element-loading-text":"给我一点时间",data:e.nutritional.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.nutritional.pageNum-1)*e.nutritional.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"指标","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standard))])]}}])}),a("el-table-column",{attrs:{label:"奶牛需要","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowneed))])]}}])}),a("el-table-column",{attrs:{label:"饲料提供","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedprov))])]}}])}),a("el-table-column",{attrs:{label:"实际执行","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.actprov))])]}}])}),a("el-table-column",{attrs:{label:"相差","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.diff))])]}}])}),a("el-table-column",{attrs:{label:"粗料提供","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cprov))])]}}])}),a("el-table-column",{attrs:{label:"精料提供","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.jprov))])]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.nutritional.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("ac1f"),a("1276"),a("2934")),l=a("333d"),n=(a("ed08"),a("5c96")),o=a("a78e"),c=a.n(o),d={inject:["reload"],name:"DhedFormula",components:{Pagination:l["a"]},data:function(){return{requestParams:[{name:"getFTSWList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getFTBLList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],recipeTemplateList:[],feedingFormulaList:[],livestockTypeList:[],rules:{cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},table:{getdataListParm:{name:"getFPList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{},rwList:[],isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"isEnableSupplyFeed"}},isRW1:!1,isRW2:!1,isRW3:!1,isRW4:!1,getdataListParm3:{name:"getSysoptEnable1",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}},RWLength:""},selectList:[],nutritional:{dialogFormVisible:!1,dialogStatus:"",listLoading1:!0,getdataListParm1:{name:"getnurj",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",barid:""}},disabledCowclass:!1,temp:{},tableKey:0,list:[],total2:0,listLoading2:!0,getdataListParm2:{name:"judgenurV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",cowclassid:""}}},history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFPListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}},isPtsfname:!1,getdataListParm2:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"isEnableSupplyFeed"}},isRW1:!1,isRW2:!1,isRW3:!1,isRW4:!1,getdataListParm3:{name:"getSysoptEnable1",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}},getdataDateParm:{name:"getFPMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}}},textMap:{Nutritional:"营养评估",history:"历史记录"},focusWRow:{},focusWRow2:{},focusWRow3:{},focusWRow4:{},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getIsDisplay(),this.getDownList()},methods:{getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.recipeTemplateList=t.data.getFTSWList.list,e.feedingFormulaList=t.data.getFTBLList.list,e.livestockTypeList=t.data.getCowclassListEnable.list}))},getIsDisplay:function(){var e=this;Object(r["d"])(this.table.getdataListParm2).then((function(t){console.log(t.data.list[0].inforvalue),null!==t.data.list&&(0==t.data.list[0].inforvalue?e.table.isPtsfname=!1:e.table.isPtsfname=!0)})),Object(r["d"])(this.table.getdataListParm3).then((function(t){console.log(t.data.list[0].inforvalue),null!==t.data.list?(e.table.RWLength=t.data.list[0].inforvalue,1==t.data.list[0].inforvalue?(e.table.isRW1=!0,e.table.isRW2=!1,e.table.isRW3=!1,e.table.isRW4=!1):2==t.data.list[0].inforvalue?(e.table.isRW1=!0,e.table.isRW2=!0,e.table.isRW3=!1,e.table.isRW4=!1):3==t.data.list[0].inforvalue?(e.table.isRW1=!0,e.table.isRW2=!0,e.table.isRW3=!0,e.table.isRW4=!1):4==t.data.list[0].inforvalue&&(e.table.isRW1=!0,e.table.isRW2=!0,e.table.isRW3=!0,e.table.isRW4=!0)):(e.table.isRW1=!1,e.table.isRW2=!1,e.table.isRW3=!1,e.table.isRW4=!1)})),this.getList()},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)if(e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1),void 0!=t.data.list[a].ftid&&""!=t.data.list[a].ftname||(e.$set(t.data.list[a],"ftid",""),e.$set(t.data.list[a],"ftname","")),void 0!=t.data.list[a].ptsfid&&""!=t.data.list[a].ptsfname||(e.$set(t.data.list[a],"ptsfid",""),e.$set(t.data.list[a],"ptsfname","")),void 0==t.data.list[a].ccount&&e.$set(t.data.list[a],"ccount",""),void 0==t.data.list[a].softccount&&e.$set(t.data.list[a],"softccount",""),void 0==t.data.list[a].ratio&&e.$set(t.data.list[a],"ratio",100),void 0==t.data.list[a].ccountratio&&e.$set(t.data.list[a],"ccountratio",""),void 0==t.data.list[a].r1&&e.$set(t.data.list[a],"r1",""),void 0==t.data.list[a].r2&&e.$set(t.data.list[a],"r2",""),void 0==t.data.list[a].r3&&e.$set(t.data.list[a],"r3",""),void 0==t.data.list[a].r4&&e.$set(t.data.list[a],"r4",""),void 0==t.data.list[a].w1&&e.$set(t.data.list[a],"w1",""),void 0==t.data.list[a].w2&&e.$set(t.data.list[a],"w2",""),void 0==t.data.list[a].w3&&e.$set(t.data.list[a],"w3",""),void 0==t.data.list[a].w4&&e.$set(t.data.list[a],"w4",""),void 0==t.data.list[a].supplyweight&&e.$set(t.data.list[a],"supplyweight",""),void 0==t.data.list[a].feedweight&&e.$set(t.data.list[a],"feedweight",""),void 0==t.data.list[a].Bfweight&&e.$set(t.data.list[a],"Bfweight",""),void 0==t.data.list[a].Sfweight&&e.$set(t.data.list[a],"Sfweight",""),void 0==t.data.list[a].isOneWeight&&e.$set(t.data.list[a],"isOneWeight",!1),void 0==t.data.list[a].isTwoWeight&&e.$set(t.data.list[a],"isTwoWeight",!1),void 0==t.data.list[a].isThreeWeight&&e.$set(t.data.list[a],"isThreeWeight",!1),void 0==t.data.list[a].isFourWeight&&e.$set(t.data.list[a],"isFourWeight",!1),void 0!==t.data.list[a].timesopt)for(var i=t.data.list[a].timesopt.split(","),s=0;s<i.length;s++)t.data.list[a]["r"+i[s].split(":")[0]]=i[s].split(":")[1],t.data.list[a]["w"+i[s].split(":")[0]]=i[s].split(":")[2];for(var r=0;r<t.data.list.length;r++)""==t.data.list[r].r1&&(t.data.list[r].r1=0),""==t.data.list[r].r2&&(t.data.list[r].r2=0),""==t.data.list[r].r3&&(t.data.list[r].r3=0),""==t.data.list[r].r4&&(t.data.list[r].r4=0),e.$set(t.data.list[r],"sumr",parseFloat(t.data.list[r].r1)+parseFloat(t.data.list[r].r2)+parseFloat(t.data.list[r].r3)+parseFloat(t.data.list[r].r4)),t.data.list[r].sumr=t.data.list[r].sumr.toFixed(2);e.table.list=t.data.list,console.log(e.table.list,"this.table.list"),e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},renderHeader:function(e,t){var a=t.column;t.$index;return e("div",[e("span",a.label),e("i",{class:"el-icon-unlock",ref:"el-icon-unlock",style:"margin-left:5px;"})])},headerClick:function(e,t){if(console.log(e,t),"第一班重量"==e.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>'==t.target.outerHTML?(t.target.className="el-icon-lock",this.$set(this.table.list[a],"isOneWeight",!0)):'<i class="el-icon-lock" style="margin-left: 5px;"></i>'==t.target.outerHTML&&(t.target.className="el-icon-unlock",this.$set(this.table.list[a],"isOneWeight",!1)));else if("第二班重量"==e.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>'==t.target.outerHTML?(t.target.className="el-icon-lock",this.$set(this.table.list[i],"isTwoWeight",!0)):'<i class="el-icon-lock" style="margin-left: 5px;"></i>'==t.target.outerHTML&&(t.target.className="el-icon-unlock",this.$set(this.table.list[i],"isTwoWeight",!1)));else if("第三班重量"==e.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>'==t.target.outerHTML?(t.target.className="el-icon-lock",this.$set(this.table.list[s],"isThreeWeight",!0)):'<i class="el-icon-lock" style="margin-left: 5px;"></i>'==t.target.outerHTML&&(t.target.className="el-icon-unlock",this.$set(this.table.list[s],"isThreeWeight",!1)));else if("第四班重量"==e.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>'==t.target.outerHTML?(t.target.className="el-icon-lock",this.$set(this.table.list[r],"isFourWeight",!0)):'<i class="el-icon-lock" style="margin-left: 5px;"></i>'==t.target.outerHTML&&(t.target.className="el-icon-unlock",this.$set(this.table.list[r],"isFourWeight",!1)))},changeRecipeTemplate:function(e,t){console.log(t.supplyweight,"row.supplyweight"),t.ftname=this.recipeTemplateList.find((function(t){return t.id==e})).tname,t.Sfweight=this.recipeTemplateList.find((function(t){return t.id==e})).Sfweight,t.SfweightLock=this.recipeTemplateList.find((function(t){return t.id==e})).SfweightLock,console.log(t.Sfweight,"row.Sfweight"),console.log(t.ccountratio,"系数头数"),console.log(t.SfweightLock,"SfweightLock"),console.log(t.ccount,"实际牛头数"),""!==t.Sfweight&&""!==t.ccount?this.$set(t,"ftweight",(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount)).toFixed(2)):t.ftweight="",0==this.table.isPtsfname?t.feedweight=parseFloat(t.ftweight).toFixed(2):("NaN"==t.supplyweight&&(t.supplyweight=0),console.log(t.supplyweight),""!==t.supplyweight&&""!==t.ftweight?t.feedweight=(parseFloat(t.supplyweight)+parseFloat(t.ftweight)).toFixed(2):""==t.supplyweight&&""!==t.ftweight?t.feedweight=parseFloat(t.ftweight).toFixed(2):""!==t.supplyweight&&""!==t.ftweight&&(t.feedweight=parseFloat(t.supplyweight).toFixed(2)),""!==t.ccountratio&&""!==t.ftweight&&(t.ftweight=(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount)).toFixed(2)),""!==t.Sfweight&&""!==t.ccount?this.$set(t,"ftweight",(parseFloat(t.Sfweight)*parseFloat(t.ccountratio)+parseFloat(t.SfweightLock)*parseFloat(t.ccount)).toFixed(2)):t.ftweight=""),console.log(t.supplyweight),"NaN"==t.supplyweight&&(t.supplyweight=0),""!==t.r1&&this.$set(t,"w1",(parseFloat(t.feedweight)*(parseFloat(t.r1)/100)).toFixed(2)),""!==t.r2&&this.$set(t,"w2",(parseFloat(t.feedweight)*(parseFloat(t.r2)/100)).toFixed(2)),""!==t.r3&&this.$set(t,"w3",(parseFloat(t.feedweight)*(parseFloat(t.r3)/100)).toFixed(2)),""!==t.r4&&this.$set(t,"w4",(parseFloat(t.feedweight)*(parseFloat(t.r4)/100)).toFixed(2))},changeFeedingFormula:function(e,t){console.log(e,"========="),""!==e?(console.log(456),t.ptsfname=this.feedingFormulaList.find((function(t){return t.id==e})).tname,t.BLweight=this.feedingFormulaList.find((function(t){return t.id==e})).Sfweight,t.BLSfweightLock=this.feedingFormulaList.find((function(t){return t.id==e})).SfweightLock):(console.log(123),t.ptsfname="",t.BLweight=0,t.BLSfweightLock=0),""!==t.ccountratio&&""!==t.ccount&&""!==t.ccount.BLweight&&""!==t.BLSfweightLock?this.$set(t,"supplyweight",(parseFloat(t.BLweight)*parseFloat(t.ccountratio)+parseFloat(t.BLSfweightLock)*parseFloat(t.ccount)).toFixed(2)):t.supplyweight="",0==this.table.isPtsfname?t.feedweight=parseFloat(t.ftweight):""!==t.supplyweight&&""!==t.ftweight?t.feedweight=(parseFloat(t.supplyweight)+parseFloat(t.ftweight)).toFixed(2):""==t.supplyweight&&""!==t.ftweight?t.feedweight=parseFloat(t.ftweight).toFixed(2):""!==t.supplyweight&&""==t.ftweight&&(t.feedweight=parseFloat(t.supplyweight).toFixed(2)),""!==t.r1&&this.$set(t,"w1",(parseFloat(t.feedweight)*(parseFloat(t.r1)/100)).toFixed(2)),""!==t.r2&&this.$set(t,"w2",(parseFloat(t.feedweight)*(parseFloat(t.r2)/100)).toFixed(2)),""!==t.r3&&this.$set(t,"w3",(parseFloat(t.feedweight)*(parseFloat(t.r3)/100)).toFixed(2)),""!==t.r4&&this.$set(t,"w4",(parseFloat(t.feedweight)*(parseFloat(t.r4)/100)).toFixed(2))},blurCcount:function(e){console.log(e),"-1"!==e.ftid&&""!==e.ftid&&(console.log(this.recipeTemplateList.find((function(t){return t.id==e.ftid})).Sfweight),e.Sfweight=this.recipeTemplateList.find((function(t){return t.id==e.ftid})).Sfweight,e.SfweightLock=this.recipeTemplateList.find((function(t){return t.id==e.ftid})).SfweightLock),"-1"!==e.ptsfid&&""!==e.ptsfid&&1==this.table.isPtsfname&&(e.BLweight=parseFloat(this.feedingFormulaList.find((function(t){return t.id==e.ptsfid})).Sfweight),e.BLweightLock=parseFloat(this.feedingFormulaList.find((function(t){return t.id==e.ptsfid})).SfweightLock)),""==e.ptsfid&&(e.BLweight=0,e.BLweightLock=0),""!==e.Sfweight&&""!==e.ccount&&(e.ftweight=parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount)),""!==e.ccount&&""!==e.ratio?e.ccountratio=parseFloat(e.ccount)*parseFloat(e.ratio)/100:""!==e.ratio&&""!==e.ccountratio?e.ccount=100*parseFloat(e.ccountratio)/parseFloat(e.ratio)/100:""===e.ccount&&""===e.ratio||(e.ccountratio=""),console.log(e.ccountratio,e.BLweight),"undefined"==e.BLweight&&this.$set(e,"BLweight",""),console.log("BLweight",e.BLweight),console.log("ccountratio",e.ccountratio),console.log("BLweightLock",e.BLweightLock),console.log("ccount",e.ccount),""!==e.ccountratio&&""!==e.BLweight?e.supplyweight=(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLweightLock)*parseFloat(e.ccount)).toFixed(2):(""!==e.ccountratio&&""==e.BLweight||""==e.ccountratio&&""!==e.BLweight)&&(e.supplyweight="",e.feedweight=""),""!==e.ccountratio&&""!==e.Sfweight?e.ftweight=parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount):(""!==e.ccountratio&&""==e.Sfweight||""==e.ccountratio&&""!==e.Sfweight)&&(e.ftweight="",e.feedweight=""),0==this.table.isPtsfname?e.feedweight=parseFloat(e.ftweight):(""!==e.supplyweight&&""!==e.ftweight?e.feedweight=(parseFloat(e.supplyweight)+parseFloat(e.ftweight)).toFixed(2):""!==e.supplyweight&&""==e.ftweight?e.feedweight=parseFloat(e.supplyweight).toFixed(2):""==e.supplyweight&&""!==e.ftweight&&(e.feedweight=parseFloat(e.ftweight).toFixed(2)),""!==e.ccountratio&&""!==e.ftweight&&(e.ftweight=parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount)),""!==e.ccountratio&&""!==e.BLweight&&(e.supplyweight=(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLweightLock)*parseFloat(e.ccount)).toFixed(2))),""!==e.r1&&this.$set(e,"w1",(parseFloat(e.feedweight)*(parseFloat(e.r1)/100)).toFixed(2)),""!==e.r2&&this.$set(e,"w2",(parseFloat(e.feedweight)*(parseFloat(e.r2)/100)).toFixed(2)),""!==e.r3&&this.$set(e,"w3",(parseFloat(e.feedweight)*(parseFloat(e.r3)/100)).toFixed(2)),""!==e.r4&&this.$set(e,"w4",(parseFloat(e.feedweight)*(parseFloat(e.r4)/100)).toFixed(2))},blurRatio:function(e){console.log(e,"--------------"),"-1"!==e.ftid&&""!==e.ftid&&(e.Sfweight=this.recipeTemplateList.find((function(t){return t.id==e.ftid})).Sfweight,e.SfweightLock=this.recipeTemplateList.find((function(t){return t.id==e.ftid})).SfweightLock),"-1"!==e.ptsfid&&""!==e.ptsfid&&1==this.table.isPtsfname&&(e.BLweight=parseFloat(this.feedingFormulaList.find((function(t){return t.id==e.ptsfid})).Sfweight),e.BLweightLock=parseFloat(this.feedingFormulaList.find((function(t){return t.id==e.ptsfid})).SfweightLock)),""==e.ptsfid&&(e.BLweight=0,e.BLweightLock=0),""!==e.ccount&&""!==e.ratio&&""!==e.ccountratio?e.ccountratio=parseFloat(e.ccount)*parseFloat(e.ratio)/100:""!==e.ccount&&""!==e.ccountratio?e.ratio=(100*parseFloat(e.ccountratio)/parseFloat(e.ccount)).toFixed(2):""===e.ccount&&""===e.ccountratio||(e.ratio=""),""!==e.ccountratio&&""!==e.BLweight?e.supplyweight=(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLweightLock)*parseFloat(e.ccount)).toFixed(2):(""!==e.ccountratio&&""==e.BLweight||""==e.ccountratio&&""!==e.BLweight)&&(e.supplyweight="",e.feedweight=""),""!==e.ccountratio&&""!==e.Sfweight?e.ftweight=parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount):(""!==e.ccountratio&&""==e.Sfweight||""==e.ccountratio&&""!==e.Sfweight)&&(e.ftweight="",e.feedweight=""),""!==e.supplyweight&&""!==e.ftweight?e.feedweight=(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLweightLock)*parseFloat(e.ccount)).toFixed(2):""==e.supplyweight&&""!==e.ftweight?e.feedweight=parseFloat(e.ftweight).toFixed(2):""!==e.supplyweight&&""==e.ftweight&&(e.feedweight=parseFloat(e.supplyweight).toFixed(2)),console.log(e.supplyweight,"补料重量"),console.log(e.ftweight,"配方重量"),0==this.table.isPtsfname?e.feedweight=parseFloat(e.ftweight).toFixed(2):(""!==e.supplyweight&&""!==e.ftweight?e.feedweight=(parseFloat(e.supplyweight)+parseFloat(e.ftweight)).toFixed(2):""==e.supplyweight&&""!==e.ftweight?e.feedweight=parseFloat(e.ftweight).toFixed(2):""!==e.supplyweight&&""==e.ftweight&&(e.feedweight=parseFloat(e.supplyweight).toFixed(2)),""!==e.ccountratio&&""!==e.BLweight?e.supplyweight=(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLweightLock)*parseFloat(e.ccount)).toFixed(2):(""!==e.ccountratio&&""==e.BLweight||""==e.ccountratio&&""!==e.BLweight)&&(e.supplyweight="",e.feedweight=""),""!==e.ccountratio&&""!==e.Sfweight?e.ftweight=parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount):(""!==e.ccountratio&&""==e.Sfweight||""==e.ccountratio&&""!==e.Sfweight)&&(e.ftweight="",e.feedweight="")),""!==e.r1&&this.$set(e,"w1",(parseFloat(e.feedweight)*(parseFloat(e.r1)/100)).toFixed(2)),""!==e.r2&&this.$set(e,"w2",(parseFloat(e.feedweight)*(parseFloat(e.r2)/100)).toFixed(2)),""!==e.r3&&this.$set(e,"w3",(parseFloat(e.feedweight)*(parseFloat(e.r3)/100)).toFixed(2)),""!==e.r4&&this.$set(e,"w4",(parseFloat(e.feedweight)*(parseFloat(e.r4)/100)).toFixed(2))},blurCcountratio:function(e){"-1"!==e.ftid&&""!==e.ftid&&(e.Sfweight=this.recipeTemplateList.find((function(t){return t.id==e.ftid})).Sfweight,e.SfweightLock=this.recipeTemplateList.find((function(t){return t.id==e.ftid})).SfweightLock),"-1"!==e.ptsfid&&""!==e.ptsfid&&1==this.table.isPtsfname&&(e.BLweight=parseFloat(this.feedingFormulaList.find((function(t){return t.id==e.ptsfid})).Sfweight),e.BLweightLock=parseFloat(this.feedingFormulaList.find((function(t){return t.id==e.ptsfid})).SfweightLock)),""==e.ptsfid&&(e.BLweight=0,e.BLweightLock=0),""==e.ptsfid&&(e.BLweight=0,e.BLweightLock=0),""!==e.ccountratio&&""!==e.ccount&&""!==e.ratio?e.ratio=(100*parseFloat(e.ccountratio)/parseFloat(e.ccount)).toFixed(2):""!==e.ccount&&""!==e.ratio?e.ccountratio=parseFloat(e.ccount)*parseFloat(e.ratio)/100:""!==e.ccountratio&&""!==e.ccount?e.ratio=(100*parseFloat(e.ccountratio)/parseFloat(e.ccount)).toFixed(2):""!==e.ccountratio&&""!==e.ratio&&(e.ccount=100*parseFloat(e.ccountratio)/parseFloat(e.ratio)/100),""!==e.ccountratio&&""!==e.BLweight?e.supplyweight=(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLweightLock)*parseFloat(e.ccount)).toFixed(2):(""!==e.ccountratio&&""==e.BLweight||""==e.ccountratio&&""!==e.BLweight)&&(e.supplyweight="",e.feedweight=""),""!==e.ccountratio&&""!==e.Sfweight?e.ftweight=parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount):(""!==e.ccountratio&&""==e.Sfweight||""==e.ccountratio&&""!==e.Sfweight)&&(e.ftweight="",e.feedweight=""),""!==e.supplyweight&&""!==e.ftweight?e.feedweight=(parseFloat(e.supplyweight)+parseFloat(e.ftweight)).toFixed(2):""==e.supplyweight&&""!==e.ftweight?e.feedweight=parseFloat(e.ftweight).toFixed(2):""!==e.supplyweight&&""==e.ftweight&&(e.feedweight=parseFloat(e.supplyweight).toFixed(2)),0==this.table.isPtsfname?(console.log(e),e.feedweight=parseFloat(e.ftweight).toFixed(2)):(""!==e.supplyweight&&""!==e.ftweight?e.feedweight=(parseFloat(e.supplyweight)+parseFloat(e.ftweight)).toFixed(2):""==e.supplyweight&&""!==e.ftweight?e.feedweight=parseFloat(e.ftweight).toFixed(2):""!==e.supplyweight&&""==e.ftweight&&(e.feedweight=parseFloat(e.supplyweight).toFixed(2)),""!==e.ccountratio&&""!==e.BLweight?e.supplyweight=(parseFloat(e.BLweight)*parseFloat(e.ccountratio)+parseFloat(e.BLweightLock)*parseFloat(e.ccount)).toFixed(2):(""!==e.ccountratio&&""==e.BLweight||""==e.ccountratio&&""!==e.BLweight)&&(e.supplyweight="",e.feedweight=""),""!==e.ccountratio&&""!==e.Sfweight?e.ftweight=parseFloat(e.Sfweight)*parseFloat(e.ccountratio)+parseFloat(e.SfweightLock)*parseFloat(e.ccount):(""!==e.ccountratio&&""==e.Sfweight||""==e.ccountratio&&""!==e.Sfweight)&&(e.ftweight="",e.feedweight="")),""!==e.r1&&this.$set(e,"w1",(parseFloat(e.feedweight)*(parseFloat(e.r1)/100)).toFixed(2)),""!==e.r2&&this.$set(e,"w2",(parseFloat(e.feedweight)*(parseFloat(e.r2)/100)).toFixed(2)),""!==e.r3&&this.$set(e,"w3",(parseFloat(e.feedweight)*(parseFloat(e.r3)/100)).toFixed(2)),""!==e.r4&&this.$set(e,"w4",(parseFloat(e.feedweight)*(parseFloat(e.r4)/100)).toFixed(2))},blurR:function(e){""==e.r1&&(e.r1=0),""==e.r2&&(e.r2=0),""==e.r3&&(e.r3=0),""==e.r4&&(e.r4=0),""!==e.r1&&(e.w1=parseFloat(e.feedweight)*parseFloat(e.r1)/100,e.w1=e.w1.toFixed(2)),""!==e.r2&&(e.w2=parseFloat(e.feedweight)*parseFloat(e.r2)/100,e.w2=e.w2.toFixed(2)),""!==e.r3&&(e.w3=parseFloat(e.feedweight)*parseFloat(e.r3)/100,e.w3=e.w3.toFixed(2)),""!==e.r4&&(e.w4=parseFloat(e.feedweight)*parseFloat(e.r4)/100,e.w4=e.w4.toFixed(2)),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))},focusW:function(e){console.log(e),this.focusWRow=Object.assign({},e)},focusW2:function(e){console.log(e),this.focusWRow2=Object.assign({},e)},focusW3:function(e){console.log(e),this.focusWRow3=Object.assign({},e)},focusW4:function(e){console.log(e),this.focusWRow4=Object.assign({},e)},blurW:function(e){""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.w3&&(e.w3=0),""==e.w4&&(e.w4=0),""==e.r1&&(e.r1=0),""==e.r2&&(e.r2=0),""==e.r3&&(e.r3=0),""==e.r4&&(e.r4=0),console.log(e,"=======投喂量feedweight"),4==this.table.RWLength?(1==e.isTwoWeight&&1==e.isThreeWeight&&1==e.isFourWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),this.$set(e,"sumr",parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4))),1==e.isTwoWeight&&1==e.isThreeWeight&&0==e.isFourWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2)-parseFloat(e.w3)).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isTwoWeight&&1==e.isFourWeight&&0==e.isThreeWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2)-parseFloat(e.w4)).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isTwoWeight&&1==e.isThreeWeight&&1==e.isFourWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3)-parseFloat(e.w4)).toFixed(2),e.r2=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isTwoWeight&&0==e.isThreeWeight&&0==e.isFourWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r3)+parseFloat(e.r4))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isTwoWeight&&1==e.isThreeWeight&&0==e.isFourWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(e.r4))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isTwoWeight&&0==e.isThreeWeight&&1==e.isFourWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w4))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w4))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(e.r3))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isTwoWeight&&0==e.isThreeWeight&&0==e.isFourWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w1))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w1))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w1))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),e.w3<=0&&(e.w3=0,e.r3=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2)))):3==this.table.RWLength?(1==e.isTwoWeight&&1==e.isThreeWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),0==e.isTwoWeight&&1==e.isThreeWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3)).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),1==e.isTwoWeight&&0==e.isThreeWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2)).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),0==e.isTwoWeight&&0==e.isThreeWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w1))*parseFloat(e.r2)/(parseFloat(e.r2)+parseFloat(e.r3))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w1))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(e.r3))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),e.w2<=0&&(e.w2=0,e.r2=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2)))):2==this.table.RWLength&&(""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.r1&&(e.r1=0),""==e.r2&&(e.r2=0),0==e.isTwoWeight?(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=(parseFloat(e.feedweight)-parseFloat(e.w1)).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)).toFixed(2))):(e.r1=parseFloat(e.w1)/parseFloat(e.feedweight)*100,this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)).toFixed(2))))},blurW2:function(e){""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.w3&&(e.w3=0),""==e.w4&&(e.w4=0),""==e.r1&&(e.r1=0),""==e.r2&&(e.r2=0),""==e.r3&&(e.r3=0),""==e.r4&&(e.r4=0),console.log(e,"=======投喂量feedweight"),4==this.table.RWLength?(1==e.isOneWeight&&1==e.isThreeWeight&&1==e.isFourWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isOneWeight&&1==e.isThreeWeight&&0==e.isFourWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2)-parseFloat(e.w3)).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isOneWeight&&1==e.isFourWeight&&0==e.isThreeWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2)-parseFloat(e.w4)).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&1==e.isThreeWeight&&1==e.isFourWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=(parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w3)-parseFloat(e.w4)).toFixed(2),e.r1=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isOneWeight&&0==e.isThreeWeight&&0==e.isFourWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r3)+parseFloat(e.r4))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&1==e.isThreeWeight&&0==e.isFourWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w3))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w3))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r1)+parseFloat(e.r2))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&0==e.isThreeWeight&&1==e.isFourWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w4))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r3))).toFixed(2),e.r1=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w4))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r1)+parseFloat(e.r3))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&0==e.isThreeWeight&&0==e.isFourWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w2))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w2))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w2))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),e.w3<=0&&(e.w3=0,e.r3=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2)))):3==this.table.RWLength?(1==e.isOneWeight&&1==e.isThreeWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),0==e.isOneWeight&&1==e.isThreeWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=(parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w3)).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),1==e.isOneWeight&&0==e.isThreeWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2)).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),0==e.isOneWeight&&0==e.isThreeWeight&&(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w2))*parseFloat(e.r1)/(parseFloat(e.r1)+parseFloat(e.r3))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w2))*parseFloat(e.r3)/(parseFloat(this.focusWRow2.r1)+parseFloat(e.r3))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2)))):2==this.table.RWLength&&(0==e.isTwoWeight?(e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=parseFloat(e.feedweight)-parseFloat(e.w2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)).toFixed(2))):(e.r2=parseFloat(e.w2)/parseFloat(e.feedweight)*100,this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)).toFixed(2))))},blurW3:function(e){""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.w3&&(e.w3=0),""==e.w4&&(e.w4=0),""==e.r1&&(e.r1=0),""==e.r2&&(e.r2=0),""==e.r3&&(e.r3=0),""==e.r4&&(e.r4=0),console.log(e,"=======投喂量feedweight"),4==this.table.RWLength?(1==e.isOneWeight&&1==e.isTwoWeight&&1==e.isFourWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isOneWeight&&1==e.isTwoWeight&&0==e.isFourWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2)-parseFloat(e.w3)).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&1==e.isTwoWeight&&1==e.isFourWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=(parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w3)-parseFloat(e.w4)).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isTwoWeight&&1==e.isOneWeight&&1==e.isFourWeight&&(e.r3=parseFloat(e.w3)/parseFloat(e.feedweight)*100,e.w2=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3)-parseFloat(e.w4)).toFixed(2),e.r2=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isTwoWeight&&0==e.isOneWeight&&0==e.isFourWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w3))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w3))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r1)+parseFloat(e.r4))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isTwoWeight&&1==e.isOneWeight&&0==e.isFourWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r2)+parseFloat(e.r4))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isTwoWeight&&0==e.isOneWeight&&1==e.isFourWeight&&(e.r3=parseFloat(e.w3)/parseFloat(e.feedweight)*100,e.w2=((parseFloat(e.feedweight)-parseFloat(e.w3)-parseFloat(e.w4))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w3)-parseFloat(e.w4))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r1)+parseFloat(e.r2))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isTwoWeight&&0==e.isOneWeight&&0==e.isFourWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w3))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w3))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w4=((parseFloat(e.feedweight)-parseFloat(e.w3))*parseFloat(e.r4)/(parseFloat(this.focusWRow.r1)+parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r4))).toFixed(2),e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),e.w2<=0&&(e.w2=0,e.r2=0),e.w4<=0&&(e.w4=0,e.r4=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2)))):3==this.table.RWLength&&(1==e.isOneWeight&&1==e.isTwoWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),0==e.isOneWeight&&1==e.isTwoWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=(parseFloat(e.feedweight)-parseFloat(e.w2)-parseFloat(e.w3)).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),1==e.isOneWeight&&0==e.isTwoWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3)).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))),0==e.isOneWeight&&0==e.isTwoWeight&&(e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w3))*parseFloat(e.r1)/(parseFloat(e.r1)+parseFloat(e.r2))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w3))*parseFloat(e.r2)/(parseFloat(this.focusWRow3.r1)+parseFloat(e.r2))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),e.w2<=0&&(e.w2=0,e.r2=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)).toFixed(2))))},blurW4:function(e){""==e.w1&&(e.w1=0),""==e.w2&&(e.w2=0),""==e.w3&&(e.w3=0),""==e.w4&&(e.w4=0),""==e.r1&&(e.r1=0),""==e.r2&&(e.r2=0),""==e.r3&&(e.r3=0),""==e.r4&&(e.r4=0),console.log(e,"=======投喂量feedweight"),4==this.table.RWLength&&(1==e.isOneWeight&&1==e.isTwoWeight&&1==e.isThreeWeight&&(e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&1==e.isTwoWeight&&1==e.isThreeWeight&&(e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=(parseFloat(e.feedweight)-parseFloat(e.w4)-parseFloat(e.w2)-parseFloat(e.w3)).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isOneWeight&&1==e.isTwoWeight&&0==e.isThreeWeight&&(e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w2)-parseFloat(e.w4)).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isOneWeight&&0==e.isTwoWeight&&1==e.isThreeWeight&&(e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=(parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w3)-parseFloat(e.w4)).toFixed(2),e.r2=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&1==e.isTwoWeight&&0==e.isThreeWeight&&(e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w4)-parseFloat(e.w2))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w4)-parseFloat(e.w2))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r3)+parseFloat(e.r1))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w3<=0&&(e.w3=0,e.r3=0),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&0==e.isTwoWeight&&1==e.isThreeWeight&&(e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w4)-parseFloat(e.w3))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r1))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w4)-parseFloat(e.w3))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r2)+parseFloat(e.r1))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),e.w1<=0&&(e.w1=0,e.r1=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),1==e.isOneWeight&&0==e.isTwoWeight&&0==e.isThreeWeight&&(e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w4))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w1)-parseFloat(e.w4))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(e.r3))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w2<=0&&(e.w2=0,e.r2=0),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))),0==e.isOneWeight&&0==e.isTwoWeight&&0==e.isThreeWeight&&(e.r4=(parseFloat(e.w4)/parseFloat(e.feedweight)*100).toFixed(2),e.w1=((parseFloat(e.feedweight)-parseFloat(e.w4))*parseFloat(e.r1)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),e.r1=(parseFloat(e.w1)/parseFloat(e.feedweight)*100).toFixed(2),e.w2=((parseFloat(e.feedweight)-parseFloat(e.w4))*parseFloat(e.r2)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),e.r2=(parseFloat(e.w2)/parseFloat(e.feedweight)*100).toFixed(2),e.w3=((parseFloat(e.feedweight)-parseFloat(e.w4))*parseFloat(e.r3)/(parseFloat(this.focusWRow.r2)+parseFloat(this.focusWRow.r3)+parseFloat(this.focusWRow.r1))).toFixed(2),e.r3=(parseFloat(e.w3)/parseFloat(e.feedweight)*100).toFixed(2),e.w1<=0&&(e.w1=0,e.r1=0),e.w2<=0&&(e.w2=0,e.r2=0),e.w3<=0&&(e.w3=0,e.r3=0),this.$set(e,"sumr",(parseFloat(e.r1)+parseFloat(e.r2)+parseFloat(e.r3)+parseFloat(e.r4)).toFixed(2))))},handleUpdate:function(e){console.log(e);for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.ftid=String(e.ftid),"-1"==e.ptsfid&&(e.ptsfid=""),e.ptsfid=String(e.ptsfid),this.table.temp.ftid=e.ftid,this.table.temp.ftname=e.ftname,this.table.temp.ptsfid=e.ptsfid,this.table.temp.ptsfname=e.ptsfname},updateData:function(e){var t=this;console.log(e),"NaN"==e.r1&&this.$set(e,"r1",0),"NaN"==e.r2&&this.$set(e,"r2",0),"NaN"==e.r3&&this.$set(e,"r3",0),"NaN"==e.r4&&this.$set(e,"r4",0),"NaN"==e.w1&&this.$set(e,"w1",0),"NaN"==e.w2&&this.$set(e,"w2",0),"NaN"==e.w3&&this.$set(e,"w3",0),"NaN"==e.w4&&this.$set(e,"w4",0),console.log(e);for(var a=[],i=1;i<=this.table.RWLength;i++){var s={};s["times"]=i,s["pastureid"]=e.pastureid,s["barid"]=e.barid,s["cowcount"]=e.ccount,s["ccountradio"]=e.ccountradio,s["ptid"]=e.ftid,""!==e.ptsfid?s["ptsid"]=e.ptsfid:s["ptsid"]="-1",s["weight"]=e["w"+i],s["tratio"]=Math.round(e["r"+i]),a.push(s)}if((0==this.table.isPtsfname||""==e.ptsfid)&&(e.ptsfid="-1",e.ptsfname=""),""==e.supplyweight&&(e.supplyweight="0"),0==this.table.isPtsfname&&(e.supplyweight="0"),console.log(e,"============"),this.$set(e,"ratio",Math.floor(100*parseFloat(e.ratio))/100),this.$set(e,"ccountratio",Math.floor(100*parseFloat(e.ccountratio))/100),e.ratio=String(e.ratio),e.ccountratio=String(e.ccountratio),e.sumr=Math.round(e.sumr),this.table.rwList=a,console.log("点击了编辑保存",e),this.table.temp.pastureid=e.pastureid,this.table.temp.id=e.id,this.table.temp.barname=e.barname,this.table.temp.barid=e.barid,this.table.temp.ccount=e.ccount,this.table.temp.ratio=e.ratio,this.table.temp.ccountratio=e.ccountratio,this.table.temp.ftid=e.ftid,this.table.temp.ftname=e.ftname,this.table.temp.ptsfid=e.ptsfid,this.table.temp.ptsfname=e.ptsfname,this.table.temp.ftweight=e.ftweight,this.table.temp.supplyweight=e.supplyweight,this.table.temp.feedweight=e.feedweight,this.table.temp.owner=e.owner,this.table.temp.sumr=e.sumr,""==e.softccount&&(e.softccount=0),""==e.r1&&(e.r1=0),""==e.r2&&(e.r2=0),""==e.r3&&(e.r3=0),""==e.r4&&(e.r4=0),""==e.w1&&(e.w1=0),""!=e.w2&&NaN!=e.w4||(e.w2=0),""!=e.w3&&NaN!=e.w4||(e.w3=0),""!=e.w4&&NaN!=e.w4||(e.w4=0),console.log(e,"==========="),this.table.temp.softccount=e.softccount,this.table.temp.r1=Math.round(e.r1),this.table.temp.r2=Math.round(e.r2),this.table.temp.r3=Math.round(e.r3),this.table.temp.r4=Math.round(e.r4),this.table.temp.w1=e.w1,this.table.temp.w2=e.w2,this.table.temp.w3=e.w3,this.table.temp.w4=e.w4,""==this.table.temp.ccount&&""==this.table.temp.ratio&&""==this.table.temp.ccountratio&&""==this.table.temp.ftid)return this.$message({type:"error",message:"实际牛头数/系数/系数头数/配方模版不能为空",duration:2e3}),!1;if(""==this.table.temp.ratio&&""==this.table.temp.ccountratio&&""==this.table.temp.ftid)return this.$message({type:"error",message:"系数/系数头数/配方模版不能为空",duration:2e3}),!1;if(""==this.table.temp.ccountratio&&""==this.table.temp.ftid)return this.$message({type:"error",message:"系数头数/配方模版不能为空",duration:2e3}),!1;if(""==this.table.temp.ccount)return this.$message({type:"error",message:"实际牛头数不能为空",duration:2e3}),!1;if(""==this.table.temp.ratio)return this.$message({type:"error",message:"系数不能为空",duration:2e3}),!1;if(""==this.table.temp.ccountratio)return this.$message({type:"error",message:"系数头数不能为空",duration:2e3}),!1;if(""==this.table.temp.ftid)return this.$message({type:"error",message:"配方模版不能为空",duration:2e3}),!1;var l=/^[1-9]\d*$/;if(!l.test(parseFloat(this.table.temp.ccount)))return this.$message({type:"error",message:"实际牛头数请输入正整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"updateBigFP",type:"e",parammaps:{pastureid:e.pastureid,id:e.id,barname:e.barname,barid:e.barid,softccount:e.softccount,ccount:e.ccount,ratio:e.ratio,ccountratio:e.ccountratio,ftid:e.ftid,ftname:e.ftname,ptsfid:e.ptsfid,ptsfname:e.ptsfname,ftweight:e.ftweight,supplyweight:e.supplyweight,feedweight:e.feedweight,owner:e.owner,sumr:e.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:e.barname,barid:"@insertSpotList.barid",times:"@insertSpotList.times",tratio:"@insertSpotList.tratio",weight:"@insertSpotList.weight",cowcount:"@insertSpotList.cowcount",ccountradio:e.ccountratio,ptid:"@insertSpotList.ptid",ptsid:"@insertSpotList.ptsid",feedweight:e.feedweight,supplyweight:e.supplyweight,ratio:e.ratio}},this.requestParam.data[2]={name:"updateLPPbyFPChange",type:"e",parammaps:{pastureid:e.pastureid,fpid:e.id}},Object(r["b"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList())}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isUpdate=!0,e.isUpdateSave=!1,this.getList(),this.reload()},cellClick:function(e,t,a){console.log(t)},handleSelect:function(e){console.log("勾选数据",e),this.selectList=e},handleNutritional:function(){if(console.log("点击了营养评估"),1!==this.selectList.length)return this.$message({type:"error",message:"请选择一条栏舍信息进行营养评估",duration:2e3}),!1;console.log(this.nutritional.temp),this.nutritional.dialogStatus="Nutritional",this.nutritional.dialogFormVisible=!0,this.nutritional.getdataListParm1.parammaps.pastureid=this.selectList[0].pastureid,this.nutritional.getdataListParm1.parammaps.barid=this.selectList[0].barid,this.getNutritionalList()},getNutritionalList:function(){var e=this;this.nutritional.listLoading1=!0,Object(r["d"])(this.nutritional.getdataListParm1).then((function(t){console.log("评估上方数据",t.data.list),null!==t.data.list?(t.data.list[0].cowclassid=String(t.data.list[0].cowclassid),e.nutritional.temp=t.data.list[0],e.nutritional.disabledCowclass=!0):(e.nutritional.temp=[],e.nutritional.disabledCowclass=!1),setTimeout((function(){e.nutritional.listLoading=!1}),100)}))},assessmentData:function(){var e=this;console.log("评估保存"),this.$refs["temp"].validate((function(t){t&&(e.nutritional.getdataListParm2.parammaps.pastureid=e.selectList[0].pastureid,e.nutritional.getdataListParm2.parammaps.cowclassid=e.nutritional.temp.cowclassid,e.getNutritionalList2())}))},getNutritionalList2:function(){var e=this;this.nutritional.listLoading2=!0,Object(r["d"])(this.nutritional.getdataListParm2).then((function(t){console.log("评估下方数据",t.data.list),null!==t.data.list?(e.nutritional.list=t.data.list,e.nutritional.pageNum=t.data.pageNum,e.nutritional.pageSize=t.data.pageSize,e.nutritional.total=t.data.total):e.nutritional.list=[],setTimeout((function(){e.nutritional.listLoading2=!1}),100)}))},handleHistoryRecords:function(){console.log("点击了历史记录"),this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var e=this;Object(r["d"])(this.history.getdataDateParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.history.getdataListParm.parammaps.date=t.data.list[0].maxdate,e.getHistoryIsDisplay()):e.history.getdataListParm.parammaps.date=""}))},getHistoryIsDisplay:function(){var e=this;Object(r["d"])(this.table.getdataListParm2).then((function(t){console.log(t.data.list[0].inforvalue),null!==t.data.list&&(0==t.data.list[0].inforvalue?e.table.isPtsfname=!1:e.table.isPtsfname=!0)})),Object(r["d"])(this.table.getdataListParm3).then((function(t){null!==t.data.list?1==t.data.list[0].inforvalue?(e.history.isRW1=!0,e.history.isRW2=!1,e.history.isRW3=!1,e.history.isRW4=!1):2==t.data.list[0].inforvalue?(e.history.isRW1=!0,e.history.isRW2=!0,e.history.isRW3=!1,e.history.isRW4=!1):3==t.data.list[0].inforvalue?(e.history.isRW1=!0,e.history.isRW2=!0,e.history.isRW3=!0,e.history.isRW4=!1):4==t.data.list[0].inforvalue&&(e.history.isRW1=!0,e.history.isRW2=!0,e.history.isRW3=!0,e.history.isRW4=!0):(e.history.isRW1=!1,e.history.isRW2=!1,e.history.isRW3=!1,e.history.isRW4=!1)})),this.getHistoryList()},getHistoryList:function(){var e=this;this.history.listLoading=!0,Object(r["d"])(this.history.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){console.log("table数据",t.data.list);for(var a=0;a<t.data.list.length;a++)if(e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1),void 0!=t.data.list[a].ftid&&""!=t.data.list[a].ftname||(e.$set(t.data.list[a],"ftid",""),e.$set(t.data.list[a],"ftname","")),void 0!=t.data.list[a].ptsfid&&""!=t.data.list[a].ptsfname||(e.$set(t.data.list[a],"ptsfid",""),e.$set(t.data.list[a],"ptsfname","")),void 0==t.data.list[a].ccount&&e.$set(t.data.list[a],"ccount",""),void 0==t.data.list[a].ratio&&e.$set(t.data.list[a],"ratio","100"),void 0==t.data.list[a].ccountratio&&e.$set(t.data.list[a],"ccountratio",""),void 0==t.data.list[a].r1&&e.$set(t.data.list[a],"r1",""),void 0==t.data.list[a].r2&&e.$set(t.data.list[a],"r2",""),void 0==t.data.list[a].r3&&e.$set(t.data.list[a],"r3",""),void 0==t.data.list[a].r4&&e.$set(t.data.list[a],"r4",""),void 0==t.data.list[a].w1&&e.$set(t.data.list[a],"w1",""),void 0==t.data.list[a].w2&&e.$set(t.data.list[a],"w2",""),void 0==t.data.list[a].w3&&e.$set(t.data.list[a],"w3",""),void 0==t.data.list[a].w4&&e.$set(t.data.list[a],"w4",""),void 0==t.data.list[a].feedweight&&e.$set(t.data.list[a],"feedweight",""),void 0==t.data.list[a].Bfweight&&e.$set(t.data.list[a],"Bfweight",""),void 0==t.data.list[a].Sfweight&&e.$set(t.data.list[a],"Sfweight",""),void 0!==t.data.list[a].timesopt)for(var i=t.data.list[a].timesopt.split(","),s=0;s<i.length;s++)t.data.list[a]["r"+i[s].split(":")[0]]=i[s].split(":")[1],t.data.list[a]["w"+i[s].split(":")[0]]=i[s].split(":")[2];e.history.list=t.data.list;for(var r=0;r<t.data.list.length;r++)""==t.data.list[r].r1&&(t.data.list[r].r1=0),""==t.data.list[r].r2&&(t.data.list[r].r2=0),""==t.data.list[r].r3&&(t.data.list[r].r3=0),""==t.data.list[r].r4&&(t.data.list[r].r4=0),e.$set(t.data.list[r],"sumr",Math.round(parseFloat(t.data.list[r].r1)+parseFloat(t.data.list[r].r2)+parseFloat(t.data.list[r].r3)+parseFloat(t.data.list[r].r4)));e.history.pageNum=t.data.pageNum,e.history.pageSize=t.data.pageSize,e.history.total=t.data.total}else e.history.list=[];setTimeout((function(){e.history.listLoading=!1}),100)}))},changeDate:function(){this.getHistoryList()},handleApplication:function(){var e=this;console.log("点击了应用"),n["MessageBox"].confirm("是否确认将"+this.history.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="applyFPdate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=c.a.get("pastureid"),e.requestParam.parammaps.date=e.history.getdataListParm.parammaps.date,Object(r["g"])(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.getHistoryIsDisplay(),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消应用"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},m=d,p=(a("01f1"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"8fca69bc",null);t["default"]=u.exports},"26c4":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"26e6":function(e,t,a){"use strict";var i=a("84f1"),s=a.n(i);s.a},"26fc":function(e,t,a){e.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"27f2":function(e,t,a){"use strict";var i=a("72cc"),s=a.n(i);s.a},2905:function(e,t,a){"use strict";var i=a("7411"),s=a.n(i);s.a},2934:function(e,t,a){"use strict";a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return r})),a.d(t,"k",(function(){return l})),a.d(t,"u",(function(){return n})),a.d(t,"f",(function(){return o})),a.d(t,"s",(function(){return c})),a.d(t,"e",(function(){return d})),a.d(t,"g",(function(){return m})),a.d(t,"c",(function(){return p})),a.d(t,"p",(function(){return u})),a.d(t,"q",(function(){return h})),a.d(t,"m",(function(){return g})),a.d(t,"w",(function(){return f})),a.d(t,"i",(function(){return b})),a.d(t,"n",(function(){return v})),a.d(t,"v",(function(){return w})),a.d(t,"r",(function(){return y})),a.d(t,"b",(function(){return L})),a.d(t,"o",(function(){return x})),a.d(t,"l",(function(){return S})),a.d(t,"h",(function(){return k})),a.d(t,"t",(function(){return _})),a.d(t,"j",(function(){return P}));a("caad"),a("d81d"),a("d3b7"),a("2532"),a("3ca3"),a("ddb0"),a("2b3d");var i=a("b775");a("ed08");function s(e){return Object(i["a"])({url:"/authdata/GetDataByName",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/authdata/exesql",method:"post",data:e})}function l(e){return Object(i["a"])({url:"/authdata/Dashboards",method:"post",data:e})}function n(e){return Object(i["a"])({url:"/authdata/Updatedashboard",method:"post",data:e})}function o(e){return Object(i["a"])({url:"/authdata/GetReportform",method:"post",data:e})}function c(e,t){return Object(i["a"])({url:"/authdata/"+t,method:"post",data:e})}function d(e){return Object(i["a"])({url:"/authdata/GetDataByNames",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/authdata/PostDataByName",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/authdata/GetArrList",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/authdata/getproductareas",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/authdata/getpublishprice",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/authdata/getAveragePrice",method:"post",data:e})}function f(e){return Object(i["a"])({url:"/authdata/updateRoleArea",method:"post",data:e})}function b(e){return Object(i["a"])({url:"/authdata/attentionProduce",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/authdata/getQuotationChart",method:"post",data:e})}function w(e){return Object(i["a"])({url:"/authdata/updatePublishPrice",method:"post",data:e})}function y(e){return Object(i["a"])({url:"/authdata/productinfo",method:"post",data:e})}function L(e){return Object(i["a"])({url:"/authdata/ExecDataByConfig",method:"post",data:e})}function x(e){return Object(i["a"])({url:"/authdata/GetRecuDataByName",method:"post",data:e})}function S(e,t){e.data.includes("Duplicate")?t({title:"失败",message:"不可以录入重复数据",type:"error",duration:2e3}):t({title:"失败",message:"数据存在错误,请校验好重新录入,不可以录入数据",type:"error",duration:2e3})}function k(e){return Object(i["a"])({url:"/authdata/UpdateDataRelation",method:"post",data:e})}function _(e,t,a,i){for(var s=[],r={},l=t,n=a,o=i,c=0,d=0,m=e.length;c<m;c++)r[e[c][l]]=e[c];for(;d<m;d++){var p=e[d],u=r[p[n]];u?(!u[o]&&(u[o]=[]),u[o].push(p)):s.push(p)}return s}function P(e,t){for(var a=0;a<e.length;a++)if(e[a].path===t&&1===e[a].editbutton)return!0;return!1}},"2a3d":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"2a61":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增字段")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"字段名称",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.fieldName,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"fieldName",t)},expression:"tableObj.getdataListParm.parammaps.fieldName"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),e._l(e.tableObj.titleList,(function(e,t){return a("el-table-column",{attrs:{label:e.label,prop:e.name,"min-width":"150px",align:"center"}})})),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),a("el-button",{staticClass:"miniEdit",attrs:{icon:"el-icon-edit-outline"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDelete",attrs:{icon:"el-icon-delete"},on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")])]}}])})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",e._l(e.createArr,(function(t,i){return a("el-col",{key:i,attrs:{span:12}},["text"===t.type?a("el-form-item",{attrs:{label:t.title,prop:t.name}},[a("el-input",{ref:t.name,refInFor:!0,staticClass:"filter-item",attrs:{maxlength:"11",placeholder:t.placeholder},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}})],1):e._e(),"select"===t.type?a("el-form-item",{attrs:{label:t.title,prop:t.name}},[a("el-select",{ref:"item.value",refInFor:!0,staticClass:"filter-item",attrs:{filterable:"",placeholder:"请选择字段格式"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}},e._l(t.pickerArr,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),"switch"===t.type?a("el-form-item",{attrs:{label:t.title,prop:t.name}},[a("el-switch",{model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}})],1):e._e(),"date"===t.type?a("el-form-item",{attrs:{label:t.title,prop:t.name}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}})],1):e._e()],1)})),1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniEdit",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c=a("3de8"),d=a("5c96"),m={name:"GlobalTemplate",components:{Pagination:o["a"],TreeSelect:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],url_add_table:"modifyTelvisit",url_edit_table:"modifyTelvisit",url_del_table:"modifyTelvisit",requestParams:[],formatNameList:[{id:"字符1",name:"字符"},{id:"日期1",name:"日期"},{id:"整数1",name:"整数"},{id:"数字1",name:"数字"}],fieldTypeList:[{id:"字符1",name:"字符"},{id:"日期1",name:"日期"},{id:"整数1",name:"整数"},{id:"数字1",name:"数字"}],compTypeList:[{id:"单行文本1",name:"单行文本"},{id:"多行文本1",name:"下拉选择框"},{id:"单选框组1",name:"单选框组"},{id:"多选框组1",name:"多选框组"},{id:"日期选择器1",name:"日期选择器"},{id:"时间选择器1",name:"时间选择器"}],tableObj:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{fieldClassId:"",fieldName:"",formatId:""}},tableKey:0,pageNum:1,pageSize:10,total:0,titleList:[{label:"字段1",name:"field"},{label:"日期1",name:"date"},{label:"长度",name:"length"},{label:"单位",name:"unit"}],list:[{field:"字段1的值",date:"2022-12-1",length:"2",unit:"2",id:1},{field:"字段1的值2",date:"2021-12-1",length:"3",unit:"3",id:1}],listLoading:!1,temp:{}},create:{dialogFormVisible:!0,dialogStatus:"create",temp:{},rules:{}},createArr:[{type:"text",name:"text1",title:"文本框",value:"文本框的值",placeholder:"请输入文本框内容!"},{type:"select",name:"select1",title:"字段名",value:1,valuename:"下拉1",pickerArr:[{name:"下拉1",id:1},{name:"下拉2",id:2}]},{type:"switch",name:"switch1",title:"按钮",value:!1},{type:"date",name:"switch1",title:"按钮",value:!1}],textMap:{create:"新增",see:"查看",update:"编辑"},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{getButtons:function(){var e="telephoneFollow",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){Object(r["e"])(this.requestParams).then((function(e){}))},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm),Object(r["d"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):e.tableObj.list=[],setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),this.tableObj.getdataListParm.offset=1},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.customerName="",this.tableObj.getdataListParm.parammaps.telVisitCode="",this.tableObj.getdataListParm.parammaps.customerId="",this.tableObj.getdataListParm.parammaps.groupId="",this.tableObj.getdataListParm.parammaps.visiterId="",this.tableObj.getdataListParm.parammaps.receiverName="",this.tableObj.getdataListParm.parammaps.typeIds="",this.tableObj.getdataListParm.parammaps.statusId="",this.tableObj.getdataListParm.parammaps.beginDate="",this.tableObj.getdataListParm.parammaps.endDate="",this.tableObj.getdataListParm.parammaps.inputDatetime="",this.tableObj.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={fieldClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1}},handleEnableChange:function(){console.log("点击了是否启用")},popoverHide:function(e,t){console.log("树形多级选择",e,t),this.create.temp.fieldClassId=t.id,this.tableObj.getdataListParm.parammaps.fieldClassId=t.id},handleCreate:function(){console.log("新增=====>"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){console.log("新增保存参数:",this.createArr)},handleSee:function(e){console.log("查看=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("编辑=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;console.log("编辑保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateTelvisit",resultmaps:{list:[e.create.temp]},children:[{name:"updateTelvisit",type:"e",parammaps:{tdate:"@updateTelvisit.tdate",visiterId:"@updateTelvisit.visiterId",receiverId:"@updateTelvisit.receiverId",receiverId2:"@insertContactsNew.LastInsertId",receiverTel:"@updateTelvisit.receiverTel",typeIds:"@updateTelvisit.typeIds",statusName:"@updateTelvisit.statusName",remark:"@updateTelvisit.remark",content:"@updateTelvisit.content",nextId:"@insertTelvisit.nextId",receiverChoose:"@insertTelvisit.receiverChoose",id:"@insertTelvisit.id"}}]}]};console.log("编辑保存发送参数 ",a),0==e.create.temp.typeIdsArr.length?e.$notify({title:"失败",message:"回访类型必选!"+response.data,type:"error",duration:2e3}):Object(r["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;console.log("删除=====>",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:t.url_del_table,parammaps:{id:e.id}};Object(r["g"])(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.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("c5f5"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"6da8cea2",null);t["default"]=h.exports},"2a8e":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增指标")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"指标名称",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.targetName,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"targetName",t)},expression:"tableObj.getdataListParm.parammaps.targetName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"指标分类",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.targetClassId,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"targetClassId",t)},expression:"tableObj.getdataListParm.parammaps.targetClassId"}},e._l(e.targetClassList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("el-row",{attrs:{gutter:20}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"指标名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.targetName))])]}}])}),a("el-table-column",{attrs:{label:"指标分类","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.targetClass))])]}}])}),a("el-table-column",{attrs:{label:"指标颗粒度","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.targetParticleSize))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),a("el-button",{staticClass:"miniEdit",attrs:{icon:"el-icon-edit-outline"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDelete",attrs:{icon:"el-icon-delete"},on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)]),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:16}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj3.listLoading,expression:"tableObj3.listLoading"}],key:e.tableObj3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj3.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj3.pageNum-1)*e.tableObj3.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"事件名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eventName))])]}}])}),a("el-table-column",{attrs:{label:"触发操作","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.triggerOperation))])]}}])}),a("el-table-column",{attrs:{label:"累加上期","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cumPrePeriod))])]}}])}),a("el-table-column",{attrs:{label:"变更方法","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changeMethod))])]}}])}),a("el-table-column",{attrs:{label:"变更值","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.changevalue))])]}}])}),a("el-table-column",{attrs:{label:"开始日期","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.startDate))])]}}])}),a("el-table-column",{attrs:{label:"结束日期","min-width":"150px",align:"center"}},[a("el-table-column",{attrs:{label:"结束条件","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.endCondition))])]}}])}),a("el-table-column",{attrs:{label:"日期类型","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dateType))])]}}])}),a("el-table-column",{attrs:{label:"天数","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.day))])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj2.total>=0,expression:"tableObj2.total>=0"}],attrs:{total:e.tableObj2.total,page:e.tableObj2.getdataListParm.offset,limit:e.tableObj2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj2.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)]),a("el-col",{attrs:{span:8}},[a("el-button",{staticClass:"miniAdd"},[e._v("添加条件")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj3.listLoading,expression:"tableObj3.listLoading"}],key:e.tableObj3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj3.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj3.pageNum-1)*e.tableObj3.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"字段名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fieldName))]):e._e(),t.row.Edit?a("el-select",{ref:"fieldNameId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.row.eventNameId,callback:function(a){e.$set(t.row,"eventNameId",a)},expression:"scope.row.eventNameId"}},e._l(e.eventTableObj.fieldNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.condition))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.condition,callback:function(a){e.$set(t.row,"condition",a)},expression:"scope.row.condition"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"限制值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.limitValue))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.limitValue,callback:function(a){e.$set(t.row,"limitValue",a)},expression:"scope.row.limitValue"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_table3_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.create_table3_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_table3(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_table3(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_table3_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_table3_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj3.total>=0,expression:"tableObj3.total>=0"}],attrs:{total:e.tableObj3.total,page:e.tableObj3.getdataListParm.offset,limit:e.tableObj3.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj3.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj3.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"指标名称:",prop:"processName"}},[a("el-input",{ref:"processName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入指标名称",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.processName,callback:function(t){e.$set(e.create.temp,"processName",t)},expression:"create.temp.processName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"流程说明:",prop:"processExplain"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"指标分类",disabled:"see"==e.create.dialogStatus,clearable:""},model:{value:e.create.temp.targetClassId,callback:function(t){e.$set(e.create.temp,"targetClassId",t)},expression:"create.temp.targetClassId"}},e._l(e.create.targetClassList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"指标颗粒度:",prop:"targetParticleSize"}},[a("el-input",{ref:"targetParticleSize",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入指标颗粒度",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.targetParticleSize,callback:function(t){e.$set(e.create.temp,"targetParticleSize",t)},expression:"create.temp.targetParticleSize"}})],1)],1)],1),a("el-row",[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"事件管理",name:"first"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_eventTable}},[e._v("添加事件")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.eventTableObj.listLoading,expression:"eventTableObj.listLoading"}],key:e.eventTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.eventTableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.eventTableObj.pageNum-1)*e.eventTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"事件名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.eventName))]):e._e(),t.row.Edit?a("el-select",{ref:"eventNameId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.row.eventNameId,callback:function(a){e.$set(t.row,"eventNameId",a)},expression:"scope.row.eventNameId"}},e._l(e.eventTableObj.eventTableList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"触发操作","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.triggerOperation))]):e._e(),t.row.Edit?a("el-select",{ref:"triggerOperationId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.row.triggerOperationId,callback:function(a){e.$set(t.row,"triggerOperationId",a)},expression:"scope.row.triggerOperationId"}},e._l(e.eventTableObj.triggerOperationList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"累加上期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.cumPrePeriod))]):e._e(),t.row.Edit?a("el-select",{ref:"cumPrePeriodId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.row.cumPrePeriodId,callback:function(a){e.$set(t.row,"cumPrePeriodId",a)},expression:"scope.row.cumPrePeriodId"}},e._l(e.eventTableObj.cumPrePeriodList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"变更方法","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.changeMethod))]):e._e(),t.row.Edit?a("el-select",{ref:"cumPrePeriodId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.row.changeMethodId,callback:function(a){e.$set(t.row,"changeMethodId",a)},expression:"scope.row.changeMethodId"}},e._l(e.eventTableObj.changeMethodList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"变更值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.changevalue))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.changevalue,callback:function(a){e.$set(t.row,"changevalue",a)},expression:"scope.row.changevalue"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"开始日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.startDate))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.startDate,callback:function(a){e.$set(t.row,"startDate",a)},expression:"scope.row.startDate"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"结束日期",align:"center"}},[a("el-table-column",{attrs:{label:"结束条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.endCondition))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.endCondition,callback:function(a){e.$set(t.row,"endCondition",a)},expression:"scope.row.endCondition"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"日期类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.dateType))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.dateType,callback:function(a){e.$set(t.row,"dateType",a)},expression:"scope.row.dateType"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"天数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.day))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.day,callback:function(a){e.$set(t.row,"day",a)},expression:"scope.row.day"}}):e._e()]}}])})],1),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_eventTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.create_eventTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_eventTable(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_eventTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_eventTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_eventTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.eventTableObj.total>=0,expression:"eventTableObj.total>=0"}],attrs:{total:e.eventTableObj.total,page:e.eventTableObj.getdataListParm.offset,limit:e.eventTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.eventTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.eventTableObj.getdataListParm,"pagecount",t)},pagination:e.get_eventTable_list}})],1)])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniAdd",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("ade3")),l=a("2934"),n=a("a78e"),o=a.n(n),c=(a("ed08"),a("333d")),d=a("3de8"),m=a("5c96"),p={name:"BackTargetEffect",components:{Pagination:c["a"],TreeSelect:d["a"]},data:function(){var e;return{employeid:o.a.get("employeid"),isRoleEdit:[],url_add_table:"modifyTelvisit",url_edit_table:"modifyTelvisit",url_del_table:"modifyTelvisit",requestParams:[],targetClassList:[{id:"分类1",name:"分类1"},{id:"分类2",name:"分类2"},{id:"分类3",name:"分类3"}],tableObj:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{targetName:"",targetClassId:""}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[{targetName:"指标名称",targetClass:"指标分类",targetClassId:"指标分类",targetParticleSize:"指标颗粒度",id:1,isModify:"0"},{targetName:"指标名称",targetClass:"指标分类",targetClassId:"指标分类",targetParticleSize:"指标颗粒度",id:1,isModify:"0"},{targetName:"指标名称",targetClass:"指标分类",targetClassId:"指标分类",targetParticleSize:"指标颗粒度",id:1,isModify:"0"}],listLoading:!1,temp:{}},tableObj2:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{targetName:"",targetClassId:""}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[{eventName:"事件名称",eventNameId:"事件名称ID",triggerOperation:" 触发操作",triggerOperationId:" 触发操作",cumPrePeriod:"累加上期",cumPrePeriodId:"事件名称",changeMethod:"事件名称",changeMethodId:"事件名称",changevalue:"事件名称",startDate:"事件名称",endCondition:"事件名称",dateType:"事件名称",day:"事件名称",isModify:"0"}],listLoading:!1,temp:{}},tableObj3:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{targetName:"",targetClassId:""}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[{fieldName:"字段名称",fieldNameId:"字段名称ID",condition:"条件",limitValue:" 限制值",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{processName:"",processExplain:"",id:"",modifyName:"add",enable:1},rules:{}},textMap:{create:"新增",see:"查看",update:"编辑"},activeName:"first",eventTableObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",processName:"",processExplain:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[(e={eventName:"牛号",eventNameId:"牛号1",triggerOperation:"新增",triggerOperationId:"新增",cumPrePeriodId:"是",cumPrePeriod:"是",terminationId:"流产",changeMethod:"减少",changeMethodId:"减少",changevalue:"变更值",startDate:"自动",endDate:"自动1",remark:"备注"},Object(r["a"])(e,"remark","备注"),Object(r["a"])(e,"remark","备注"),Object(r["a"])(e,"Edit",!1),Object(r["a"])(e,"NoEdit",!0),Object(r["a"])(e,"isCreate",!1),Object(r["a"])(e,"isUpdate",!0),Object(r["a"])(e,"isUpdateSave",!1),e)],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,eventNameList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],triggerOperationList:[{id:"新增",name:"新增"},{id:"删除",name:"删除"}],cumPrePeriodList:[{id:"是",name:"是"},{id:"否",name:"否"}],changeMethodList:[{id:"减少",name:"减少"},{id:"增加",name:"否"}]},fieldSetConditionObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",fieldTableObjName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{ifType:"预警条件",ifFieldId:"牛号1",ifField:"牛号",ifConditionId:"1",ifCondition:"大于",ifValue:"值1",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,ifFieldList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],ifConditionList:[{id:"1",name:"大于"},{id:"2",name:"等于"},{id:"3",name:"小于"}]},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{getButtons:function(){var e="telephoneFollow",t=Object(l["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){Object(l["e"])(this.requestParams).then((function(e){}))},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm),Object(l["d"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):e.tableObj.list=[],setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),this.tableObj.getdataListParm.offset=1},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.customerName="",this.tableObj.getdataListParm.parammaps.telVisitCode="",this.tableObj.getdataListParm.parammaps.customerId="",this.tableObj.getdataListParm.parammaps.groupId="",this.tableObj.getdataListParm.parammaps.visiterId="",this.tableObj.getdataListParm.parammaps.receiverName="",this.tableObj.getdataListParm.parammaps.typeIds="",this.tableObj.getdataListParm.parammaps.statusId="",this.tableObj.getdataListParm.parammaps.beginDate="",this.tableObj.getdataListParm.parammaps.endDate="",this.tableObj.getdataListParm.parammaps.inputDatetime="",this.tableObj.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={eventClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1}},resetTemp2:function(){this.create.temp={eventClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1}},handleEnableChange:function(){console.log("点击了是否启用")},handleShowMenuChange:function(){console.log("点击了是否启用")},popoverHide:function(e,t){console.log("树形多级选择",e,t),this.create.temp.eventClassId=t.id,this.tableObj.getdataListParm.parammaps.eventClassId=t.id},handleCreate:function(){console.log("新增=====>"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},handleCreateTemple:function(){console.log("新增=====>"),this.resetTemp2(),this.createTemple.dialogFormVisible=!0},createData:function(){var e=this;console.log("新增保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="add",e.create.temp.id="",e.create.temp.createrId=o.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"insertfieldTableObjsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,fieldTableObjName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:e.url_add_table,resultmaps:{list:[e.create.temp]},children:[{name:"insertTelvisit",type:"e",parammaps:{customerId:"@insertTelvisit.customerId",groupId:"@insertTelvisit.groupId",tdate:"@insertTelvisit.tdate",visiterId:"@insertTelvisit.visiterId",receiverId:"@insertTelvisit.receiverId",receiverId2:"@insertfieldTableObjsNew.LastInsertId",receiverTel:"@insertTelvisit.receiverTel",typeIds:"@insertTelvisit.typeIds",statusName:"@insertTelvisit.statusName",remark:"@insertTelvisit.remark",content:"@insertTelvisit.content",nextId:"@insertTelvisit.nextId",createrId:"@insertTelvisit.createrId",receiverChoose:"@insertTelvisit.receiverChoose"}}]}]};console.log("新增保存发送参数 ",a)}}))},handleSee:function(e){console.log("查看=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("编辑=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;console.log("编辑保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={common:{returnmap:"0"},data:[{name:"insertfieldTableObjsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,fieldTableObjName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateTelvisit",resultmaps:{list:[e.create.temp]},children:[{name:"updateTelvisit",type:"e",parammaps:{tdate:"@updateTelvisit.tdate",visiterId:"@updateTelvisit.visiterId",receiverId:"@updateTelvisit.receiverId",receiverId2:"@insertfieldTableObjsNew.LastInsertId",receiverTel:"@updateTelvisit.receiverTel",typeIds:"@updateTelvisit.typeIds",statusName:"@updateTelvisit.statusName",remark:"@updateTelvisit.remark",content:"@updateTelvisit.content",nextId:"@insertTelvisit.nextId",receiverChoose:"@insertTelvisit.receiverChoose",id:"@insertTelvisit.id"}}]}]};console.log("编辑保存发送参数 ",a),0==e.create.temp.typeIdsArr.length?e.$notify({title:"失败",message:"回访类型必选!"+response.data,type:"error",duration:2e3}):Object(l["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;console.log("删除=====>",e),m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:t.url_del_table,parammaps:{id:e.id}};Object(l["g"])(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.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleClick:function(e,t){console.log(e,t)},get_eventTable_list:function(){var e=this;this.fieldInfluTableObj.listLoading=!0,Object(l["d"])(this.fieldInfluTableObj.getdataListParm).then((function(t){if(console.log("字段影响table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.fieldInfluTableObj.list=t.data.list,e.fieldInfluTableObj.pageNum=t.data.pageNum,e.fieldInfluTableObj.pageSize=t.data.pageSize,e.fieldInfluTableObj.total=t.data.total}else e.fieldInfluTableObj.list=[];setTimeout((function(){e.fieldInfluTableObj.listLoading=!1}),100)}))},create_eventTable:function(){console.log("字段影响 - 新增");for(var e=0;e<this.fieldInfluTableObj.list.length;e++)if(console.log(this.fieldInfluTableObj.list[e].Edit),console.log(this.fieldInfluTableObj.list[e].NoEdit),1==this.fieldInfluTableObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldInfluTableObj.list.unshift({eventClass:"牛号",warnCondition:"牛号1",trigCondition:"增加",targetEvent:"牛号",targetEventId:"牛号1",termination:"流产",terminationId:"流产",compleCondition:"流产",compleConditionId:"流产",mustComp:"是",mustCompId:"1",auto:"自动",autoId:"自动1",remark:"备注",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_eventTable_save:function(e){console.log("字段影响 - 新增保存",e)},create_eventTable_cancel:function(e){console.log("事件管理 - 新增取消",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++){if(e.myId===this.fieldInfluTableObj.list[t].myId)var a=this.fieldInfluTableObj.list.indexOf(this.eventTableObj.list[t]);if(a>-1)return void this.fieldInfluTableObj.list.splice(a,1)}},edit_eventTable:function(e){console.log("字段影响 - 编辑",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++)if(1==this.fieldInfluTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},edit_eventTable_save:function(e){var t=this;console.log("字段管理 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_eventTable_cancel:function(e){console.log("字段管理 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_eventTable:function(e){var t=this;console.log("事件管理 - 删除",e),m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},get_table3_list:function(){var e=this;this.fieldInfluTableObj.listLoading=!0,Object(l["d"])(this.tableObj3.getdataListParm).then((function(t){if(console.log("字段影响table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.tableObj3.list=t.data.list,e.tableObj3.pageNum=t.data.pageNum,e.tableObj3.pageSize=t.data.pageSize,e.tableObj3.total=t.data.total}else e.tableObj3.list=[];setTimeout((function(){e.tableObj3.listLoading=!1}),100)}))},create_table3:function(){console.log("字段影响 - 新增");for(var e=0;e<this.fieldInfluTableObj.list.length;e++)if(console.log(this.fieldInfluTableObj.list[e].Edit),console.log(this.fieldInfluTableObj.list[e].NoEdit),1==this.fieldInfluTableObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldInfluTableObj.list.unshift({eventClass:"牛号",warnCondition:"牛号1",trigCondition:"增加",targetEvent:"牛号",targetEventId:"牛号1",termination:"流产",terminationId:"流产",compleCondition:"流产",compleConditionId:"流产",mustComp:"是",mustCompId:"1",auto:"自动",autoId:"自动1",remark:"备注",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_table3_save:function(e){console.log("字段影响 - 新增保存",e)},create_table3_cancel:function(e){console.log("事件管理 - 新增取消",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++){if(e.myId===this.fieldInfluTableObj.list[t].myId)var a=this.fieldInfluTableObj.list.indexOf(this.eventTableObj.list[t]);if(a>-1)return void this.fieldInfluTableObj.list.splice(a,1)}},edit_table3:function(e){console.log("字段影响 - 编辑",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++)if(1==this.fieldInfluTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},edit_table3_save:function(e){var t=this;console.log("字段管理 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_table3_cancel:function(e){console.log("字段管理 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_table3:function(e){var t=this;console.log("事件管理 - 删除",e),m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},u=p,h=(a("bc91"),a("2877")),g=Object(h["a"])(u,i,s,!1,null,"88cd3dec",null);t["default"]=g.exports},"2b91":function(e,t,a){},"2c9c":function(e,t,a){},"2e2e":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-栏舍剩料记录",use:"icon-栏舍剩料记录-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-栏舍剩料记录"><defs><style type="text/css"></style></defs><path d="M958.6 486.2c-0.1 0.9-0.3 1.8-0.5 2.8-1.8-54.1-13.5-106.6-34.9-156.3-22.6-52.3-54.8-99.3-95.9-139.6-41.1-40.3-89-72-142.3-94.1-55.3-22.9-113.9-34.6-174.2-34.6-60.5 0-119.1 11.6-174.2 34.6-53.3 22.1-101.2 53.8-142.3 94.1s-73.4 87.3-95.9 139.6c-17.9 41-29 83.8-33.3 127.8-2.2 3.1-2.1 16.3-2.1 45.5 0 64.1 12 124.8 35.5 180.2 7.1 16.8 15.8 33.7 24.6 49.5 19.4 34.8 44.3 66.2 71.8 94.1 80.9 81.7 192.5 130.8 315.8 130 155.6-1.1 296.7-80.1 376.9-204.7 19.1-29.7 35.7-65.4 47.9-99.1 18.3-48.6 22.9-99.7 22.9-152.2v-6.1c0-5 0-8.7 0.2-11.5zM868.6 607.2c-28.9 15.9-66.8 27.9-116.5 31.4-120.5 8.4-180.8-194.3-275.6-152-178.9 79.8-280.5 64.9-338 34.8-0.3-5.9-0.4-11.8-0.4-17.8 0-201.7 167.3-365.8 372.9-365.8s373 164 373 365.7c-0.1 36-5.5 70.8-15.4 103.7z" fill="#ffffff" p-id="8596" /></symbol>'});l.a.add(n);t["default"]=n},"2e3f":function(e,t,a){},"2e59":function(e,t,a){"use strict";var i=a("2b91"),s=a.n(i);s.a},"2e6c":function(e,t,a){"use strict";var i=a("61f9"),s=a.n(i);s.a},"2edb":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"2f11":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"2f3f":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{staticStyle:{width:"100%","padding-top":"15px"},attrs:{data:e.list}},[a("el-table-column",{attrs:{label:"Order_No","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("orderNoFilter")(t.row.order_no))+" ")]}}])}),a("el-table-column",{attrs:{label:"Price",width:"195",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" ¥"+e._s(e._f("toThousandFilter")(t.row.price))+" ")]}}])}),a("el-table-column",{attrs:{label:"Status",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-tag",{attrs:{type:e._f("statusFilter")(i.status)}},[e._v(" "+e._s(i.status)+" ")])]}}])})],1)},s=[],r=(a("fb6a"),a("b775"));function l(e){return Object(r["a"])({url:"/transaction/list",method:"get",params:e})}var n={filters:{statusFilter:function(e){var t={success:"success",pending:"danger"};return t[e]},orderNoFilter:function(e){return e.substring(0,30)}},data:function(){return{list:null}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;l().then((function(t){e.list=t.data.items.slice(0,8)}))}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);t["default"]=d.exports},3:function(e,t){},3014:function(e,t,a){},3046:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"30c3":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},3173:function(e,t,a){},"317d":function(e,t,a){"use strict";var i=a("b2bd"),s=a.n(i);s.a},"31c2":function(e,t,a){"use strict";a.r(t),a.d(t,"filterAsyncRoutes",(function(){return d}));a("99af"),a("4160"),a("caad"),a("45fc"),a("d3b7"),a("2532"),a("159b");var i=a("be94"),s=a("a18c"),r=a("61f7"),l=a("2934"),n=a("c1f7");function o(e){var t=[];return e.forEach((function(e){if(!Object(r["d"])(e.component)){var i={meta:{title:"",icon:""},children:[]};"Iframe"!==e.component&&("Layout"===e.component?i.component=n["a"]:i.component=a("feca")("./"+e.component+".vue").default,i.name=e.path,i.id=e.id||null,""!==e.redirect?(i.redirect=e.redirect||null,i.path="/"+e.path):i.path=e.path,1!=e.seebutton&&2!=e.seebutton||(i.meta.icon=e.icon,i.meta.title=e.title,i.meta.noCache=!0,i.children=Object(r["d"])(e.children)?[]:o(e.children),t.push(i)))}})),t}function c(e,t){return!t.meta||!t.meta.roles||e.some((function(e){return t.meta.roles.includes(e)}))}function d(e,t){var a=[];return e.forEach((function(e){var s=Object(i["a"])({},e);c(t,s)&&(s.children&&(s.children=d(s.children,t)),a.push(s))})),a}var m={routes:[],addRoutes:[],data1:{name:"getmenu",idname:"id",parammaps:{id:-1}}},p={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=s["a"].concat(t)}},u={generateRoutes:function(e,t){var a=e.commit;return new Promise((function(e,t){Object(l["d"])(m.data1).then((function(i){var s=Object(l["t"])(i.data.list,"id","parentId","children");0===s.length&&t("menus data is null");var r=o(s);r.push({path:"*",redirect:"/404",hidden:!0}),a("SET_ROUTES",r),e(r)}))}))}};t["default"]={namespaced:!0,state:m,mutations:p,actions:u}},"31f0":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniSee",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"角色名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.rolename,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"rolename",t)},expression:"table.getdataListParm.parammaps.rolename"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"创建人",clearable:""},model:{value:e.table.getdataListParm.parammaps.createmp,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"createmp",t)},expression:"table.getdataListParm.parammaps.createmp"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.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:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","header-row-style":"padding: 0px;font-size:16px;font-weight:bold;color:#333;","row-style":e.rowStyle,"cell-style":"padding: 0px;font-size:16px;"},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"角色名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.rolename))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.rolename,callback:function(a){e.$set(t.row,"rolename",a)},expression:"scope.row.rolename"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createdtime))])]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createmp))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.NoEdit&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleRole(i)}}},[e._v("页面权限")]):e._e(),i.NoEdit&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleRole2(i)}}},[e._v("地区显示")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.role.dialogStatus],visible:e.role.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){return e.$set(e.role,"dialogFormVisible",t)}}},[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:e.tableData,"row-key":"id",border:"",indent:10,"select-on-indeterminate":!0,"default-expand-all":!1,"show-checkbox":"","checked-keys":e.defaultCheckedKeys,"tree-props":{children:"childList",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{prop:"name",label:"页面"}}),a("el-table-column",{attrs:{label:"查看","render-header":e.renderSeeHeader},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-checkbox",{attrs:{indeterminate:t.row.indeterminate.seebutton,label:"查看"},on:{change:function(a){return e.fnCheckEv(t,"seebutton")}},model:{value:t.row.fnCheck.seebutton,callback:function(a){e.$set(t.row.fnCheck,"seebutton",a)},expression:"scope.row.fnCheck.seebutton"}})]}}])}),a("el-table-column",{attrs:{label:"编辑","render-header":e.renderEditHeader},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-checkbox",{attrs:{indeterminate:t.row.indeterminate.editbutton,label:"编辑"},on:{change:function(a){return e.fnCheckEv(t,"editbutton")}},model:{value:t.row.fnCheck.editbutton,callback:function(a){e.$set(t.row.fnCheck,"editbutton",a)},expression:"scope.row.fnCheck.editbutton"}})]}}])})],1)],1)])])])]),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.role.dialogFormVisible=!1,e.getList()}}},[e._v("取消")]),"role"===e.role.dialogStatus?a("el-button",{attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.roleData()}}},[e._v("确认")]):e._e()],1)]),a("el-dialog",{attrs:{title:"地区权限",visible:e.role2.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.role2,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp2",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.role2.rules,model:e.role2.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"地区:",prop:"areaid"}},[a("el-checkbox-group",{model:{value:e.role2.temp.areaIdsArr,callback:function(t){e.$set(e.role2.temp,"areaIdsArr",t)},expression:"role2.temp.areaIdsArr"}},e._l(e.areaNameList,(function(t){return a("el-checkbox",{key:t.id,attrs:{label:t.id},on:{change:e.changeChecked}},[e._v(e._s(t.name))])})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.role2.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.roleData2()}}},[e._v("确认")])],1)],1)])],1)},s=[],r=(a("4160"),a("caad"),a("c975"),a("d81d"),a("a434"),a("b0c0"),a("a9e3"),a("d3b7"),a("4d63"),a("ac1f"),a("25f0"),a("1276"),a("159b"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("5c96"),d=a("333d"),m={name:"Role",components:{Pagination:d["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getRoleList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:0,rolename:"",createmp:"",enable:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},selectList:[],role:{dialogFormVisible:!1,dialogStatus:"",temp:{}},role2:{dialogFormVisible:!1,dialogStatus:"",temp:{areaid:"",areaIdsArr:[]}},areaNameList:[],getRecuListParm:{name:"getMenuByRole",parammaps:{pastureid:0}},tableData:[],defaultCheckedKeys:[],isokDisable:!1,textMap:{role:"权限管理"},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons(),this.getDownList()},methods:{getButtons:function(){var e="Role",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this,t={name:"getAreaList",page:1,offset:1,pagecount:100,returntype:"Map",parammaps:{layer:1}};Object(r["d"])(t).then((function(t){console.log("下拉框",t.data.list),e.areaNameList=t.data.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);t.data.list.forEach((function(e,t){""==e.areaid||null==e.areaid?e.areaIdsArr=[]:e.areaIdsArr=e.areaid.split(",")})),e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleConfirmStartChange:function(){console.log("点击了确认开始")},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.rolename="",this.table.getdataListParm.parammaps.createmp="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log("点击了新增");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,confirmStart:1,createdtime:Object(o["e"])(new Date,"{y}-{m}-{d}"),createmp:n.a.get("employename"),rolename:""})},createData:function(e){var t=this;if(console.log("点击了新增保存",e),this.table.temp.pastureid=0,this.table.temp.empname=e.empname,this.table.temp.rolename=e.rolename,this.table.temp.enable=e.enable,this.table.temp.remark=e.remark,this.table.temp.createmp=e.createmp,""==this.table.temp.rolename)return this.$message({type:"error",message:"角色名称不能为空",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="createRole",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){if(console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg)t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList();else{var a=new RegExp("Duplicate entry");a.test(e.data)?t.$message({type:"error",message:"角色名称不可重复",duration:2e3}):Object(r["l"])(e,t.$notify)}}))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){console.log("点击了编辑");for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),this.table.temp.pastureid=0,this.table.temp.id=e.id,this.table.temp.empname=e.empname,this.table.temp.rolename=e.rolename,this.table.temp.enable=e.enable,this.table.temp.remark=e.remark,""==this.table.temp.rolename)return this.$message({type:"error",message:"角色名称不能为空",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateRole",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(t.selectList),t.selectList=[],t.requestParam={},t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"checkroleuser",type:"v",parammaps:{pastureid:e.pastureid,roleid:e.id}},t.requestParam.data[1]={name:"deleteRole",type:"e",parammaps:{pastureid:e.pastureid,id:e.id}},Object(r["b"])(t.requestParam).then((function(e){console.log("删除保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"删除失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择角色信息",duration:2e3}):c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[];for(var t=0;t<e.selectList.length;t++)e.requestParam.data[t]={name:"checkroleuser",type:"v",parammaps:{pastureid:e.selectList[t].pastureid,roleid:e.selectList[t].id}};e.requestParam.data[e.selectList.length]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[e.selectList.length].children=[],e.requestParam.data[e.selectList.length].children[0]={name:"deleteRole",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",id:"@insertSpotList.id"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleRole:function(e){this.role.temp=Object.assign({},e),console.log("点击了行内页面权限"),this.role.dialogStatus="role",this.role.dialogFormVisible=!0,this.tableData=[],this.getRecuListParm.parammaps.roleid=e.id,this.getRoleList()},handleRole2:function(e){this.role2.temp=Object.assign({},e),console.log("点击了行内页面权限",this.role2.temp),this.role2.temp.areaIdsArr=e.areaIdsArr.map(Number),this.role2.dialogStatus="role",this.role2.dialogFormVisible=!0},getRoleList:function(){var e=this;Object(r["d"])(this.getRecuListParm).then((function(t){null!==t.data.list&&(e.tableData=Object(r["t"])(t.data.list,"id","pid","children"),console.log(e.tableData),e.tableData.forEach((function(t,a){t.childList=t.children,e.$set(t,"fnCheck",{}),e.$set(t,"indeterminate",{seebutton:!1,editbutton:!1}),1==t.seebutton?e.$set(t.fnCheck,"seebutton",!0):0==t.seebutton?e.$set(t.fnCheck,"seebutton",!1):2==t.seebutton?e.$set(t.indeterminate,"seebutton",!0):3==t.seebutton&&e.$set(t.indeterminate,"seebutton",!1),1==t.editbutton?e.$set(t.fnCheck,"editbutton",!0):0==t.editbutton?e.$set(t.fnCheck,"editbutton",!1):2==t.seebutton?e.$set(t.indeterminate,"editbutton",!0):3==t.seebutton&&e.$set(t.indeterminate,"editbutton",!1),2==t.seebutton?e.$set(t.indeterminate,"seebutton",!0):0==t.seebutton&&e.$set(t.indeterminate,"seebutton",!1),3==t.editbutton?e.$set(t.indeterminate,"editbutton",!0):0==t.editbutton&&e.$set(t.indeterminate,"editbutton",!1),void 0!==t.childList&&t.childList.length>0&&t.childList.forEach((function(t,a){e.$set(t,"fnCheck",{}),e.$set(t,"indeterminate",{seebutton:!1,editbutton:!1}),1==t.seebutton?e.$set(t.fnCheck,"seebutton",!0):0==t.seebutton&&e.$set(t.fnCheck,"seebutton",!1),1==t.editbutton?e.$set(t.fnCheck,"editbutton",!0):0==t.editbutton&&e.$set(t.fnCheck,"editbutton",!1)}))})),console.log("this.tableData============",e.tableData))}))},getParent:function(e,t){var a=[];if(0===e.length)return t&&a.push(e),a;var i=function t(i,s){for(var r=0,l=i.length;r<l;r++){var n=i[r];if(n.id===s){a.push(n),t(e,n.pid);break}n.childList&&t(n.childList,s)}return a};return a=i(e,t),a},fnCheckEv:function(e,t){e.row.childList&&(console.log(e.row),this.handleFnAll(e.row,e.row.fnCheck[t],e.row.indeterminate[t],t)),this.getParent(this.tableData,e.row.id).forEach((function(a,i){if("seebutton"==t)if(a.childList){var s=0;if(a.childList.forEach((function(e,a){!0===e.fnCheck[t]&&(s+=1)})),s===a.childList.length)console.log(a),a.fnCheck[t]=!0,a.indeterminate[t]=!1;else{a.fnCheck[t]=!1,a.fnCheck["editbutton"]=!1;var r=[],l=[];if(console.log(a.childList),a.childList.forEach((function(e,a){console.log(e),console.log(e.fnCheck),console.log(e.fnCheck.editbutton),r.push(e.fnCheck[t]),l.push(e.fnCheck["editbutton"])})),console.log(l),r.includes(!0))a.indeterminate[t]=!0,a.fnCheck["editbutton"]=!1,console.log(l),l.includes(!0)?a.indeterminate["editbutton"]=!0:a.indeterminate["editbutton"]=!1,a.childList.length>0&&a.childList.forEach((function(e,a){!1===e.fnCheck["editbutton"]?e.fnCheck["editbutton"]=!1:e.fnCheck["editbutton"]=e.fnCheck[t]}));else{a.indeterminate[t]=!1,console.log(a);var n=[];a.childList.length>0&&a.childList.forEach((function(e,a){e.fnCheck["editbutton"]=e.fnCheck[t],n.push(e.fnCheck["editbutton"])})),n.includes(!0)?a.indeterminate["editbutton"]=!0:a.indeterminate["editbutton"]=!1}}}else console.log(a),a.fnCheck[t]=e.row.fnCheck[t];else if("editbutton"==t)if(a.childList){var o=0;if(a.childList.forEach((function(e,a){!0===e.fnCheck[t]&&(o+=1)})),o===a.childList.length)a.fnCheck[t]=!0,a.fnCheck["seebutton"]=!0,a.indeterminate[t]=!1,a.indeterminate["seebutton"]=!1,a.childList.forEach((function(e,t){console.log(e),!1===e.fnCheck["seebutton"]&&(e.fnCheck["seebutton"]=e.fnCheck["editbutton"])})),console.log(a);else{console.log(a),a.fnCheck[t]=!1,console.log(a.fnCheck["seebutton"]),!1===a.fnCheck["seebutton"]&&(a.fnCheck["seebutton"]=!1);for(var c=[],d=0;d<a.childList.length;d++)c.push(a.childList[d].fnCheck[t]);c.includes(!0),c.includes(!0)?(!1===a.fnCheck["seebutton"]&&(a.indeterminate["seebutton"]=!0),a.indeterminate[t]=!0):a.indeterminate[t]=!1,a.childList.forEach((function(e,t){!1===e.fnCheck["seebutton"]&&(e.fnCheck["seebutton"]=e.fnCheck["editbutton"])})),console.log(a)}}else a.fnCheck[t]=e.row.fnCheck[t]}))},handleFnAll:function(e,t,a,i){if(console.log(e,t,a,i),e.fnCheck[i]=t,e.childList){var s=this;e.childList.forEach((function(r,l){e.indeterminate[i]=!1,console.log(t,a),s.handleFnAll(e.childList[l],t,a,i)}))}},dataCheckEv:function(e,t){console.log(e);var a=e.row.dataCheck[t];for(var i in console.log(e,t),e.row.dataCheck)e.row.dataCheck[i]=!1;e.row.dataCheck[t]=a,e.row.childList&&this.handleDataAll(e.row,e.row.dataCheck[t],t),this.getParent(this.tableData,e.row.id).forEach((function(e,i){for(var s in console.log(e,"==============674"),e.dataCheck)e.dataCheck[s]=!1;if(e.childList){var r=0;e.childList.forEach((function(e,a){!0===e.dataCheck[t]&&(r+=1)})),r===e.childList.length?(console.log(e,"==============689"),e.dataCheck[t]=!0):(console.log(e,"==============691"),e.dataCheck[t]=!1)}else console.log(e,"==============679"),e.dataCheck[t]=a}))},handleDataAll:function(e,t,a){for(var i in e.dataCheck)e.dataCheck[i]=!1;if(e.dataCheck[a]=t,e.childList){console.log(e,t,a);var s=this;e.childList.forEach((function(i,r){s.handleDataAll(e.childList[r],t,a)}))}else console.log(e,t,a)},renderSeeHeader:function(e,t){var a=this,i=t.column;return e("div",[e("span",i.label),e("el-checkbox",{style:"display:inline-flex;margin-left:5px;",on:{change:function(e,t){return a.selectSee(e,t,"see")}}})])},renderEditHeader:function(e,t){var a=this,i=t.column;return e("div",[e("span",i.label),e("el-checkbox",{style:"display:inline-flex;margin-left:5px;",on:{change:function(e,t){return a.selectEdit(e,t,"edit")}}})])},selectSee:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.targetEv,a=arguments.length>2?arguments[2]:void 0,i=this;t&&(this.targetEv=t),this.flag=!0!==e,this.targetEv.target.checked=e,this.targetEv.target.parentNode.className=e?"el-checkbox__input is-checked":"el-checkbox__input",i.tableData.forEach((function(t,s){i.$set(i.tableData[s],"check",e.toString()),"see"===a&&(!0===e?(t.fnCheck["seebutton"]=!0,t.childList.length>0&&t.childList.forEach((function(e,t){e.fnCheck["seebutton"]=!0}))):(t.fnCheck["seebutton"]=!1,t.childList.length>0&&t.childList.forEach((function(e,t){e.fnCheck["seebutton"]=!1}))))}))},selectEdit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.targetEv,a=arguments.length>2?arguments[2]:void 0,i=this;t&&(this.targetEv=t),console.log("进来就错了",e),this.flag=!0!==e,this.targetEv.target.checked=e,this.targetEv.target.parentNode.className=e?"el-checkbox__input is-checked":"el-checkbox__input",i.tableData.forEach((function(t,s){i.$set(i.tableData[s],"check",e.toString()),"edit"===a&&(!0===e?(t.fnCheck["editbutton"]=!0,!1===t.fnCheck["seebutton"]&&(t.fnCheck["seebutton"]=!0),t.childList.length>0&&t.childList.forEach((function(e,t){e.fnCheck["editbutton"]=!0,!1===e.fnCheck["seebutton"]&&(e.fnCheck["seebutton"]=!0)}))):(t.fnCheck["editbutton"]=!1,t.childList.length>0&&t.childList.forEach((function(e,t){e.fnCheck["editbutton"]=!1}))))}))},roleData:function(e){var t=this;console.log("点击了权限确认",this.tableData);var a=[],i=[],s=[];this.tableData.forEach((function(e,t){!0===e.fnCheck.seebutton?e.seebutton=1:e.seebutton=0,!0===e.fnCheck.editbutton?e.editbutton=1:e.editbutton=0,!0===e.indeterminate.seebutton&&(e.seebutton=2),!0===e.indeterminate.editbutton&&(e.editbutton=3),console.log("点击了权限确认",e.childList),e.childList.length>0&&e.childList.forEach((function(e,t){!0===e.fnCheck.seebutton?e.seebutton=1:e.seebutton=0,!0===e.fnCheck.editbutton?e.editbutton=1:e.editbutton=0,s.push({menuid:e.menu_id,seebutton:e.seebutton,editbutton:e.editbutton})})),i.push({menuid:e.menu_id,seebutton:e.seebutton,editbutton:e.editbutton})})),i.forEach((function(e,t){a.push({menuid:e.menuid,seebutton:e.seebutton,editbutton:e.editbutton})})),s.forEach((function(e,t){a.push({menuid:e.menuid,seebutton:e.seebutton,editbutton:e.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:0,roleid:this.role.temp.id,menuid:"@insertSpotList.menuid",seebutton:"@insertSpotList.seebutton",editbutton:"@insertSpotList.editbutton"}},Object(r["b"])(this.requestParam).then((function(e){console.log("权限菜单保存发送参数",t.requestParam),"fail"===e.msg?t.$notify({title:"保存失败",message:e.data,type:"warning",duration:2e3}):(t.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),t.role.dialogFormVisible=!1,t.getList())}))},changeChecked:function(e){console.log("多选选中",this.role2.temp.areaIdsArr)},roleData2:function(){var e=this;console.log(this.role2.temp.areaid),console.log("多选选中",this.role2.temp.areaIdsArr);var t={id:this.role2.temp.id,params:this.role2.temp.areaIdsArr};Object(r["w"])(t).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.role2.dialogFormVisible=!1,e.getList())}))}}},p=m,u=(a("7d88"),a("213e"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"529fc85a",null);t["default"]=h.exports},"320f":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"客户名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.categoryId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"categoryId",t)},expression:"table.getdataListParm.parammaps.categoryId"}},e._l(e.productNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"产品名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.pname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"pname",t)},expression:"table.getdataListParm.parammaps.pname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"产品型号",clearable:""},model:{value:e.table.getdataListParm.parammaps.model,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"model",t)},expression:"table.getdataListParm.parammaps.model"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"产品规格",clearable:""},model:{value:e.table.getdataListParm.parammaps.Specifications,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"Specifications",t)},expression:"table.getdataListParm.parammaps.Specifications"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"产品类别","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cname))])]}}])}),a("el-table-column",{attrs:{label:"产品名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}])}),a("el-table-column",{attrs:{label:"产品型号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}])}),a("el-table-column",{attrs:{label:"产品规格","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"顺序",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"产品类别:",prop:"categoryId"}},[a("el-select",{ref:"categoryId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择类别",disabled:"see"==e.create.dialogStatus},on:{change:e.changeBar},model:{value:e.create.temp.categoryId,callback:function(t){e.$set(e.create.temp,"categoryId",t)},expression:"create.temp.categoryId"}},e._l(e.productNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"产品名称:",prop:"pname"}},[a("el-input",{ref:"pname",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.pname,callback:function(t){e.$set(e.create.temp,"pname",t)},expression:"create.temp.pname"}})],1),a("el-form-item",{attrs:{label:"产品型号:",prop:"model"}},[a("el-input",{ref:"model",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.model,callback:function(t){e.$set(e.create.temp,"model",t)},expression:"create.temp.model"}})],1),a("el-form-item",{attrs:{label:"产品规格:",prop:"Specifications"}},[a("el-input",{ref:"Specifications",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.Specifications,callback:function(t){e.$set(e.create.temp,"Specifications",t)},expression:"create.temp.Specifications"}})],1),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1),a("el-form-item",{attrs:{label:"顺序:",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.create.temp.sort,callback:function(t){e.$set(e.create.temp,"sort",t)},expression:"create.temp.sort"}})],1),a("el-form-item",{attrs:{label:"启用:",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.create.temp.enable,callback:function(t){e.$set(e.create.temp,"enable",t)},expression:"create.temp.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("2934")),l=a("61f7"),n=(a("a78e"),a("ed08"),a("333d")),o=a("5c96"),c={name:"ProductList",components:{Pagination:n["a"]},data:function(){return{isRoleEdit:[],productNameList:[],table:{getdataListParm:{name:"getProducts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{categoryId:"",pname:"",model:"",Specifications:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{categoryId:"",pname:"",model:"",Specifications:"",remark:"",sort:"",enable:1},rules:{pname:[{type:"string",required:!0,message:"必填",trigger:"blur"}],model:[{type:"string",required:!0,message:"必填",trigger:"blur"}],Specifications:[{type:"string",required:!0,message:"必填",trigger:"blur"}],sort:[{validator:l["b"],trigger:"blur"}]}},textMap:{create:"添加",update:"编辑"},requestParam:{},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList()},methods:{getButtons:function(){var e="DungScores",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["d"])({name:"getCategorySelect",offset:0,pagecount:0,parammaps:{}}).then((function(t){e.productNameList=t.data.list,console.log("产品类别下拉框",t)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据======>",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.categoryId="",this.table.getdataListParm.parammaps.pname="",this.table.getdataListParm.parammaps.model="",this.table.getdataListParm.parammaps.Specifications="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={categoryId:"",pname:"",model:"",Specifications:"",remark:"",sort:"",enable:1}},changeBar:function(e){this.create.temp.cname=this.productNameList.find((function(t){return t.id===e})).name},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="insertProducts",e.requestParam.parammaps=e.create.temp,Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleUpdate:function(e){console.log("点击了编辑",e),e.categoryId=String(e.categoryId),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateProducts",e.requestParam.parammaps=e.create.temp,Object(r["g"])(e.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateProducts",this.requestParam.parammaps={id:t.id,categoryId:t.categoryId,pname:t.pname,model:t.model,Specifications:t.Specifications,cname:t.cname,remark:t.remark,sort:t.sort,enable:t.enable},Object(r["g"])(this.requestParam).then((function(e){console.log("表格中的启用发送参数",a.requestParam),"fail"!==e.msg?(a.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),a.create.dialogFormVisible=!1,a.getList()):a.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))},handleRowDelete:function(e){var t=this;o["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delProducts",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},d=c,m=(a("2e6c"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"85ad31ec",null);t["default"]=p.exports},3231:function(e,t,a){},"333d":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},s=[];a("a9e3");Math.easeInOutQuad=function(e,t,a,i){return e/=i/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function l(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){var i=n(),s=e-i,o=20,c=0;t="undefined"===typeof t?500:t;var d=function e(){c+=o;var n=Math.easeInOutQuad(c,i,s,t);l(n),c<t?r(e):a&&"function"===typeof a&&a()};d()}var c={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50,100]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&o(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&o(0,800)}}},d=c,m=(a("8de3"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"030595c8",null);t["a"]=p.exports},3392:function(e,t,a){},3415:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.barid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"barid",t)},expression:"table.getdataListParm.parammaps.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"剩料量(kg)","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remain))])]}}])}),a("el-table-column",{attrs:{label:"应用班次","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"处理时间","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"135px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:e.changeBar},model:{value:e.create.temp.barid,callback:function(t){e.$set(e.create.temp,"barid",t)},expression:"create.temp.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"剩料量:",prop:"remain"}},[a("el-input",{ref:"remain",staticClass:"filter-item",attrs:{placeholder:"剩料量",type:"number"},model:{value:e.create.temp.remain,callback:function(t){e.$set(e.create.temp,"remain",t)},expression:"create.temp.remain"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{ref:"times",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"班次"},model:{value:e.create.temp.times,callback:function(t){e.$set(e.create.temp,"times",t)},expression:"create.temp.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.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"==e.create.dialogStatus,type:"datetime",placeholder:"选择处理时间",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm",clearable:!1},model:{value:e.create.temp.operatetime,callback:function(t){e.$set(e.create.temp,"operatetime",t)},expression:"create.temp.operatetime"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"操作人:",prop:"emp"}},[a("el-select",{ref:"emp",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"操作人"},on:{blur:e.blurEmp},model:{value:e.create.temp.emp,callback:function(t){e.$set(e.create.temp,"emp",t)},expression:"create.temp.emp"}},e._l(e.create.noteTakerList,(function(e,t){return a("el-option",{key:e.myId,attrs:{label:e.emp,value:e.emp}})})),1)],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createDataAgain()}}},[e._v("确认新增")]):e._e(),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"MaterialRemainingRecord",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getBarfeedremainList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d} {h}:{i}"),emp:n.a.get("employename"),barid:"",barname:"",remain:"",times:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],remain:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getBarfeedremainEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="MaterialRemainingRecord",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){if(e.houseNameList=t.data.getBarListEnable.list,null!==t.data.getSysoptEnable.list)for(var a=1;a<=t.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="第四班"),e.frequencyList.push(i)}else e.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d} {h}:{i}"),emp:n.a.get("employename"),barid:"",barname:"",remain:"",times:""}},blurEmp:function(e){this.create.temp.emp=e.target.value},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname},getNoteTakerList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].myId=a;e.create.noteTakerList=t.data.list,console.log("记录人数据",t.data.list),console.log(e.create.noteTakerList)}else e.create.noteTakerList=[]}))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.remain)))return e.$message({type:"error",message:"剩料量请输入自然数并保留两位小数",duration:2e3}),!1;e.requestParam.name="insertBarfeedremain",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList();else{var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍该班次今日剩料量已存在,不可重复生成",duration:2e3}):Object(r["l"])(t,e.$notify)}}))}}))},createDataAgain:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.remain)))return e.$message({type:"error",message:"剩料量请输入自然数并保留两位小数",duration:2e3}),!1;e.requestParam.name="insertBarfeedremain",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.resetTemp(),e.getList(),e.getNoteTakerList();else{var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍该班次今日剩料量已存在,不可重复生成",duration:2e3}):Object(r["l"])(t,e.$notify)}}))}}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.remain)))return e.$message({type:"error",message:"剩料量请输入自然数并保留两位小数",duration:2e3}),!1;e.requestParam.name="updateBarfeedremain",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteBarfeedremain",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍剩料记录",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteBarfeedremain",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCopy:function(){var e=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍剩料记录",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="copybarfeedremain",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.selectList[0].pastureid,e.requestParam.parammaps.id=e.selectList[0].id,Object(r["g"])(e.requestParam).then((function(t){if("fail"===t.msg){var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍该班次今日剩料量已存在,不可重复生成",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}else e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条栏舍剩料记录",duration:2e3})},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("81f0"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"c5aa3034",null);t["default"]=h.exports},3537:function(e,t,a){"use strict";a("c740"),a("d81d"),a("a434");var i=a("a5e0"),s=a("aa35"),r={debug:!1,state:{dimensions:[],caculCols:[],caculCols2:[],allCols:[]},addDimensionAction:function(e){this.debug&&console.log("adddimensionAction triggered with",e),e.isDimension=!0},deleteDimensionAction:function(e){this.debug&&console.log("deleteDimensionAction triggered with",e);var t=this.state.dimensions.findIndex((function(t){return t.Column===e.Column}));this.state.dimensions[t].isDimension=!1,this.state.dimensions.splice(t,1)},setDimensionsAction:function(e){this.debug&&console.log("setDimensionsAction triggered"),this.state.dimensions=e},addCaculColAction:function(e){this.debug&&console.log("addCaculColAction triggered with",e);var t=Object(i["c"])(e.Type),a=this.state.caculCols.findIndex((function(t){return t.Column===e.Column})),r={Column:e.Column,Comment:e.Comment,calculFunc:t.availableFunc[0],Type:e.Type,availableFunc:t.availableFunc.map((function(e){return{name:s["c"][e],func:e}}))};this.state.caculCols.splice(a,1,r)},addCaculColAction2:function(e){this.debug&&console.log("addCaculColAction2 triggered with",e);var t=Object(i["c"])(e.Type),a=this.state.caculCols2.findIndex((function(t){return t.Column===e.Column})),r={Column:e.Column,Comment:e.Comment,calculFunc:t.availableFunc[0],Type:e.Type,availableFunc:t.availableFunc.map((function(e){return{name:s["c"][e],func:e}}))};this.state.caculCols2.splice(a,1,r)},deleteCaculColAction:function(e){this.debug&&console.log("deleteCaculColAction triggered with",e);var t=this.state.caculCols.findIndex((function(t){return t.Column===e.Column}));this.state.caculCols.splice(t,1)},deleteCaculColAction2:function(e){this.debug&&console.log("deleteCaculColAction2 triggered with",e);var t=this.state.caculCols2.findIndex((function(t){return t.Column===e.Column}));this.state.caculCols2.splice(t,1)},setCaculColsAction:function(e){this.debug&&console.log("setCaculColsAction triggered"),this.state.caculCols=e},setCaculColsAction2:function(e){this.debug&&console.log("setCaculColsAction2 triggered"),this.state.caculCols2=e},setAllColsAction:function(e){this.debug&&console.log("setAllColsAction triggered width",e),this.state.allCols=e}};t["a"]=r},3581:function(e,t,a){},3613:function(e,t,a){"use strict";var i=a("5154"),s=a.n(i);s.a},"36e1":function(e,t,a){"use strict";var i=a("da14"),s=a.n(i);s.a},"36ef":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},s=[],r=a("313e"),l=a.n(r),n=a("a7dc");a("817d");var o={mixins:[n["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(e){this.setOptions(e),console.log("watch拿到的val",e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(this.$el,"macarons"),this.setOptions(this.chartData),console.log("methods拿到的this.chartData",this.chartData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expectedData,a=e.actualData;console.log("setOptions拿到的expectedData",t),this.chart.setOption({xAxis:{data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["expected","actual"]},series:[{name:"expected",itemStyle:{normal:{color:"#FF005A",lineStyle:{color:"#FF005A",width:2}}},smooth:!0,type:"line",data:t,animationDuration:2800,animationEasing:"cubicInOut"},{name:"actual",smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:a,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},c=o,d=a("2877"),m=Object(d["a"])(c,i,s,!1,null,null,null);t["default"]=m.exports},"370a":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation",staticStyle:{"margin-bottom":"20px"}},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"姓名","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"部门","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",disabled:""},model:{value:t.row.operateweight,callback:function(a){e.$set(t.row,"operateweight",a)},expression:"scope.row.operateweight"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-form-item",{attrs:{label:"姓名:",prop:"jituan"}},[a("el-input",{ref:"jituan",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.jituan,callback:function(t){e.$set(e.create.temp,"jituan",t)},expression:"create.temp.jituan"}})],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"部门:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择客户"},on:{change:e.changeBar},model:{value:e.create.temp.barid,callback:function(t){e.$set(e.create.temp,"barid",t)},expression:"create.temp.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1)],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"电话:",prop:"jituan"}},[a("el-input",{ref:"jituan",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.jituan,callback:function(t){e.$set(e.create.temp,"jituan",t)},expression:"create.temp.jituan"}})],1)],1),a("el-row",[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:"请输入备注,最多255个字",maxlength:"255"},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"顺序:",prop:"jituan"}},[a("el-input",{ref:"jituan",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.jituan,callback:function(t){e.$set(e.create.temp,"jituan",t)},expression:"create.temp.jituan"}})],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"启用:",prop:"remark"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.create.temp.operateweight,callback:function(t){e.$set(e.create.temp,"operateweight",t)},expression:"create.temp.operateweight"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("ade3")),l=a("2934"),n=a("a78e"),o=a.n(n),c=a("ed08"),d=a("333d"),m=a("5c96"),p={name:"OtherProjects",components:{Pagination:d["a"]},data:function(){var e;return e={isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid"),inforname:"times"}}],houseNameList:[],jiTuanList:[]},Object(r["a"])(e,"jiTuanList",[]),Object(r["a"])(e,"frequencyList",[]),Object(r["a"])(e,"table",{getdataListParm:{name:"getDungscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}}),Object(r["a"])(e,"create",{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:o.a.get("pastureid"),operatetime:Object(c["e"])(new Date,"{y}-{m}-{d}"),emp:o.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"}],tele:[{type:"number",message:"必须为数字值",trigger:"blur"}]},getdataListParm:{name:"getDungscoreEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},noteTakerList:[]}),Object(r["a"])(e,"textMap",{create:"新增",see:"查看",update:"编辑"}),Object(r["a"])(e,"requestParam",{}),Object(r["a"])(e,"isokDisable",!1),Object(r["a"])(e,"selectList",[]),Object(r["a"])(e,"rowStyle",{maxHeight:"25px",height:"25px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),e},created:function(){this.getList(),this.getDownList()},methods:{getButtons:function(){var e="DungScores",t=Object(l["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(l["e"])(this.requestParams).then((function(t){e.houseNameList=t.data.getBarListEnable.list,console.log("客户名称下拉框",e.houseNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,Object(l["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},resetTemp:function(){this.create.temp={pastureid:o.a.get("pastureid"),operatetime:Object(c["e"])(new Date,"{y}-{m}-{d}"),emp:o.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score1:"",score2:"",score3:"",score4:"",score5:"",remark:"",ftid:"",ftname:""}},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname},getNoteTakerList:function(){var e=this;Object(l["d"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].myId=a;e.create.noteTakerList=t.data.list,console.log("记录人数据",t.data.list),console.log(e.create.noteTakerList)}else e.create.noteTakerList=[]}))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);e.requestParam.name="insertDungscore",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=o.a.get("employename")),Object(l["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(l["l"])(t,e.$notify)}))}}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){t&&(e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="updateDungscore",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=o.a.get("employename")),Object(l["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(l["l"])(t,e.$notify)})))}))},handleRowDelete:function(e){var t=this;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteDungscore",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(l["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},u=p,h=(a("9bc7"),a("2877")),g=Object(h["a"])(u,i,s,!1,null,"1209feee",null);t["default"]=g.exports},3774:function(e,t,a){},3839:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"3a04":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"供应商名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.providerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"providerName",t)},expression:"table.getdataListParm.parammaps.providerName"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"供应商编号",clearable:""},model:{value:e.table.getdataListParm.parammaps.providerNumber,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"providerNumber",t)},expression:"table.getdataListParm.parammaps.providerNumber"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"供应商名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.providerName))]):e._e(),t.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:t.row.providerName,callback:function(a){e.$set(t.row,"providerName",a)},expression:"scope.row.providerName"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"供应商编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.providerNumber))]):e._e(),t.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:t.row.providerNumber,callback:function(a){e.$set(t.row,"providerNumber",a)},expression:"scope.row.providerNumber"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"联系人","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.linkman))]):e._e(),t.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:t.row.linkman,callback:function(a){e.$set(t.row,"linkman",a)},expression:"scope.row.linkman"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"联系方式","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.telphone))]):e._e(),t.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:t.row.telphone,callback:function(a){e.$set(t.row,"telphone",a)},expression:"scope.row.telphone"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.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:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"Supplier",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getProviderList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),providerName:"",providerNumber:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var e="Supplier",t=Object(r["j"])(this.$store.state.user.buttons,e);this.isRoleEdit=t},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.providerName="",this.table.getdataListParm.parammaps.providerNumber="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log(11);for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,providerName:"",providerNumber:"",linkman:"",telphone:"",remark:""})},createData:function(e){var t=this;if(console.log("点击了新增保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.providerNumber=e.providerNumber,this.table.temp.providerName=e.providerName,this.table.temp.linkman=e.linkman,this.table.temp.telphone=e.telphone,this.table.temp.remark=e.remark,this.table.temp.enable=e.enable,""==this.table.temp.providerName&&""==this.table.temp.providerNumber)return this.$message({type:"error",message:"供应商名称/供应商编号不能为空",duration:2e3}),!1;if(""==this.table.temp.providerNumber)return this.$message({type:"error",message:"供应商编号不能为空",duration:2e3}),!1;if(""==this.table.temp.providerName)return this.$message({type:"error",message:"供应商名称不能为空",duration:2e3}),!1;var a=/(^[\-0-9][0-9]*(.[0-9]+)?)$/;if(!a.test(parseInt(this.table.temp.providerNumber)))return console.log(this.table.temp.providerNumber),this.$message({type:"error",message:"供应商编号请输入1-8位数字",duration:2e3}),!1;if(""!==this.table.temp.telphone){var i=/^\d{11}$/;if(!i.test(this.table.temp.telphone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="insertProvider",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.providerNumber=e.providerNumber,this.table.temp.providerName=e.providerName,this.table.temp.linkman=e.linkman,this.table.temp.telphone=e.telphone,this.table.temp.remark=e.remark,this.table.temp.enable=e.enable,this.table.temp.id=e.id,""==this.table.temp.providerName&&""==this.table.temp.providerNumber)return this.$message({type:"error",message:"供应商名称/供应商编号不能为空",duration:2e3}),!1;if(""==this.table.temp.providerNumber)return this.$message({type:"error",message:"供应商编号不能为空",duration:2e3}),!1;if(""==this.table.temp.providerName)return this.$message({type:"error",message:"供应商名称不能为空",duration:2e3}),!1;var a=/(^[\-0-9][0-9]*(.[0-9]+)?)$/;if(!a.test(parseInt(this.table.temp.providerNumber)))return console.log(this.table.temp.providerNumber),this.$message({type:"error",message:"供应商编号请输入1-8位数字",duration:2e3}),!1;if(""!==this.table.temp.telphone){var i=/^\d{11}$/;if(!i.test(this.table.temp.telphone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateProvider",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteProvider",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择供应商信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteProvider",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},m=d,p=(a("7f86"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"e7e6667c",null);t["default"]=u.exports},"3a18":function(e,t,a){},"3c49":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:5}},[a("el-col",{attrs:{span:5}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",staticStyle:{"text-align":"right"},attrs:{slot:"header"},slot:"header"},[a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:2}},[a("el-col",{staticStyle:{"text-align":"left","vertical-align":"middle","font-size":"20px"},attrs:{span:12}},[a("span",[e._v("菜单 ")])]),a("el-col",{attrs:{span:6}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"warning",icon:"el-icon-edit",size:"mini"},on:{click:e.jump}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh",size:"mini"},on:{click:function(t){return e.getList()}}})],1)],1)],1),a("div",{staticClass:"component-item"},[a("el-tree",{ref:"tree",staticClass:"filter-tree",attrs:{data:e.parent,props:e.defaultProps},on:{"node-click":e.handleNodeClick}})],1)])],1),a("el-col",{attrs:{span:19}},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 新增 ")]),a("el-input",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"接口名称",clearable:""},model:{value:e.interfaceName,callback:function(t){e.interfaceName=t},expression:"interfaceName"}}),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){return e.handleFind()}}},[e._v(" 查找 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"菜单名称","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.menuname))])]}}])}),a("el-table-column",{attrs:{label:"名称","min-width":"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.name))])]}}])}),a("el-table-column",{attrs:{label:"调用方法","header-align":"center",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.method))])]}}])}),a("el-table-column",{attrs:{label:"接口名称","header-align":"center",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sqlname))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e(),a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleCopy(i)}}},[e._v(" 复制 ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"菜单名称22",prop:"selectmenutree"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:400,size:"small",data:e.parent,"expand-all":"","default-props":e.defaultProps,"collapse-tags":"",onlyleaf:"","node-key":"id","checked-keys":e.defaultMenuCheckedKeys},on:{popoverHide:e.menu_popoverHide}})],1),a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:e.deptform.name,callback:function(t){e.$set(e.deptform,"name",t)},expression:"deptform.name"}})],1),a("el-form-item",{attrs:{label:"接口名称",prop:"sqlname"}},[a("el-input",{ref:"sqlname",model:{value:e.deptform.sqlname,callback:function(t){e.$set(e.deptform,"sqlname",t)},expression:"deptform.sqlname"}})],1),a("el-form-item",{attrs:{label:"调用方法",prop:"method"}},[a("el-input",{ref:"method",model:{value:e.deptform.method,callback:function(t){e.$set(e.deptform,"method",t)},expression:"deptform.method"}})],1),a("el-form-item",{attrs:{label:"SQL",prop:"sqlstr"}},[a("el-input",{ref:"sqlstr",attrs:{autosize:{minRows:2,maxRows:100},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.sqlstr,callback:function(t){e.$set(e.deptform,"sqlstr",t)},expression:"deptform.sqlstr"}})],1),a("el-form-item",{attrs:{label:"参数",prop:"params"}},[a("el-input",{ref:"params",model:{value:e.deptform.params,callback:function(t){e.$set(e.deptform,"params",t)},expression:"deptform.params"}})],1),a("el-form-item",{attrs:{label:"调用示例",prop:"request_body"}},[a("el-input",{ref:"request_body",attrs:{autosize:{minRows:2,maxRows:100},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.request_body,callback:function(t){e.$set(e.deptform,"request_body",t)},expression:"deptform.request_body"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:e.deptform.remark,callback:function(t){e.$set(e.deptform,"remark",t)},expression:"deptform.remark"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.deptform.sort,callback:function(t){e.$set(e.deptform,"sort",t)},expression:"deptform.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.createData_again()}}},[e._v(" 确认新增 ")]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.requesttest()}}},[e._v(" 调用测试 ")])],1)],1)],1)])],1)},s=[],r=(a("c975"),a("b0c0"),a("3de8")),l=a("6724"),n=a("2934"),o=a("333d"),c=a("5c96"),d={name:"Apisql",components:{Pagination:o["a"],TreeSelect:r["a"]},directives:{waves:l["a"]},data:function(){return{disabled:!1,defaultProps:{children:"children",label:"title"},menuid:0,interfaceName:"",list:[{sqlname:"",id:0,sqlstr:""}],total:0,listLoading:!0,requestParam:{name:"createapisql",params:[]},deptform:{menuid:"",apisqlid:"",method:"",sqlname:"",sqlstr:"",request_body:"",remark:"",params:"",sort:"",enable:"",return_body:"",name:""},getdataListParm:{name:"getapisqlall",offset:1,pagecount:10,params:["","","",""]},getRecuListParm:{name:"getMenuRecu"},rules:{sqlname:[{type:"string",required:!0,message:"sql名称必填",trigger:"change"}],sqlstr:[{type:"string",required:!0,message:"sql内容必填",trigger:"change"}],name:[{type:"string",required:!0,message:"名称必填",trigger:"change"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},parent:[],defaultMenuCheckedKeys:[],selectedMenu:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{menu_popoverHide:function(e,t){console.log(e),this.deptform.menuid=e},jump:function(){this.$router.push("/console/menu")},menuCheckChange:function(e,t,a){console.log(e,"数据"),console.log(t,"选中状态"),console.log(a,"子树中选中状态");var i=this.selectMenu.menuid.indexOf(e.id);i<0&&1===this.selectMenu.menuid.length&&t?(console.log("only one"),this.$message({message:"只能选择一个菜单!",type:"error",showClose:!0}),this.$refs.selectmenutree.setChecked(e,!1)):0===this.selectMenu.menuid.length&&t?(this.selectMenu.menuid=[],this.deptform.menuid=e.id,this.selectMenu.menuid.push(e.id)):i>=0&&1===this.selectMenu.menuid.length&&!t&&(this.selectMenu.menuid=[])},handleFind:function(){var e=this;this.listLoading=!0,this.getdataListParm.params=[this.menuid,this.menuid,this.interfaceName,this.interfaceName],Object(n["d"])(this.getdataListParm).then((function(t){console.log(t),e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},handleNodeClick:function(e){var t=this;console.log(e),(void 0===e.children||void 0!==e.children&&0===e.children.length)&&(this.listLoading=!0,this.menuid=e.id,this.getdataListParm.params=[e.id,e.id,"",""],Object(n["d"])(this.getdataListParm).then((function(e){e.data.total>0?(t.list=e.data.list,t.total=e.data.total):(t.list=[],t.total=0),setTimeout((function(){t.listLoading=!1}),100)})))},getDownList:function(){var e=this;Object(n["d"])(this.getRecuListParm).then((function(t){console.log(t),e.parent=t.data,null!==t.data.list&&(e.parent=Object(n["t"])(t.data.list,"id","parentid","children"))}))},deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},getList:function(){var e=this;this.menuid=0,this.listLoading=!0,this.getDownList(),Object(n["d"])(this.getdataListParm).then((function(t){console.log(t),e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},requesttest:function(){var e=this;this.listLoading=!0,console.log(JSON.parse(this.deptform.request_body)),Object(n["s"])(JSON.parse(this.deptform.request_body),this.deptform.method).then((function(t){console.log(t.data),e.deptform.return_body=JSON.stringify(t.data),setTimeout((function(){e.listLoading=!1}),100)}))},resetRequestParam:function(){this.deptform.sqlid="",this.deptform.menuid="",this.deptform.method="",this.deptform.sqlname="",this.deptform.sqlstr="",this.deptform.params="",this.deptform.remark="",this.deptform.request_body="",this.deptform.sort="0",this.deptform.enable="1",this.deptform.return_body="",this.deptform.name=""},handleCreate:function(){var e=this;this.resetRequestParam(),this.deptform.menuid=this.menuid,this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.sqlname.focus()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createapisql",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.sqlstr,e.requestParam.params[1]=e.deptform.sqlname,e.requestParam.params[2]=e.deptform.params,e.requestParam.params[3]=e.deptform.menuid,e.requestParam.params[4]="tmrgo",e.requestParam.params[5]=e.deptform.sort,e.requestParam.params[6]=e.deptform.enable,e.requestParam.params[7]=e.deptform.method,e.requestParam.params[8]=e.deptform.name,e.requestParam.params[9]=e.deptform.request_body,e.requestParam.params[10]=e.deptform.return_body,Object(n["g"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createapisql",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.sqlstr,e.requestParam.params[1]=e.deptform.sqlname,e.requestParam.params[2]=e.deptform.params,e.requestParam.params[3]=e.menuid,e.requestParam.params[4]="tmrgo",e.requestParam.params[5]=e.deptform.sort,e.requestParam.params[6]=e.deptform.enable,e.requestParam.params[7]=e.deptform.method,e.requestParam.params[8]=e.deptform.name,e.requestParam.params[9]=e.deptform.request_body,e.requestParam.params[10]=e.deptform.return_body,Object(n["g"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["sqlname"].focus()})),e.getList(),e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(e){var t=this;this.deptform.sqlid=e.id,null===e.menuid?this.deptform.menuid=0:this.deptform.menuid=e.menuid,this.deptform.method=e.method,this.deptform.sqlname=e.sqlname,this.deptform.sqlstr=e.sqlstr,this.deptform.params=e.params,this.deptform.request_body=e.request_body,this.deptform.return_body=e.return_body,this.deptform.name=e.name,this.deptform.remark=e.remark,this.deptform.sort=e.sort,this.deptform.enable=e.enable,0!==this.deptform.menuid?this.defaultMenuCheckedKeys=[this.deptform.menuid]:this.defaultMenuCheckedKeys=[],this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["sqlname"].focus()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateapisql",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.sqlstr,e.requestParam.params[1]=e.deptform.sqlname,e.requestParam.params[2]=e.deptform.params,e.requestParam.params[3]=e.deptform.menuid,e.requestParam.params[4]="tmrgo",e.requestParam.params[5]=e.deptform.sort,e.requestParam.params[6]=e.deptform.enable,e.requestParam.params[7]=e.deptform.method,e.requestParam.params[8]=e.deptform.name,e.requestParam.params[9]=e.deptform.request_body,e.requestParam.params[10]=e.deptform.return_body,e.requestParam.params[11]=e.deptform.sqlid,Object(n["g"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateapisql",this.requestParam.params=[],this.requestParam.params[0]=t.sqlstr,this.requestParam.params[1]=t.sqlname,this.requestParam.params[2]=t.params,this.requestParam.params[3]=t.menuid,this.requestParam.params[4]=t.remark,this.requestParam.params[5]=t.sort,this.requestParam.params[6]=t.enable,this.requestParam.params[7]=t.method,this.requestParam.params[8]=t.name,this.requestParam.params[9]=t.request_body,this.requestParam.params[10]=t.return_body,this.requestParam.params[11]=t.id,Object(n["g"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleCopy:function(e){var t=this;this.requestParam={},this.requestParam.name="copySQL",this.requestParam.params=[],this.requestParam.params[0]=e.id,Object(n["g"])(this.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"复制成功",type:"success",duration:2e3})}))},handleDelete:function(e){var t=this;c["MessageBox"].confirm("sql名称:"+e.sqlname,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteapisql",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(n["g"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},m=d,p=a("2877"),u=Object(p["a"])(m,i,s,!1,null,null,null);t["default"]=u.exports},"3d9a":function(e,t,a){},"3dcc":function(e,t,a){"use strict";var i=a("1fc4"),s=a.n(i);s.a},"3de8":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSelect,expression:"isShowSelect"}],staticClass:"mask",on:{click:function(t){e.isShowSelect=!e.isShowSelect}}}),a("el-popover",{attrs:{disabled:e.disabled,placement:"bottom-start",width:e.width,trigger:"manual"},on:{hide:e.popoverHide},model:{value:e.isShowSelect,callback:function(t){e.isShowSelect=t},expression:"isShowSelect"}},[a("el-tree",{ref:"tree",staticClass:"common-tree",style:e.style,attrs:{data:e.data,props:e.defaultProps,"show-checkbox":e.multiple,"node-key":e.nodeKey,disabled:e.disabled,"check-strictly":e.checkStrictly,"default-expand-all":e.expandAll,"expand-on-click-node":!1,"check-on-click-node":e.multiple,"highlight-current":!0},on:{"node-click":e.handleNodeClick,"check-change":e.handleCheckChange}}),a("el-select",{ref:"select",staticClass:"tree-select",style:e.selectStyle,attrs:{slot:"reference",size:e.size,disabled:e.disabled,placeholder:e.placeholder,multiple:e.multiple,clearable:e.clearable,"collapse-tags":e.collapseTags},on:{"remove-tag":e.removeSelectedNodes,clear:e.removeSelectedNode,change:e.changeSelectedNodes},nativeOn:{click:function(t){e.isShowSelect=!e.isShowSelect}},slot:"reference",model:{value:e.selectedData,callback:function(t){e.selectedData=t},expression:"selectedData"}},e._l(e.options,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)},s=[],r=(a("99af"),a("d81d"),a("a9e3"),{name:"TreeSelect",props:{data:{type:Array,default:function(){return[]}},defaultProps:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:function(){return!1}},onlyleaf:{type:Boolean,default:function(){return!1}},clearable:{type:Boolean,default:function(){return!1}},disabled:{type:Boolean,default:function(){return!0}},placeholder:{type:String,default:function(){return"请选择"}},collapseTags:{type:Boolean,default:function(){return!1}},expandAll:{type:Boolean,default:function(){return!1}},nodeKey:{type:String,default:function(){return"id"}},checkStrictly:{type:Boolean,default:function(){return!1}},checkedKeys:{type:Array,default:function(){return[]}},size:{type:String,default:function(){return"small"}},width:{type:Number,default:function(){return 250}},height:{type:Number,default:function(){return 300}}},data:function(){return{isShowSelect:!1,options:[],selectedData:[],style:"width:"+this.width+"px;height:"+this.height+"px;",selectStyle:"width:"+(this.width+24)+"px;",checkedIds:[],checkedData:[]}},watch:{isShowSelect:function(e){this.$refs.select.blur()},checkedKeys:function(e){e&&(this.checkedKeys=e,this.initCheckedData())}},mounted:function(){this.initCheckedData()},methods:{setSelectOption:function(e){var t={};t.value=e.key,t.label=e.label,this.options=[],this.options.push(t),this.selectedData=e.key},checkSelectedNode:function(e){var t=e[0];this.$refs.tree.setCurrentKey(t);var a=this.$refs.tree.getNode(t);this.setSelectOption(a)},checkSelectedNodes:function(e){this.$refs.tree.setCheckedKeys(e)},clearSelectedNode:function(){this.selectedData="",this.$refs.tree.setCurrentKey(null)},clearSelectedNodes:function(){for(var e=this.$refs.tree.getCheckedKeys(),t=0;t<e.length;t++)this.$refs.tree.setChecked(e[t],!1)},initCheckedData:function(){this.multiple?this.checkedKeys.length>0?this.checkSelectedNodes(this.checkedKeys):this.clearSelectedNodes():this.checkedKeys.length>0?this.checkSelectedNode(this.checkedKeys):this.clearSelectedNode()},popoverHide:function(){this.multiple?(this.checkedIds=this.$refs.tree.getCheckedKeys(),this.checkedData=this.$refs.tree.getCheckedNodes()):(this.checkedIds=this.$refs.tree.getCurrentKey(),this.checkedData=this.$refs.tree.getCurrentNode()),this.$emit("popoverHide",this.checkedIds,this.checkedData)},handleNodeClick:function(e,t){this.onlyleaf&&(!this.onlyleaf||0!==e.haschildren&&void 0!=e.children)||this.multiple||(this.setSelectOption(t),this.isShowSelect=!this.isShowSelect,this.$emit("change",this.selectedData))},handleCheckChange:function(){var e=this,t=this.$refs.tree.getCheckedKeys();this.options=t.map((function(t){var a=e.$refs.tree.getNode(t),i={};return i.value=a.key,i.label=a.label,i})),this.selectedData=this.options.map((function(e){return e.value})),this.$emit("change",this.selectedData)},removeSelectedNodes:function(e){var t=this;this.$refs.tree.setChecked(e,!1);var a=this.$refs.tree.getNode(e);!this.checkStrictly&&a.childNodes.length>0&&(this.treeToList(a).map((function(e){e.childNodes.length<=0&&t.$refs.tree.setChecked(e,!1)})),this.handleCheckChange()),this.$emit("change",this.selectedData)},treeToList:function(e){var t=[],a=[];t=t.concat(e);while(t.length){var i=t.shift();i.childNodes&&(t=t.concat(i.childNodes)),a.push(i)}return a},removeSelectedNode:function(){this.clearSelectedNode(),this.$emit("change",this.selectedData),this.popoverHide()},changeSelectedNodes:function(e){this.multiple&&e.length<=0&&this.clearSelectedNodes(),this.$emit("change",this.selectedData)}}}),l=r,n=(a("957d"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,"459464a9",null);t["a"]=o.exports},"3f2c":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-editor-container"},[a("panel-group",{on:{handleSetLineChartData:e.handleSetLineChartData}}),a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("line-chart",{attrs:{"chart-data":e.lineChartData}})],1),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("raddar-chart")],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("pie-chart")],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("bar-chart")],1)])],1),a("el-row",{attrs:{gutter:8}},[a("el-col",{staticStyle:{"padding-right":"8px","margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:24},md:{span:24},lg:{span:12},xl:{span:12}}},[a("transaction-table")],1),a("el-col",{staticStyle:{"margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:12},md:{span:12},lg:{span:6},xl:{span:6}}},[a("todo-list")],1),a("el-col",{staticStyle:{"margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:12},md:{span:12},lg:{span:6},xl:{span:6}}},[a("box-card")],1)],1)],1)},s=[],r=a("6768"),l=a("36ef"),n=a("7b75"),o=a("2044"),c=a("5f84"),d=a("2f3f"),m=a("2544"),p=a("8269"),u={newVisitis:{expectedData:[100,120,161,134,105,160,165],actualData:[120,82,91,154,162,140,145]},messages:{expectedData:[200,192,120,144,160,130,140],actualData:[180,160,151,106,145,150,130]},purchases:{expectedData:[80,100,121,104,105,90,100],actualData:[120,90,100,138,142,130,130]},shoppings:{expectedData:[130,140,141,142,145,150,160],actualData:[120,82,91,154,162,140,130]}},h={name:"DashboardAdmin",components:{PanelGroup:r["default"],LineChart:l["default"],RaddarChart:n["default"],PieChart:o["default"],BarChart:c["default"],TransactionTable:d["default"],TodoList:m["default"],BoxCard:p["default"]},data:function(){return{lineChartData:u.newVisitis}},methods:{handleSetLineChartData:function(e){this.lineChartData=u[e]}}},g=h,f=(a("c989"),a("2877")),b=Object(f["a"])(g,i,s,!1,null,"51832acc",null);t["default"]=b.exports},"3f4d":function(e,t,a){},"3fc7":function(e,t,a){},"400d":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增入库单")]),a("el-button",{staticClass:"success",on:{click:e.handleInitial}},[e._v("初始化库存")])],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.feedid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"feedid",t)},expression:"table.getdataListParm.parammaps.feedid"}},e._l(e.feedNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.fname,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"供应商",clearable:""},model:{value:e.table.getdataListParm.parammaps.providerid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"providerid",t)},expression:"table.getdataListParm.parammaps.providerid"}},e._l(e.supplierList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.providerName,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"是否入库",clearable:""},model:{value:e.table.getdataListParm.parammaps.islaid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"islaid",t)},expression:"table.getdataListParm.parammaps.islaid"}},e._l(e.islaidList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"入库日期","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.laiddate))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providername))])]}}])}),a("el-table-column",{attrs:{label:"入库重量(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operateweight))])]}}])}),a("el-table-column",{attrs:{label:"总价(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumprice))])]}}])}),a("el-table-column",{attrs:{label:"批号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pcpde))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"是否入库","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.islaid))])]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createemp))])]}}])}),a("el-table-column",{attrs:{label:"创建日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createdate))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),"否"==i.islaid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.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"}},[e._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"==e.create.dialogStatus,type:"date",placeholder:"入库日期",clearable:!1,"picker-options":e.create.pickerOptions1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.create.createTemp.laiddate,callback:function(t){e.$set(e.create.createTemp,"laiddate",t)},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"==e.create.dialogStatus,placeholder:"送货单编号",type:"text"},model:{value:e.create.createTemp.wagonnumber,callback:function(t){e.$set(e.create.createTemp,"wagonnumber",t)},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":e.feedNameSearch,placeholder:"请选择饲料名称",disabled:"see"==e.create.dialogStatus||"update"==e.create.dialogStatus},on:{select:e.handleSelectFeedName,blur:e.blurFeedName},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",[e._v(e._s(i.fname))])]}}]),model:{value:e.create.createTemp.feedname,callback:function(t){e.$set(e.create.createTemp,"feedname",t)},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"==e.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:e.blurOperateweight},model:{value:e.create.createTemp.operateweight,callback:function(t){e.$set(e.create.createTemp,"operateweight","string"===typeof t?t.trim():t)},expression:"create.createTemp.operateweight"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"供应商:",prop:"providerid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择供应商",disabled:"see"==e.create.dialogStatus},on:{change:e.changeSupplier},model:{value:e.create.createTemp.providerid,callback:function(t){e.$set(e.create.createTemp,"providerid",t)},expression:"create.createTemp.providerid"}},e._l(e.supplierList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.providerName,value:e.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"==e.create.dialogStatus},on:{change:e.changeContractNo},model:{value:e.create.createTemp.contractcode,callback:function(t){e.$set(e.create.createTemp,"contractcode",t)},expression:"create.createTemp.contractcode"}},e._l(e.contractNoList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.contractcodeCat,value:e.contractcode}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[e._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:""!==e.create.createTemp.contractcode||"see"==e.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:e.blurPricenew},model:{value:e.create.createTemp.pricenew,callback:function(t){e.$set(e.create.createTemp,"pricenew",t)},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"==e.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:e.blurSumprice},model:{value:e.create.createTemp.sumprice,callback:function(t){e.$set(e.create.createTemp,"sumprice",t)},expression:"create.createTemp.sumprice"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[e._v("饲料信息")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"毛重:",prop:"grossweight"}},[a("el-input",{ref:"grossweight",staticClass:"filter-item",attrs:{disabled:"see"==e.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:e.blurGrossweight},model:{value:e.create.createTemp.grossweight,callback:function(t){e.$set(e.create.createTemp,"grossweight","string"===typeof t?t.trim():t)},expression:"create.createTemp.grossweight"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"皮重:",prop:"tareweight"}},[a("el-input",{ref:"tareweight",staticClass:"filter-item",attrs:{disabled:"see"==e.create.dialogStatus,placeholder:"最多两位小数",type:"number",step:.01},on:{blur:e.blurTareweight},model:{value:e.create.createTemp.tareweight,callback:function(t){e.$set(e.create.createTemp,"tareweight","string"===typeof t?t.trim():t)},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"==e.create.dialogStatus,placeholder:"许可证号",type:"text"},model:{value:e.create.createTemp.licence,callback:function(t){e.$set(e.create.createTemp,"licence",t)},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"==e.create.dialogStatus,placeholder:"批号",type:"text"},model:{value:e.create.createTemp.pcpde,callback:function(t){e.$set(e.create.createTemp,"pcpde",t)},expression:"create.createTemp.pcpde"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[e._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:e.create.createTemp.createemp,callback:function(t){e.$set(e.create.createTemp,"createemp",t)},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:e.create.createTemp.createdate,callback:function(t){e.$set(e.create.createTemp,"createdate",t)},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"==e.create.dialogStatus,placeholder:"1-255字符",type:"text"},model:{value:e.create.createTemp.remark,callback:function(t){e.$set(e.create.createTemp,"remark",t)},expression:"create.createTemp.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"see"!==e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:e.textMap[e.initial.dialogStatus],visible:e.initial.dialogFormVisible,"close-on-click-modal":!1,width:"80%",height:"55%"},on:{"update:visible":function(t){return e.$set(e.initial,"dialogFormVisible",t)}}},[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:e.handleInitialExport}},[e._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":e.handleInitialImport}},[a("el-button",{staticClass:"success"},[e._v("导入")])],1)],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.initial.listLoading,expression:"initial.listLoading"}],key:e.initial.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.initial.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"库存重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"最多两位小数",type:"number",step:.01},model:{value:t.row.stockweight,callback:function(a){e.$set(t.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(t){e.initial.dialogFormVisible=!1}}},[e._v("关闭")]),a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.initialData()}}},[e._v("确认")])],1)],1)])])],1)},s=[],r=(a("7db0"),a("4160"),a("a434"),a("a9e3"),a("b680"),a("159b"),a("96cf"),a("1da1")),l=a("2934"),n=a("333d"),o=a("5c96"),c=a("a78e"),d=a.n(c),m=a("ed08"),p=a("1146"),u=a.n(p),h={name:"Warehousing",components:{Pagination:n["a"]},data:function(){return{feedNameList:[],feedNameAddList:[],supplierList:[],contractNoList:[],islaidList:[{id:0,name:"是"},{id:1,name:"否"}],requestParams:[{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:d.a.get("pastureid")}},{name:"getProviderListEnable",offset:0,pagecount:0,parammaps:{pastureid:d.a.get("pastureid")}}],table:{getdataListParm:{name:"getFeedlaidList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inputDatetime:"",startTime:"",stopTime:"",feedid:"",islaid:"",providerid:""}},tableKey:0,list:[],total:0,listLoading:!0},create:{dialogFormVisible:!1,dialogStatus:"",pickerOptions1:{disabledDate:function(e){return e.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")}}},initial:{dialogFormVisible:!1,dialogStatus:"",rules:{},getdataListParm:{name:"getinitFeed",page:1,offset:1,pagecount:6,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0,character:{fname:{text:"饲料名称",type:String},stockweight:{text:"库存重量",type:String}}},textMap:{create:"新增入库单",update:"编辑入库单",see:"查看入库单",initial:"初始化库存"},requestParam:{},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getButtons(),this.getDownList(),this.getList()},methods:{getButtons:function(){var e="Warehousing",t=Object(l["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(l["e"])(this.requestParams).then((function(t){e.feedNameList=t.data.getFeedListEnable.list,e.supplierList=t.data.getProviderListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(l["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(m["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(m["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.islaid="",this.table.getdataListParm.parammaps.providerid="",this.table.getdataListParm.offset=1},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),laiddate:Object(m["e"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",operateweight:"",providerid:"",providername:"",startweight:"",priceold:"",contractcode:"",pricenew:"",sumprice:"",grossweight:"",tareweight:"",licence:"",pcpde:"",createemp:d.a.get("employename"),createdate:Object(m["e"])(new Date,"{y}-{m}-{d}"),remark:"",wagonnumber:""},this.contractNoList=[]},changeSupplier:function(e){console.log(e),""!==e?this.create.createTemp.providername=this.supplierList.find((function(t){return t.id==e})).providerName:(this.create.createTemp.providername="",this.contractNoList=[]),""!==this.create.createTemp.feedid&&""!==this.create.createTemp.providerid&&this.getContractNoList()},changeContractNo:function(e){this.create.createTemp.pricenew=""!==e?this.contractNoList.find((function(t){return t.contractcode==e})).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=this.create.createTemp.sumprice.toFixed(2))},getContractNoList:function(){var e=this;this.create.getdataListParm.parammaps.feedid=this.create.createTemp.feedid,this.create.getdataListParm.parammaps.providerid=this.create.createTemp.providerid,Object(l["d"])(this.create.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.contractNoList=t.data.list,e.create.createTemp.contractcode="",e.create.createTemp.pricenew="",e.create.createTemp.sumprice=""):(e.contractNoList=[],e.create.createTemp.contractcode="",e.create.createTemp.pricenew="",e.create.createTemp.sumprice="")}))},feedNameSearch:function(e,t){this.create.getfeedNameParm.parammaps["fname"]=e,Object(l["d"])(this.create.getfeedNameParm).then((function(e){console.log("模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectFeedName:function(e){console.log("模糊查询选中值",e),this.create.createTemp.feedname=e.fname,this.create.createTemp.feedid=e.id,this.create.createTemp.startweight=e.stockweight,this.create.createTemp.priceold=e.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=parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.operateweight)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=this.create.createTemp.operateweight,this.create.createTemp.tareweight=parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight)),""!==this.create.createTemp.tareweight&&""!==this.create.createTemp.grossweight&&(""==this.create.createTemp.operateweight&&(this.create.createTemp.operateweight=parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight)),parseFloat(this.create.createTemp.tareweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.tareweight=this.create.createTemp.grossweight,this.create.createTemp.operateweight=parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight))),""!==this.create.createTemp.operateweight&&""!==this.create.createTemp.pricenew?(this.create.createTemp.sumprice=parseFloat(this.create.createTemp.operateweight)*parseFloat(this.create.createTemp.pricenew),this.create.createTemp.sumprice=this.create.createTemp.sumprice.toFixed(2)):this.create.createTemp.sumprice=""},blurGrossweight:function(){""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&(this.create.createTemp.tareweight=parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.operateweight)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=this.create.createTemp.operateweight,this.create.createTemp.tareweight=parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight))},blurTareweight:function(){""!==this.create.createTemp.operateweight&&""!==this.create.createTemp.tareweight&&(this.create.createTemp.grossweight=parseFloat(this.create.createTemp.tareweight)+parseFloat(this.create.createTemp.operateweight)),""!==this.create.createTemp.grossweight&&""!==this.create.createTemp.operateweight&&parseFloat(this.create.createTemp.operateweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.grossweight=this.create.createTemp.operateweight,this.create.createTemp.tareweight=parseFloat(this.create.createTemp.operateweight)-parseFloat(this.create.createTemp.operateweight)),""!==this.create.createTemp.tareweight&&""!==this.create.createTemp.grossweight&&parseFloat(this.create.createTemp.tareweight)>parseFloat(this.create.createTemp.grossweight)&&(this.create.createTemp.tareweight=this.create.createTemp.grossweight,this.create.createTemp.operateweight=parseFloat(this.create.createTemp.grossweight)-parseFloat(this.create.createTemp.tareweight))},blurPricenew:function(){""!==this.create.createTemp.operateweight&&""!==this.create.createTemp.pricenew?(this.create.createTemp.sumprice=parseFloat(this.create.createTemp.operateweight)*parseFloat(this.create.createTemp.pricenew),this.create.createTemp.sumprice=this.create.createTemp.sumprice.toFixed(2)):this.create.createTemp.sumprice=""},blurSumprice:function(){""!==this.create.createTemp.sumprice&&""!==this.create.createTemp.pricenew?(this.create.createTemp.operateweight=parseFloat(this.create.createTemp.sumprice)/parseFloat(this.create.createTemp.pricenew),this.create.createTemp.operateweight=this.create.createTemp.operateweight.toFixed(2)):this.create.createTemp.operateweight=""},handleCreate:function(){var e=this;console.log("点击了新增入库单"),this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.$nextTick((function(){e.$refs.createTemp.resetFields()}))},createData:function(){var e=this;this.$refs["createTemp"].validate((function(t){if(t){if(""==e.create.createTemp.operateweight&&""==e.create.createTemp.grossweight)return e.$message({type:"error",message:"请输入入库重量或毛重",duration:2e3}),!1;e.create.createTemp.sumprice.length>15&&e.$message({type:"error",message:"数值过大请重新输入",duration:2e3});var a=/^\d+(\.\d{1,2})?$/;if(""!==e.create.createTemp.operateweight){if(0==e.create.createTemp.operateweight)return e.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.operateweight)))return e.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1}if(0==e.create.createTemp.pricenew)return e.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.pricenew)))return e.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(""!==e.create.createTemp.pricenew&&""!==e.create.createTemp.operateweight){if(0==e.create.createTemp.sumprice)return e.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.sumprice)))return e.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==e.create.createTemp.grossweight){if(0==e.create.createTemp.grossweight)return e.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.grossweight)))return e.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==e.create.createTemp.tareweight){if(0==e.create.createTemp.tareweight)return e.$message({type:"error",message:"皮重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.tareweight)))return e.$message({type:"error",message:"皮重请输入自然数并保留两位小数",duration:2e3}),!1}o["MessageBox"].confirm("是否确认保存当前内容",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertFeedlaid",type:"e",parammaps:{pastureid:e.create.createTemp.pastureid,laiddate:e.create.createTemp.laiddate,feedid:e.create.createTemp.feedid,feedname:e.create.createTemp.feedname,providerid:e.create.createTemp.providerid,providername:e.create.createTemp.providername,contractcode:e.create.createTemp.contractcode,operateweight:e.create.createTemp.operateweight,grossweight:e.create.createTemp.grossweight,tareweight:e.create.createTemp.tareweight,sumprice:e.create.createTemp.sumprice,licence:e.create.createTemp.licence,pcpde:e.create.createTemp.pcpde,remark:e.create.createTemp.remark,createdate:e.create.createTemp.createdate,createemp:e.create.createTemp.createemp,startweight:e.create.createTemp.startweight,priceold:e.create.createTemp.priceold,pricenew:e.create.createTemp.pricenew,wagonnumber:e.create.createTemp.wagonnumber}},""!==e.create.createTemp.operateweight&&parseFloat(e.create.createTemp.operateweight)>0&&(e.requestParam.data[1]={name:"insertFeedstorageLaid",type:"e",parammaps:{operateweight:e.create.createTemp.operateweight,pastureid:e.create.createTemp.pastureid,feedid:e.create.createTemp.feedid,fname:e.create.createTemp.fname,pcpde:e.create.createTemp.pcpde,stockweight:e.create.createTemp.startweight,price:e.create.createTemp.pricenew}}),console.log("点击了新增入库单保存",e.requestParam),Object(l["b"])(e.requestParam).then((function(t){"fail"===t.msg?Object(l["l"])(t,e.$notify):(e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList())}))}))}}))},handleUpdate:function(e){var t=this;console.log("点击了编辑"),this.$nextTick((function(){t.$refs.createTemp.resetFields()})),this.create.dialogStatus="update",this.create.dialogFormVisible=!0,e.feedid=String(e.feedid),this.create.createTemp=Object.assign({},e)},updateData:function(){var e=this;this.$refs["createTemp"].validate((function(t){if(t){if(""==e.create.createTemp.operateweight&&""==e.create.createTemp.grossweight)return e.$message({type:"error",message:"请输入入库重量或毛重",duration:2e3}),!1;e.create.createTemp.sumprice.length>15&&e.$message({type:"error",message:"数值过大请重新输入",duration:2e3});var a=/^\d+(\.\d{1,2})?$/;if(""!==e.create.createTemp.operateweight){if(0==e.create.createTemp.operateweight)return e.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.operateweight)))return e.$message({type:"error",message:"入库重量请输入自然数并保留两位小数",duration:2e3}),!1}if(0==e.create.createTemp.pricenew)return e.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.pricenew)))return e.$message({type:"error",message:"单价请输入自然数并保留两位小数",duration:2e3}),!1;if(""!==e.create.createTemp.pricenew&&""!==e.create.createTemp.operateweight){if(0==e.create.createTemp.sumprice)return e.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.sumprice)))return e.$message({type:"error",message:"总价请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==e.create.createTemp.grossweight){if(0==e.create.createTemp.grossweight)return e.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.grossweight)))return e.$message({type:"error",message:"毛重请输入自然数并保留两位小数",duration:2e3}),!1}if(""!==e.create.createTemp.tareweight){if(0==e.create.createTemp.tareweight)return e.$message({type:"error",message:"皮重请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.tareweight)))return e.$message({type:"error",message:"皮重请输入自然数并保留两位小数",duration:2e3}),!1}o["MessageBox"].confirm("是否确认保存当前内容",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"updateFeedlaid",type:"e",parammaps:{pastureid:e.create.createTemp.pastureid,id:e.create.createTemp.id,laiddate:e.create.createTemp.laiddate,feedid:e.create.createTemp.feedid,feedname:e.create.createTemp.feedname,providerid:e.create.createTemp.providerid,providername:e.create.createTemp.providername,contractcode:e.create.createTemp.contractcode,operateweight:e.create.createTemp.operateweight,grossweight:e.create.createTemp.grossweight,tareweight:e.create.createTemp.tareweight,sumprice:e.create.createTemp.sumprice,licence:e.create.createTemp.licence,pcpde:e.create.createTemp.pcpde,remark:e.create.createTemp.remark,createdate:e.create.createTemp.createdate,createemp:e.create.createTemp.createemp,startweight:e.create.createTemp.startweight,priceold:e.create.createTemp.priceold,pricenew:e.create.createTemp.pricenew,wagonnumber:e.create.createTemp.wagonnumber}},""!==e.create.createTemp.operateweight&&parseFloat(e.create.createTemp.operateweight)>0&&(e.requestParam.data[1]={name:"insertFeedstorageLaid",type:"e",parammaps:{operateweight:e.create.createTemp.operateweight,pastureid:e.create.createTemp.pastureid,feedid:e.create.createTemp.feedid,fname:e.create.createTemp.fname,pcpde:e.create.createTemp.pcpde,stockweight:e.create.createTemp.startweight,price:e.create.createTemp.pricenew}}),console.log("点击了新增入库单保存",e.requestParam),Object(l["b"])(e.requestParam).then((function(t){"fail"===t.msg?Object(l["l"])(t,e.$notify):(e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList())}))}))}}))},handleSee:function(e){var t=this;console.log("点击了查看"),this.$nextTick((function(){t.$refs.createTemp.resetFields()})),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},e)},handleInitial:function(){console.log("点击了初始化库存"),this.initial.dialogStatus="initial",this.initial.dialogFormVisible=!0,this.getInitialList()},getInitialList:function(){var e=this;this.initial.listLoading=!0,Object(l["d"])(this.initial.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.initial.list=t.data.list,e.initial.pageNum=t.data.pageNum,e.initial.pageSize=t.data.pageSize,e.initial.total=t.data.total):e.initial.list=[],setTimeout((function(){e.initial.listLoading=!1}),100)}))},handleInitialExport:function(){console.log("点击了初始化库存导出");var e=[{tHeader:["饲料名称","库存重量"],filterVal:["fname","stockweight"],tableDatas:this.initial.list,sheetName:"初始化库存"}];Object(m["d"])(e,"初始化库存",!0,"xlsx")},handleInitialImport:function(e){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function a(){var i,s,r,l,n,o,c,d,p;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=e.raw,i){a.next=3;break}return a.abrupt("return");case 3:return a.next=5,Object(m["f"])(i);case 5:for(s=a.sent,r=u.a.read(s,{type:"binary"}),s=u.a.utils.sheet_to_json(r.Sheets[r.SheetNames[0]]),console.log(s),l=[],s.forEach((function(e){var a={};for(var i in t.initial.character){if(!t.initial.character.hasOwnProperty(i))break;var s=t.initial.character[i],r=s.text,n=s.type;s=e[r]||"","string"===n&&(s=String(s)),"number"===n&&(s=Number(s)),a[i]=s}l.push(a)})),console.log("导入处理后数据",l),n=0,o=0;o<t.initial.list.length;o++)for(c=0;c<l.length;c++)t.initial.list[o].fname==l[c].fname&&(t.initial.list[o].stockweight=l[c].stockweight,n++,l.splice(c,1));for(console.log(l),d=0;d<l.length;d++)t.$set(l[d],"msg","饲料名称与系统不匹配");console.log(n),t.$message({title:"成功",message:"导入成功:"+n+"条!",type:"success",duration:2e3}),t.$notify({title:"失败",message:"导入失败:"+l.length+"条!",type:"danger",duration:2e3}),l.length>0&&(p=[{tHeader:["饲料名称","库存重量","报错信息"],filterVal:["fname","stockweight","msg"],tableDatas:l,sheetName:"ExcelDatas1"}],Object(m["d"])(p,"初始化库存报错信息",!0,"xlsx"));case 20:case"end":return a.stop()}}),a)})))()},initialData:function(){var e=this;console.log("点击了初始化库存保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);for(var t=/^\d+(\.\d{1,2})?$/,a=0;a<this.initial.list.length;a++)if(!t.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(t){"fail"===t.msg?Object(l["l"])(t,e.$notify):(e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList())}))}}},g=h,f=(a("85e2"),a("2877")),b=Object(f["a"])(g,i,s,!1,null,"6f3e9050",null);t["default"]=b.exports},4098:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-card",{staticClass:"box-card"},[a("el-tree",{ref:"tree",attrs:{data:e.treedata,"node-key":"id",props:"{children: 'children',label: 'label'}","default-expand-all":"",draggable:""},on:{"node-click":e.handleNodeClick}})],1)],1),a("el-col",{attrs:{span:20}},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e()],1),a("el-row",[a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"名称","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.label))])]}}])}),a("el-table-column",{attrs:{label:"排序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"名称:",prop:"label"}},[a("el-input",{ref:"label",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入名称",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.label,callback:function(t){e.$set(e.create.temp,"label",t)},expression:"create.temp.label"}})],1),a("el-form-item",{attrs:{label:"排序:",prop:"sort"}},[a("el-input",{ref:"sort",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入排序",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.sort,callback:function(t){e.$set(e.create.temp,"sort",t)},expression:"create.temp.sort"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniEdit",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c=a("3de8"),d=a("5c96");a("313e");a("817d");var m={name:"AreaSet",components:{Pagination:o["a"],TreeSelect:c["a"]},data:function(){return{isRoleEdit:[],treeRequest:{name:"getCanton",idname:"id",params:[0]},treeClickData:{id:1,label:"",layer:1,parentid:1,sort:1},treeClickParentId:1,treedata:[],employeid:n.a.get("employeid"),tableObj:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{startTime:"",productName:""}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[{label:"江杨水产",value:"3斤",sort:"1",id:1}],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{label:"",parentid:"",sort:1,layer:1},rules:{label:[{required:!0,message:"必填",trigger:"blur"}],sort:[{required:!0,message:"必填",trigger:"blur"}]},bigClassNameList:[{}]},textMap:{create:"新增",see:"查看",update:"编辑"},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px",fontSize:"16px"},headStyle:{padding:"0px",fontSize:"16px",fontWeight:"bold",color:"#333"}}},created:function(){this.getTreeList(),this.getButtons()},methods:{getButtons:function(){var e="areaSet",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getTreeList:function(){var e=this;Object(r["o"])(this.treeRequest).then((function(t){e.treedata=t.data,console.log("树形组件",e.treedata),e.getList()}))},handleNodeClick:function(e){console.log("树形选中",e);var t=e;this.treeClickData=t,this.tableObj.list=[t];this.treedata;if(1==t.islast)var a=t.parentid;else a=t.id;this.treeClickParentId=a,console.log("treeClickParentId",a)},getList:function(){if(0==this.treedata.length)this.tableObj.list=[];else{var e=this.treedata[0];this.tableObj.list=[e]}},popoverHide:function(e,t){console.log("树形多级选择",e,t),this.create.temp.eventClassId=t.id,this.tableObj.getdataListParm.parammaps.eventClassId=t.id},handleCreate:function(){console.log("点击了新增"),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.resetTemp()},resetTemp:function(){this.create.temp={label:"",value:"",sort:1,parentid:1}},handleUpdate:function(e){console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"insertCanton",offset:0,pagecount:0,parammaps:{label:e.create.temp.label,parentid:e.treeClickParentId,layer:e.treeClickData.layer,sort:e.create.temp.sort}};console.log("新增保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getTreeList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},updateData:function(){var e=this;console.log("点击了编辑保存",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"updateCanton",offset:0,pagecount:0,parammaps:{label:e.create.temp.label,id:e.create.temp.id,sort:e.create.temp.sort}};console.log("编辑保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getTreeList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;console.log("点击了行内删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:"deleteCanton",offset:0,pagecount:0,parammaps:{id:e.id}};Object(r["g"])(a).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.create.dialogFormVisible=!1,t.getTreeList()):t.$notify({title:"失败",message:"删除失败"+e.data,type:"error",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},p=m,u=(a("a002"),a("f12c"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"968f3f44",null);t["default"]=h.exports},4148:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-集团信息",use:"icon-集团信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-集团信息"><defs><style type="text/css"></style></defs><path d="M133.12 869.376h757.248c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H133.12c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624zM170.496 128v714.752c0 14.848 11.776 26.624 26.624 26.624h405.504c14.848 0 26.624-11.776 26.624-26.624V128c0-14.848-11.776-26.624-26.624-26.624H197.12c-14.848 0-26.624 11.776-26.624 26.624z m405.504 741.376H250.88c-14.848 0-26.624-11.776-26.624-26.624V181.248c0-14.848 11.776-26.624 26.624-26.624h299.008c14.848 0 26.624 11.776 26.624 26.624v688.128h-0.512z" p-id="71794" fill="#ffffff" /><path d="M576 357.376v491.008c0 14.848 11.776 26.624 26.624 26.624 14.848 0 26.624-11.776 26.624-26.624V410.624c0-14.848 11.776-26.624 26.624-26.624H773.12c14.848 0 26.624 11.776 26.624 26.624v437.248c0 14.848 11.776 26.624 26.624 26.624 14.848 0 26.624-11.776 26.624-26.624V357.376c0-14.848-11.776-26.624-26.624-26.624h-223.744c-14.848 0-26.624 11.776-26.624 26.624zM293.376 266.752h64c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624zM293.376 453.12h64c14.848 0 26.624 11.776 26.624 26.624v0.512c0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624v-0.512c0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624v0.512c0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624v-0.512c0-14.848 11.776-26.624 26.624-26.624zM293.376 640h64c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H293.376c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z m149.504 0H506.88c14.848 0 26.624 11.776 26.624 26.624 0 14.848-11.776 26.624-26.624 26.624H442.88c-14.848 0-26.624-11.776-26.624-26.624 0-14.848 11.776-26.624 26.624-26.624z" p-id="71795" fill="#ffffff" /><path d="M719.872 453.12c14.848 0 26.624 11.776 26.624 26.624v79.872c0 14.848-11.776 26.624-26.624 26.624-14.848 0-26.624-11.776-26.624-26.624V479.744c0-14.848 11.776-26.624 26.624-26.624z m0 171.008c14.848 0 26.624 11.776 26.624 26.624v79.872c0 14.848-11.776 26.624-26.624 26.624-14.848 0-26.624-11.776-26.624-26.624v-79.872c0-14.848 11.776-26.624 26.624-26.624z" p-id="71796" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},4300:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-wrapper"},["3"!==e.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(t){return e.$router.push({name:"BoardEchartManagement",params:{tab:"first"}})}}},[a("i",{staticClass:"el-icon-back"}),a("span",[e._v("返回")])]),"view"==e.mode?a("span",[e._v("查看仪表盘")]):e._e(),"edit"==e.mode?a("span",[e._v("编辑仪表盘")]):e._e(),"create"==e.mode?a("span",[e._v("新增仪表盘")]):e._e()])])]):e._e(),a("div",{staticClass:"tool-bar"},[a("div",[a("span",{staticClass:"db-name"},[e._v(e._s(e.dashboard.name))]),a("span",[e._v(e._s(e.dashboard.desc))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.mode||"create"===e.mode,expression:"mode === 'edit' || mode === 'create' "}]},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleLinkChart}},[e._v(" 添加图表 ")])],1)]),0!==e.charts.length?a("grid-layout",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"500px"},attrs:{layout:e.layout||[],"col-num":24,"row-height":30,"is-draggable":"edit"===e.mode||"create"===e.mode,"is-resizable":"edit"===e.mode||"create"===e.mode,"is-mirrored":!1,"vertical-compact":!0,"pane-container":!1,margin:[10,10],"use-css-transforms":!0},on:{"layout-updated":e.handleLayoutChange}},e._l(e.layout||[],(function(t,i){return a("grid-item",{key:t.index,attrs:{x:t.x,y:t.y,w:t.w,h:t.h,i:t.i},on:{resized:e.handleResize}},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.chartLoading[t.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",[e._v(e._s(e.getChartItem(t.i).chart_name))])]),a("div",[a("i",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.mode||"create"===e.mode,expression:"mode === 'edit' || mode === 'create' "}],staticClass:"el-icon-edit",on:{click:function(a){e.handleEdit(e.getChartItem(t.i))}}}),a("i",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.mode||"create"===e.mode,expression:"mode === 'edit' || mode === 'create' "}],staticClass:"el-icon-delete",on:{click:function(a){e.handleDelete(e.getChartItem(t.i))}}}),a("el-tooltip",{staticClass:"item",attrs:{content:e.getChartItem(t.i).desc,effect:"dark",placement:"top-end"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#409eff",cursor:"pointer"}})])],1)]),a("visualize-panel",{key:t.index,ref:"chartInstance"+t.i,refInFor:!0,attrs:{data:e.results[t.i],schema:e.getChartItem(t.i).content.allSelected,"chart-type":e.getChartItem(t.i).content.chartType,"is-edit-mode":!1,"chart-style":{height:30*t.h+10*(t.h-1)-60+"px"}},on:{"update:chartType":function(a){e.$set(e.getChartItem(t.i).content,"chartType",a)},"update:chart-type":function(a){e.$set(e.getChartItem(t.i).content,"chartType",a)}}})],1)],1)})),1):e._e(),0===e.charts.length&&"edit"===e.mode||"create"===e.mode&&0===e.charts.length?a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"welcome-container"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleLinkChart}},[e._v(" "+e._s(e.$t("dashboard.addChart"))+" ")]),a("div",[a("el-link",{attrs:{type:"info",underline:!1}},[a("router-link",{attrs:{to:"/chartpanel/create"}},[e._v(" "+e._s(e.$t("dashboard.emptyDashboardTip"))+" ")])],1)],1)],1):e._e(),a("el-dialog",{attrs:{title:e.$t("chart.myChart"),visible:e.showChartList},on:{"update:visible":function(t){e.showChartList=t}}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.jumpCreate()}}},[e._v(" 创建新的图表 ")]),a("el-table",{attrs:{data:e.myChartList}},[a("el-table-column",{attrs:{label:e.$t("common.name"),width:"200",prop:"chart_name"}}),a("el-table-column",{attrs:{label:e.$t("common.desc"),prop:"desc"}}),a("el-table-column",{attrs:{label:e.$t("common.operation"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary",disabled:e.isExisted(t.row)},on:{click:function(a){return e.linkChart(t.row)}}},[e._v("添加")]),a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){return e.jumpEdit2(t.row)}}},[e._v(" 编辑 ")])]}}])})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.showChartList=!1}}},[e._v("关闭")])],1)],1)],1)},s=[],r=(a("99af"),a("a623"),a("4de4"),a("7db0"),a("c740"),a("4160"),a("d81d"),a("13d5"),a("a434"),a("159b"),a("7be8")),l=a("4ab3"),n=a("f77d"),o=(a("5fd4"),a("2934")),c=(a("c638"),a("a78e")),d=a.n(c),m=a("a5e0");function p(e,t){var a={x:e[0][0],y:e[0][1]},i={x:e[1][0],y:e[1][1]},s={x:t[0][0],y:t[0][1]},r={x:t[1][0],y:t[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(e){console.log("watch的:",e),e&&this.getList(e)}}},methods:{getList:function(){var e=this;console.log("进入页面组件================="),this.charts=[],this.layout=[],this.loading=!0;var t={name:"getdashboard_chart",parammaps:{pastureid:d.a.get("pastureid"),did:this.dashboard.dashboard_id,empid:d.a.get("employeid")}};Object(o["d"])(t).then((function(t){console.log("图表数据",t),e.loading=!1,e.charts=t.data.list||[];console.log("this.dashboard",e.dashboard);var a=e.dashboard.content&&e.dashboard.content.layout||[];console.log("layout",a),console.log("this.charts",e.charts),e.charts.forEach((function(t,i){e.$set(e.results,t.chart_id,[]),e.$set(e.chartLoading,t.chart_id,!1),t.content=JSON.parse(t.content),t.content.allSelected=[],t.content.allSelected=t.content.allSelected.concat(t.content.selectedCalcul).concat(t.content.selectedCalcul2).concat(t.content.selectedDimension),console.log("chart.content.filters",t.content.filters),t.content.filters&&t.content.filters.map(m["a"]),e.exeSqlJia2(t.content,t,i),console.log(a.find((function(e){return e.id===t.chart_id})))})),e.layout=a.filter((function(t){return e.charts.find((function(e){return e.chart_id===t.id}))})),console.log("layout:",e.layout),e.handleLayoutChange()}))},jumpCreate:function(){this.$router.push({name:"ChartPanel",params:{id:"create",isEdit:"edit"}}),localStorage.setItem("ChartPanelIsEditId","create")},jumpEdit2:function(e){console.log("点击了编辑",e),this.$router.push({name:"ChartPanel",params:{id:e.id,isEdit:"edit"}}),d.a.set("ChartPanelIsEdit","edit"),d.a.set("ChartPanelIsEditId",e.id),localStorage.setItem("ChartPanelIsEditId",e.id)},exeSqlJia2:function(e,t,a){var i=this;if(this.$set(this.chartLoading,t.chart_id,!0),!e)return this.$message.warning(this.$t("dashboard.chartQueryException",t.chart_name)),void this.$set(this.chartLoading,t.chart_id,!1);var s={source_id:t.source_id,content:e,pastureid:d.a.get("pastureid")};Object(o["a"])(s).then((function(e){console.log("图的数据",e.data.list),i.$set(i.chartLoading,t.chart_id,!1),i.$set(i.results,t.chart_id,e.data)})).catch((function(){i.$set(i.chartLoading,t.chart_id,!1)}))},getChartItem:function(e){return this.charts.find((function(t){return t.chart_id===e}))},handleCaculPos:function(e){var t=[];return e.forEach((function(e){e.yOffSet=e.y+e.h,e.xOffSet=e.x+e.w,e.bottomLine=[[e.x,e.yOffSet],[e.xOffSet,e.yOffSet]],e.topLine=[[e.x,e.y],[e.xOffSet,e.y]]})),e.forEach((function(a){var i=e.every((function(e){return!p(a.bottomLine,e.topLine)}));i&&t.push(a)})),t},generatePosition:function(e,t,a){var i;if(0===t.length)i={id:e.chart_id,x:0,y:0,w:12,h:9,i:e.chart_id};else{var s=this.handleCaculPos(t),r=s.reduce((function(e,t){return e.bottomLine[0][1]>t.bottomLine[0][1]&&(e=t),e}),s[0]);i={id:e.chart_id,x:r.x,y:r.yOffSet,w:r.w,h:9,i:e.chart_id}}t.push(i)},handleShare:function(){var e=this.$createElement,t="http://".concat(location.host,"/#/fullscreendb/").concat(this.dashboard.dashboard_id);this.$msgbox({title:this.$t("dashboard.shareLink"),message:e("p",null,[e("a",{style:"color: #205cd8",attrs:{href:t,target:"_blank"}},t)])})},handleLinkChart:function(){var e=this,t={name:"getChartListV2",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),empid:d.a.get("employeid")}};Object(o["d"])(t).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.myChartList=t.data.list,e.showChartList=!0):(e.myChartList=[],e.showChartList=!0)}))},linkChart:function(e){var t=this,a={name:"insertdashboard_chart",parammaps:{cid:e.chart_id,did:this.dashboard.dashboard_id,pastureid:d.a.get("pastureid")}};Object(o["g"])(a).then((function(e){console.log("新增保存发送参数",a),t.showChartList=!1,"fail"==a.msg?t.$message({type:"fail",message:"添加失败!"}):t.$message({type:"success",message:t.$t("common.saveSuccess")}),t.$router.push({name:"Addboard",params:{id:"~"+t.dashboard.dashboard_id}}),console.log("Addboard~"+t.dashboard.dashboard_id),t.getList(),t.$emit("fatherMethod"),t.reload()}))},isExisted:function(e){return this.charts.findIndex((function(t){return t.chart_id===e.chart_id}))>=0},handleEdit:function(e){this.$router.push({name:"ChartPanel",params:{id:e.chart_id,isEdit:"edit"}}),localStorage.setItem("ChartPanelIsEditId",e.chart_id)},handleDelete:function(e){var t=this;this.$confirm(this.$t("dashboard.removeChartConfirm"),this.$t("common.confirm"),{type:"warning"}).then((function(){var a=t.layout.findIndex((function(t){return t.id===e.chart_id})),i=JSON.parse(JSON.stringify(t.layout));i.splice(a,1),t.dashboard.content.layout=i;var s={name:"deletedashboard_chart",parammaps:{cid:e.chart_id,did:t.dashboard.dashboard_id,pastureid:d.a.get("pastureid")}};Object(o["g"])(s).then((function(e){console.log("删除发送参数",s),t.$message({type:"success",message:t.$t("common.deleteSuccess")}),t.getList()}))}))},handleLayoutChange:function(){if(console.log("this.mode:",this.mode),"view"!==this.mode){console.log("this.dashboard1",this.dashboard),this.dashboard.content=this.dashboard.content||{},this.dashboard.content.layout=this.layout,console.log("this.dashboard2",this.dashboard);var e={dashboard_id:this.dashboard.dashboard_id,content:this.dashboard.content,pastureid:d.a.get("pastureid")};Object(o["u"])(e).then((function(e){console.log("拖拽位置的数据",e.data.list)}))}},handleResize:function(e,t,a,i,s){this.$refs["chartInstance".concat(e)][0].$children[0].$emit("resized")},exeSql:function(e,t,a){var i=this;if(this.$set(this.chartLoading,t.chart_id,!0),!e)return this.$message.warning(this.$t("dashboard.chartQueryException",t.chart_name)),void this.$set(this.chartLoading,t.chart_id,!1);Object(n["a"])().fetch({source_id:t.source_id,sql:e}).then((function(e){i.$set(i.chartLoading,t.chart_id,!1),i.$set(i.results,t.chart_id,e.data)})).catch((function(){i.$set(i.chartLoading,t.chart_id,!1)}))}}},h=u,g=(a("cc1c"),a("2877")),f=Object(g["a"])(h,i,s,!1,null,"6c7f909e",null);t["default"]=f.exports},4360:function(e,t,a){"use strict";a("13d5"),a("d3b7"),a("ac1f"),a("5319"),a("ddb0");var i=a("2b0e"),s=a("2f62"),r=(a("b0c0"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},roles:function(e){return e.user.roles},buttons:function(e){return e.user.buttons},pastureid:function(e){return e.user.pastureid},pasturename:function(e){return e.user.pasturename},pasturenumber:function(e){return e.user.pasturenumber},employename:function(e){return e.user.employename},employeid:function(e){return e.user.employeid},dashchartid:function(e){return e.user.dashchartid},dashchartidisedit:function(e){return e.user.dashchartidisedit},permission_routes:function(e){return e.permission.routes}}),l=r;i["default"].use(s["a"]);var n=a("c653"),o=n.keys().reduce((function(e,t){var a=t.replace(/^\.\/(.*)\.\w+$/,"$1"),i=n(t);return e[a]=i.default,e}),{}),c=new s["a"].Store({modules:o,getters:l});t["a"]=c},4548:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._v(" 运营管理 ")])},s=[],r=(a("2934"),a("a78e"),a("ed08"),a("5c96"),a("333d")),l={name:"OperationManagement",components:{Pagination:r["a"]},data:function(){return{rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{}},n=l,o=(a("7aad"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"108d0a53",null);t["default"]=c.exports},4619:function(e,t,a){"use strict";var i=a("0bd7"),s=a.n(i);s.a},"46af":function(e,t,a){"use strict";var i=a("ee3b"),s=a.n(i);s.a},4770:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-日执行计划",use:"icon-日执行计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-日执行计划"><defs><style type="text/css"></style></defs><path d="M198.712603 746.53202c-19.296482 0-38.592965 19.296482-38.592965 38.592965s19.296482 38.592965 38.592965 38.592965h192.964824c19.296482 0 38.592965-19.296482 38.592965-38.592965s-19.296482-38.592965-38.592965-38.592965h-192.964824z m308.743719-115.778894c6.432161-6.432161 12.864322-19.296482 12.864321-25.728644 0-19.296482-19.296482-38.592965-38.592965-38.592964h-283.015075c-19.296482 0-38.592965 19.296482-38.592965 38.592964s12.864322 32.160804 38.592965 32.160804h283.015075c6.432161 0 19.296482 0 25.728644-6.43216z m495.276382-6.432161c0-12.864322-6.432161-19.296482-19.296483-25.728643-19.296482-12.864322-45.025126-6.432161-51.457286 12.864321l-147.939699 250.854272-173.668342-102.914573c-19.296482-12.864322-38.592965-6.432161-51.457286 12.864321s-6.432161 45.025126 12.864322 51.457287l205.829145 122.211055c6.432161 6.432161 19.296482 6.432161 25.728644 6.432161s12.864322-6.432161 19.296482-12.864322l167.236181-283.015075c12.864322-12.864322 12.864322-19.296482 12.864322-32.160804z" p-id="41734" fill="#ffffff" /><path d="M558.913608 939.496844h-411.658291c-32.160804 0-57.889447-25.728643-57.889448-57.889447v-746.130653c0-32.160804 25.728643-57.889447 57.889448-57.889448h585.326633c32.160804 0 57.889447 25.728643 57.889447 57.889448v283.015075c0 19.296482 19.296482 38.592965 38.592965 38.592965s38.592965-19.296482 38.592965-38.592965v-283.015075c0-70.753769-57.889447-135.075377-135.075377-135.075377H147.255317c-70.753769 0-128.643216 57.889447-128.643216 135.075377v752.562814c0 70.753769 57.889447 135.075377 135.075376 135.075377h405.226131c19.296482 0 38.592965-19.296482 38.592965-38.592965 0-25.728643-19.296482-45.025126-38.592965-45.025126z" p-id="41735" fill="#ffffff" /><path d="M494.592 276.984281h212.261307c6.432161 0 19.296482-19.296482 19.296482-38.592964s-6.432161-38.592965-19.296482-38.592965h-212.261307c-6.432161 0-19.296482 19.296482-19.296482 38.592965 0 12.864322 0 19.296482 6.43216 25.728643l12.864322 12.864321z m212.261307 102.914573h-212.261307c-6.432161 0-12.864322 19.296482-12.864322 38.592965s6.432161 38.592965 19.296483 38.592965h212.261306c6.432161 0 12.864322-19.296482 12.864322-38.592965s-6.432161-38.592965-19.296482-38.592965zM225.053588 461.314573v-20.737287h141.651618v20.099217H407.541709v-274.370252H185.812261V461.314573h39.241327z m141.651618-168.131538H225.053588v-68.592563h141.651618v68.592563z m0 109.11003H225.053588V330.829186h141.651618V402.293065z" p-id="41736" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"47f1":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"47ff":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},4996:function(e,t,a){},"4a4b":function(e,t,a){},"4ab3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pane-container",staticStyle:{position:"relactive"}},[e.isChart?a("el-button",{staticStyle:{"z-index":"1",position:"absolute",top:"2px",right:"100px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable()}}},[e._v("切换表格")]):e._e(),e.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",height:"100%","z-index":"1",position:"absolute",top:"0px",right:"0px"}},[a("el-button",{staticStyle:{float:"right","margin-right":"100px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart()}}},[e._v("切换图表")]),a("el-table",{staticStyle:{width:"100%"},attrs:{border:"true",fit:"","highlight-current-row":"",data:e.data}},[e._l(e.schema,(function(e,t){return[a("el-table-column",{key:t,attrs:{prop:e.Column,label:e.Comment}})]}))],2)],1):e._e(),a(e.currentType.componentName,{tag:"component",staticClass:"visualize-window",attrs:{data:e.chartData,schema:e.schema,"chart-style":e.chartStyle}}),e.isEditMode?a("div",{staticClass:"chart-style-panel"},[a("el-form",{attrs:{"label-position":"top",size:"mini"}},[a("el-form-item",{attrs:{label:e.$t("chart.chartType")+":"}},[a("div",{staticClass:"chart-type-list"},e._l(e.chartTypeList,(function(t,i){return a("span",{key:t.type,class:{activedIcon:t.type===e.chartType,disabledIcon:!e.isUsable(t)},on:{click:function(a){return e.switchChartType(t)}}},[a("el-tooltip",{attrs:{content:t.name+": "+t.matchRule.desc,placement:"top"}},[a("svg-icon",{staticClass:"icon",attrs:{"icon-class":e.isUsable(t)?t.icon:t.icon+"_disabled"}})],1)],1)})),0)])],1)],1):e._e()],1)},s=[],r=(a("99af"),a("7db0"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"chart",style:e.chartStyle})}),l=[],n=(a("4de4"),a("4160"),a("a630"),a("caad"),a("d81d"),a("b0c0"),a("d3b7"),a("07ac"),a("6062"),a("3ca3"),a("159b"),a("ddb0"),a("313e")),o=a.n(n);function c(e){return e/1e3>=.1&&e/1e4<1?e/1e3+"k":e/1e4>=1?e/1e4+"w":e}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(e){this.renderChart(e)}},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(e){var t=this;if(this.$refs.chart){var a=[],i=[],s={},r=this.schema.filter((function(e){return e.asxAxis})),l=this.schema.filter((function(e){return!e.asxAxis}))[0];2===r.length?(a=Array.from(new Set(e.map((function(e){return e[r[1].name]})))),a.forEach((function(e){s[e]={name:e,data:[],type:"line"}})),e.forEach((function(e){i.includes(e[r[0].name])||i.push(e[r[0].name])})),i.forEach((function(t,i){a.forEach((function(a){var n=e.find((function(e){return e[r[0].name]===t&&e[r[1].name]===a}));s[a].data[i]=n?n[l.name]:void 0}))}))):this.schema.forEach((function(t,r){a.push(t.Comment||t.name),t.asxAxis||(s[t.name]={name:t.Comment||t.name,data:[],type:"line"}),e.forEach((function(e){t.asxAxis&&!i.includes(e[t.name])?i.push(e[t.name]):s[t.name].data.push(e[t.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(){t.chart||(t.chart=o.a.init(t.$refs.chart,"macarons")),t.chart.clear(),t.chart.setOption(n),t.chartOpt&&t.chart.setOption(t.chartOpt)}),0)}}}},m=d,p=a("2877"),u=Object(p["a"])(m,r,l,!1,null,null,null),h=u.exports,g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{style:e.chartStyle,attrs:{data:e.data,height:e.chartStyle.height,"highlight-current-row":"",border:"",stripe:"","header-cell-style":{padding:"5px 0"},"cell-style":{padding:"5px 0"}}},e._l(e.schema,(function(e,t){return a("el-table-column",{key:e.Column,attrs:{prop:e.Column,label:e.Comment,align:"center"}})})),1)},f=[],b={props:{data:{type:Array,default:function(){return[]}},schema:{type:Array,default:function(){return[]}},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}}},v=b,w=Object(p["a"])(v,g,f,!1,null,null,null),y=w.exports,L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"chart",style:e.chartStyle})},x=[];a("817d");var S={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(e){this.renderChart(e)}},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(e){var t=this;if(console.log("renderChart",e),console.log("this.schema",this.schema),this.$refs.chart){var a=[],i=[],s={};if(2===this.schema.filter((function(e){return e.asxAxis})).length){console.log("进入了多个维度====================");var r=this.schema.filter((function(e){return e.asxAxis}));console.log("dimensions",r);var l=r[0].name,n=r[1].name;console.log("data",this.data);var d=this.schema.find((function(e){return!e.asxAxis})).name;i=this.data.map((function(e){return a.push(e[n]),e[l]})),i=Array.from(new Set(i)),a=Array.from(new Set(a)),console.log("legend",a),a=a.map((function(t,a){var r=i.map((function(a){var i=e.find((function(e){return e[n]===t&&e[l]===a}));return i?i[d]:"-"}));return t+="",s[t]={name:t,data:r,type:"bar"},t}))}else console.log("进入了1个维度===================="),this.schema.forEach((function(t,r){a.push(t.Comment||t.name),t.asxAxis||(s[t.name]={name:t.Comment||t.name,data:[],type:"bar"}),e.forEach((function(e){t.asxAxis?i.push(e[t.name]):s[t.name].data.push(e[t.name])}))}));var m={legend:{bottom:0,type:"scroll",data:a},toolbox:{show:!0,top:0,itemSize:12,feature:{saveAsImage:{show:!0},magicType:{type:["line","bar"]},restore:{show:!0},dataZoom:{show:!0}}},grid:{top:"10px",left:"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(){t.chart||(t.chart=o.a.init(t.$refs.chart,"macarons")),t.chart.clear(),t.chart.setOption(m),t.chartOpt&&t.chart.setOption(t.chartOpt)}),0)}}}},k=S,_=Object(p["a"])(k,L,x,!1,null,null,null),P=_.exports,C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"chart",style:e.chartStyle})},T=[];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(e){this.renderChart(e)}},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(e){var t=this;if(this.$refs.chart){var a=[],i=[],s={};this.schema.forEach((function(t,r){a.push(t.Comment||t.name),t.asxAxis||(s[t.name]={name:t.Comment||t.name,data:[],stack:"All",type:"bar"}),e.forEach((function(e){t.asxAxis?i.push(e[t.name]):s[t.name].data.push(e[t.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(){t.chart||(t.chart=o.a.init(t.$refs.chart,"macarons")),t.chart.clear(),t.chart.setOption(r),t.chartOpt&&t.chart.setOption(t.chartOpt)}),0)}}}},$=D,N=Object(p["a"])($,C,T,!1,null,null,null),I=N.exports,O=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"chart",style:e.chartStyle})},j=[];a("817d");var F={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(e){this.renderChart(e)}},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(e){var t=this;if(this.$refs.chart){if(0===e.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(e){return e.asxAxis})).length){var r=this.schema.filter((function(e){return e.asxAxis})),l=r[0].name,n=r[1].name,c=this.schema.find((function(e){return!e.asxAxis})).name;i=this.data.map((function(e){return a.push(e[n]),e[l]})),i=Array.from(new Set(i)),a=Array.from(new Set(a)),a=a.map((function(t,a){var r=i.map((function(a){var i=e.find((function(e){return e[n]===t&&e[l]===a}));return i?i[c]:"-"}));return t+="",s[t]={name:t,data:r,type:"bar"},t}))}else this.schema.forEach((function(t,r){a.push(t.Comment||t.name),t.asxAxis||(s[t.name]={name:t.Comment||t.name,data:[],type:"bar"}),e.forEach((function(e){t.asxAxis?i.push(e[t.name]):s[t.name].data.push(e[t.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(){t.chart||(t.chart=o.a.init(t.$refs.chart,"macarons")),t.chart.clear(),t.chart.setOption(d),t.chartOpt&&t.chart.setOption(t.chartOpt)}),0)}}}},E=F,q=Object(p["a"])(E,O,j,!1,null,null,null),R=q.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"chart",style:e.chartStyle})},B=[];a("817d");var z={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(e){this.renderChart(e)}},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(e){var t=this;if(this.$refs.chart&&e[0]){var a=[],i={};0===this.schema.filter((function(e){return e.asxAxis})).length?(i={name:"",type:"pie",radius:"55%",center:["50%","60%"],data:[],tooltip:{formatter:function(e){return"".concat(e.name,": ").concat(e.percent,"%")}},itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}},e=e[0],this.schema.forEach((function(t,s){a.push(t.name),i.data[s]=i.data[s]||{},i.data[s].name=t.name,i.data[s].value=e[t.name]}))):(i={name:"",type:"pie",radius:"55%",center:["50%","40%"],data:[],tooltip:{formatter:function(e){return"".concat(e.name,": ").concat(e.percent,"%")}},itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}},this.schema.forEach((function(t,s){e.forEach((function(e,s){i.data[s]=i.data[s]||{},t.asxAxis?(a.push(e[t.name]),i.data[s].name=e[t.name]):i.data[s].value=e[t.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(){t.chart||(t.chart=o.a.init(t.$refs.chart,"macarons")),t.chart.clear(),t.chart.setOption(s),t.chartOpt&&t.chart.setOption(t.chartOpt)}),0)}}}},V=z,A=Object(p["a"])(V,M,B,!1,null,null,null),U=A.exports,H=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"chart",style:e.chartStyle})},W=[];a("817d");var K={props:{data:{required:!0,default:function(){}},schema:{type:Array,required:!0},chartOpt:{type:Object,required:!1},chartStyle:{require:!1,type:Object,default:function(){return{height:"500px"}}}},data:function(){return{chart:null}},watch:{data:{deep:!0,handler:function(e){this.renderChart(e)}},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(e){var t=this;if(this.$refs.chart){var a=[],i=[],s={};this.schema.forEach((function(t,r){a.push(t.Comment||t.name),t.asxAxis||(1==t.is_second?s[t.name]={name:t.Comment||t.name,data:[],type:"line"}:s[t.name]={name:t.Comment||t.name,data:[],type:"bar"}),e.forEach((function(e){t.asxAxis?i.push(e[t.name]):s[t.name].data.push(e[t.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(){t.chart||(t.chart=o.a.init(t.$refs.chart,"macarons")),t.chart.clear(),t.chart.setOption(r),t.chartOpt&&t.chart.setOption(t.chartOpt)}),0)}}}},G=K,J=Object(p["a"])(G,H,W,!1,null,null,null),Y=J.exports,Q=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"chart",style:e.chartStyle})},X=[];a("817d");var Z={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(e){this.renderChart(e)}},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(e){var t=this;if(this.$refs.chart){var a=[],i=[],s={};this.schema.forEach((function(t,r){a.push(t.Comment||t.name),t.asxAxis||(1==t.is_second?s[t.name]={name:t.Comment||t.name,data:[],type:"bar"}:s[t.name]={name:t.Comment||t.name,data:[],type:"line"}),e.forEach((function(e){t.asxAxis?i.push(e[t.name]):s[t.name].data.push(e[t.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(){t.chart||(t.chart=o.a.init(t.$refs.chart,"macarons")),t.chart.clear(),t.chart.setOption(r),t.chartOpt&&t.chart.setOption(t.chartOpt)}),0)}}}},ee=Z,te=Object(p["a"])(ee,Q,X,!1,null,null,null),ae=te.exports,ie=a("9225"),se=a("aa35");function re(e,t){var a=e.map((function(e){var a={};return t.forEach((function(t){t.calculFunc?t.lable="".concat(t.Column,"(").concat(se["c"][t.calculFunc],")"):t.lable="".concat(t.Column),t.name=t.Column,t.asxAxis=t.isDimension,a[t.Column]=e[t.Column]})),a}));return a}var le=[{name:ie["a"].t("chartType.table"),icon:"chart_table",type:"table",matchRule:{desc:ie["a"].t("chartType.tableDesc"),isUsable:function(e,t){return!0}},componentName:"DataTable",dataTransfer:function(e,t){console.log("data============",e),console.log("schema============",t);var a=e.map((function(e){var a={};return t.forEach((function(t){t.calculFunc?t.name="".concat(t.Column,"(").concat(se["c"][t.calculFunc],")"):t.name="".concat(t.Column),a[t.Column]=e[t.Column]})),a}));return console.log("chartData============",a),a}},{name:ie["a"].t("chartType.line"),icon:"chart_line",type:"line",matchRule:{desc:ie["a"].t("chartType.lineDesc"),isUsable:function(e,t){return(1===e.length||2===e.length)&&t.length>=1}},componentName:"lineChart",dataTransfer:re},{name:ie["a"].t("chartType.bar"),icon:"chart_bar",type:"bar",matchRule:{desc:ie["a"].t("chartType.barDesc"),isUsable:function(e,t){return(1===e.length||2===e.length)&&t.length>=1}},componentName:"BarChart",dataTransfer:re},{name:ie["a"].t("chartType.stackBar"),icon:"stack_bar",type:"stackBar",matchRule:{desc:ie["a"].t("chartType.stackBarDesc"),isUsable:function(e,t){return(1===e.length||2===e.length)&&t.length>=2}},componentName:"StackBarChart",dataTransfer:re},{name:ie["a"].t("chartType.pie"),icon:"chart_pie",type:"pie",matchRule:{desc:ie["a"].t("chartType.pieDesc"),isUsable:function(e,t){return 1===e.length&&1===t.length||0===e.length&&t.length>=1}},componentName:"PieChart",dataTransfer:re},{name:ie["a"].t("chartType.horizontalBar"),icon:"horizontal_bar",type:"horizontalBar",matchRule:{desc:ie["a"].t("chartType.horizontalBarDesc"),isUsable:function(e,t){return(1===e.length||2===e.length)&&t.length>=1}},componentName:"HorizontalBar",dataTransfer:re},{name:"柱线图:",icon:"barline_chart",type:"BarLineChart",matchRule:{desc:"1个纬度多个数值",isUsable:function(e,t){return 1===e.length&&t.length>=1}},componentName:"BarLineChart",dataTransfer:re},{name:"线柱图:",icon:"linebar_chart",type:"LineBarChart",matchRule:{desc:"1个纬度多个数值",isUsable:function(e,t){return 1===e.length&&t.length>=1}},componentName:"LineBarChart",dataTransfer:re}],ne=le,oe=a("3537"),ce={inject:["reload"],components:{lineChart:h,DataTable:y,BarChart:P,StackBarChart:I,PieChart:U,HorizontalBar:R,BarLineChart:Y,LineBarChart:ae},props:{data:{type:Array,required:!0},schema:{type:Array,required:!0},chartStyle:{require:!1,type:Object},chartType:{type:String,default:"table"},isEditMode:{type:Boolean,default:!0}},data:function(){return{chartTypeList:ne,isTable:!1,isChart:!0}},computed:{allSelected:function(){return oe["a"].state.caculCols.concat(oe["a"].state.dimensions)},chartData:function(){return console.log("this.schema============",this.schema),this.currentType.dataTransfer?this.currentType.dataTransfer(this.data,this.schema):this.data},currentType:function(){var e=this;return ne.find((function(t){return t.type===e.chartType}))}},watch:{allSelected:{deep:!0,immediate:!0,handler:function(e){console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!",this.chartType),this.currentType.matchRule.isUsable(oe["a"].state.dimensions,oe["a"].state.caculCols)||this.$emit("update:chartType","table")}}},methods:{handleTable:function(){console.log("切换表格"),console.log("chartTypeList",this.chartTypeList),console.log("this.schema============",this.schema),console.log("this.data============",this.data),this.isTable=!0,this.isChart=!1},handleChart:function(){console.log("切换图表"),this.isChart=!0,this.isTable=!1},isUsable:function(e){return e.matchRule.isUsable(oe["a"].state.dimensions,oe["a"].state.caculCols)},switchChartType:function(e){e.matchRule.isUsable(oe["a"].state.dimensions,oe["a"].state.caculCols)&&this.$emit("update:chartType",e.type)}}},de=ce,me=(a("d527"),Object(p["a"])(de,i,s,!1,null,"7d350cb8",null));t["default"]=me.exports},"4b77":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"4bb1":function(e,t,a){"use strict";var i=a("056b"),s=a.n(i);s.a},"4c14":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-栏舍配方",use:"icon-栏舍配方-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-栏舍配方"><defs><style type="text/css"></style></defs><path d="M128 529.92h272.32a64 64 0 0 1 64 64V896a64 64 0 0 1-64 64H128a64 64 0 0 1-64-64V593.92a64 64 0 0 1 64-64z m495.68 0H896a64 64 0 0 1 64 64V896a64 64 0 0 1-64 64H623.68a64 64 0 0 1-64-64V593.92a64 64 0 0 1 64-64zM375.808 64h272.384a64 64 0 0 1 64 64v302.08a64 64 0 0 1-64 64H375.808a64 64 0 0 1-64-64V128a64 64 0 0 1 64-64zM138.752 596.48a12.8 12.8 0 0 0-12.8 12.8v271.36c0 7.04 5.76 12.8 12.8 12.8h250.88a12.8 12.8 0 0 0 12.8-12.8V609.28a12.8 12.8 0 0 0-12.8-12.8h-250.88z m495.68 0a12.8 12.8 0 0 0-12.8 12.8v271.232c0 7.04 5.76 12.8 12.8 12.8H885.12a12.8 12.8 0 0 0 12.8-12.8V609.28a12.8 12.8 0 0 0-12.8-12.8H634.432zM386.56 130.56a12.8 12.8 0 0 0-12.8 12.8v271.232c0 7.04 5.76 12.8 12.8 12.8h250.752a12.8 12.8 0 0 0 12.8-12.8V143.36a12.8 12.8 0 0 0-12.8-12.8H386.56z" p-id="24906" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"4c9e":function(e,t,a){"use strict";var i=a("97b2"),s=a.n(i);s.a},"4cbe":function(e,t,a){"use strict";var i=a("3d9a"),s=a.n(i);s.a},"4d08":function(e,t,a){"use strict";var i=a("f21d"),s=a.n(i);s.a},"4d638":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-角色管理",use:"icon-角色管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-角色管理"><defs><style type="text/css"></style></defs><path d="M640.448 288H960v64h-319.552zM640 128h319.552v64H640zM640.448 448H960v64h-319.552zM470.656 588.032a162.624 162.624 0 0 0-85.888-300.928 162.816 162.816 0 0 0-162.816 162.944c0 58.304 30.784 109.12 76.864 137.92C163.904 625.728 64 748.864 64 896h66.56a254.656 254.656 0 0 1 254.08-254.592A254.784 254.784 0 0 1 639.04 896h66.56c-0.064-147.136-100.032-270.144-234.944-307.968z m-85.824-41.6a96.448 96.448 0 0 1-96.32-96.384c0-53.12 43.264-96.32 96.32-96.32a96.384 96.384 0 0 1 0 192.704z" fill="#ffffff" p-id="79483" /></symbol>'});l.a.add(n);t["default"]=n},"4d87":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"发货单号"},model:{value:e.table.getdataListParm.parammaps.deliveryCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"deliveryCode",t)},expression:"table.getdataListParm.parammaps.deliveryCode"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"备货单号"},model:{value:e.table.getdataListParm.parammaps.stockupCodes,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"stockupCodes",t)},expression:"table.getdataListParm.parammaps.stockupCodes"}}),a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.handleCustomerSelect,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"快递名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.postId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"postId",t)},expression:"table.getdataListParm.parammaps.postId"}},e._l(e.postNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"快递单号"},model:{value:e.table.getdataListParm.parammaps.postCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"postCode",t)},expression:"table.getdataListParm.parammaps.postCode"}}),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"发货单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deliveryCode))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"发货日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sendDate))])]}}])}),a("el-table-column",{attrs:{label:"收件人名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"收件人电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverTel))])]}}])}),a("el-table-column",{attrs:{label:"快递名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.postName))])]}}])}),a("el-table-column",{attrs:{label:"快递单号","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.postCode))])]}}])}),a("el-table-column",{attrs:{label:"备货单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockupCodes))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit&&1==i.isModify&&i.createrId==e.employeid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit&&1==i.isDel&&i.createrId==e.employeid?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},["create"==e.create.dialogStatus?a("el-autocomplete",{staticStyle:{width:"100%","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer,clear:e.clearCustomerSelectTemp,blur:e.blurCustomerSelectTemp},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}],null,!1,2238609474),model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}}):a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"收件人姓名:",prop:"receiverId"}},[a("el-select",{ref:"receiverId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择收件人","allow-create":"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceiver},model:{value:e.create.temp.receiverId,callback:function(t){e.$set(e.create.temp,"receiverId",t)},expression:"create.temp.receiverId"}},e._l(e.create.receiverNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"收件人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入收件人电话",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.receiverTel,callback:function(t){e.$set(e.create.temp,"receiverTel",t)},expression:"create.temp.receiverTel"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"快递名称:",prop:"postId"}},[a("el-select",{ref:"postId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择快递","allow-create":"",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.postId,callback:function(t){e.$set(e.create.temp,"postId",t)},expression:"create.temp.postId"}},e._l(e.postNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"快递单号:",prop:"postCode"}},[a("el-input",{ref:"postCode",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入快递单号",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.postCode,callback:function(t){e.$set(e.create.temp,"postCode",t)},expression:"create.temp.postCode"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"发货日期:",prop:"sendDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.sendDate,callback:function(t){e.$set(e.create.temp,"sendDate",t)},expression:"create.temp.sendDate"}})],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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"发货详情:",prop:"stockupId"}},[a("el-select",{ref:"stockupId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择发货详情",disabled:"see"==e.create.dialogStatus},on:{change:e.changePostalName},model:{value:e.create.temp.stockupId,callback:function(t){e.$set(e.create.temp,"stockupId",t)},expression:"create.temp.stockupId"}},e._l(e.create.postalNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._l(e.tableArrList,(function(t,i){return a("div",[a("el-row",[e._v(" 备货单号:"+e._s(t.title)+" 备货人:"+e._s(t.name)+" 备货日期:"+e._s(t.date)+" "),"create"==e.create.dialogStatus||"update"==e.create.dialogStatus?a("el-button",{staticClass:"miniDanger",on:{click:function(a){return e.handleRowDeleteCode(t,i)}}},[e._v("删除")]):e._e()],1),a("el-row",[a("el-table",{key:t.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{data:t.tablelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.nums))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.nums,callback:function(a){e.$set(t.row,"nums",a)},expression:"scope.row.nums"}}):e._e()]}}],null,!0)}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}],null,!0)}),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"110","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return["update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(s,i)}}},[e._v("删除")]):e._e()]}}],null,!0)}):e._e()],1)],1)],1)}))],2),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("4de4"),a("7db0"),a("c740"),a("4160"),a("caad"),a("c975"),a("d81d"),a("a434"),a("b0c0"),a("d3b7"),a("ac1f"),a("25f0"),a("2532"),a("1276"),a("159b"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"DeliveryRecord",components:{Pagination:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],requestParams:[{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getDictListSelect4",offset:0,pagecount:0,parammaps:{pid:"60"}}],customerNameList:[],groupNameList:[],postNameList:[],table:{getdataListParm:{name:"getDelivery",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{deliveryCode:"",stockupCodes:"",customerId:"",groupId:"",postId:"",postCode:"",inputDatetime:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",sendDate:Object(o["e"])(new Date,"{y}-{m}-{d}"),receiverId:"",receiverTel:"",receiverName:"",postId:"",postCode:"",stockupIds:"",remark:"",id:"",modifyName:"add",receiverChoose:"true"},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],sendDate:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],postId:[{required:!0,message:"必填",trigger:"blur"}],postCode:[{required:!0,message:"必填",trigger:"blur"}],stockupIds:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm0:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},getdataListParm01:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm1:{name:"getStockGoodsByCustomerId",returntype:"Map",parammaps:{customerId:""}},postalNameList:[],getdataListParm3:{name:"getStockGoodsBySid",returntype:"Map",parammaps:{stockupId:""}},getdataListParm4:{name:"getStockupGoodsByDeliveryId",returntype:"Map",parammaps:{deliveryId:""}}},textMap:{create:"新增",see:"查看",update:"编辑"},stockupIdArr:[],tableArrList:[],requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},mounted:function(){this.RoadlittleTable()},methods:{RoadlittleTable:function(){var e=this,t=function(){return Promise.resolve().then(a.bind(null,"22e8"))};return e.littleTable=t},getButtons:function(){var e="deliveryRecord",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),e.postNameList=t.data.getDictListSelect4.list,console.log("快递名下拉框",e.postNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.deliveryCode="",this.table.getdataListParm.parammaps.stockupCodes="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.postId="",this.table.getdataListParm.parammaps.postCode="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",sendDate:Object(o["e"])(new Date,"{y}-{m}-{d}"),receiverId:"",receiverTel:"",receiverName:"",postId:"",postCode:"",stockupIds:"",remark:"",id:"",modifyName:"add",receiverChoose:"true"},this.stockupIdArr=[],this.tableArrList=[]},clearCustomerSelectTemp:function(e){document.activeElement.blur(),this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(r["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},handleCustomerSelect:function(e){console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name},clearCustomerSelect:function(e){document.activeElement.blur(),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName=""},changeCustomer:function(e){console.log(e),this.create.temp.customerId=e.id,this.create.temp.customerName=e.name,this.create.getdataListParm0.parammaps.customerId=e.id,this.getReceiverNameList(),this.create.getdataListParm2.parammaps.id=e.id,this.getGroupNameId(),this.create.getdataListParm1.parammaps.customerId=e.id,this.getPostalNameList(),this.tableArrList=[]},getReceiverNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm0).then((function(t){null!==t.data.list?(e.create.receiverNameList=t.data.list,console.log("接待人数据",t.data.list)):e.create.receiverNameList=[]}))},changeReceiver:function(e){this.create.getdataListParm01.parammaps.id=e,this.create.temp.receiverName=this.create.receiverNameList.find((function(t){return t.id===e})).name,this.getTelephoneName()},getTelephoneName:function(){var e=this;Object(r["d"])(this.create.getdataListParm01).then((function(t){null!==t.data.list&&(e.create.temp.receiverTel=t.data.list[0].telephone,console.log("接待人电话",t.data.list))}))},getPostalNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm1).then((function(t){null!==t.data.list?(e.create.postalNameList=t.data.list,console.log("关联接收数据",t.data.list)):e.create.postalNameList=[]}))},getGroupNameId:function(){var e=this;Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},changePostalName:function(e){console.log("发货详情ID ",e),console.log("发货详情ID是否已存在 ",this.stockupIdArr.includes(e)),console.log("stockupIdArr===>",this.stockupIdArr),this.stockupIdArr.includes(e)||(this.stockupIdArr.push(e),this.create.getdataListParm3.parammaps.stockupId=e,this.getReceProduct()),this.create.temp.stockupId=""},handleRowDeleteCode:function(e,t){console.log("小表格中的删除单号",e),this.tableArrList.splice(t,1),this.stockupIdArr.splice(this.stockupIdArr.indexOf(e.stockupId),1),console.log("stockupIdArr===>",this.stockupIdArr)},handleRowDelete2:function(e,t){console.log("小表格中的删除",e,t);var a=this.tableArrList[t].tablelist.findIndex((function(t){return t.id==e.id}));this.tableArrList[t].tablelist.splice(a,1)},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.stockupIds=e.stockupIdArr.toString();var a=[];e.tableArrList.forEach((function(e){e.tablelist.forEach((function(e){a.push(e)}))}));var i=e.create.temp.customerId;a.map((function(e){return e.customerId=i})),a.map((function(e){return e.deliveryId=""})),console.log("点击了新增保存this.create.temp",e.create.temp),console.log("点击了新增保存this.tableArrList",e.tableArrList),console.log("点击了新增保存sendTableArr",a);var s=e.tableArrList.filter((function(e){return 0==e.tablelist.length}));if(0==e.tableArrList.length)e.$message({type:"error",message:"发货详情必填",duration:2e3});else if(0!==s.length)e.$message({type:"error",message:"请添加货品!",duration:2e3});else{e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="@insertContactsNew.LastInsertId",e.create.temp.createrId=n.a.get("employeid");var l={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"insertDelivery",type:"e",parammaps:e.create.temp},{name:"insertDeliveryGoods",resultmaps:{list:a},children:[{name:"insertDeliveryGoods",type:"e",parammaps:{deliveryId:"@insertDelivery.LastInsertId",customerId:"@insertDeliveryGoods.customerId",productsId:"@insertDeliveryGoods.productsId",nums:"@insertDeliveryGoods.nums",remark:"@insertDeliveryGoods.remark",createrId:"@insertDeliveryGoods.createrId",stockupId:"@insertDeliveryGoods.stockupId"}}]},{name:"updateStockupOnSendNums",type:"e",parammaps:{deliveryId:"@insertDelivery.LastInsertId"}}]};console.log("新增保存发送参数 ",l),Object(r["b"])(l).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}}))},handleSee:function(e){var t=this;this.resetTemp(),console.log("点击了查看",e),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.$nextTick((function(){t.$refs.temp.resetFields(),t.create.temp=Object.assign({},e)})),this.create.temp.id=e.id,this.create.getdataListParm0.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getPostalNameList(),""!==e.stockupIds&&(this.stockupIdArr=e.stockupIds.split(","),console.log("stockupIdArr",this.stockupIdArr),this.create.getdataListParm4.parammaps.deliveryId=e.id,this.getReceProduct2()),this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){var t=this;if(this.resetTemp(),console.log("点击了编辑",e),this.create.dialogStatus="update",this.create.dialogFormVisible=!0,this.$nextTick((function(){t.$refs.temp.resetFields(),t.create.temp=Object.assign({},e)})),this.create.temp.id=e.id,this.create.getdataListParm0.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getPostalNameList(),""!==e.stockupIds){this.stockupIdArr=e.stockupIds.split(",");var a=[];this.stockupIdArr.forEach((function(e){a.push(parseInt(e))})),this.stockupIdArr=a,console.log("stockupIdArr",this.stockupIdArr),this.create.getdataListParm4.parammaps.deliveryId=e.id,this.getReceProduct2()}},getReceProduct:function(){var e=this;Object(r["d"])(this.create.getdataListParm3).then((function(t){if(console.log("新增弹窗中的小表格",t.data.list),null!==t.data.list){var a={};a.title=t.data.list[0].stockupCode,a.stockupId=t.data.list[0].stockupId,a.name=t.data.list[0].employeeName,a.date=t.data.list[0].successDate,a.tablelist=t.data.list,e.tableArrList.push(a)}}))},getReceProduct2:function(){var e=this;Object(r["d"])(this.create.getdataListParm4).then((function(t){if(console.log("查看和编辑中的小表格",t.data.list),console.log("查看和编辑的当前小表格ID",e.stockupIdArr),null!==t.data.list){var a=[];e.stockupIdArr.forEach((function(e){var i={title:"",name:"",date:"",stockupId:e,tablelist:[]};t.data.list.forEach((function(t){e==t.stockupId&&i.tablelist.push(t)})),a.push(i)})),console.log(a),a.map((function(e){return e.title=e.tablelist[0].stockupCode})),a.map((function(e){return e.name=e.tablelist[0].employeeName})),a.map((function(e){return e.date=e.tablelist[0].successDate})),e.tableArrList=a}}))},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.stockupIds=e.stockupIdArr.toString();var a=[];e.tableArrList.forEach((function(e){e.tablelist.forEach((function(e){a.push(e)}))}));var i=e.create.temp.customerId;a.map((function(e){return e.customerId=i}));var s=e.create.temp.id;a.map((function(e){return e.deliveryId=s})),console.log("点击了编辑保存this.create.temp",e.create.temp),console.log("点击了编辑保存this.tableArrList",e.tableArrList),console.log("点击了编辑保存sendTableArr",a);var l=e.tableArrList.filter((function(e){return 0==e.tablelist.length}));if(0==e.tableArrList.length)e.$message({type:"error",message:"发货详情必填",duration:2e3});else if(0!==l.length)e.$message({type:"error",message:"请添加货品!",duration:2e3});else{e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="@insertContactsNew.LastInsertId";var n={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateDelivery",type:"e",parammaps:e.create.temp},{name:"delDeliveryGoods",type:"e",parammaps:{deliveryId:e.create.temp.id}},{name:"insertDeliveryGoods",resultmaps:{list:a},children:[{name:"insertDeliveryGoods",type:"e",parammaps:{deliveryId:"@insertDelivery.LastInsertId",customerId:"@insertDeliveryGoods.customerId",productsId:"@insertDeliveryGoods.productsId",nums:"@insertDeliveryGoods.nums",remark:"@insertDeliveryGoods.remark",stockupId:"@insertDeliveryGoods.stockupId"}}]},{name:"updateStockupOnSendNums",type:"e",parammaps:{deliveryId:e.create.temp.id}}]};console.log("编辑保存发送参数 ",n),Object(r["b"])(n).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}}))},handleRowDelete:function(e){var t=this;d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delDelivery",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("d04d"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"f250b9b6",null);t["default"]=h.exports},"4df5":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"4e8a":function(e,t,a){},"4ec3":function(e,t,a){},"4ee4":function(e,t,a){"use strict";var i=a("be0d"),s=a.n(i);s.a},"4f68":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增合同")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择供应商",clearable:""},model:{value:e.table.getdataListParm.parammaps.providerid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"providerid",t)},expression:"table.getdataListParm.parammaps.providerid"}},e._l(e.supplierList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.providerName,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"合同编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.contractcode))])]}}])}),a("el-table-column",{attrs:{label:"供应商","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.providername))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",margin:"0 auto"},attrs:{rules:e.create.rules,model:e.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"!==e.create.dialogStatus},model:{value:e.create.createTemp.contractcode,callback:function(t){e.$set(e.create.createTemp,"contractcode",t)},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"!==e.create.dialogStatus},on:{change:e.changeSupplier},model:{value:e.create.createTemp.providerid,callback:function(t){e.$set(e.create.createTemp,"providerid",t)},expression:"create.createTemp.providerid"}},e._l(e.supplierList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.providerName,value:e.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"===e.create.dialogStatus,clearable:!1},model:{value:e.create.createTemp.operatetime,callback:function(t){e.$set(e.create.createTemp,"operatetime",t)},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"===e.create.dialogStatus},on:{change:e.changeFeedNameAdd},model:{value:e.create.createTemp.feedid,callback:function(t){e.$set(e.create.createTemp,"feedid",t)},expression:"create.createTemp.feedid"}},e._l(e.feedNameAddList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.fname,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"是否启用:",prop:"enable"}},[a("el-switch",{attrs:{disabled:"see"===e.create.dialogStatus,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.create.createTemp.enable,callback:function(t){e.$set(e.create.createTemp,"enable",t)},expression:"create.createTemp.enable"}})],1)],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.create.listLoading,expression:"create.listLoading"}],key:e.create.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:e.create.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"饲料价格","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"!==e.create.dialogStatus?a("el-input",{ref:"input",staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number",step:.01,placeholder:"最多两位小数"},model:{value:t.row.price,callback:function(a){e.$set(t.row,"price",a)},expression:"scope.row.price"}}):a("span",[e._v(" "+e._s(t.row.price))])]}}])}),"see"!==e.create.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("a",{staticClass:"smallDanger",on:{click:function(t){return e.handleFeedDelete(i)}}},[e._v("删除")])]}}],null,!1,1812980990)}):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1}}},[e._v("关闭")]),"see"!==e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("2934")),l=a("333d"),n=a("ed08"),o=a("5c96"),c=a("a78e"),d=a.n(c),m={name:"FeedContract",components:{Pagination:l["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getProviderListEnable",offset:0,pagecount:0,parammaps:{pastureid:d.a.get("pastureid")}},{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:d.a.get("pastureid")}}],supplierList:[],feedNameAddList:[],table:{getdataListParm:{name:"getBigContractList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),inputDatetime:"",startTime:"",stopTime:""}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{create:"新增合同",update:"编辑合同",see:"查看合同"},create:{dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:d.a.get("pastureid"),providerid:"",providername:"",emp:d.a.get("employename"),enable:1,operatetime:Object(n["e"])(new Date,"{y}-{m}-{d}")},rules:{contractcode:[{type:"string",required:!0,message:"必填",trigger:"blur"}],providerid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContractList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{}},listLoading:!1,tableKey:0,list:[]},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getButtons(),this.getDownList(),this.getList()},methods:{getButtons:function(){var e="FeedContract",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.supplierList=t.data.getProviderListEnable.list,e.feedNameAddList=t.data.getFeedListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.table.getdataListParm.parammaps.startTime=Object(n["e"])(e,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(t,"{y}-{m}-{d}"),this.$forceUpdate(),this.getList()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.table.getdataListParm.parammaps.startTime=Object(n["e"])(e,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(t,"{y}-{m}-{d}"),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(n["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(n["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.providerid=""},resetCreateTemp:function(){this.create.createTemp={pastureid:d.a.get("pastureid"),providerid:"",providername:"",emp:d.a.get("employename"),enable:1,operatetime:Object(n["e"])(new Date,"{y}-{m}-{d}")},this.create.list=[]},handleCreate:function(){console.log("点击了新增"),this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},changeSupplier:function(e){this.create.createTemp.providername=this.supplierList.find((function(t){return t.id==e})).providerName},changeFeedNameAdd:function(e){var t={};t.feedid=e,t.feedname=this.feedNameAddList.find((function(t){return t.id==e})).fname,t.pastureid=this.feedNameAddList.find((function(t){return t.id==e})).pastureid,t.price="",t.myId=(new Date).valueOf();for(var a=0;a<this.create.list.length;a++)if(this.create.list[a].feedid==e)return this.$message({type:"warning",message:"添加饲料不可重复",duration:2e3}),!1;this.create.list.push(t)},handleFeedDelete:function(e){for(var t=0;t<this.create.list.length;t++){if(console.log(this.create.list[t]),this.create.list[t].myId===e.myId)var a=this.create.list.indexOf(this.create.list[t]);if(a>-1)return void this.create.list.splice(a,1)}},createData:function(){var e=this;console.log("点击了新增保存"),this.$refs["createTemp"].validate((function(t){if(t){if(e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log(e.create.list.length),0==e.create.list.length)return e.$message({type:"warning",message:"请添加饲料",duration:2e3}),!1;for(var a=/^\d+(\.\d{1,2})?$/,i=0;i<e.create.list.length;i++){if(""==e.create.list[i].price)return e.$message({type:"warning",message:"饲料价格不可为空",duration:2e3}),!1;if(!a.test(parseFloat(e.create.list[i].price)))return e.$message({type:"warning",message:"饲料价格最多保留两位小数",duration:2e3}),!1}e.create.createTemp.operatetime=Object(n["e"])(e.create.createTemp.operatetime,"{y}-{m}-{d}"),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertBigContract",type:"e",parammaps:{pastureid:e.create.createTemp.pastureid,contractcode:e.create.createTemp.contractcode,providerid:e.create.createTemp.providerid,providername:e.create.createTemp.providername,emp:e.create.createTemp.emp,enable:e.create.createTemp.enable,operatetime:e.create.createTemp.operatetime}},e.requestParam.data[1]={name:"insertSpotList",resultmaps:{list:e.create.list}},e.requestParam.data[1].children=[],e.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"])(e.requestParam).then((function(t){"fail"===t.msg?Object(r["l"])(t,e.$notify):(e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList())}))}}))},handleUpdate:function(e){console.log("点击了编辑"),this.create.dialogStatus="update",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},e),this.create.getdataListParm.parammaps.pastureid=e.pastureid,this.create.getdataListParm.parammaps.id=e.id,this.getSeeList()},updateData:function(){var e=this;console.log("点击了编辑保存"),this.$refs["createTemp"].validate((function(t){if(t){if(e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),console.log(e.create.list.length),0==e.create.list.length)return e.$message({type:"warning",message:"请添加饲料",duration:2e3}),!1;for(var a=/^\d+(\.\d{1,2})?$/,i=0;i<e.create.list.length;i++){if(""==e.create.list[i].price)return e.$message({type:"warning",message:"饲料价格不可为空",duration:2e3}),!1;if(!a.test(parseFloat(e.create.list[i].price)))return e.$message({type:"warning",message:"饲料价格最多保留两位小数",duration:2e3}),!1}e.create.createTemp.operatetime=Object(n["e"])(e.create.createTemp.operatetime,"{y}-{m}-{d}"),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"updateBigContract",type:"e",parammaps:{pastureid:e.create.createTemp.pastureid,id:e.create.createTemp.id,operatetime:e.create.createTemp.operatetime,enable:e.create.createTemp.enable}},e.requestParam.data[1]={name:"deleteContract",type:"e",parammaps:{pastureid:e.create.createTemp.pastureid,id:e.create.createTemp.id}},e.requestParam.data[2]={name:"insertSpotList",resultmaps:{list:e.create.list}},e.requestParam.data[2].children=[],e.requestParam.data[2].children[0]={name:"insertContract",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",bigid:e.create.createTemp.id,feedid:"@insertSpotList.feedid",feedname:"@insertSpotList.feedname",price:"@insertSpotList.price"}},Object(r["b"])(e.requestParam).then((function(t){"fail"===t.msg?Object(r["l"])(t,e.$notify):(e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList())}))}}))},handleSee:function(e){console.log("点击了查看"),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},e),this.create.getdataListParm.parammaps.pastureid=e.pastureid,this.create.getdataListParm.parammaps.id=e.id,this.getSeeList()},getSeeList:function(){var e=this;this.create.listLoading=!0,Object(r["d"])(this.create.getdataListParm).then((function(t){console.log("查看table数据",t.data.list),null!==t.data.list?e.create.list=t.data.list:e.create.list=[],setTimeout((function(){e.create.listLoading=!1}),100)}))},handleRowDelete:function(e){var t=this;o["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log("点击了删除"),t.requestParam.common={returnmap:"0"},t.requestParam.data=[],t.requestParam.data[0]={name:"deleteBigContract",type:"e",parammaps:{pastureid:e.pastureid,id:e.id}},t.requestParam.data[1]={name:"deleteContract",type:"e",parammaps:{pastureid:e.pastureid,id:e.id}},Object(r["b"])(t.requestParam).then((function(e){"fail"===e.msg?Object(r["l"])(e,t.$notify):(t.$notify({title:"",message:"成功",type:"success",duration:2e3}),t.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleImport:function(){console.log("点击了导入")},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")}}},p=m,u=(a("7631"),a("317d"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"8ff8952e",null);t["default"]=h.exports},"4faf":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-配方计划",use:"icon-配方计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-配方计划"><defs><style type="text/css"></style></defs><path d="M682.666667 42.666667a42.666667 42.666667 0 0 1 42.666666 42.666666v21.333334h128a42.666667 42.666667 0 0 1 42.666667 42.666666v789.333334a42.666667 42.666667 0 0 1-42.666667 42.666666H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666666V149.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h128V85.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h341.333334zM298.666667 170.666667H192v746.666666h640V170.666667h-106.666667v21.333333a42.666667 42.666667 0 0 1-42.666666 42.666667H341.333333a42.666667 42.666667 0 0 1-42.666666-42.666667V170.666667z m202.666666 448a32 32 0 0 1 0 64h-170.666666a32 32 0 0 1 0-64h170.666666z m192-192a32 32 0 0 1 0 64h-362.666666a32 32 0 0 1 0-64h362.666666zM661.333333 106.666667H362.666667v64h298.666666V106.666667z" fill="#ffffff" p-id="9161" /></symbol>'});l.a.add(n);t["default"]=n},"4fbd":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"铲车编号",clearable:""},model:{value:e.table.getdataListParm.parammaps.eqcode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"eqcode",t)},expression:"table.getdataListParm.parammaps.eqcode"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"铲车名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.tname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"tname",t)},expression:"table.getdataListParm.parammaps.tname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-form",{ref:"form",attrs:{rules:e.table.rules,model:e.table}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"铲车编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.eqcode))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.eqcode,callback:function(a){e.$set(t.row,"eqcode",a)},expression:"scope.row.eqcode"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"铲车名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.tname))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.tname,callback:function(a){e.$set(t.row,"tname",a)},expression:"scope.row.tname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"数据采集卡编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.datacaptureno))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number",step:"0.01"},model:{value:t.row.datacaptureno,callback:function(a){e.$set(t.row,"datacaptureno",a)},expression:"scope.row.datacaptureno"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{attrs:{type:"minCancel"},on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"ForkliftManagement",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getTMRList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),eqcode:"",tclassname:"",enable:"",eqtype:"0"}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var e="ForkliftManagement",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.eqcode="",this.table.getdataListParm.parammaps.tname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.eqtype="0",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log("点击了新增");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,eqcode:"",tname:"",datacaptureno:""})},createData:function(e){var t=this;if(console.log("点击了新增保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.eqcode=e.eqcode,this.table.temp.tname=e.tname,this.table.temp.datacaptureno=e.datacaptureno,this.table.temp.enable=e.enable,this.table.temp.remark=e.remark,this.table.temp.tclassid="0",this.table.temp.maxstirfeed="0",""==this.table.temp.eqcode&&""==this.table.temp.tname&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"铲车编号/铲车名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"铲车名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.eqcode)return this.$message({type:"error",message:"铲车编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"铲车名称不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseInt(this.table.temp.datacaptureno)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return console.log(this.table.temp.eqcode),i.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"铲车编号不可输入特殊字符",duration:2e3}),!1):i.test(this.table.temp.tname)?(this.$message({type:"error",message:"铲车名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="insertTMR",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},updateData:function(e){var t=this;if(console.log("点击了编辑保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.eqcode=e.eqcode,this.table.temp.tname=e.tname,this.table.temp.datacaptureno=e.datacaptureno,this.table.temp.enable=e.enable,this.table.temp.remark=e.remark,this.table.temp.tclassid="0",this.table.temp.maxstirfeed="0",this.table.temp.id=e.id,""==this.table.temp.eqcode&&""==this.table.temp.tname&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"铲车编号/铲车名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname&&""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"铲车名称/数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.eqcode)return this.$message({type:"error",message:"铲车编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"铲车名称不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseInt(this.table.temp.datacaptureno)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return console.log(this.table.temp.eqcode),i.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"铲车编号不可输入特殊字符",duration:2e3}),!1):i.test(this.table.temp.tname)?(this.$message({type:"error",message:"铲车名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateTMR",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteTMR",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择铲车信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteTMR",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},m=d,p=(a("897d"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"66be5372",null);t["default"]=u.exports},5027:function(e,t,a){},"50ce":function(e,t,a){"use strict";var i=a("741f"),s=a.n(i);s.a},5154:function(e,t,a){},"51ff":function(e,t,a){var i={"./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","./shopping.svg":"12a5","./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":"86e0","./库存管理.svg":"0ee2","./库存统计.svg":"7a8b","./库存预警.svg":"7971","./撒料计划.svg":"8f12","./操作日志.svg":"941a","./日执行计划.svg":"4770","./标准参数.svg":"bca1","./栏舍剩料记录.svg":"2e2e","./栏舍生产.svg":"da07","./栏舍生产性能.svg":"83d2","./栏舍配方.svg":"4c14","./牧场信息.svg":"79dd","./牲畜类别.svg":"09c4","./用户管理.svg":"00b7","./盘点单.svg":"6071","./粪便筛.svg":"caf8","./粪便评分.svg":"e178","./系统用量.svg":"523d","./系统管理.svg":"9ae9","./统计分析.svg":"ba5d","./自定义报表.svg":"5dec","./舍组栏.svg":"53da","./角色管理.svg":"4d638","./设备基础信息.svg":"9950","./过程分析.svg":"aad2","./配方干物质.svg":"7501","./配方模板.svg":"cbee","./配方计划.svg":"4faf","./铲车管理.svg":"f764","./集团信息.svg":"4148","./预混计划.svg":"9f50","./饲喂效率.svg":"a445","./饲料分类.svg":"a762","./饲料合同.svg":"8642","./饲料表.svg":"7403","./首页-选中.svg":"dac4","./首页.svg":"cba3","./驾驶员.svg":"d4c2","./默认参数配置.svg":"90bb"};function s(e){var t=r(e);return a(t)}function r(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=r,e.exports=s,s.id="51ff"},"523d":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-系统用量",use:"icon-系统用量-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-系统用量"><defs><style type="text/css"></style></defs><path d="M153.4 948.1h186.5c18.3 0 33.2-14.6 33.2-32.6s-14.8-32.6-33.2-32.6H155.4V369.5l345.5-232.3 349.9 244.7v162.8c0 18 14.8 32.6 33.2 32.6 18.3 0 33.2-14.6 33.2-32.6v-164c0-20.4-10.1-39.6-27-51.4l-352-246c-21.9-15.3-51.4-15.6-73.6-0.7L117.1 316.3c-17.5 11.8-27.9 31.2-27.9 52.1V885c-0.1 34.8 28.7 63.1 64.2 63.1z" p-id="82172" fill="#ffffff" /><path d="M842.1 782.3h-348c-17.6 0-32-14.4-32-32s14.4-32 32-32h348c17.6 0 32 14.4 32 32s-14.4 32-32 32z" p-id="82173" fill="#ffffff" /><path d="M735.1 939.8c-7.8 0-15.7-2.9-21.8-8.6-12.9-12.1-13.6-32.3-1.5-45.2l128.7-137.7-135.3-132.6c-12.6-12.4-12.8-32.6-0.4-45.3 12.4-12.6 32.6-12.8 45.3-0.4l157.5 154.5c12.4 12.2 12.8 32 1 44.7l-150 160.5c-6.4 6.7-15 10.1-23.5 10.1z" p-id="82174" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"524d":function(e,t,a){"use strict";var i=a("4a4b"),s=a.n(i);s.a},5320:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},5326:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"栏舍名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.barid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"barid",t)},expression:"table.getdataListParm.parammaps.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"牲畜类别",clearable:""},model:{value:e.table.getdataListParm.parammaps.cowclass,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"cowclass",t)},expression:"table.getdataListParm.parammaps.cowclass"}},e._l(e.livestockList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.mixname,value:e.classname}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowclass))])]}}])}),a("el-table-column",{attrs:{label:"牛头数","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowsum))])]}}])}),a("el-table-column",{attrs:{label:"月龄","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.avgmonthage))])]}}])}),a("el-table-column",{attrs:{label:"体重(kg)","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bw))])]}}])}),a("el-table-column",{attrs:{label:"日增重(kg)","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dayw))])]}}])}),a("el-table-column",{attrs:{label:"胎次","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fetal))])]}}])}),a("el-table-column",{attrs:{label:"平均泌乳天数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.avgdim))])]}}])}),a("el-table-column",{attrs:{label:"怀孕天数","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dayspre))])]}}])}),a("el-table-column",{attrs:{label:"产奶量(kg/头)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.product))])]}}])}),a("el-table-column",{attrs:{label:"乳脂率(%)","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fat))])]}}])}),a("el-table-column",{attrs:{label:"乳蛋白率(%)","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pro))])]}}])}),a("el-table-column",{attrs:{label:"乳糖率(%)","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lactose))])]}}])}),a("el-table-column",{attrs:{label:"温度(℃)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tem))])]}}])}),a("el-table-column",{attrs:{label:"记录人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"生效时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productdate))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.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"==e.create.dialogStatus},model:{value:e.create.temp.productdate,callback:function(t){e.$set(e.create.temp,"productdate",t)},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"==e.create.dialogStatus,filterable:"",placeholder:"记录人"},on:{blur:e.blurEmp},model:{value:e.create.temp.emp,callback:function(t){e.$set(e.create.temp,"emp",t)},expression:"create.temp.emp"}},e._l(e.create.noteTakerList,(function(e,t){return a("el-option",{key:e.myId,attrs:{label:e.emp,value:e.emp}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[e._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:e.changeBar},model:{value:e.create.temp.barid,callback:function(t){e.$set(e.create.temp,"barid",t)},expression:"create.temp.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牲畜类别:",prop:"cowclassid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.create.dialogStatus,filterable:"",placeholder:"牲畜类别"},on:{change:e.changeCowclass},model:{value:e.create.temp.cowclassid,callback:function(t){e.$set(e.create.temp,"cowclassid",t)},expression:"create.temp.cowclassid"}},e._l(e.livestockList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.mixname,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"牛头数:",prop:"cowsum"}},[a("el-input",{ref:"cowsum",staticClass:"filter-item",attrs:{placeholder:"正整数",type:"number",step:"0.01"},model:{value:e.create.temp.cowsum,callback:function(t){e.$set(e.create.temp,"cowsum",t)},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:e.create.temp.tem,callback:function(t){e.$set(e.create.temp,"tem",t)},expression:"create.temp.tem"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[e._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:e.create.temp.avgmonthage,callback:function(t){e.$set(e.create.temp,"avgmonthage",t)},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:e.create.temp.bw,callback:function(t){e.$set(e.create.temp,"bw",t)},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:e.create.temp.dayw,callback:function(t){e.$set(e.create.temp,"dayw",t)},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:e.create.temp.dayspre,callback:function(t){e.$set(e.create.temp,"dayspre",t)},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:"后备牛"==e.create.temp.bigcowclass,placeholder:"0-20整数",type:"number"},model:{value:e.create.temp.fetal,callback:function(t){e.$set(e.create.temp,"fetal",t)},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:"后备牛"==e.create.temp.bigcowclass||"干奶牛"==e.create.temp.bigcowclass,placeholder:"正整数",type:"number"},model:{value:e.create.temp.avgdim,callback:function(t){e.$set(e.create.temp,"avgdim",t)},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:"后备牛"==e.create.temp.bigcowclass||"干奶牛"==e.create.temp.bigcowclass,placeholder:"最多两位小数",type:"number"},model:{value:e.create.temp.product,callback:function(t){e.$set(e.create.temp,"product",t)},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:"后备牛"==e.create.temp.bigcowclass||"干奶牛"==e.create.temp.bigcowclass,placeholder:"最多两位小数",type:"number"},model:{value:e.create.temp.fat,callback:function(t){e.$set(e.create.temp,"fat",t)},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:"后备牛"==e.create.temp.bigcowclass||"干奶牛"==e.create.temp.bigcowclass,placeholder:"最多两位小数",type:"number"},model:{value:e.create.temp.pro,callback:function(t){e.$set(e.create.temp,"pro",t)},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:"后备牛"==e.create.temp.bigcowclass||"干奶牛"==e.create.temp.bigcowclass,placeholder:"最多两位小数",type:"number"},model:{value:e.create.temp.lactose,callback:function(t){e.$set(e.create.temp,"lactose",t)},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(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createDataAgain()}}},[e._v("确认新增")]):e._e(),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"Performance",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],houseNameList:[],livestockList:[],table:{getdataListParm:{name:"getBarmilkList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",cowclass:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),productdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",cowclassid:"",cowclass:"",bigcowclass:"",cowsum:"",tem:"",avgmonthage:"",bw:"",dayw:"",dayspre:"",fetal:"",avgdim:"",product:"",fat:"",pro:"",lactose:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],cowclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getBarmilkEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="Performance",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.houseNameList=t.data.getBarListEnable.list,e.livestockList=t.data.getCowclassListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.cowclass="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),productdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",cowclassid:"",cowclass:"",bigcowclass:"",cowsum:"",tem:"",avgmonthage:"",bw:"",dayw:"",dayspre:"",fetal:"",avgdim:"",product:"",fat:"",pro:"",lactose:""}},blurEmp:function(e){this.create.temp.emp=e.target.value},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname},changeCowclass:function(e){this.create.temp.cowclass=this.livestockList.find((function(t){return t.id===e})).classname,this.create.temp.bigcowclass=this.livestockList.find((function(t){return t.id===e})).parentname},getNoteTakerList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].myId=a;e.create.noteTakerList=t.data.list,console.log("记录人数据",t.data.list),console.log(e.create.noteTakerList)}else e.create.noteTakerList=[]}))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^[1-9]\d*$/;if(""!==e.create.temp.cowsum&&!a.test(parseFloat(e.create.temp.cowsum)))return e.$message({type:"error",message:"牛头数请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==e.create.temp.tem&&!i.test(parseFloat(e.create.temp.tem)))return e.$message({type:"error",message:"温度环境请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.avgmonthage&&!i.test(parseFloat(e.create.temp.avgmonthage)))return e.$message({type:"error",message:"平均月龄请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.bw&&!i.test(parseFloat(e.create.temp.bw)))return e.$message({type:"error",message:"体重请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.dayw&&!i.test(parseFloat(e.create.temp.dayw)))return e.$message({type:"error",message:"日增重请保留两位小数",duration:2e3}),!1;var s=/^(([0-9]|([1-9]\d)|(1\d\d)|(2([0-7]\d|7[0-9]))))$/;if(""!==e.create.temp.dayspre&&!s.test(parseFloat(e.create.temp.dayspre)))return e.$message({type:"error",message:"怀孕天数请输入大于0小于280整数",duration:2e3}),!1;var l=/^(?:[0-9]|1[0-9])$/;if(""!==e.create.temp.fetal&&!l.test(parseFloat(e.create.temp.fetal)))return e.$message({type:"error",message:"胎次请输入大于0小于20整数",duration:2e3}),!1;if(""!==e.create.temp.avgdim&&!a.test(parseFloat(e.create.temp.avgdim)))return e.$message({type:"error",message:"平均泌乳天数请输入正整数",duration:2e3}),!1;if(""!==e.create.temp.product&&!i.test(parseFloat(e.create.temp.product)))return e.$message({type:"error",message:"产奶量请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.fat&&!i.test(parseFloat(e.create.temp.fat)))return e.$message({type:"error",message:"乳脂率请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.pro&&!i.test(parseFloat(e.create.temp.pro)))return e.$message({type:"error",message:"乳蛋白率请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.lactose&&!i.test(parseFloat(e.create.temp.lactose)))return e.$message({type:"error",message:"乳糖率请保留两位小数",duration:2e3}),!1;e.requestParam.name="insertBarmilk",e.requestParam.parammaps=e.create.temp,""==e.create.temp.cowsum&&(e.create.temp.cowsum="0"),""==e.create.temp.tem&&(e.create.temp.tem="0"),""==e.create.temp.avgmonthage&&(e.create.temp.avgmonthage="0"),""==e.create.temp.bw&&(e.create.temp.bw="0"),""==e.create.temp.dayw&&(e.create.temp.dayw="0"),""==e.create.temp.dayspre&&(e.create.temp.dayspre="0"),""==e.create.temp.fetal&&(e.create.temp.fetal="0"),""==e.create.temp.avgdim&&(e.create.temp.avgdim="0"),""==e.create.temp.product&&(e.create.temp.product="0"),""==e.create.temp.fat&&(e.create.temp.fat="0"),""==e.create.temp.pro&&(e.create.temp.pro="0"),""==e.create.temp.lactose&&(e.create.temp.lactose="0"),Object(r["g"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList();else{var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍今日生产性能已存在,不可重复生成",duration:2e3}):Object(r["l"])(t,e.$notify),"0"==e.create.temp.cowsum&&(e.create.temp.cowsum=""),"0"==e.create.temp.tem&&(e.create.temp.tem=""),"0"==e.create.temp.avgmonthage&&(e.create.temp.avgmonthage=""),"0"==e.create.temp.bw&&(e.create.temp.bw=""),"0"==e.create.temp.dayw&&(e.create.temp.dayw=""),"0"==e.create.temp.dayspre&&(e.create.temp.dayspre=""),"0"==e.create.temp.fetal&&(e.create.temp.fetal=""),"0"==e.create.temp.avgdim&&(e.create.temp.avgdim=""),"0"==e.create.temp.product&&(e.create.temp.product=""),"0"==e.create.temp.fat&&(e.create.temp.fat=""),"0"==e.create.temp.pro&&(e.create.temp.pro=""),"0"==e.create.temp.lactose&&(e.create.temp.lactose="")}}))}}))},createDataAgain:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^[1-9]\d*$/;if(""!==e.create.temp.cowsum&&!a.test(parseFloat(e.create.temp.cowsum)))return e.$message({type:"error",message:"牛头数请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==e.create.temp.tem&&!i.test(parseFloat(e.create.temp.tem)))return e.$message({type:"error",message:"温度环境请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.avgmonthage&&!i.test(parseFloat(e.create.temp.avgmonthage)))return e.$message({type:"error",message:"平均月龄请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.bw&&!i.test(parseFloat(e.create.temp.bw)))return e.$message({type:"error",message:"体重请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.dayw&&!i.test(parseFloat(e.create.temp.dayw)))return e.$message({type:"error",message:"日增重请保留两位小数",duration:2e3}),!1;var s=/^(([0-9]|([1-9]\d)|(1\d\d)|(2([0-7]\d|7[0-9]))))$/;if(""!==e.create.temp.dayspre&&!s.test(parseFloat(e.create.temp.dayspre)))return e.$message({type:"error",message:"怀孕天数请输入大于0小于280整数",duration:2e3}),!1;var l=/^(?:[0-9]|1[0-9])$/;if(""!==e.create.temp.fetal&&!l.test(parseFloat(e.create.temp.fetal)))return e.$message({type:"error",message:"胎次请输入大于0小于20整数",duration:2e3}),!1;if(""!==e.create.temp.avgdim&&!a.test(parseFloat(e.create.temp.avgdim)))return e.$message({type:"error",message:"平均泌乳天数请输入正整数",duration:2e3}),!1;if(""!==e.create.temp.product&&!i.test(parseFloat(e.create.temp.product)))return e.$message({type:"error",message:"产奶量请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.fat&&!i.test(parseFloat(e.create.temp.fat)))return e.$message({type:"error",message:"乳脂率请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.pro&&!i.test(parseFloat(e.create.temp.pro)))return e.$message({type:"error",message:"乳蛋白率请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.lactose&&!i.test(parseFloat(e.create.temp.lactose)))return e.$message({type:"error",message:"乳糖率请保留两位小数",duration:2e3}),!1;e.requestParam.name="insertBarmilk",e.requestParam.parammaps=e.create.temp,""==e.create.temp.cowsum&&(e.create.temp.cowsum="0"),""==e.create.temp.tem&&(e.create.temp.tem="0"),""==e.create.temp.avgmonthage&&(e.create.temp.avgmonthage="0"),""==e.create.temp.bw&&(e.create.temp.bw="0"),""==e.create.temp.dayw&&(e.create.temp.dayw="0"),""==e.create.temp.dayspre&&(e.create.temp.dayspre="0"),""==e.create.temp.fetal&&(e.create.temp.fetal="0"),""==e.create.temp.avgdim&&(e.create.temp.avgdim="0"),""==e.create.temp.product&&(e.create.temp.product="0"),""==e.create.temp.fat&&(e.create.temp.fat="0"),""==e.create.temp.pro&&(e.create.temp.pro="0"),""==e.create.temp.lactose&&(e.create.temp.lactose="0"),Object(r["g"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.resetTemp(),e.create.noteTakerList=[],e.getNoteTakerList();else{var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍今日生产性能已存在,不可重复生成",duration:2e3}):Object(r["l"])(t,e.$notify),"0"==e.create.temp.cowsum&&(e.create.temp.cowsum=""),"0"==e.create.temp.tem&&(e.create.temp.tem=""),"0"==e.create.temp.avgmonthage&&(e.create.temp.avgmonthage=""),"0"==e.create.temp.bw&&(e.create.temp.bw=""),"0"==e.create.temp.dayw&&(e.create.temp.dayw=""),"0"==e.create.temp.dayspre&&(e.create.temp.dayspre=""),"0"==e.create.temp.fetal&&(e.create.temp.fetal=""),"0"==e.create.temp.avgdim&&(e.create.temp.avgdim=""),"0"==e.create.temp.product&&(e.create.temp.product=""),"0"==e.create.temp.fat&&(e.create.temp.fat=""),"0"==e.create.temp.pro&&(e.create.temp.pro=""),"0"==e.create.temp.lactose&&(e.create.temp.lactose="")}}))}}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),e.cowclassid=String(e.cowclassid),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,"0"==this.create.temp.cowsum&&(this.create.temp.cowsum=""),"0"==this.create.temp.avgdim&&(this.create.temp.avgdim=""),this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^[1-9]\d*$/;if(""!==e.create.temp.cowsum&&!a.test(parseFloat(e.create.temp.cowsum)))return e.$message({type:"error",message:"牛头数请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==e.create.temp.tem&&!i.test(parseFloat(e.create.temp.tem)))return e.$message({type:"error",message:"温度环境请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.avgmonthage&&!i.test(parseFloat(e.create.temp.avgmonthage)))return e.$message({type:"error",message:"平均月龄请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.bw&&!i.test(parseFloat(e.create.temp.bw)))return e.$message({type:"error",message:"体重请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.dayw&&!i.test(parseFloat(e.create.temp.dayw)))return e.$message({type:"error",message:"日增重请保留两位小数",duration:2e3}),!1;var s=/^(([0-9]|([1-9]\d)|(1\d\d)|(2([0-7]\d|7[0-9]))))$/;if(""!==e.create.temp.dayspre&&!s.test(parseFloat(e.create.temp.dayspre)))return e.$message({type:"error",message:"怀孕天数请输入大于0小于280整数",duration:2e3}),!1;var l=/^(?:[0-9]|1[0-9])$/;if(""!==e.create.temp.fetal&&!l.test(parseFloat(e.create.temp.fetal)))return e.$message({type:"error",message:"胎次请输入大于0小于20整数",duration:2e3}),!1;if(""!==e.create.temp.avgdim&&!a.test(parseFloat(e.create.temp.avgdim)))return e.$message({type:"error",message:"平均泌乳天数请输入正整数",duration:2e3}),!1;if(""!==e.create.temp.product&&!i.test(parseFloat(e.create.temp.product)))return e.$message({type:"error",message:"产奶量请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.fat&&!i.test(parseFloat(e.create.temp.fat)))return e.$message({type:"error",message:"乳脂率请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.pro&&!i.test(parseFloat(e.create.temp.pro)))return e.$message({type:"error",message:"乳蛋白率请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.lactose&&!i.test(parseFloat(e.create.temp.lactose)))return e.$message({type:"error",message:"乳糖率请保留两位小数",duration:2e3}),!1;e.requestParam.name="updateBarmilk",e.requestParam.parammaps=e.create.temp,""==e.create.temp.cowsum&&(e.create.temp.cowsum="0"),""==e.create.temp.tem&&(e.create.temp.tem="0"),""==e.create.temp.avgmonthage&&(e.create.temp.avgmonthage="0"),""==e.create.temp.bw&&(e.create.temp.bw="0"),""==e.create.temp.dayw&&(e.create.temp.dayw="0"),""==e.create.temp.dayspre&&(e.create.temp.dayspre="0"),""==e.create.temp.fetal&&(e.create.temp.fetal="0"),""==e.create.temp.avgdim&&(e.create.temp.avgdim="0"),""==e.create.temp.product&&(e.create.temp.product="0"),""==e.create.temp.fat&&(e.create.temp.fat="0"),""==e.create.temp.pro&&(e.create.temp.pro="0"),""==e.create.temp.lactose&&(e.create.temp.lactose="0"),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):(Object(r["l"])(t,e.$notify),"0"==e.create.temp.dayspre&&(e.create.temp.dayspre=""),"0"==e.create.temp.fetal&&(e.create.temp.fetal=""),"0"==e.create.temp.cowsum&&(e.create.temp.cowsum=""),"0"==e.create.temp.avgdim&&(e.create.temp.avgdim=""))}))}}))},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteBarmilk",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍生产性能",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteBarmilk",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCopy:function(){var e=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择栏舍生产性能",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="copybarmilk",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.selectList[0].pastureid,e.requestParam.parammaps.id=e.selectList[0].id,Object(r["g"])(e.requestParam).then((function(t){if("fail"===t.msg){var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍今日生产性能已存在,不可重复生成",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}else e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条栏舍生产性能",duration:2e3})},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("36e1"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"6e0c29f0",null);t["default"]=h.exports},5346:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"50"}}),a("el-table-column",{attrs:{label:"部门名称","header-align":"center",width:"250px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptname))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"是否牧场","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.isPasture,callback:function(a){e.$set(t.row,"isPasture",a)},expression:"scope.row.isPasture"}})]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"90%","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[e.parentDeptVisible?a("el-form-item",{attrs:{label:"上级部门",prop:"parentid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:500,size:"small",data:e.parentDept,"default-props":e.defaultProps,"node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1):e._e(),a("el-form-item",{attrs:{label:"部门名称",prop:"deptname"}},[a("el-input",{ref:"deptname",nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.deptenter(t)}},model:{value:e.deptform.deptname,callback:function(t){e.$set(e.deptform,"deptname",t)},expression:"deptform.deptname"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"请输入"},model:{value:e.deptform.remark,callback:function(t){e.$set(e.deptform,"remark",t)},expression:"deptform.remark"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.deptform.sort,callback:function(t){e.$set(e.deptform,"sort",t)},expression:"deptform.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.createData_again()}}},[e._v(" 确认新增 ")]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("b0c0"),a("3de8")),l=a("6724"),n=a("61f7"),o=a("2934"),c=a("5c96"),d={name:"Dept",components:{TreeSelect:r["a"]},directives:{waves:l["a"]},data:function(){return{disabled:!1,tableKey:0,list:[],parentDept:[],listLoading:!0,requestParam:{name:"createdept"},requestParamDel:{},deptform:{id:"",deptname:"",remark:"",parentid:"",sort:0,enable:""},getDeptListParm:{name:"getdeptlistrecu",idname:"id",params:[-1]},getDeptParm:{name:"getdeptrecu",idname:"value",params:[-1]},getDepartListParm:{name:"getalldeptname"},rules:{deptname:[{type:"string",required:!0,message:"部门名称必填",trigger:"blur"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"deptname"},nodeKey:"id",defaultCheckedKeys:[]}},created:function(){this.getList()},methods:{popoverHide:function(e,t){console.log(e,t),this.deptform.parentid=e,this.deptform.pastureId=t.pastureId},deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},getList:function(){var e=this;this.listLoading=!0,Object(o["d"])(this.getDepartListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable),t.data.list[a].isPasture=parseInt(t.data.list[a].isPasture);e.list=Object(o["t"])(t.data.list,"id","parentid","children")}e.parentDept=e.list,setTimeout((function(){e.listLoading=!1}),10)}))},resetRequestParam:function(){this.requestParam={name:"createdept",params:[]},this.deptform.id="",this.deptform.parentid="",this.deptform.deptname="",this.deptform.remark="",this.deptform.sort="0",this.deptform.enable="1",this.deptform.isPasture="0"},handleCreate:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.parentDeptVisible=!0,this.dialogFormVisible=!0,this.list.length>0?(this.defaultCheckedKeys=[this.list[0].id],this.deptform.parentid=this.list[0].id,this.deptform.pastureId=this.list[0].pastureId):this.deptform.parentid=-1,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.deptname.focus()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createdept",e.requestParam.parammaps={},e.requestParam.parammaps.pastureId=e.deptform.pastureId,e.requestParam.parammaps.parentid=e.deptform.parentid,e.requestParam.parammaps.deptname=e.deptform.deptname,e.requestParam.parammaps.remark=e.deptform.remark,e.requestParam.parammaps.sort=e.deptform.sort,e.requestParam.parammaps.enable=e.deptform.enable,e.requestParam.parammaps.isPasture=e.deptform.isPasture,Object(o["g"])(e.requestParam).then((function(t){"fail"!==t.msg?(e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})):Object(o["l"])(t,e.$notify)})))}))},createData_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createdept",e.requestParam.parammaps={},e.requestParam.parammaps.pastureId=e.deptform.pastureId,e.requestParam.parammaps.parentid=e.deptform.parentid,e.requestParam.parammaps.deptname=e.deptform.deptname,e.requestParam.parammaps.remark=e.deptform.remark,e.requestParam.parammaps.sort=e.deptform.sort,e.requestParam.parammaps.enable=e.deptform.enable,e.requestParam.parammaps.isPasture=e.deptform.isPasture,Object(o["g"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["deptname"].focus()})),e.getList(),e.requestParam={name:"createdept",params:[]},e.deptform.id="",e.deptform.deptname="",e.deptform.remark="",e.deptform.sort="0",e.deptform.enable="1",e.deptform.isPasture="0",e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(e){var t=this;this.defaultCheckedKeys=[e.parentid],this.parentDeptVisible=e.parentid>0,this.deptform.id=e.id,this.deptform.parentid=e.parentid,this.deptform.deptname=e.deptname,this.deptform.remark=e.remark,this.deptform.sort=e.sort,this.deptform.enable=e.enable,this.deptform.isPasture=e.isPasture,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["deptname"].focus()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updatedept",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.parentid,e.requestParam.params[1]=e.deptform.deptname,e.requestParam.params[2]=e.deptform.remark,e.requestParam.params[3]=e.deptform.sort,e.requestParam.params[4]=e.deptform.enable,e.requestParam.params[5]=e.deptform.isPasture,e.requestParam.params[6]=e.deptform.id,Object(o["g"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updatedept",this.requestParam.params=[],this.requestParam.params[0]=t.parentid,this.requestParam.params[1]=t.deptname,this.requestParam.params[2]=t.remark,null===t.sort?this.requestParam.params[3]="0":this.requestParam.params[3]=t.sort,this.requestParam.params[4]=t.enable,this.requestParam.params[5]=t.isPasture,this.requestParam.params[6]=t.id,Object(o["g"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(e){var t=this;c["MessageBox"].confirm("部门名称:"+e.deptname,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParamDel.name="deletedept",t.requestParamDel.params=[],t.requestParamDel.params[0]=e.id,Object(o["g"])(t.requestParamDel).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},m=d,p=a("2877"),u=Object(p["a"])(m,i,s,!1,null,null,null);t["default"]=u.exports},"53da":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-舍组栏",use:"icon-舍组栏-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-舍组栏"><defs><style type="text/css"></style></defs><path d="M127 358.2h41v116.7h-41z" p-id="72400" fill="#ffffff" /><path d="M127 358.2h41v116.7h-41z" p-id="72401" fill="#ffffff" /><path d="M127 358.2h41v116.7h-41z" p-id="72402" fill="#ffffff" /><path d="M127 358.2h41v116.7h-41z" p-id="72403" fill="#ffffff" /><path d="M403.5 358.2v116.7h41V358.2h-41z m196.6-188.4H428c-13.5 0-24.6 11.1-24.6 24.6V699c0 4.7 1.4 9.4 4.1 13.5l85.2 130.7c4.9 7.4 12.7 11.1 20.7 11.1 7.8 0 15.6-3.7 20.5-11.1l86.6-130.7c2.7-4.1 4.1-8.8 4.1-13.5V194.4c0-13.6-11-24.6-24.5-24.6z m-16.4 524.3L513.5 800l-69-105.9V210.7h139.3v483.4zM403.5 358.2v116.7h41V358.2h-41z m0 0M677.9 358.2v116.7h41V358.2h-41z m196.6-188.4h-172c-13.5 0-24.6 11.1-24.6 24.6V699c0 4.7 1.4 9.4 4.1 13.5l85.2 130.7c4.9 7.4 12.7 11.1 20.7 11.1 7.8 0 15.6-3.7 20.5-11.1L895 712.5c2.7-4.1 4.1-8.8 4.1-13.5V194.4c0-13.6-11.1-24.6-24.6-24.6z m-16.4 524.3L787.9 800l-69-105.9V210.7h139.3v483.4z m0 0M323.6 169.8h-172c-13.5 0-24.6 11.1-24.6 24.6V699c0 4.7 1.4 9.4 4.1 13.5l85.2 130.7c4.9 7.4 12.7 11.1 20.7 11.1 7.8 0 15.6-3.7 20.5-11.1l86.6-130.7c2.7-4.1 4.1-8.8 4.1-13.5V194.4c0-13.6-11.1-24.6-24.6-24.6z m-16.4 524.3L237 799.9 168 694V210.7h139.3v483.4z" p-id="72404" fill="#ffffff" /><path d="M583.7 474.9h135.2v41H583.7zM41 474.9V358.2h127v-41H24.6C11.1 317.2 0 328.3 0 341.8v149.5c0 13.5 11.1 24.6 24.6 24.6H168v-41H41zM307.2 474.9h137.2v41H307.2zM307.2 317.2h137.2v41H307.2zM583.7 317.2h135.2v41H583.7zM999.4 317.2H858.1v41H983v116.7H858.1v41h141.3c13.5 0 24.6-11.1 24.6-24.6V341.8c0-13.5-11.1-24.6-24.6-24.6z" p-id="72405" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"54de":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"createTemp",staticStyle:{"margin-top":"40px","margin-bottom":"30px"},attrs:{rules:e.rules,model:e.createTemp,"label-position":"right","label-width":"250px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"可删除记录天数:",prop:"delDays"}},[a("el-input",{ref:"delDays",staticClass:"filter-item",attrs:{disabled:0==e.isRoleEdit,placeholder:"请输入可删除记录天数",type:"text"},model:{value:e.createTemp.delDays,callback:function(t){e.$set(e.createTemp,"delDays",t)},expression:"createTemp.delDays"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"可编辑记录天数:",prop:"updDays"}},[a("el-input",{ref:"updDays",staticClass:"filter-item",attrs:{disabled:0==e.isRoleEdit,placeholder:"请输入可删除记录天数",type:"text"},model:{value:e.createTemp.updDays,callback:function(t){e.$set(e.createTemp,"updDays",t)},expression:"createTemp.updDays"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"0"},attrs:{slot:"footer"},slot:"footer"},[e.isRoleEdit?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:e.handleSave}},[e._v("保存")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"warning",attrs:{disabled:e.isokDisable},on:{click:e.handleRecovery}},[e._v("恢复默认")]):e._e()],1)],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=a("5c96"),c={name:"DefaultParameter",data:function(){return{isRoleEdit:[],getdataListParm:{name:"getParam",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey:0,listLoading:!0,createTemp:{},rules:{},isokDisable:!1,requestParam:{}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var e="DefaultParameter",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getList:function(){var e=this;this.listLoading=!0,Object(r["d"])(this.getdataListParm).then((function(t){console.log("table1数据",t.data.list),null!==t.data.list?e.createTemp=t.data.list[0]:e.list=[],setTimeout((function(){e.listLoading=!1}),100)}))},handleSave:function(){var e=this;console.log("点击了保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var t={name:"updateParam",parammaps:this.createTemp};Object(r["g"])(t).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())}))},handleRecovery:function(){var e=this;console.log("点击了恢复默认"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),o["MessageBox"].confirm("是否确认恢复默认设置?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var t={name:"updateParam",parammaps:{delDays:"7",id:e.createTemp.id,updDays:"7"}};Object(r["g"])(t).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())}))}))}}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,"b728d2a8",null);t["default"]=p.exports},"54e7":function(e,t,a){},"55ad":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"角色名称","header-align":"center","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.name))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"330","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleMenu(i)}}},[e._v("菜单")]),a("el-button",{staticStyle:{width:"70px"},attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleDataRole(i)}}},[e._v("数据权限")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:e.dataform.name,callback:function(t){e.$set(e.dataform,"name",t)},expression:"dataform.name"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.dataform.sort,callback:function(t){e.$set(e.dataform,"sort",t)},expression:"dataform.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.createData_again()}}},[e._v(" 确认新增 ")]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1),a("el-dialog",{attrs:{title:e.textMap["dataRole"],visible:e.dialogDataRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogDataRoleVisible=t}}},[a("el-form",{ref:"dataRoleTemp",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left",model:e.dataRoleTemp,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"数据权限",prop:"datarole"}},[a("el-radio-group",{model:{value:e.dataRoleTemp.datarole,callback:function(t){e.$set(e.dataRoleTemp,"datarole",t)},expression:"dataRoleTemp.datarole"}},[a("el-radio",{attrs:{label:3}},[e._v("全部数据")]),a("el-radio",{attrs:{label:2}},[e._v("牧场数据")]),a("el-radio",{attrs:{label:1}},[e._v("部门数据")]),a("el-radio",{attrs:{label:0}},[e._v("个人数据")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateDataRole()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogDataRoleVisible=!1}}},[e._v(" 关闭 ")])],1)],1),a("el-dialog",{attrs:{title:e.textMap["menu"],visible:e.dialogMenuVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogMenuVisible=t}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"菜单",prop:"menuname"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:200,size:"small",multiple:"",data:e.parentMenu,"default-props":e.defaultProps,"collapse-tags":"","check-strictly":"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{disabled:e.isokDisable,type:"primary"},on:{click:function(t){return e.updateMenu()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogMenuVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("b0c0"),a("d3b7"),a("ddb0"),a("3de8")),l=a("6724"),n=a("61f7"),o=a("2934"),c=a("333d"),d=a("5c96"),m=a("a78e"),p=a.n(m),u={name:"Role",components:{Pagination:c["a"],TreeSelect:r["a"]},directives:{waves:l["a"]},data:function(){return{disabled:!1,tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],parentMenu:[],total:0,listLoading:!0,requestParam:{name:"createRole",offset:0,pagecount:0,params:[]},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:""},dataform:{id:"",name:"",selectMenus:[],sort:"",enable:""},getdataListParm:{name:"getRoleall",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:p.a.get("pastureid")}},getMenuParm:{name:"getMenuandButtonRecuRule",idname:"id",params:[-1]},rules:{name:[{type:"string",required:!0,message:"名称必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}],datarole:[{required:!0,message:"必填",trigger:"blur"}]},dialogFormVisible:!1,dialogMenuVisible:!1,dialogDataRoleVisible:!1,selectedMenu:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",menu:"授权菜单",dataRole:"数据权限"},rowStyle:{maxHeight:"25px",height:"25px"},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(e,t){this.dataform.selectMenus=e,this.selectedMenu=e,this.UpdateDataRelationParam.values=e},getMenuList:function(){var e=this;Object(o["o"])(this.getMenuParm).then((function(t){e.parentMenu=t.data}))},getList:function(){var e=this;this.listLoading=!0,Object(o["d"])(this.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.list=t.data.list}e.total=t.data.total,e.getMenuList(),setTimeout((function(){e.listLoading=!1}),500)}))},resetRequestParam:function(){this.dataform.id="",this.dataform.name="",this.dataform.sort="0",this.dataform.enable="1"},handleCreate:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.name.focus()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createRole",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.name,e.requestParam.params[1]=e.dataform.sort,e.requestParam.params[2]=e.dataform.enable,Object(o["g"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createRole",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.name,e.requestParam.params[1]=e.dataform.sort,e.requestParam.params[2]=e.dataform.enable,Object(o["g"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["name"].focus()})),e.getList(),e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleMenu:function(e){var t=this;this.requestParam.name="getMenuByRole",this.requestParam.params=[],this.requestParam.params[0]=e.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=e.id,this.dialogMenuVisible=!0,Object(o["d"])(this.requestParam).then((function(e){t.selectedMenu=e.data.lists.menu_id,t.defaultCheckedKeys=t.selectedMenu,t.UpdateDataRelationParam.values=t.defaultCheckedKeys}))},updateMenu:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.UpdateDataRelationParam.name="role_menu",this.UpdateDataRelationParam.dataname="role_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="menu_id",this.UpdateDataRelationParam.values=this.selectedMenu,Object(o["h"])(this.UpdateDataRelationParam).then((function(){e.dialogMenuVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleUpdate:function(e){var t=this;this.dataform.id=e.id,this.dataform.name=e.name,this.dataform.sort=e.sort,this.dataform.enable=e.enable,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs.name.focus()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateRole",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.name,e.requestParam.params[1]=e.dataform.sort,e.requestParam.params[2]=e.dataform.enable,e.requestParam.params[3]=e.dataform.id,Object(o["g"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateRole",this.requestParam.params=[],this.requestParam.params[0]=t.name,this.requestParam.params[1]=t.sort,this.requestParam.params[2]=t.enable,this.requestParam.params[3]=t.id,Object(o["g"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(e){var t=this;d["MessageBox"].confirm("名称:"+e.name,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteRole",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(o["g"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},handleDataRole:function(e){var t=this;this.dataRoleTemp=Object.assign({},e),this.$set(this.dataRoleTemp,"datarole",0),this.dialogDataRoleVisible=!0,this.getDataRoleListParm.parammaps.id=e.id,Object(o["d"])(this.getDataRoleListParm).then((function(e){t.dataRolelist=e.data.list,t.dataRoleTemp.datarole=e.data.list[0].datarole,t.$forceUpdate()}))},updateDataRole:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["dataRoleTemp"].validate((function(t){t&&(e.requestParam.name="setDataRole",e.requestParam.parammaps={},e.requestParam.parammaps.id=e.dataRoleTemp.id,e.requestParam.parammaps.datarole=e.dataRoleTemp.datarole,Object(o["g"])(e.requestParam).then((function(t){console.log("设置数据权限保存发送参数",e.requestParam),"fail"!==t.msg?(e.getList(),e.dialogDataRoleVisible=!1,e.$notify({title:"成功",message:"设置成功",type:"success",duration:2e3})):Object(o["l"])(t,e.$notify)})))}))}}},h=u,g=a("2877"),f=Object(g["a"])(h,i,s,!1,null,null,null);t["default"]=f.exports},"55c5":function(e,t,a){},"55cd":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2",type:"success"}},[a("router-view")],1)],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!1,null,null,null);t["default"]=n.exports},"56d7":function(e,t,a){"use strict";a.r(t);var i={};a.r(i),a.d(i,"parseTime",(function(){return M["e"]})),a.d(i,"formatTime",(function(){return M["c"]})),a.d(i,"timeAgo",(function(){return z})),a.d(i,"numberFormatter",(function(){return V})),a.d(i,"toThousandFilter",(function(){return A})),a.d(i,"uppercaseFirst",(function(){return U}));a("4de4"),a("4160"),a("b64b"),a("159b"),a("e260"),a("e6cf"),a("cca6"),a("a79d");var s=a("2b0e"),r=a("8c4f"),l=(a("f5df1"),a("5c96")),n=a.n(l),o=(a("0fae"),a("f0d9"),a("be35"),a("b20f"),a("dc210")),c=a("e594"),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[e.isRouterAlive?a("router-view"):e._e()],1)},m=[],p={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){var e=this;this.isRouterAlive=!1,this.$nextTick((function(){e.isRouterAlive=!0}))}}},u=p,h=(a("5c0b"),a("2877")),g=Object(h["a"])(u,d,m,!1,null,null,null),f=g.exports,b=a("4360"),v=a("a18c"),w=a("9225"),y=(a("d81d"),a("d3b7"),a("ddb0"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.isExternal?a("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):a("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[a("use",{attrs:{"xlink:href":e.iconName}})])}),L=[],x=a("61f7"),S={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(x["a"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},k=S,_=(a("7c99"),Object(h["a"])(k,y,L,!1,null,"68ef0854",null)),P=_.exports;s["default"].component("svg-icon",P);var C=a("51ff"),T=function(e){return e.keys().map(e)};T(C);a("c975");var D=a("be94"),$=(a("96cf"),a("1da1")),N=a("323e"),I=a.n(N),O=(a("a5d8"),a("5f87")),j=(a("99af"),a("83d6")),F=a.n(j),E=F.a.title||"Vue Admin Template";function q(e){return e?"".concat(e," - ").concat(E):"".concat(E)}I.a.configure({showSpinner:!1});var R=["/login"];v["b"].beforeEach(function(){var e=Object($["a"])(regeneratorRuntime.mark((function e(t,a,i){var s,r,n,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(I.a.start(),document.title=q(t.meta.title),s=Object(O["a"])(),!s){e.next=35;break}if("/login"!==t.path){e.next=9;break}i({path:"/"}),I.a.done(),e.next=33;break;case 9:if(r=b["a"].getters.roles&&b["a"].getters.roles.length>0,!r){e.next=14;break}i(),e.next=33;break;case 14:return e.prev=14,e.next=17,b["a"].dispatch("user/getInfo");case 17:return n=e.sent,o=n.roles,e.next=21,b["a"].dispatch("permission/generateRoutes",o);case 21:c=e.sent,v["b"].addRoutes(c),i(Object(D["a"])(Object(D["a"])({},t),{},{replace:!0})),e.next=33;break;case 26:return e.prev=26,e.t0=e["catch"](14),e.next=30,b["a"].dispatch("user/resetToken");case 30:l["Message"].error(e.t0||"Has Error"),i("/login"),I.a.done();case 33:e.next=36;break;case 35:-1!==R.indexOf(t.path)?i():(i({path:"/login"}),I.a.done());case 36:case"end":return e.stop()}}),e,null,[[14,26]])})));return function(t,a,i){return e.apply(this,arguments)}}()),v["b"].afterEach((function(){I.a.done()}));a("fb6a"),a("a9e3"),a("b680"),a("ac1f"),a("25f0"),a("5319");var M=a("ed08");function B(e,t){return 1===e?e+t:e+t+"s"}function z(e){var t=Date.now()/1e3-Number(e);return t<3600?B(~~(t/60)," minute"):t<86400?B(~~(t/3600)," hour"):B(~~(t/86400)," day")}function V(e,t){for(var a=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],i=0;i<a.length;i++)if(e>=a[i].value)return(e/a[i].value+.1).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+a[i].symbol;return e.toString()}function A(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function U(e){return e.charAt(0).toUpperCase()+e.slice(1)}s["default"].config.productionTip=!1,o["a"]({release:"vislib@"+Object({NODE_ENV:"production",VUE_APP_BASE_API:"http://192.168.1.90:8082/",BASE_URL:"/"}).npm_package_version,dsn:"https://9d8ee0ea1a2749949dd1e641b0f7c071@o286322.ingest.sentry.io/5217806",integrations:[new c["a"]({Vue:s["default"],attachProps:!0})]}),b["a"].commit("app/SET_LANG","CN"),s["default"].use(r["a"]),s["default"].use(n.a,{i18n:function(e,t){return w["a"].t(e,t)}}),Object.keys(i).forEach((function(e){s["default"].filter(e,i[e])})),new s["default"]({el:"#app",router:v["b"],store:b["a"],i18n:w["a"],render:function(e){return e(f)}})},5784:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},5851:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-editor-container"},[a("p",{attrs:{id:"title"}},[e._v("欢迎使用阳光餐饮网后台管理系统!")]),a("div",{attrs:{id:"tlebox"}},[a("div",{staticStyle:{"margin-left":"14px"}},[a("el-avatar",{attrs:{src:"https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"}})],1),a("el-tag",{attrs:{size:"small"}},[e._v("客服电话")])],1),a("div",{staticStyle:{"font-size":"40px",color:"#2bac31","font-weight":"bold",position:"absolute",top:"120px",left:"170px","z-index":"99"}},[e._v("400-8800-115")]),a("div",{attrs:{id:"dong"}})])},s=[],r=(a("2934"),a("a78e"),a("ed08"));a("313e");a("817d");var l={name:"DashboardEditor",inject:["reload"],data:function(){return{val:"这是值1",date:Object(r["e"])(new Date,"{y}-{m}-{d}"),list:[],news:1,carLength:0,myKey:0,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},timer:""}},created:function(){},mounted:function(){},destroyed:function(){},methods:{}},n=l,o=(a("74fa"),a("8c8c"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"13a1dbd6",null);t["default"]=c.exports},5862:function(e,t,a){},"5a49":function(e,t,a){},"5a9a":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.barid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"barid",t)},expression:"table.getdataListParm.parammaps.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:e.table.getdataListParm.parammaps.times,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"times",t)},expression:"table.getdataListParm.parammaps.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"鲜样重量(g)","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.freshweight))])]}}])}),a("el-table-column",{attrs:{label:"烘干重量(g)","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dryweight))])]}}])}),a("el-table-column",{attrs:{label:"理论干物质","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.thoweight))])]}}])}),a("el-table-column",{attrs:{label:"实际干物质","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.actweight))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"135px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:e.changeBar},model:{value:e.create.temp.barid,callback:function(t){e.$set(e.create.temp,"barid",t)},expression:"create.temp.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{ref:"times",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.create.dialogStatus,filterable:"",placeholder:"班次"},model:{value:e.create.temp.times,callback:function(t){e.$set(e.create.temp,"times",t)},expression:"create.temp.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.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:e.blurFreshweight},model:{value:e.create.temp.freshweight,callback:function(t){e.$set(e.create.temp,"freshweight",t)},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:e.blurDryweight},model:{value:e.create.temp.dryweight,callback:function(t){e.$set(e.create.temp,"dryweight",t)},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",[e._v(e._s(e.create.temp.thoweight))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"实际干物质:",prop:"actweight"}},[a("span",[e._v(e._s(e.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:e.blurEmp},model:{value:e.create.temp.emp,callback:function(t){e.$set(e.create.temp,"emp",t)},expression:"create.temp.emp"}},e._l(e.create.noteTakerList,(function(e,t){return a("el-option",{key:e.myId,attrs:{label:e.emp,value:e.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"==e.create.dialogStatus,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.changeOperatetime},model:{value:e.create.temp.operatetime,callback:function(t){e.$set(e.create.temp,"operatetime",t)},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(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createDataAgain()}}},[e._v("确认新增")]):e._e(),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"FormulaDryMatter",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getFtdryList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",freshweight:"",dryweight:"",thoweight:"",actweight:"",times:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}],freshweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],dryweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getFtdryEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getFtdrytweight",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="FormulaDryMatter",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){if(e.houseNameList=t.data.getBarListEnable.list,null!==t.data.getSysoptEnable.list)for(var a=1;a<=t.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="第四班"),e.frequencyList.push(i)}else e.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",freshweight:"",dryweight:"",thoweight:"",actweight:"",times:""}},blurEmp:function(e){this.create.temp.emp=e.target.value},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname,this.getThoweight()},changeOperatetime:function(){this.getThoweight()},getThoweight:function(){var e=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list?e.create.temp.thoweight=t.data.list[0].thoweight:e.create.temp.thoweight=0}))},getNoteTakerList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].myId=a;e.create.noteTakerList=t.data.list,console.log("记录人数据",t.data.list),console.log(e.create.noteTakerList)}else e.create.noteTakerList=[]}))},blurFreshweight:function(){""!==this.create.temp.dryweight&&""!==this.create.temp.freshweight&&(this.create.temp.actweight=parseFloat(this.create.temp.dryweight)/parseFloat(this.create.temp.freshweight),this.create.temp.actweight=this.create.temp.actweight.toFixed(2))},blurDryweight:function(){""!==this.create.temp.freshweight&&""!==this.create.temp.dryweight&&(this.create.temp.actweight=parseFloat(this.create.temp.dryweight)/parseFloat(this.create.temp.freshweight),this.create.temp.actweight=this.create.temp.actweight.toFixed(2))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.freshweight))||!a.test(parseFloat(e.create.temp.dryweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="insertFtdry",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList();else{var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍该班次今日配方干物质已存在,不可重复生成",duration:2e3}):Object(r["l"])(t,e.$notify)}}))}}))},createDataAgain:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.freshweight))||!a.test(parseFloat(e.create.temp.dryweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="insertFtdry",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){if(console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg)e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.resetTemp(),e.getList(),e.getNoteTakerList();else{var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍该班次今日配方干物质已存在,不可重复生成",duration:2e3}):Object(r["l"])(t,e.$notify)}}))}}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.freshweight))||!a.test(parseFloat(e.create.temp.dryweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="updateFtdry",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteFtdry",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择配方干物质",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteFtdry",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCopy:function(){var e=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择配方干物质",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="copyFtdry",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.selectList[0].pastureid,e.requestParam.parammaps.id=e.selectList[0].id,Object(r["g"])(e.requestParam).then((function(t){if("fail"===t.msg){var a=new RegExp("key 'barid'");a.test(t.data)?e.$message({type:"error",message:"该栏舍该班次今日配方干物质已存在,不可重复生成",duration:2e3}):e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3})}else e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})})):this.$message({type:"error",message:"请选择一条配方干物质",duration:2e3})},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("edf9"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"6ebb2643",null);t["default"]=h.exports},"5ab2":function(e,t,a){},"5b68":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.handleCustomerSelect,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"寄件人"},model:{value:e.table.getdataListParm.parammaps.posterName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"posterName",t)},expression:"table.getdataListParm.parammaps.posterName"}}),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"接收日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pdate))])]}}])}),a("el-table-column",{attrs:{label:"寄件人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.posterName))])]}}])}),a("el-table-column",{attrs:{label:"寄件电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.posterTel))])]}}])}),a("el-table-column",{attrs:{label:"寄件单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.postCode))])]}}])}),a("el-table-column",{attrs:{label:"快递寄出原因","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reason))])]}}])}),a("el-table-column",{attrs:{label:"处理方式","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.handletypeName))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit&&"1"==i.isModify&&i.createrId==e.employeid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit&&"1"==i.isDel&&i.createrId==e.employeid?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},["create"==e.create.dialogStatus?a("el-autocomplete",{staticStyle:{width:"100%","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer,clear:e.clearCustomerSelectTemp,blur:e.blurCustomerSelectTemp},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}],null,!1,2238609474),model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}}):a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"接收日期:",prop:"pdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.pdate,callback:function(t){e.$set(e.create.temp,"pdate",t)},expression:"create.temp.pdate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"寄件人:",prop:"posterId"}},[a("el-select",{ref:"posterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择寄件人","allow-create":"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceiver},model:{value:e.create.temp.posterId,callback:function(t){e.$set(e.create.temp,"posterId",t)},expression:"create.temp.posterId"}},e._l(e.create.posterNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"寄件电话:",prop:"posterTel"}},[a("el-input",{ref:"posterTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入寄件电话",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.posterTel,callback:function(t){e.$set(e.create.temp,"posterTel",t)},expression:"create.temp.posterTel"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"寄件单号:",prop:"postCode"}},[a("el-input",{ref:"postCode",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"30",placeholder:"请输入寄件单号",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.postCode,callback:function(t){e.$set(e.create.temp,"postCode",t)},expression:"create.temp.postCode"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"寄件原因:",prop:"reason"}},[a("el-input",{ref:"reason",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入寄件原因",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.reason,callback:function(t){e.$set(e.create.temp,"reason",t)},expression:"create.temp.reason"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"处理方式:",prop:"handletypeId"}},[a("el-select",{ref:"handletypeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择处理方式",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.handletypeId,callback:function(t){e.$set(e.create.temp,"handletypeId",t)},expression:"create.temp.handletypeId"}},e._l(e.handletypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"添加收货物品:",prop:"visiterId"}},[a("el-select",{ref:"visiterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择收货物品",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceProduct},model:{value:e.create.temp.visiterId,callback:function(t){e.$set(e.create.temp,"visiterId",t)},expression:"create.temp.visiterId"}},e._l(e.receProductNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:"货品名称:"+e.pname+" 型号:"+e.model+" 规格:"+e.Specifications,value:e.id}})})),1)],1)],1),a("el-row",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.contact.listLoading,expression:"contact.listLoading"}],key:e.contact.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.contact.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}])}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}])}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}])}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.nums))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.nums,callback:function(a){e.$set(t.row,"nums",a)},expression:"scope.row.nums"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"110","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return["update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(i)}}},[e._v("删除")]):e._e()]}}],null,!1,3754767777)}):e._e()],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("c740"),a("d81d"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"expressReception",components:{Pagination:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],requestParams:[{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getProductsEnable",offset:0,pagecount:0,parammaps:{enable:"1"}},{name:"getDictListSelect3",offset:0,pagecount:0,parammaps:{pid:"57"}}],customerNameList:[],groupNameList:[],receProductNameList:[],handletypeList:[],table:{getdataListParm:{name:"getPostal",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:"",groupId:"",posterName:"",inputDatetime:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",pdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),posterId:"",posterName:"",posterTel:"",postCode:"",reason:"",handletypeId:"",remark:"",id:"",modifyName:"add",receiverChoose:"true"},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],pdate:[{required:!0,message:"必填",trigger:"blur"}],posterId:[{required:!0,message:"必填",trigger:"blur"}],posterTel:[{required:!0,message:"必填",trigger:"blur"}],postCode:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},posterNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getPostalGoodsById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{postalId:""}},getdataListParm4:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}}},textMap:{create:"新增",see:"查看",update:"编辑"},contact:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",contactName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},tableKey:0,list:[],total:0,listLoading:!1},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons(),console.log("isRoleEdit",sessionStorage.getItem("buttons"))},methods:{getButtons:function(){var e="expressReception",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),t.data.getProductsEnable.list.map((function(e){return e.productsId=e.id})),t.data.getProductsEnable.list.map((function(e){return e.customerId=""})),t.data.getProductsEnable.list.map((function(e){return e.nums=""})),t.data.getProductsEnable.list.map((function(e){return e.remark=""})),e.receProductNameList=t.data.getProductsEnable.list,console.log("收件货品下拉框",e.receProductNameList),e.handletypeList=t.data.getDictListSelect3.list,console.log("处理方式下拉框",e.handletypeList)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.posterName="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",pdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),posterId:"",posterName:"",posterTel:"",postCode:"",reason:"",handletypeId:"",remark:"",id:"",modifyName:"add",receiverChoose:"true"},this.contact.list=[]},changeCustomer:function(e){console.log(e),this.create.temp.customerId=e.id,this.create.temp.customerName=e.name,this.create.getdataListParm.parammaps.customerId=e.id,this.getPosterNameList(),this.create.getdataListParm2.parammaps.id=e.id,this.getGroupNameId()},clearCustomerSelectTemp:function(e){document.activeElement.blur(),this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(r["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},handleCustomerSelect:function(e){console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name},clearCustomerSelect:function(e){this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",document.activeElement.blur()},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},getPosterNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){null!==t.data.list?(e.create.posterNameList=t.data.list,console.log("寄件人数据",t.data.list)):e.create.posterNameList=[]}))},changeReceiver:function(e){this.create.getdataListParm4.parammaps.id=e,this.create.temp.posterName=this.create.posterNameList.find((function(t){return t.id===e})).name,this.getTelephoneName()},getTelephoneName:function(){var e=this;Object(r["d"])(this.create.getdataListParm4).then((function(t){null!==t.data.list&&(e.create.temp.posterTel=t.data.list[0].telephone,console.log("接待人电话",t.data.list))}))},getGroupNameId:function(){var e=this;Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},changeReceProduct:function(e){console.log("收件货品ID ",e);var t=this.receProductNameList.findIndex((function(t){return t.id==e}));console.log("收件货品index ",t);var a=this.contact.list.findIndex((function(t){return t.id==e}));console.log("收件货品是否存在列表 ",a);var i=Object.assign({},this.receProductNameList[t]);i.nums=1,i.remark="","-1"==a&&this.contact.list.unshift(i)},handleRowDelete2:function(e){console.log("小表格中的删除",e);var t=this.contact.list.findIndex((function(t){return t.id==e.id}));this.contact.list.splice(t,1)},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=e.create.temp.customerId;e.contact.list.map((function(e){return e.customerId=a})),e.contact.list.map((function(e){return e.postalId=""})),e.create.posterNameList.find((function(t){return t.id==e.create.temp.posterId}))?(console.log("posterNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.posterName=e.create.temp.posterId,e.create.temp.receiverChoose="false",console.log("posterNameList下拉自己填的!")),console.log("点击了新增保存",e.create.temp),console.log("点击了新增保存",e.contact.list),e.create.temp.receiverId2="",e.create.temp.createrId=n.a.get("employeid"),e.create.temp.posterId2="@insertContactsNew.LastInsertId";var i={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.posterName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"insertPostal",type:"e",parammaps:e.create.temp},{name:"insertPostalGoods",resultmaps:{list:e.contact.list},children:[{name:"insertPostalGoods",type:"e",parammaps:{postalId:"@insertPostal.LastInsertId",customerId:"@insertPostalGoods.customerId",productsId:"@insertPostalGoods.productsId",nums:"@insertPostalGoods.nums",createrId:"@insertPostalGoods.createrId",remark:"@insertPostalGoods.remark"}}]}]},s=e.contact.list.find((function(e){return""==e.nums}));console.log(s),s?e.$message({type:"error",message:"货品数量不可为空",duration:2e3}):Object(r["b"])(i).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleSee:function(e){var t=this;console.log("点击了查看",e),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.$nextTick((function(){t.$refs.temp.resetFields(),t.create.temp=Object.assign({},e)})),this.create.temp.id=e.id,this.create.getdataListParm.parammaps.customerId=e.customerId,this.getPosterNameList(),this.create.getdataListParm3.parammaps.postalId=e.id,this.getReceProduct()},handleUpdate:function(e){var t=this;console.log("点击了编辑",e),this.create.dialogStatus="update",this.create.dialogFormVisible=!0,this.$nextTick((function(){t.$refs.temp.resetFields(),t.create.temp=Object.assign({},e)})),this.create.temp.id=e.id,this.create.getdataListParm.parammaps.customerId=e.customerId,this.getPosterNameList(),this.create.getdataListParm3.parammaps.postalId=e.id,this.getReceProduct()},getReceProduct:function(){var e=this;Object(r["d"])(this.create.getdataListParm3).then((function(t){console.log("查看和编辑中的小表格",t.data.list),null!==t.data.list&&(e.contact.list=t.data.list)}))},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="update";var a=e.create.temp.customerId,i=e.create.temp.id;e.contact.list.map((function(e){return e.customerId=a})),e.contact.list.map((function(e){return e.postalId=i})),e.create.posterNameList.find((function(t){return t.id==e.create.temp.posterId}))?(console.log("posterNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.posterName=e.create.temp.posterId,e.create.temp.receiverChoose="false",console.log("posterNameList下拉自己填的!")),e.create.temp.receiverId2="",e.create.temp.posterId2="@insertContactsNew.LastInsertId";var s={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.posterName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updatePostal",type:"e",parammaps:e.create.temp},{name:"delPostalGoods",type:"e",parammaps:{postalId:e.create.temp.id}},{name:"insertPostalGoods",resultmaps:{list:e.contact.list},children:[{name:"insertPostalGoods",type:"e",parammaps:{postalId:"@insertPostalGoods.postalId",customerId:"@insertPostalGoods.customerId",productsId:"@insertPostalGoods.productsId",nums:"@insertPostalGoods.nums",remark:"@insertPostalGoods.remark"}}]}]};Object(r["b"])(s).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delPostal",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("d5f0"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"61239ac3",null);t["default"]=h.exports},"5c0b":function(e,t,a){"use strict";var i=a("9c0c"),s=a.n(i);s.a},"5c6f":function(e,t,a){},"5dec":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-自定义报表",use:"icon-自定义报表-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-自定义报表"><defs><style type="text/css"></style></defs><path d="M171.822 884.784h73.834c23.206 0 42.193-18.987 42.193-42.188V605.27c0-23.207-18.987-42.193-42.193-42.193h-73.834c-23.201 0-42.188 18.986-42.188 42.193v237.326c0 23.201 18.987 42.188 42.188 42.188z m3.863-274.364h64.821v227.025h-64.821V610.42z m201.821 274.364h73.835c23.206 0 42.19-18.987 42.19-42.188v-480.98c0-23.207-18.984-42.194-42.19-42.194h-73.835c-23.206 0-42.192 18.987-42.192 42.194v480.979c0 23.202 18.987 42.189 42.192 42.189z m5.151-518.017h63.535v470.679h-63.535V366.767z m201.587 518.017h73.832c23.209 0 42.193-18.987 42.193-42.188V447.048c0-23.2-18.984-42.187-42.193-42.187h-73.832c-23.209 0-42.195 18.986-42.195 42.187v395.548c0 23.201 18.986 42.188 42.195 42.188z m5.151-432.586h63.531v385.247h-63.531V452.198z m200.531 432.586h73.834c23.203 0 42.189-18.987 42.189-42.188V132.724c0-23.2-18.986-42.187-42.189-42.187h-73.834c-23.205 0-42.191 18.986-42.191 42.187v709.872c-0.001 23.201 18.986 42.188 42.191 42.188z m5.148-746.91h63.535v699.571h-63.535V137.874z m0 0" fill="#ffffff" p-id="97418" /><path d="M968.85 927.674H80.106V72.536c0-14.243-11.546-25.789-25.789-25.789S28.528 58.293 28.528 72.536v880.286c0 0.107 0.015 0.213 0.016 0.321-0.001 0.108-0.016 0.211-0.016 0.319 0 14.244 11.546 25.789 25.789 25.789H968.85c14.242 0 25.789-11.545 25.789-25.789 0-14.24-11.547-25.788-25.789-25.788z" fill="#ffffff" p-id="97419" /></symbol>'});l.a.add(n);t["default"]=n},"5f05":function(e,t,a){},"5f84":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},s=[],r=a("313e"),l=a.n(r),n=a("a7dc");a("817d");var o=6e3,c={mixins:[n["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:10,left:"2%",right:"2%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisTick:{show:!1}}],series:[{name:"pageA",type:"bar",stack:"vistors",barWidth:"60%",data:[79,52,200,334,390,330,220],animationDuration:o},{name:"pageB",type:"bar",stack:"vistors",barWidth:"60%",data:[80,52,200,334,390,330,220],animationDuration:o},{name:"pageC",type:"bar",stack:"vistors",barWidth:"60%",data:[30,52,200,334,390,330,220],animationDuration:o}]})}}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,null,null);t["default"]=p.exports},"5f87":function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"c",(function(){return n})),a.d(t,"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(e){return s.a.set(r,e)}function o(){return s.a.remove(r)}},"5f8b":function(e,t,a){},"5fd4":function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"d",(function(){return r})),a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o}));var i=a("1c1e");function s(e){return Object(i["a"])({url:"/dashboard/update",method:"POST",data:e})}function r(e){return Object(i["a"])({url:"/dashboard/".concat(e)})}function l(e){return Object(i["a"])({url:"/dashboard/delete",method:"post",data:e})}function n(e){return Object(i["a"])({url:"/chartboardmap/boardbychart?chart_id=".concat(e)})}function o(e){return Object(i["a"])({url:"/dashboard/order",method:"POST",data:e})}},6006:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"601f":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"操作类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.usetype,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"usetype",t)},expression:"table.getdataListParm.parammaps.usetype"}},e._l(e.operationTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),a("el-autocomplete",{staticClass:"inline-input filter-item",staticStyle:{width:"250px"},attrs:{"value-key":"feedname","fetch-suggestions":e.tableFeedNameSearch,placeholder:"饲料名称"},on:{select:e.handleSelectTableFeedName},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",[e._v(e._s(i.feedname))])]}}]),model:{value:e.table.getdataListParm.parammaps.feedname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"feedname",t)},expression:"table.getdataListParm.parammaps.feedname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择牲畜类别",clearable:""},model:{value:e.table.getdataListParm.parammaps.cowclassid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"cowclassid",t)},expression:"table.getdataListParm.parammaps.cowclassid"}},e._l(e.livestockList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.mixname,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"出库日期","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.usedate))])]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowclass))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"操作重量(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operateweight))])]}}])}),a("el-table-column",{attrs:{label:"操作类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.usetype))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createemp))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"createTemp",staticStyle:{width:"90%",height:"300px",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.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"===e.create.dialogStatus},on:{change:e.changeUsetype},model:{value:e.create.createTemp.usetype,callback:function(t){e.$set(e.create.createTemp,"usetype",t)},expression:"create.createTemp.usetype"}},e._l(e.operationTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.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":e.create.pickerOptions1,clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"datetime",placeholder:"出库日期",disabled:"see"===e.create.dialogStatus},model:{value:e.create.createTemp.usedate,callback:function(t){e.$set(e.create.createTemp,"usedate",t)},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"===e.create.dialogStatus,"value-key":"feedname","fetch-suggestions":e.feedNameSearch,placeholder:"请选择饲料名称"},on:{select:e.handleSelectFeedName,blur:e.blurFeedName},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",[e._v(e._s(i.feedname))])]}}]),model:{value:e.create.createTemp.feedname,callback:function(t){e.$set(e.create.createTemp,"feedname",t)},expression:"create.createTemp.feedname"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"牲畜类别:",prop:"cowclassid"}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择牲畜类别",disabled:"see"===e.create.dialogStatus||"损耗"==e.create.createTemp.usetype},on:{change:e.changeLivestock},model:{value:e.create.createTemp.cowclassid,callback:function(t){e.$set(e.create.createTemp,"cowclassid",t)},expression:"create.createTemp.cowclassid"}},e._l(e.livestockList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.mixname,value:e.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:e.create.createTemp.repertoryweight,callback:function(t){e.$set(e.create.createTemp,"repertoryweight",t)},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"===e.create.dialogStatus},model:{value:e.create.createTemp.operateweight,callback:function(t){e.$set(e.create.createTemp,"operateweight",t)},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"===e.create.dialogStatus},model:{value:e.create.createTemp.remark,callback:function(t){e.$set(e.create.createTemp,"remark",t)},expression:"create.createTemp.remark"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("2934")),l=a("333d"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"LaborConsumption",components:{Pagination:l["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["人工用量操作类型"]},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],operationTypeList:[],feedNameList:[],livestockList:[],table:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",pastureid:o.a.get("pastureid"),startTime:"",stopTime:"",usetype:"",feedid:"",cowclassid:""}},tableKey:0,list:[],total:0,listLoading:!0},create:{pickerOptions1:{disabledDate:function(e){return e.getTime()>Date.now()}},dialogFormVisible:!1,dialogStatus:"",createTemp:{pastureid:o.a.get("pastureid"),usedate:Object(c["e"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",cowclassid:"",cowclass:"",usetype:"",operateweight:"",repertoryweight:"",createemp:"",remark:"",price:""},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"}]}},textMap:{create:"新增",see:"查看"},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="SystemConsumption",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.operationTypeList=t.data.getDictByName.list,e.livestockList=t.data.getCowclassListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.table.getdataListParm.parammaps.startTime=Object(c["e"])(e,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["e"])(t,"{y}-{m}-{d}"),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.table.getdataListParm.parammaps.startTime=Object(c["e"])(e,"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["e"])(t,"{y}-{m}-{d}"),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.cowclassid="",this.table.getdataListParm.parammaps.ischarge="",this.table.getdataListParm.parammaps.usetype="",this.table.getdataListParm.parammaps.feedname="",this.table.getdataListParm.parammaps.cowclassid=""},resetCreateTemp:function(){this.create.createTemp={pastureid:o.a.get("pastureid"),usedate:Object(c["e"])(new Date,"{y}-{m}-{d}"),feedid:"",feedname:"",cowclassid:"",cowclass:"",usetype:"",operateweight:"",repertoryweight:"",createemp:o.a.get("employename"),remark:"",price:""}},changeUsetype:function(e){console.log(e),"损耗"==e&&(console.log(e),this.create.createTemp.cowclassid="",this.create.createTemp.cowclass="")},tableFeedNameSearch:function(e,t){this.create.getfeedNameParm.parammaps["feedname"]=e,Object(r["d"])(this.create.getfeedNameParm).then((function(e){console.log("模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectTableFeedName:function(e){this.table.getdataListParm.parammaps.feedid=e.feedid},feedNameSearch:function(e,t){this.create.getfeedNameParm.parammaps["feedname"]=e,Object(r["d"])(this.create.getfeedNameParm).then((function(e){console.log("模糊查询搜索data",e.data.list),null==e.data.list?t([]):t(e.data.list)}))},handleSelectFeedName:function(e){console.log(e),this.create.createTemp.feedname=e.feedname,this.create.createTemp.feedid=e.feedid,this.create.createTemp.price=e.price,this.create.createTemp.pcpde=e.pcpde,this.create.createTemp.repertoryweight=e.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(e){this.create.createTemp.cowclass=this.livestockList.find((function(t){return t.id==e})).classname},handleCreate:function(){var e=this;console.log("点击了新增"),this.resetCreateTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.$nextTick((function(){e.$refs.createTemp.resetFields()}))},createData:function(){var e=this;console.log("点击了新增保存"),this.$refs["createTemp"].validate((function(t){if(t){if(e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),"人工用料"==e.create.createTemp.usetype&&""==e.create.createTemp.cowclassid)return e.$message({type:"error",message:"请选择牲畜类别",duration:2e3}),!1;var a=/^\d+(\.\d{1,2})?$/;if(0==e.create.createTemp.operateweight)return e.$message({type:"error",message:"操作重量请输入自然数并保留两位小数",duration:2e3}),!1;if(!a.test(parseFloat(e.create.createTemp.operateweight)))return e.$message({type:"error",message:"操作重量请输入自然数并保留两位小数",duration:2e3}),!1;e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertFeeduse",type:"e",parammaps:{pastureid:e.create.createTemp.pastureid,usedate:e.create.createTemp.usedate,feedid:e.create.createTemp.feedid,feedname:e.create.createTemp.feedname,cowclassid:e.create.createTemp.cowclassid,cowclass:e.create.createTemp.cowclass,usetype:e.create.createTemp.usetype,operateweight:e.create.createTemp.operateweight,repertoryweight:e.create.createTemp.repertoryweight,createemp:e.create.createTemp.createemp,remark:e.create.createTemp.remark,price:e.create.createTemp.price}},e.requestParam.data[1]={name:"insertFeedstorageUse",type:"e",parammaps:{pastureid:e.create.createTemp.pastureid,feedid:e.create.createTemp.feedid,operateweight:e.create.createTemp.operateweight,fname:e.create.createTemp.feedname,pcpde:e.create.createTemp.pcpde,price:e.create.createTemp.price}},Object(r["b"])(e.requestParam).then((function(t){"fail"===t.msg?Object(r["l"])(t,e.$notify):(e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList())}))}}))},handleSee:function(e){var t=this;console.log("点击了查看"),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.create.createTemp=Object.assign({},e),this.$nextTick((function(){t.$refs.createTemp.resetFields()}))},handleRowDelete:function(e){console.log("点击了行内删除")},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},m=d,p=(a("c366"),a("b642"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"e19989be",null);t["default"]=u.exports},6041:function(e,t,a){"use strict";var i={inserted:function(e){for(var t=e.querySelectorAll("input"),a=0;a<t.length;a++)t[a].setAttribute("keyfocusindex",a),t[a].addEventListener("keyup",(function(e){if(13===e.keyCode){var a=e.srcElement.getAttribute("keyfocusto");if(console.log(e.srcElement),a){var i=parseInt(a);i<t.length&&t[i].focus()}else{var s=e.srcElement.getAttribute("keyfocusindex"),r=parseInt(s);r<t.length-1&&t[r+1].focus()}}}))}},s=function(e){e.directive("enterToNext",i)};window.Vue&&(window["enterToNext"]=i,Vue.use(s)),i.install=s;t["a"]=i},6071:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-盘点单",use:"icon-盘点单-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-盘点单"><defs><style type="text/css"></style></defs><path d="M384 160h256a32 32 0 1 0 0-64H384a32 32 0 0 0 0 64h256-256z m346.56-64H896a64 64 0 0 1 64 64v768a64 64 0 0 1-64 64H128a64 64 0 0 1-64-64v-768a64 64 0 0 1 64-64h165.44A96 96 0 0 1 384 32h256a96 96 0 0 1 90.56 64z m-437.12 64H128v768h768v-768h-165.44A96 96 0 0 1 640 224H384a96 96 0 0 1-90.56-64z m187.2 192a192.32 192.32 0 0 1 192.64 192.64c0 33.152-8.96 64.512-23.296 92.288l103.936 77.952a22.656 22.656 0 0 1 4.48 31.36 20.928 20.928 0 0 1-17.92 8.96 26.688 26.688 0 0 1-13.44-4.48l-103.04-77.952a193.792 193.792 0 0 1-143.36 64.512A192.32 192.32 0 0 1 288 544.64 192.32 192.32 0 0 1 480.64 352z m0 340.48a147.968 147.968 0 0 0 147.84-147.84A147.968 147.968 0 0 0 480.64 396.8 147.968 147.968 0 0 0 332.8 544.64a147.968 147.968 0 0 0 147.84 147.84z" p-id="89907" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"60b1":function(e,t,a){"use strict";var i=a("4996"),s=a.n(i);s.a},"61f7":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"d",(function(){return r})),a.d(t,"b",(function(){return l}));a("a9e3"),a("53ca");function i(e){return/^(https?:|mailto:|tel:)/.test(e)}function s(e){return 1}function r(e){if(e instanceof Array){if(0===e.length)return!0}else{if(!(e instanceof Object))return"null"===e||null===e||"undefined"===e||void 0===e||""===e;if("{}"===JSON.stringify(e))return!0}return!1}function l(e,t,a){return""===t||void 0===t||null===t||0===t.length?a(new Error("输入不可以为空")):void setTimeout((function(){var e=/^\d+$/,i=e.test(t);i?a():a(new Error("请输入整数"))}),0)}},"61f9":function(e,t,a){},6200:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;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:e.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:e._u([{key:"default",fn:function(t){return[a("el-checkbox",{attrs:{label:"查看"},on:{change:function(a){return e.fnCheckEv(t,"see")}},model:{value:t.row.fnCheck.see,callback:function(a){e.$set(t.row.fnCheck,"see",a)},expression:"scope.row.fnCheck.see"}})]}}])}),a("el-table-column",{attrs:{label:"编辑"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-checkbox",{attrs:{label:"编辑"},on:{change:function(a){return e.fnCheckEv(t,"edit")}},model:{value:t.row.fnCheck.edit,callback:function(a){e.$set(t.row.fnCheck,"edit",a)},expression:"scope.row.fnCheck.edit"}})]}}])})],1)],1)])])])])},s=[],r=(a("4160"),a("159b"),{name:"FormulaStatistics",data:function(){return{msg:"",tableData:[{id:1,name:"配方计划",fnCheck:{see:!1,edit:!1},childList:[{p_id:1,id:31,name:"配方模板",fnCheck:{see:!1,edit:!1}},{p_id:1,id:32,name:"栏舍配方",fnCheck:{see:!1,edit:!1}}]},{id:2,name:"栏舍生产",fnCheck:{see:!1,edit:!1},childList:[{p_id:2,id:33,name:"栏舍产奶量",fnCheck:{see:!1,edit:!1}},{p_id:2,id:34,name:"栏舍剩料量",fnCheck:{see:!1,edit:!1}}]}]}},mounted:function(){},methods:{getParent:function(e,t){var a=[];if(0===e.length)return t&&a.push(e),a;var i=function t(i,s){for(var r=0,l=i.length;r<l;r++){var n=i[r];if(n.id===s){a.push(n),t(e,n.p_id);break}n.childList&&t(n.childList,s)}return a};return a=i(e,t),a},fnCheckEv:function(e,t){e.row.childList&&this.handleFnAll(e.row,e.row.fnCheck[t],t),this.getParent(this.tableData,e.row.id).forEach((function(a,i){if(a.childList){var s=0;a.childList.forEach((function(e,a){!0===e.fnCheck[t]&&(s+=1)})),s===a.childList.length?a.fnCheck[t]=!0:a.fnCheck[t]=!1}else a.fnCheck[t]=e.row.fnCheck[t]}))},handleFnAll:function(e,t,a){if(e.fnCheck[a]=t,e.childList){var i=this;e.childList.forEach((function(s,r){i.handleFnAll(e.childList[r],t,a)}))}},dataCheckEv:function(e,t){var a=e.row.dataCheck[t];for(var i in e.row.dataCheck)e.row.dataCheck[i]=!1;e.row.dataCheck[t]=a,e.row.childList&&this.handleDataAll(e.row,e.row.dataCheck[t],t),this.getParent(this.tableData,e.row.id).forEach((function(e,i){for(var s in e.dataCheck)e.dataCheck[s]=!1;if(e.childList){var r=0;e.childList.forEach((function(e,a){!0===e.dataCheck[t]&&(r+=1)})),r===e.childList.length?e.dataCheck[t]=!0:e.dataCheck[t]=!1}else e.dataCheck[t]=a}))},handleDataAll:function(e,t,a){for(var i in e.dataCheck)e.dataCheck[i]=!1;if(e.dataCheck[a]=t,e.childList){var s=this;e.childList.forEach((function(i,r){s.handleDataAll(e.childList[r],t,a)}))}}}}),l=r,n=(a("2502"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,"7534253a",null);t["default"]=o.exports},"620a":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"import",staticStyle:{float:"right","margin-bottom":"10px"},on:{click:e.handleExport}},[e._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","cell-style":e.cellStyle,"row-style":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"库存量(kg)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockweight))])]}}])}),a("el-table-column",{attrs:{label:"近七天平均计划量(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.avgweight))])]}}])}),a("el-table-column",{attrs:{label:"剩余使用天数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ldays))])]}}])}),a("el-table-column",{attrs:{label:"最近预警日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lastdate))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")])]}}])})],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.see.dialogStatus],visible:e.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.see,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-see"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto"},attrs:{rules:e.see.rules,model:e.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",[e._v(" "+e._s(e.see.temp.feedname))])])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.see.listLoading,expression:"see.listLoading"}],key:e.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.see.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.see.pageNum-1)*e.see.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"库存量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockweight))])]}}])}),a("el-table-column",{attrs:{label:"近七天平均计划量(kg)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.avgweight))])]}}])}),a("el-table-column",{attrs:{label:"剩余使用天数","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(" "+e._s(t.row.ldays))])]}}])}),a("el-table-column",{attrs:{label:"预警日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.date))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.see.total>=0,expression:"see.total>=0"}],staticStyle:{"margin-bottom":"50px"},attrs:{total:e.see.total,page:e.see.getdataListParm.offset,limit:e.see.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.see.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.see.getdataListParm,"pagecount",t)},pagination:e.getSeeList}}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.see.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)])],1)},s=[],r=a("2934"),l=a("333d"),n=a("a78e"),o=a.n(n),c={name:"Warning",components:{Pagination:l["a"]},data:function(){return{table:{getdataListParm:{name:"getFsWarnList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{see:"库存预警记录"},see:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},getdataListParm:{name:"getFsWarnListdate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),feedid:""}},tableKey:0,list:[],total:0,listLoading:!0},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSee:function(e){this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.temp=Object.assign({},e),this.see.list=[],this.see.getdataListParm.offset=1,this.see.getdataListParm.parammaps.feedid=e.feedid,this.getSeeList()},getSeeList:function(){var e=this;this.see.listLoading=!0,Object(r["d"])(this.see.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.see.list=t.data.list,e.see.pageNum=t.data.pageNum,e.see.pageSize=t.data.pageSize,e.see.total=t.data.total):e.see.list=[],setTimeout((function(){e.see.listLoading=!1}),100)}))},handleExport:function(){console.log("导出")}}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,null,null);t["default"]=p.exports},6272:function(e,t,a){},6398:function(e,t,a){},"648f":function(e,t,a){"use strict";var i=a("fefc"),s=a.n(i);s.a},65825:function(e,t,a){"use strict";a.r(t);var i=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2-1",type:"warning"}})],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!0,null,null,null);t["default"]=n.exports},6602:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-TMR设备",use:"icon-TMR设备-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-TMR设备"><defs><style type="text/css"></style></defs><path d="M516.310723 48.017537A463.991663 463.991663 0 1 1 47.999138 507.689277 463.991663 463.991663 0 0 1 516.310723 48.017537m0-47.999137A511.9908 511.9908 0 1 0 1023.9816 516.809114 511.9908 511.9908 0 0 0 516.790714 0.0184z" p-id="61420" fill="#ffffff" /><path d="M605.109127 480.329769h163.837056v47.999138H605.109127z" fill="#ffffff" p-id="61421" /><path d="M807.185496 494.089522a17.919678 17.919678 0 0 0-1.759968-6.239888l-49.919104-84.158488a51.519074 51.519074 0 0 0-43.839212-24.959551h-91.83835v-7.199871a79.998563 79.998563 0 0 0-79.998562-79.998562H296.314676a79.998563 79.998563 0 0 0-79.998563 79.998562V656.006612a22.399598 22.399598 0 0 0 22.399598 22.399598h40.479272a76.318629 76.318629 0 0 0 145.917378 0h193.276527a76.318629 76.318629 0 0 0 145.917378 0h20.799627a22.559595 22.559595 0 0 0 22.559594-22.399598v-158.717148zM383.9931 656.966595a31.999425 31.999425 0 1 1 0-2.079962z m191.99655-23.35958h-150.717292a76.318629 76.318629 0 0 0-145.917378 0h-17.919678V371.531724A35.03937 35.03937 0 0 1 296.314676 336.012362h243.835618a34.879373 34.879373 0 0 1 34.719376 34.879374z m115.357927 54.399022a31.999425 31.999425 0 0 1-31.999425-31.999425 31.999425 31.999425 0 1 1 31.999425 31.999425z m71.358718-58.718945a76.478626 76.478626 0 0 0-142.877433 0V423.690787h91.83835a5.759897 5.759897 0 0 1 5.119908 3.039945l45.919175 78.078597z" p-id="61422" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},6724:function(e,t,a){"use strict";a("8d41");var i="@@wavesContext";function s(e,t){function a(a){var i=Object.assign({},t.value),s=Object.assign({ele:e,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 e[i]?e[i].removeHandle=a:e[i]={removeHandle:a},a}var r={bind:function(e,t){e.addEventListener("click",s(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[i].removeHandle,!1),e.addEventListener("click",s(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[i].removeHandle,!1),e[i]=null,delete e[i]}},l=function(e){e.directive("waves",r)};window.Vue&&(window.waves=r,Vue.use(l)),r.install=l;t["a"]=r},6768:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("newVisitis")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-people"},[a("svg-icon",{attrs:{"icon-class":"peoples","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v(" New Visits ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":102400,duration:2600}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("messages")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-message"},[a("svg-icon",{attrs:{"icon-class":"message","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v(" Messages ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":81212,duration:3e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("purchases")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money"},[a("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v(" Purchases ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":9280,duration:3200}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("shoppings")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-shopping"},[a("svg-icon",{attrs:{"icon-class":"shopping","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v(" Shoppings ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":13600,duration:3600}})],1)])])],1)},s=[],r=a("ec1b"),l=a.n(r),n={components:{CountTo:l.a},methods:{handleSetLineChartData:function(e){this.$emit("handleSetLineChartData",e)}}},o=n,c=(a("f834"),a("2877")),d=Object(c["a"])(o,i,s,!1,null,"253a9c06",null);t["default"]=d.exports},"679a":function(e,t,a){},"67b0":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",on:{click:e.handleCreate}},[e._v("新增")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"用户名",clearable:""},model:{value:e.table.getdataListParm.parammaps.userName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"userName",t)},expression:"table.getdataListParm.parammaps.userName"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"客户姓名",clearable:""},model:{value:e.table.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"empname",t)},expression:"table.getdataListParm.parammaps.empname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","header-row-style":"padding: 0px;font-size:16px;font-weight:bold;color:#333;","row-style":e.rowStyle,"cell-style":"padding: 0px;font-size:16px;"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"用户名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.userName))])]}}])}),a("el-table-column",{attrs:{label:"客户姓名","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),a("el-table-column",{attrs:{label:"到期日期","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.expiretime))])]}}])}),a("el-table-column",{attrs:{label:"角色","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.roleName))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]),a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleResetPassword(i)}}},[e._v("重置密码")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"用户名称:",prop:"userName"}},[a("el-input",{ref:"userName",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.userName,callback:function(t){e.$set(e.create.temp,"userName",t)},expression:"create.temp.userName"}})],1),a("el-form-item",{attrs:{label:"客户姓名:",prop:"empname"}},[a("el-input",{ref:"empname",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.empname,callback:function(t){e.$set(e.create.temp,"empname",t)},expression:"create.temp.empname"}})],1),a("el-form-item",{attrs:{label:"到期日期:",prop:"expiretime"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.expiretime,callback:function(t){e.$set(e.create.temp,"expiretime",t)},expression:"create.temp.expiretime"}})],1),a("el-form-item",{attrs:{label:"角色:",prop:"roleId"}},[a("el-select",{ref:"roleId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeRolename},model:{value:e.create.temp.roleId,callback:function(t){e.$set(e.create.temp,"roleId",t)},expression:"create.temp.roleId"}},e._l(e.roleNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],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:e.create.temp.enable,callback:function(t){e.$set(e.create.temp,"enable",t)},expression:"create.temp.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniEdit",on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("2934")),l=(a("61f7"),a("a78e"),a("ed08")),n=a("333d"),o=a("5c96"),c={name:"User",components:{Pagination:n["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],roleNameList:[],table:{getdataListParm:{name:"getuserallL",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{userName:"",empname:"",expiretime:"",departmentId:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{userName:"",departmentName:"",empId:"",roleId:"",roleName:"",remark:"",enable:1,empname:"",expiretime:Object(l["e"])(new Date,"{y}-{m}-{d}")},rules:{userName:[{required:!0,message:"必填",trigger:"blur"}],empId:[{required:!0,message:"必填",trigger:"blur"}],roleId:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm2:{name:"getDetByCid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}}},textMap:{create:"添加",update:"编辑"},requestParam:{},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList()},methods:{getButtons:function(){var e="DungScores",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["d"])({name:"getEmpList",offset:0,pagecount:0,parammaps:{}}).then((function(t){e.empnameList=t.data.list,console.log("员工下拉框",t)})),Object(r["d"])({name:"getRoleAll",offset:0,pagecount:0,parammaps:{}}).then((function(t){e.roleNameList=t.data.list,console.log("角色下拉框",t)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据======>",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.userName="",this.table.getdataListParm.parammaps.empname="",this.table.getdataListParm.parammaps.departmentId="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={userName:"",departmentName:"",empId:"",roleId:"",roleName:"",remark:"",enable:1,empname:"",expiretime:""}},changeRolename:function(e){this.create.temp.roleName=this.roleNameList.find((function(t){return t.id==e})).name},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="createUser",e.requestParam.parammaps=e.create.temp,e.requestParam.parammaps.customer=0,e.requestParam.parammaps.empId=0,null==e.requestParam.parammaps.expiretime&&(e.requestParam.parammaps.expiretime=""),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleUpdate:function(e){console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0,this.create.getdataListParm2.parammaps.id=e.empid},updateData:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateUser",e.requestParam.parammaps=e.create.temp,e.requestParam.parammaps.empId=0,e.requestParam.parammaps.customer=0,null==e.requestParam.parammaps.expiretime&&(e.requestParam.parammaps.expiretime=""),Object(r["g"])(e.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateUser",this.requestParam.parammaps=this.create.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("表格中的启用发送参数",a.requestParam),"fail"!==e.msg?(a.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),a.create.dialogFormVisible=!1,a.getList()):a.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))},handleRowDelete:function(e){var t=this;o["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteUser",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleResetPassword:function(e){var t=this;o["MessageBox"].confirm("是否确认将此用户密码重置为默认密码123456?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="initPassword",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"重置密码成功",type:"success",duration:2e3})}))}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},d=c,m=(a("d91b"),a("6ce6"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"045b8bad",null);t["default"]=p.exports},"69b4":function(e,t,a){"use strict";var i=a("5ab2"),s=a.n(i);s.a},"69dd":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-input",{staticStyle:{"margin-bottom":"30px"},attrs:{placeholder:"Filter keyword"},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}),a("el-tree",{ref:"tree2",staticClass:"filter-tree",attrs:{data:e.data2,props:e.defaultProps,"filter-node-method":e.filterNode,"default-expand-all":""}})],1)},s=[],r=(a("4de4"),a("c975"),{data:function(){return{filterText:"",data2:[{id:1,label:"Level one 1",children:[{id:4,label:"Level two 1-1",children:[{id:9,label:"Level three 1-1-1"},{id:10,label:"Level three 1-1-2"}]}]},{id:2,label:"Level one 2",children:[{id:5,label:"Level two 2-1"},{id:6,label:"Level two 2-2"}]},{id:3,label:"Level one 3",children:[{id:7,label:"Level two 3-1"},{id:8,label:"Level two 3-2"}]}],defaultProps:{children:"children",label:"label"}}},watch:{filterText:function(e){this.$refs.tree2.filter(e)}},methods:{filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)}}}),l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);t["default"]=o.exports},"6a54":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"}),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-card",{staticClass:"box-card"},[a("el-tree",{ref:"tree",attrs:{data:e.treedata,"node-key":"id",props:"{children: 'children',label: 'label'}","default-expand-all":""},on:{"node-click":e.handleNodeClick}})],1)],1),a("el-col",{attrs:{span:20}},[a("el-row",[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"品名",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.productname,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"productname",t)},expression:"tableObj.getdataListParm.parammaps.productname"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("el-row",[a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"品名","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productname))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specifications))])]}}])}),a("el-table-column",{attrs:{label:"单位","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._l(e.tableObj.tableHeadList,(function(t,i){return[a("el-table-column",{key:i,attrs:{label:t.column_title,"min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return[a("el-switch",{ref:"item.column_name",refInFor:!0,attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.column_id,i.row,i.row[t.column_name])}},model:{value:i.row[t.column_name],callback:function(a){e.$set(i.row,t.column_name,a)},expression:"scope.row[item.column_name]"}})]}}],null,!0)})]}))],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])],1)],1)],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c=a("3de8");a("5c96"),a("313e");a("817d");var d={name:"ProductArea",components:{Pagination:o["a"],TreeSelect:c["a"]},data:function(){return{treeRequest:{name:"getProductClass",idname:"id",params:[0]},treeClickData:{id:1,label:"",layer:1,parentid:1,sort:1},treedata:[],employeid:n.a.get("employeid"),isRoleEdit:[],requestParams:[],tableObj:{getdataListParm:{page:1,offset:1,pagecount:50,returntype:"Map",parammaps:{productclassid:"",productname:""}},tableKey:0,pageNum:1,pageSize:50,total:0,tableHeadList:[],list:[],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{processName:"",processExplain:"",id:"",modifyName:"add",enable:1},rules:{}},textMap:{create:"新增",see:"查看",update:"编辑"},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px",fontSize:"16px"},headStyle:{padding:"0px",fontSize:"16px",fontWeight:"bold",color:"#333"}}},created:function(){this.getTreeList(),this.getButtons()},methods:{getButtons:function(){var e="productArea",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getTreeList:function(){var e=this;Object(r["o"])(this.treeRequest).then((function(t){e.treedata=t.data,console.log("树形组件",e.treedata)}))},handleNodeClick:function(e){console.log("树形选中",e),this.treeClickData=e,this.tableObj.getdataListParm.parammaps.productclassid=e.id,this.getList()},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm),Object(r["p"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t),null!==t.data.list?(e.tableObj.tableHeadList=t.data.headlist,e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):(e.tableObj.tableHeadList=t.data.headlist,e.tableObj.list=[]),setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),this.tableObj.getdataListParm.parammaps.offset=1,this.getList()},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.productclassid="",this.tableObj.getdataListParm.parammaps.productname="",this.tableObj.getdataListParm.offset=1,this.getList()},handleEnableChange:function(e,t,a){var i=this;if(console.log(e,t,a),1==a){var s={name:"addProductAreainfo",page:1,offset:1,pagecount:50,returntype:"Map",parammaps:{areaid:e,productid:t.productid}};Object(r["g"])(s).then((function(e){console.log("保存发送参数",i.requestParam),"fail"!==e.msg?i.$notify({title:"成功",message:"启用成功",type:"success",duration:2e3}):i.$notify({title:"失败",message:"启用失败",type:"error",duration:2e3})}))}else{s={name:"delProductAreainfo",page:1,offset:1,pagecount:50,returntype:"Map",parammaps:{areaid:e,productid:t.productid}};Object(r["g"])(s).then((function(e){console.log("保存发送参数",i.requestParam),"fail"!==e.msg?i.$notify({title:"成功",message:"不启用成功",type:"success",duration:2e3}):i.$notify({title:"失败",message:"不启用失败",type:"error",duration:2e3})}))}}}},m=d,p=(a("2e59"),a("e1b4"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"35d044e6",null);t["default"]=u.exports},"6a67":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.barid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"barid",t)},expression:"table.getdataListParm.parammaps.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"标准分数(分)","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.standardscore))])]}}])}),a("el-table-column",{attrs:{label:"牛头数(头)","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowsum))])]}}])}),a("el-table-column",{attrs:{label:"评分",align:"center"}},[a("el-table-column",{attrs:{label:"2.75分-(头)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score25)+"("+e._s(t.row.score25rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"2.75分(头)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score275)+"("+e._s(t.row.score275rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3分(头)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score3)+"("+e._s(t.row.score3rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3.25分(头)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score325)+"("+e._s(t.row.score325rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3.5分(头)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score35)+"("+e._s(t.row.score35rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"3.75分(头)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score375)+"("+e._s(t.row.score375rate)+"%)")])]}}])}),a("el-table-column",{attrs:{label:"4分+(头)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.score4)+"("+e._s(t.row.score4rate)+"%)")])]}}])})],1),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.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"}},[e._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"栏舍名称"},on:{change:e.changeBar},model:{value:e.create.temp.barid,callback:function(t){e.$set(e.create.temp,"barid",t)},expression:"create.temp.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[e._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:e.create.temp.standardscore,callback:function(t){e.$set(e.create.temp,"standardscore",t)},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:e.create.temp.cowsum,callback:function(t){e.$set(e.create.temp,"cowsum",t)},expression:"create.temp.cowsum"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"2.75分-:",prop:"score25"}},[a("el-input",{ref:"score25",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"牛头数",type:"number"},on:{blur:e.blurScore},model:{value:e.create.temp.score25,callback:function(t){e.$set(e.create.temp,"score25",t)},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:e.blurScore},model:{value:e.create.temp.score275,callback:function(t){e.$set(e.create.temp,"score275",t)},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:e.blurScore},model:{value:e.create.temp.score3,callback:function(t){e.$set(e.create.temp,"score3",t)},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:e.blurScore},model:{value:e.create.temp.score325,callback:function(t){e.$set(e.create.temp,"score325",t)},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:e.blurScore},model:{value:e.create.temp.score35,callback:function(t){e.$set(e.create.temp,"score35",t)},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:e.blurScore},model:{value:e.create.temp.score375,callback:function(t){e.$set(e.create.temp,"score375",t)},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:e.blurScore},model:{value:e.create.temp.score4,callback:function(t){e.$set(e.create.temp,"score4",t)},expression:"create.temp.score4"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[e._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:e.blurEmp},model:{value:e.create.temp.emp,callback:function(t){e.$set(e.create.temp,"emp",t)},expression:"create.temp.emp"}},e._l(e.create.noteTakerList,(function(e,t){return a("el-option",{key:e.myId,attrs:{label:e.emp,value:e.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:e.changeOperatetime},model:{value:e.create.temp.operatetime,callback:function(t){e.$set(e.create.temp,"operatetime",t)},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:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},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(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createDataAgain()}}},[e._v("确认新增")]):e._e(),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"PhysicalConditionScore",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getBodyscoreList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score25:"",score275:"",score3:"",score325:"",score35:"",score375:"",score4:"",remark:"",ftid:"",ftname:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score25:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score275:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score3:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score325:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score35:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score375:[{type:"string",required:!0,message:"必填",trigger:"blur"}],score4:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getBodyscoreEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getDungAndBodyScore",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getDownList()},methods:{getButtons:function(){var e="PhysicalConditionScore",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){if(e.houseNameList=t.data.getBarListEnable.list,null!==t.data.getSysoptEnable.list)for(var a=1;a<=t.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="第四班"),e.frequencyList.push(i)}else e.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"score25rate",(parseFloat(t.data.list[a].score25)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score275rate",(parseFloat(t.data.list[a].score275)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score3rate",(parseFloat(t.data.list[a].score3)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score325rate",(parseFloat(t.data.list[a].score325)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score35rate",(parseFloat(t.data.list[a].score35)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score375rate",(parseFloat(t.data.list[a].score375)/parseFloat(t.data.list[a].cowsum)*100).toFixed(2)),e.$set(t.data.list[a],"score4rate",(100-t.data.list[a].score25rate-t.data.list[a].score275rate-t.data.list[a].score3rate-t.data.list[a].score325rate-t.data.list[a].score35rate-t.data.list[a].score375rate).toFixed(2));e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",standardscore:"",cowsum:"",score25:"",score275:"",score3:"",score325:"",score35:"",score375:"",score4:"",remark:"",ftid:"",ftname:""}},blurEmp:function(e){this.create.temp.emp=e.target.value},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname,this.getRange()},changeOperatetime:function(){this.getRange()},getRange:function(){var e=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list?(e.create.temp.standardscore=t.data.list[0].bodystandard,e.create.temp.ftid=t.data.list[0].ftid,e.create.temp.ftname=t.data.list[0].ftname):(e.create.temp.standardscore="",e.create.temp.ftid="",e.create.temp.ftname="")}))},getNoteTakerList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].myId=a;e.create.noteTakerList=t.data.list,console.log("记录人数据",t.data.list),console.log(e.create.noteTakerList)}else e.create.noteTakerList=[]}))},blurScore:function(){""!==this.create.temp.score25&&""!==this.create.temp.score275&&""!==this.create.temp.score3&&""!==this.create.temp.score325&&""!==this.create.temp.score35&&""!==this.create.temp.score375&&""!==this.create.temp.score4&&(this.create.temp.cowsum=parseInt(this.create.temp.score25)+parseInt(this.create.temp.score275)+parseInt(this.create.temp.score3)+parseInt(this.create.temp.score325)+parseInt(this.create.temp.score35)+parseInt(this.create.temp.score375)+parseInt(this.create.temp.score4))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(e.create.temp.score25))||!a.test(parseFloat(e.create.temp.score275))||!a.test(parseFloat(e.create.temp.score3))||!a.test(parseFloat(e.create.temp.score325))||!a.test(parseFloat(e.create.temp.score35))||!a.test(parseFloat(e.create.temp.score375))||!a.test(parseFloat(e.create.temp.score4)))return e.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;e.requestParam.name="insertBodyscore",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},createDataAgain:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(e.create.temp.score25))||!a.test(parseFloat(e.create.temp.score275))||!a.test(parseFloat(e.create.temp.score3))||!a.test(parseFloat(e.create.temp.score325))||!a.test(parseFloat(e.create.temp.score35))||!a.test(parseFloat(e.create.temp.score375))||!a.test(parseFloat(e.create.temp.score4)))return e.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;e.requestParam.name="insertBodyscore",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.resetTemp(),e.getList(),e.getNoteTakerList()):Object(r["l"])(t,e.$notify)}))}}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),e.score25=String(e.score25),e.score275=String(e.score275),e.score3=String(e.score3),e.score325=String(e.score325),e.score35=String(e.score35),e.score375=String(e.score375),e.score4=String(e.score4),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d*$/;if(!a.test(parseFloat(e.create.temp.score25))||!a.test(parseFloat(e.create.temp.score275))||!a.test(parseFloat(e.create.temp.score3))||!a.test(parseFloat(e.create.temp.score325))||!a.test(parseFloat(e.create.temp.score35))||!a.test(parseFloat(e.create.temp.score375))||!a.test(parseFloat(e.create.temp.score4)))return e.$message({type:"error",message:"牛头数请输入大于等于0的整数",duration:2e3}),!1;e.requestParam.name="updateBodyscore",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteBodyscore",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择体况评分",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteBodyscore",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCopy:function(){var e=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择体况评分",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="copyBodyscore",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.selectList[0].pastureid,e.requestParam.parammaps.id=e.selectList[0].id,Object(r["g"])(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:"已取消删除"})})):this.$message({type:"error",message:"请选择一条体况评分",duration:2e3})},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("4ee4"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"056dc572",null);t["default"]=h.exports},"6ad2":function(e,t,a){},"6ba8":function(e,t,a){},"6bbe":function(e,t,a){},"6bf9":function(e,t,a){"use strict";var i=a("19ef"),s=a.n(i);s.a},"6c5b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANIAAAAyCAYAAAAp3YXAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAACISURBVHja7NPBCQAwCACx2v1HbtUhfAnJCAcXP18dYORKAEYCI4GRACOBkcBIYCTASGAkMBIYCTASGAmMBEYCjARGAiOBkQAjgZHASGAkwEhgJDASYCQwEhgJjAQYCYwERgIjAUYCI4GRwEiAkcBIYCQwEmAkMBIYCYwEGAmMBHs1AAAA//8DAHSuBFprvKMoAAAAAElFTkSuQmCC"},"6ce6":function(e,t,a){"use strict";var i=a("139e"),s=a.n(i);s.a},"6ecd":function(e,t,a){},"6ef7":function(e,t,a){},"6f44":function(e,t,a){},"708a":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"72cc":function(e,t,a){},7342:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("分配")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:e.table.getdataListParm.parammaps.times,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"times",t)},expression:"table.getdataListParm.parammaps.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备类别",clearable:""},model:{value:e.table.getdataListParm.parammaps.eqclass,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"eqclass",t)},expression:"table.getdataListParm.parammaps.eqclass"}},e._l(e.equipmentCategoryList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1),a("el-input",{ref:"eqcode",staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"设备编号"},model:{value:e.table.getdataListParm.parammaps.eqcode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"eqcode",t)},expression:"table.getdataListParm.parammaps.eqcode"}}),a("el-input",{ref:"driver",staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"驾驶员"},model:{value:e.table.getdataListParm.parammaps.driver,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"driver",t)},expression:"table.getdataListParm.parammaps.driver"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"生效日期","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"设备类别","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqclass))])]}}])}),a("el-table-column",{attrs:{label:"设备编号","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqcode))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.driver))])]}}])}),a("el-table-column",{attrs:{label:"分配人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.create.activeName,callback:function(t){e.$set(e.create,"activeName",t)},expression:"create.activeName"}},[a("el-tab-pane",{attrs:{label:"TMR设备",name:"first"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.create.listLoading,expression:"create.listLoading"}],key:e.create.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:e.create.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"班次","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"设备类别","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqclass))])]}}])}),a("el-table-column",{attrs:{label:"设备编号","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqcode))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%",padding:"0 10px"},attrs:{filterable:"",placeholder:"驾驶员"},on:{change:function(a){e.changeDriver(a,t.row)}},model:{value:t.row.driverid,callback:function(a){e.$set(t.row,"driverid",a)},expression:"scope.row.driverid"}},e._l(e.driverList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.drivername,value:e.id}})})),1)]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData()}}},[e._v("确认")]):e._e()],1)]),a("el-tab-pane",{attrs:{label:"铲车",name:"second"}},[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.create.listLoading2,expression:"create.listLoading2"}],key:e.create.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%","margin-bottom":"50px"},attrs:{"element-loading-text":"给我一点时间",data:e.create.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"班次","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.timesstr))])]}}])}),a("el-table-column",{attrs:{label:"设备类别","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqclass))])]}}])}),a("el-table-column",{attrs:{label:"设备编号","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eqcode))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"filter-item",staticStyle:{width:"100%",padding:"0 10px"},attrs:{filterable:"",placeholder:"驾驶员"},on:{change:function(a){e.changeDriver(a,t.row)}},model:{value:t.row.driverid,callback:function(a){e.$set(t.row,"driverid",a)},expression:"scope.row.driverid"}},e._l(e.driverList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.drivername,value:e.id}})})),1)]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData2()}}},[e._v("确认")]):e._e()],1)])],1)],1)])],1)},s=[],r=(a("7db0"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"DutyRecord",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}},{name:"getDriverListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],equipmentCategoryList:[{id:"1",name:"TMR设备"},{id:"2",name:"铲车"}],frequencyList:[],driverList:[],table:{getdataListParm:{name:"getDutyrecordList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",startTime:"",stopTime:"",inputDatetime:"",times:"",eqclass:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d} {h}:{m}"),emp:n.a.get("employename"),barid:"",barname:"",remain:"",times:""},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"geEqListByDplan",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},tableKey2:0,list2:[],total2:0,listLoading2:!0,getdataListParm2:{name:"geEqListByDplan",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},activeName:"first"},textMap:{create:"分配"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="DutyRecord",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){if(null!==t.data.getSysoptEnable.list)for(var a=1;a<=t.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="第四班"),e.frequencyList.push(i)}else e.frequencyList=[];e.driverList=t.data.getDriverListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.eqclass="",this.table.getdataListParm.parammaps.eqcode="",this.table.getdataListParm.parammaps.driver="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log("点击了分配"),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.getDialogList()},handleClick:function(){"first"==this.create.activeName?this.getDialogList():"second"==this.create.activeName&&this.getDialogList2()},getDialogList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)void 0!=t.data.list[a].driver&&void 0!=t.data.list[a].driverid||(e.$set(t.data.list[a],"driver",""),e.$set(t.data.list[a],"driverid",""));e.create.list=t.data.list}else e.create.list=[];setTimeout((function(){e.create.listLoading=!1}),100)}))},getDialogList2:function(){var e=this;Object(r["d"])(this.create.getdataListParm2).then((function(t){if(console.log("table2数据",t.data.list),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.create.list2=t.data.list}else e.create.list2=[];setTimeout((function(){e.create.listLoading2=!1}),100)}))},changeDriver:function(e,t){t.driver=this.driverList.find((function(t){return t.id==e})).drivername},createData:function(){var e=this;console.log("点击了新增保存",this.create.list),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);for(var t=0;t<this.create.list.length;t++)""==this.create.list[t].driverid&&(this.create.list.splice(t,1),t=0);console.log("点击了新增保存",this.create.list),this.requestParam.common={returnmap:"0"},this.requestParam.data=[],this.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:this.create.list}},this.requestParam.data[0].children=[],this.requestParam.data[0].children[0]={name:"insertDutyrecord",type:"e",parammaps:{pastureid:"@insertSpotList.pastureid",eqid:"@insertSpotList.eqid",eqclass:"@insertSpotList.eqclass",eqcode:"@insertSpotList.eqcode",driver:"@insertSpotList.driver",driverid:"@insertSpotList.driverid",times:"@insertSpotList.times",operatedate:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename")}},Object(r["b"])(this.requestParam).then((function(t){console.log("分配TMR设备保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList())}))},createData2:function(){console.log("分配铲车保存发送参数")},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),this.selectList=[],d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteDutyrecord",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择值班记录",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteDutyrecord",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("8d29"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"233c93ca",null);t["default"]=h.exports},"73f1":function(e,t,a){},7403:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-饲料表",use:"icon-饲料表-usage",viewBox:"0 0 1169 1024",content:'<symbol class="icon" viewBox="0 0 1169 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲料表"><defs><style type="text/css"></style></defs><path d="M443.389583 403.847387l-116.315104-89.504247-104.638684 89.504247h220.953788z m-419.452923 15.942804l383.211112-328.421758a201.912242 201.912242 0 0 1 262.719443 0l383.211112 328.421758 1.077823 0.943096c17.065536 15.044618 23.98157 34.93944 22.769019 54.115714V808.435329a134.593191 134.593191 0 0 1-134.593192 134.593191H134.727919A134.593191 134.593191 0 0 1 0.134728 808.435329v-333.586328c-1.347279-21.107374 7.454945-41.630927 23.801932-55.05881z m819.819389-15.942804l-255.803409-210.310282c-25.23903-21.601376-69.160332-21.601376-103.740498 0L413.030891 242.218793l205.415168 161.673504h225.3549zM159.562766 831.249257h759.910374a44.909306 44.909306 0 0 0 44.909307-44.909307V561.434144a44.909306 44.909306 0 0 0-44.909307-44.909307H159.562766a44.909306 44.909306 0 0 0-44.909307 44.909307v224.905806a44.909306 44.909306 0 0 0 44.909307 44.909307zM269.321111 0.067813a67.31905 67.31905 0 1 1 0 134.593191 67.31905 67.31905 0 0 1 0-134.593191zM67.453778 134.661004a67.274141 67.274141 0 1 1 0 134.593192 67.274141 67.274141 0 0 1 0-134.593192zM975.969048 0.067813a100.956121 100.956121 0 1 1 0 201.912242 100.956121 100.956121 0 0 1 0-201.912242z" p-id="65770" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},7411:function(e,t,a){},"741f":function(e,t,a){},7443:function(e,t,a){},"74cf":function(e,t,a){"use strict";var i=a("d023"),s=a.n(i);s.a},"74fa":function(e,t,a){"use strict";var i=a("0efa"),s=a.n(i);s.a},7501:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-配方干物质",use:"icon-配方干物质-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-配方干物质"><defs><style type="text/css"></style></defs><path d="M512 121.92a16.96 16.96 0 0 1 8 2.08l324 187.04a16 16 0 0 1 8 13.92v374.08a16 16 0 0 1-8 13.92L520 900a16 16 0 0 1-16 0L180 712.96a16 16 0 0 1-8-13.92V324.96a16 16 0 0 1 8-13.92L504 124a16.96 16.96 0 0 1 8-2.08m0-48a65.12 65.12 0 0 0-32 8.48L156 269.6a64 64 0 0 0-32 55.36v374.08a64 64 0 0 0 32 55.36L480 941.6a64 64 0 0 0 64 0l324-187.2a64 64 0 0 0 32-55.36V324.96a64 64 0 0 0-32-55.36L544 82.4a65.12 65.12 0 0 0-32-8.48z" fill="#ffffff" p-id="16635" /><path d="M741.76 610.08L528 486.72V240a16 16 0 0 0-32 0v246.72l-213.76 123.36a16 16 0 0 0 16 27.84L512 514.4l213.76 123.52a16 16 0 0 0 16-27.84z" fill="#ffffff" p-id="16636" /></symbol>'});l.a.add(n);t["default"]=n},7509:function(e,t,a){"use strict";a.r(t);a("a4d3"),a("e01a"),a("d28b"),a("4de4"),a("caad"),a("c975"),a("fb6a"),a("45fc"),a("a434"),a("b0c0"),a("d3b7"),a("2532"),a("3ca3"),a("ddb0");var i=a("2909"),s=a("3835"),r={visitedViews:[],cachedViews:[]},l={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var a=!0,i=!1,r=void 0;try{for(var l,n=e.visitedViews.entries()[Symbol.iterator]();!(a=(l=n.next()).done);a=!0){var o=Object(s["a"])(l.value,2),c=o[0],d=o[1];if(d.path===t.path){e.visitedViews.splice(c,1);break}}}catch(m){i=!0,r=m}finally{try{a||null==n.return||n.return()}finally{if(i)throw r}}},DEL_CACHED_VIEW:function(e,t){var a=!0,i=!1,s=void 0;try{for(var r,l=e.cachedViews[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var n=r.value;if(n===t.name){var o=e.cachedViews.indexOf(n);e.cachedViews.splice(o,1);break}}}catch(c){i=!0,s=c}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var a=!0,i=!1,s=void 0;try{for(var r,l=e.cachedViews[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var n=r.value;if(n===t.name){var o=e.cachedViews.indexOf(n);e.cachedViews=e.cachedViews.slice(o,o+1);break}}}catch(c){i=!0,s=c}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var a=!0,i=!1,s=void 0;try{for(var r,l=e.visitedViews[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var n=r.value;if(n.path===t.path){n=Object.assign(n,t);break}}}catch(o){i=!0,s=o}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}}},n={addView:function(e,t){var a=e.dispatch;a("addVisitedView",t),a("addCachedView",t)},addVisitedView:function(e,t){var a=e.commit;a("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var a=e.commit;a("ADD_CACHED_VIEW",t)},delView:function(e,t){var a=e.dispatch,s=e.state;return new Promise((function(e){a("delVisitedView",t),a("delCachedView",t),e({visitedViews:Object(i["a"])(s.visitedViews),cachedViews:Object(i["a"])(s.cachedViews)})}))},delVisitedView:function(e,t){var a=e.commit,s=e.state;return new Promise((function(e){a("DEL_VISITED_VIEW",t),e(Object(i["a"])(s.visitedViews))}))},delCachedView:function(e,t){var a=e.commit,s=e.state;return new Promise((function(e){a("DEL_CACHED_VIEW",t),e(Object(i["a"])(s.cachedViews))}))},delOthersViews:function(e,t){var a=e.dispatch,s=e.state;return new Promise((function(e){a("delOthersVisitedViews",t),a("delOthersCachedViews",t),e({visitedViews:Object(i["a"])(s.visitedViews),cachedViews:Object(i["a"])(s.cachedViews)})}))},delOthersVisitedViews:function(e,t){var a=e.commit,s=e.state;return new Promise((function(e){a("DEL_OTHERS_VISITED_VIEWS",t),e(Object(i["a"])(s.visitedViews))}))},delOthersCachedViews:function(e,t){var a=e.commit,s=e.state;return new Promise((function(e){a("DEL_OTHERS_CACHED_VIEWS",t),e(Object(i["a"])(s.cachedViews))}))},delAllViews:function(e,t){var a=e.dispatch,s=e.state;return new Promise((function(e){a("delAllVisitedViews",t),a("delAllCachedViews",t),e({visitedViews:Object(i["a"])(s.visitedViews),cachedViews:Object(i["a"])(s.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(i["a"])(a.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(i["a"])(a.cachedViews))}))},updateVisitedView:function(e,t){var a=e.commit;a("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:r,mutations:l,actions:n}},7631:function(e,t,a){"use strict";var i=a("d412"),s=a.n(i);s.a},"76f2":function(e,t,a){"use strict";var i=a("fb4f"),s=a.n(i);s.a},7736:function(e,t,a){"use strict";var i=a("5f8b"),s=a.n(i);s.a},"774c":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.handleCustomerSelect,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"技术人员",clearable:""},model:{value:e.table.getdataListParm.parammaps.employeeId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"employeeId",t)},expression:"table.getdataListParm.parammaps.employeeId"}},e._l(e.employeeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"客户对接人",clearable:""},model:{value:e.table.getdataListParm.parammaps.receiverName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"receiverName",t)},expression:"table.getdataListParm.parammaps.receiverName"}}),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"服务日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rdate))])]}}])}),a("el-table-column",{attrs:{label:"技术人员","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeeName))])]}}])}),a("el-table-column",{attrs:{label:"客户对接人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"服务内容","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.content))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit&&"1"==i.isModify&&i.createrId==e.employeid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit&&"1"==i.isDel&&i.createrId==e.employeid?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},["create"==e.create.dialogStatus?a("el-autocomplete",{staticStyle:{width:"100%","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer,clear:e.clearCustomerSelectTemp,blur:e.blurCustomerSelectTemp},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}],null,!1,2238609474),model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}}):a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"服务日期:",prop:"rdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.rdate,callback:function(t){e.$set(e.create.temp,"rdate",t)},expression:"create.temp.rdate"}})],1),a("el-form-item",{attrs:{label:"技术人员:",prop:"employeeId"}},[a("el-select",{ref:"employeeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择技术人员",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.employeeId,callback:function(t){e.$set(e.create.temp,"employeeId",t)},expression:"create.temp.employeeId"}},e._l(e.employeeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"客户对接人:",prop:"receiverId"}},[a("el-select",{ref:"receiverId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择客户对接人","allow-create":"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceiver},model:{value:e.create.temp.receiverId,callback:function(t){e.$set(e.create.temp,"receiverId",t)},expression:"create.temp.receiverId"}},e._l(e.create.receiverNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"服务内容:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入服务内容",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.content,callback:function(t){e.$set(e.create.temp,"content",t)},expression:"create.temp.content"}})],1),a("el-form-item",{attrs:{label:"拜访记录关联:",prop:"visitId"}},[a("el-select",{ref:"visitId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择拜访记录单号",disabled:"see"==e.create.dialogStatus,clearable:""},model:{value:e.create.temp.visitId,callback:function(t){e.$set(e.create.temp,"visitId",t)},expression:"create.temp.visitId"}},e._l(e.create.visitNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"回访记录关联:",prop:"telvisitId"}},[a("el-select",{ref:"telvisitId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择回访记录单号",disabled:"see"==e.create.dialogStatus,clearable:""},model:{value:e.create.temp.telvisitId,callback:function(t){e.$set(e.create.temp,"telvisitId",t)},expression:"create.temp.telvisitId"}},e._l(e.create.telvisitNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"RemoteService",components:{Pagination:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],requestParams:[{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getEmployeesSelect",offset:0,pagecount:0,parammaps:{}}],customerNameList:[],groupNameList:[],employeeNameList:[],table:{getdataListParm:{name:"getRemote",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:"",groupId:"",employeeId:"",receiverName:"",inputDatetime:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",rdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),employeeId:"",receiverId:"",receiverName:"",content:"",remark:"",visitId:"",telvisitId:"",modifyName:"add",receiverChoose:"true"},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],rdate:[{required:!0,message:"必填",trigger:"blur"}],visiterId:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],content:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm1:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getVisitByCustomerId",returntype:"Map",parammaps:{customerId:""}},visitNameList:[],getdataListParm4:{name:"getTelvisitByCustomerId",returntype:"Map",parammaps:{customerId:""}},telvisitNameList:[]},textMap:{create:"新增",see:"查看",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="remoteService",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),e.employeeNameList=t.data.getEmployeesSelect.list,console.log("技术人员下拉框",e.visiterNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.employeeId="",this.table.getdataListParm.parammaps.receiverId="",this.table.getdataListParm.parammaps.receiverName="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",rdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),employeeId:"",receiverId:"",receiverName:"",content:"",remark:"",visitId:"",telvisitId:"",modifyName:"add",receiverChoose:"true"}},clearCustomerSelectTemp:function(e){document.activeElement.blur(),this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(r["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},handleCustomerSelect:function(e){console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name},clearCustomerSelect:function(e){document.activeElement.blur(),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName=""},changeCustomer:function(e){console.log(e),this.create.temp.customerId=e.id,this.create.temp.customerName=e.name,this.create.temp.visitId="",this.create.temp.telvisitId="",this.create.getdataListParm1.parammaps.customerId=e.id,this.getReceiverNameList(),this.create.getdataListParm2.parammaps.id=e.id,this.getGroupNameId(),this.create.getdataListParm3.parammaps.customerId=e.id,this.getVisitNameList(),this.create.getdataListParm4.parammaps.customerId=e.id,this.getTelvisitNameList()},getGroupNameId:function(){var e=this;Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},getReceiverNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm1).then((function(t){null!==t.data.list?(e.create.receiverNameList=t.data.list,console.log("客户对接人数据",t.data.list)):e.create.receiverNameList=[]}))},getVisitNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm3).then((function(t){null!==t.data.list?(e.create.visitNameList=t.data.list,console.log("拜访记录数据",t.data.list)):e.create.visitNameList=[]}))},getTelvisitNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm4).then((function(t){null!==t.data.list?(e.create.telvisitNameList=t.data.list,console.log("回访记录数据",t.data.list)):e.create.telvisitNameList=[]}))},changeReceiver:function(e){this.create.temp.receiverName=this.create.receiverNameList.find((function(t){return t.id===e})).name},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="add",e.create.temp.id="",e.requestParam.name="modyfiVisit",e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="@insertContactsNew.LastInsertId",e.create.temp.createrId=n.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"insertRemote",type:"e",parammaps:e.create.temp}]};console.log("新增保存发送参数",a),Object(r["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))}}))},handleSee:function(e){console.log("点击了查看",e),this.create.temp=Object.assign({},e),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm3.parammaps.customerId=e.customerId,this.getVisitNameList(),this.create.getdataListParm4.parammaps.customerId=e.customerId,this.getTelvisitNameList(),this.create.temp.id=e.id,this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm3.parammaps.customerId=e.customerId,this.getVisitNameList(),this.create.getdataListParm4.parammaps.customerId=e.customerId,this.getTelvisitNameList(),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="update",e.requestParam.name="modyfiVisit",e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="@insertContactsNew.LastInsertId";var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateRemote",type:"e",parammaps:e.create.temp}]};console.log("编辑保存发送参数",a),Object(r["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="delRemote",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("0118"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"5027e8b3",null);t["default"]=h.exports},7789:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 添加 ")])],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"姓名",clearable:""},model:{value:e.getListParm.parammaps.ename,callback:function(t){e.$set(e.getListParm.parammaps,"ename",t)},expression:"getListParm.parammaps.ename"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.getListParm.parammaps.departmentId,callback:function(t){e.$set(e.getListParm.parammaps,"departmentId",t)},expression:"getListParm.parammaps.departmentId"}},e._l(e.departmentList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","header-row-style":"padding: 0px;font-size:16px;font-weight:bold;color:#333;","row-style":e.rowStyle,"cell-style":"padding: 0px;font-size:16px;"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.pageNum-1)*e.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"姓名","header-align":"center",align:"center",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ename))])]}}])}),a("el-table-column",{attrs:{label:"部门",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dname))])]}}])}),a("el-table-column",{attrs:{label:"电话",width:"200px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.telephone))])]}}])}),a("el-table-column",{attrs:{label:"备注",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"顺序",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getListParm.offset,limit:e.getListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"姓名",prop:"ename"}},[a("el-input",{ref:"ename",model:{value:e.deptform.ename,callback:function(t){e.$set(e.deptform,"ename",t)},expression:"deptform.ename"}})],1),a("el-form-item",{attrs:{label:"部门",prop:"parentid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:200,size:"small",data:e.parent,"default-props":e.defaultProps,clearable:"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1),a("el-form-item",{attrs:{label:"电话",prop:"telephone"}},[a("el-input",{ref:"telephone",model:{value:e.deptform.telephone,callback:function(t){e.$set(e.deptform,"telephone",t)},expression:"deptform.telephone"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:e.deptform.remark,callback:function(t){e.$set(e.deptform,"remark",t)},expression:"deptform.remark"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.deptform.sort,callback:function(t){e.$set(e.deptform,"sort",t)},expression:"deptform.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("a4d3"),a("e01a"),a("d28b"),a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("ade3")),l=a("3de8"),n=a("6724"),o=a("61f7"),c=a("2934"),d=a("5c96"),m=a("333d"),p={name:"StaffManagement",components:{TreeSelect:l["a"],Pagination:m["a"]},directives:{waves:n["a"]},filters:{menutypeFilter:function(e){var t={menu:"",button:"warning"};return t[e]}},data:function(){var e;return e={disabled:!1,tableKey:0,list:[{deptname:"公司",id:1,parentid:-1,remark:""}],parent:[],parentmenu:[],parentButton:[],departmentList:[],requestParam:{name:"insertEmployees",parammaps:{}},deptform:{id:"",ename:"",remark:"",sort:"",parentid:"0",telephone:"",enable:"1"},getListParm:{name:"getEmployees",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{ename:"",departmentId:""}},listLoading:!0},Object(r["a"])(e,"tableKey",0),Object(r["a"])(e,"list",[]),Object(r["a"])(e,"total",0),Object(r["a"])(e,"getRecuListParm",{name:"getDepartmentCascade"}),Object(r["a"])(e,"getRecuListBParm",{name:"getMenuListBRecu",idname:"id",parammaps:{id:0}}),Object(r["a"])(e,"rules",{ename:[{type:"string",required:!0,message:"姓名必填",trigger:"change"}],parentid:[{required:!0,message:"部门名称必填",trigger:"change"}],sort:[{validator:o["b"],trigger:"blur"}]}),Object(r["a"])(e,"dialogFormVisible",!1),Object(r["a"])(e,"dialogStatus",""),Object(r["a"])(e,"textMap",{update:"编辑",create:"新增"}),Object(r["a"])(e,"rowStyle",{maxHeight:"25px",height:"25px"}),Object(r["a"])(e,"cellStyle",{padding:"0px"}),Object(r["a"])(e,"defaultProps",{children:"children",label:"title"}),Object(r["a"])(e,"nodeKey","id"),Object(r["a"])(e,"defaultCheckedKeys",[]),e},created:function(){this.getList(),this.getDownList()},methods:{popoverHide:function(e,t){this.deptform.parentid=e},handleSearch:function(){console.log("点击了查询"),this.getListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.getListParm.parammaps.departmentId="",this.getListParm.parammaps.ename="",this.getListParm.offset=1,this.getList()},getList:function(){var e=this;this.listLoading=!0,Object(c["d"])(this.getListParm).then((function(t){if(null!==t.data.list){console.log(e.list,"-----------------");for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.list=t.data.list,e.pageNum=t.data.pageNum,e.pageSize=t.data.pageSize,e.total=t.data.total}else e.list=[];setTimeout((function(){e.listLoading=!1}),500)}))},getDownList:function(){var e=this;Object(c["d"])(this.getRecuListParm).then((function(t){null!==t.data.list&&(e.parentmenu=Object(c["t"])(t.data.list,"id","parentid","children"))})),Object(c["d"])({name:"getDepartmentsSelect",offset:0,pagecount:0,parammaps:{}}).then((function(t){console.log("部门下拉框",t),e.departmentList=t.data.list}))},refreshDownList:function(){var e=!0,t=!1,a=void 0;try{for(var i,s=this.parentmenu[Symbol.iterator]();!(e=(i=s.next()).done);e=!0){var r=i.value;this.parent=[],this.parent.push({id:r.id,title:r.title,parentid:r.parentid})}}catch(l){t=!0,a=l}finally{try{e||null==s.return||s.return()}finally{if(t)throw a}}},resetRequestParam:function(){this.deptform.parentid="0",this.deptform.departmentid="0",this.deptform.ename="",this.deptform.remark="",this.deptform.sort="0",this.deptform.telephone="",this.deptform.id="",this.deptform.enable=1},handleCreate:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.parent=this.parentmenu,this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertEmployees",""===e.deptform.parentid&&(e.deptform.parentid="0"),e.requestParam.parammaps={id:"",ename:e.deptform.ename,telephone:e.deptform.telephone,remark:e.deptform.remark,sort:e.deptform.sort,departmentId:e.deptform.parentid,enable:e.deptform.enable},Object(c["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleUpdate:function(e){var t=this;this.parent=this.parentmenu,console.log("row=====>",e),this.defaultCheckedKeys=[e.departmentid],console.log(this.defaultCheckedKeys),this.deptform.departmentid=e.departmentid,this.deptform.parentid=e.departmentid,this.deptform.ename=e.ename,this.deptform.remark=e.remark,this.deptform.sort=e.sort,this.deptform.telephone=e.telephone,this.deptform.id=e.id,this.deptform.enable=e.enable,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateEmployees",e.requestParam.parammaps={id:e.deptform.id,ename:e.deptform.ename,telephone:e.deptform.telephone,remark:e.deptform.remark,sort:e.deptform.sort,departmentId:e.deptform.parentid,enable:e.deptform.enable},console.log(e.requestParam),Object(c["g"])(e.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateEmployees",this.requestParam.parammaps={id:t.id,ename:t.ename,telephone:t.telephone,remark:t.remark,sort:t.sort,departmentId:t.departmentid,enable:t.enable},Object(c["g"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",a.requestParam),"fail"!==e.msg?(a.getList(),a.dialogFormVisible=!1,a.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):a.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))},handleDelete:function(e){var t=this;d["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delEmployees",t.requestParam.parammaps={id:e.id},Object(c["g"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},u=p,h=(a("0164"),a("ccea"),a("2877")),g=Object(h["a"])(u,i,s,!1,null,"89defd26",null);t["default"]=g.exports},"77a8":function(e,t,a){"use strict";var i=a("2e3f"),s=a.n(i);s.a},"77e99":function(e,t,a){"use strict";var i=a("6ecd"),s=a.n(i);s.a},"788c":function(e,t,a){"use strict";var i=a("f39b"),s=a.n(i);s.a},7897:function(e,t,a){"use strict";var i=a("ad81"),s=a.n(i);s.a},"78b7":function(e,t,a){},"78e9":function(e,t,a){"use strict";var i=a("c81b"),s=a.n(i);s.a},"78fa":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},7971:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-库存预警",use:"icon-库存预警-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-库存预警"><defs><style type="text/css"></style></defs><path d="M512.009891 1024q-215.995391-6.003728-360.501305-150.49229T0.009891 512a505.180737 505.180737 0 0 1 148.496831-360.917748 501.953299 501.953299 0 0 1 165.50161-111.502762Q407.014059 1.075813 512.009891 0.069407h3.001863a499.454638 499.454638 0 0 1 193.490088 38.000475q91.548175 37.931067 164.425797 110.426949a507.089436 507.089436 0 0 1 150.960789 363.503169q-6.003728 217.001796-150.509642 361.50771t-361.368895 150.49229z m0-973.003016q-196.075508 6.940726-326.5091 137.079337T51.006874 512q6.003728 196.075508 136.524079 326.005897t324.478938 134.997119q196.075508-4.997323 326.005896-134.997119t134.99712-326.005897a458.087911 458.087911 0 0 0-34.998611-177.994916 452.413868 452.413868 0 0 0-101.525468-149.503237q-66.492154-65.503101-149.503237-99.512658a457.185617 457.185617 0 0 0-174.9757-33.992205z m-82.004677 245.007625q1.006405-33.992205 23.99756-57.486562t58.007117-23.51171q34.99861 0 58.007116 23.51171t23.99756 57.486562L553.012229 627.996882a37.896364 37.896364 0 0 1-12.007456 28.509032 42.893686 42.893686 0 0 1-29.498085 12.007456 36.90731 36.90731 0 0 1-28.994883-11.504254 40.395025 40.395025 0 0 1-11.486901-28.994882z m31.007693 462.009422q0 22.002101 14.488765 36.438811t36.438811 14.488765q22.002101 0 36.438811-14.488765a51.91663 51.91663 0 0 0 0-71.99268q-14.367303-14.384654-36.369403-14.384654t-36.438812 14.506117a48.255397 48.255397 0 0 0-14.558172 35.415054z" p-id="92751" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},7974:function(e,t,a){},"79dd":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-牧场信息",use:"icon-牧场信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-牧场信息"><defs><style type="text/css"></style></defs><path d="M832 64a128 128 0 0 1 31.68 252.032L864 320v384l-0.32 3.968a128 128 0 1 1-155.712 155.712L704 864H320l-3.968-0.32a128 128 0 1 1-155.648-155.776L160 704V320l0.384-3.904a128 128 0 1 1 155.712-155.712L320 160h384l3.904 0.384A128 128 0 0 1 832 64z m0 704a64 64 0 1 0 0 128 64 64 0 0 0 0-128zM192 768a64 64 0 1 0 0 128 64 64 0 0 0 0-128z m515.968-544.32L704 224H320l-3.968-0.32a128.192 128.192 0 0 1-92.352 92.352L224 320v384l-0.32 3.968c45.248 11.52 80.896 47.168 92.416 92.416L320 800h384l3.904 0.384a128.192 128.192 0 0 1 92.48-92.48L800 704V320l0.384-3.904a128.192 128.192 0 0 1-92.416-92.416zM466.176 421.696l4.48 3.648 128 128a32 32 0 0 1-40.832 48.96l-4.48-3.648-128-128a32 32 0 0 1 40.832-48.96zM192 128a64 64 0 1 0 0 128 64 64 0 0 0 0-128z m640 0a64 64 0 1 0 0 128 64 64 0 0 0 0-128z" p-id="76239" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"7a05":function(e,t,a){},"7a8b":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-库存统计",use:"icon-库存统计-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-库存统计"><defs><style type="text/css"></style></defs><path d="M849.7 91.9H174.3c-56.4 0.1-102 45.8-102.2 102.1v637.3c0.2 56.3 45.8 102 102.2 102.1h675.4c56.3-0.2 102-45.8 102.2-102.1V194c0-56.2-46-102.1-102.2-102.1z m66.6 739.5c0 36.7-29.8 66.5-66.5 66.5H174.3c-36.7 0-66.5-29.8-66.5-66.5V194c0-36.7 29.8-66.5 66.5-66.5h675.4c36.7 0 66.5 29.8 66.5 66.5v637.4z m0 0" fill="#ffffff" p-id="94172" /><path d="M174.3 942c-60.8-0.2-110.4-49.8-110.6-110.6V194c0.2-60.8 49.8-110.4 110.6-110.6h675.5c29.4 0 57.2 11.5 78.1 32.5s32.5 48.7 32.5 78.1v637.3c-0.2 60.8-49.8 110.4-110.6 110.6H174.3z m0-841.7c-51.5 0.2-93.6 42.2-93.7 93.7v637.3c0.2 51.5 42.2 93.6 93.7 93.7h675.4c51.5-0.1 93.6-42.2 93.7-93.7V194c0-24.9-9.8-48.4-27.5-66.2s-41.3-27.5-66.2-27.5H174.3z m675.4 806H174.3c-41.3 0-74.9-33.7-75-75V194c0-41.3 33.6-75 75-75h675.4c41.3 0 75 33.6 75 75v637.3c0 41.4-33.6 75-75 75zM174.3 135.9c-32 0-58.1 26-58.1 58.1v637.3c0 32 26.1 58.1 58.1 58.1h675.4c32 0 58.1-26.1 58.1-58.1V194c0-32-26.1-58.1-58.1-58.1H174.3z" fill="#ffffff" p-id="94173" /><path d="M337 761.7h-0.8c-29.4 0-53.6-24.1-53.6-53.5v-270c0-29.4 24.1-53.6 53.6-53.6h0.8c29.4 0 53.6 24.1 53.6 53.6v270c-0.1 29.7-24.2 53.5-53.6 53.5z m-0.8-347.3c-13.2 0-24.1 10.9-24.1 24.1v270c0 13.2 10.9 24.1 24.1 24.1h0.8c13.2 0 24.1-10.9 24.1-24.1V438.1c0-13.2-10.9-24.1-24.1-24.1 0 0.4-0.8 0.4-0.8 0.4z m343.6 347.3h-0.8c-29.4 0-53.6-24.1-53.6-53.5V467.5c0-29.4 24.1-53.5 53.6-53.5h0.8c29.4 0 53.6 24.1 53.6 53.5v41.9c0 7.9-6.8 14.7-14.7 14.7-7.9 0-14.7-6.8-14.7-14.7v-41.9c0-13.2-10.9-24.1-24.1-24.1h-0.9c-13.2 0-24.1 10.9-24.1 24.1v240.6c0 13.2 10.9 24.1 24.1 24.1h0.8c13.2 0 24.1-10.9 24.1-24.1V567.5c0-7.9 6.8-14.7 14.7-14.7 7.9 0 14.7 6.8 14.7 14.7v141c0 29.4-24.1 53.2-53.5 53.2z m-171.6 0h-0.8c-29.4 0-53.5-24.1-53.5-53.5V350.3c0-29.4 24.1-53.6 53.5-53.6h0.8c29.4 0 53.6 24.1 53.6 53.6v358.3c-0.1 29.3-24.2 53.1-53.6 53.1z m-0.8-435.6c-13.2 0-24.1 10.9-24.1 24.1v358.3c0 13.2 10.9 24.1 24.1 24.1h0.8c13.2 0 24.1-10.9 24.1-24.1V350.3c0-13.2-10.9-24.1-24.1-24.1h-0.8z m0-67.5" fill="#ffffff" p-id="94174" /></symbol>'});l.a.add(n);t["default"]=n},"7aad":function(e,t,a){"use strict";var i=a("3774"),s=a.n(i);s.a},"7b75":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},s=[],r=a("313e"),l=a.n(r),n=a("a7dc");a("817d");var o=3e3,c={mixins:[n["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},radar:{radius:"66%",center:["50%","42%"],splitNumber:8,splitArea:{areaStyle:{color:"rgba(127,95,132,.3)",opacity:1,shadowBlur:45,shadowColor:"rgba(0,0,0,.5)",shadowOffsetX:0,shadowOffsetY:15}},indicator:[{name:"Sales",max:1e4},{name:"Administration",max:2e4},{name:"Information Techology",max:2e4},{name:"Customer Support",max:2e4},{name:"Development",max:2e4},{name:"Marketing",max:2e4}]},legend:{left:"center",bottom:"10",data:["Allocated Budget","Expected Spending","Actual Spending"]},series:[{type:"radar",symbolSize:0,areaStyle:{normal:{shadowBlur:13,shadowColor:"rgba(0,0,0,.2)",shadowOffsetX:0,shadowOffsetY:10,opacity:1}},data:[{value:[5e3,7e3,12e3,11e3,15e3,14e3],name:"Allocated Budget"},{value:[4e3,9e3,15e3,15e3,13e3,11e3],name:"Expected Spending"},{value:[5500,11e3,12e3,15e3,12e3,12e3],name:"Actual Spending"}],animationDuration:o}]})}}},d=c,m=a("2877"),p=Object(m["a"])(d,i,s,!1,null,null,null);t["default"]=p.exports},"7bc6":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"7c94":function(e,t,a){"use strict";var i=a("bdae"),s=a.n(i);s.a},"7c99":function(e,t,a){"use strict";var i=a("019f"),s=a.n(i);s.a},"7cc0":function(e,t,a){"use strict";var i=a("a00f"),s=a.n(i);s.a},"7d4f":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"7d6f":function(e,t,a){},"7d81":function(e,t,a){},"7d88":function(e,t,a){"use strict";var i=a("a8a9"),s=a.n(i);s.a},"7d8a":function(e,t,a){},"7dcd":function(e,t,a){},"7e4b":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"7f0e":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"仪表盘",name:"first"}},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")])],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"仪表盘名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.dname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"dname",t)},expression:"table.getdataListParm.parammaps.dname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"状态",clearable:""},model:{value:e.table.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"statue",t)},expression:"table.getdataListParm.parammaps.statue"}},e._l(e.statueList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.value,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-form",{ref:"form",attrs:{rules:e.table.rules,model:e.table}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"仪表盘名称","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.dname))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.dname,callback:function(a){e.$set(t.row,"dname",a)},expression:"scope.row.dname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"仪表盘描述","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.display))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.display,callback:function(a){e.$set(t.row,"display",a)},expression:"scope.row.display"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"状态","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit&&1==t.row.statue?a("span",[e._v("公开")]):e._e(),t.row.NoEdit&&0==t.row.statue?a("span",[e._v("私有")]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"状态"},on:{change:e.changeStatue},model:{value:t.row.statue,callback:function(a){e.$set(t.row,"statue",a)},expression:"scope.row.statue"}},e._l(e.statueList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.value,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"分发角色","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.rolenames))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{multiple:"",filterable:"",placeholder:"分发角色"},on:{change:e.changeRole},model:{value:t.row.rolenamesId,callback:function(a){e.$set(t.row,"rolenamesId",a)},expression:"scope.row.rolenamesId"}},e._l(e.roleList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.rolename,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"显示到菜单","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.reportenable,callback:function(a){e.$set(t.row,"reportenable",a)},expression:"scope.row.reportenable"}})]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.opratetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.jumpSee(i)}}},[e._v("查看")]),i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=e.empid},on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",attrs:{disabled:i.empid!=e.empid},on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)]),a("el-tab-pane",{attrs:{label:"图表",name:"second"}},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate2}},[e._v("新增")])],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"图表名称",clearable:""},model:{value:e.table2.getdataListParm.parammaps.dname,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"dname",t)},expression:"table2.getdataListParm.parammaps.dname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"状态",clearable:""},model:{value:e.table2.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.table2.getdataListParm.parammaps,"statue",t)},expression:"table2.getdataListParm.parammaps.statue"}},e._l(e.statueList2,(function(e,t){return a("el-option",{key:t,attrs:{label:e.value,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch2}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh2}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-form",{ref:"form",attrs:{rules:e.table2.rules,model:e.table2}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table2.listLoading,expression:"table2.listLoading"}],key:e.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table2.pageNum-1)*e.table2.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"图表名称","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.cname))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.cname,callback:function(a){e.$set(t.row,"cname",a)},expression:"scope.row.cname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"图表描述","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.display))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.display,callback:function(a){e.$set(t.row,"display",a)},expression:"scope.row.display"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"状态","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit&&1==t.row.statue?a("span",[e._v("公开")]):e._e(),t.row.NoEdit&&0==t.row.statue?a("span",[e._v("私有")]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"状态"},on:{change:e.changeStatue2},model:{value:t.row.statue,callback:function(a){e.$set(t.row,"statue",a)},expression:"scope.row.statue"}},e._l(e.statueList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.value,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.opratetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.jumpSee2(i)}}},[e._v("查看")]),a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=e.empid},on:{click:function(t){return e.jumpEdit2(i)}}},[e._v("修改图表")]),i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData2(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel2(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:i.empid!=e.empid},on:{click:function(t){return e.handleUpdate2(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",attrs:{disabled:i.empid!=e.empid},on:{click:function(t){return e.handleRowDelete2(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData2(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel2(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table2.total>=0,expression:"table2.total>=0"}],attrs:{total:e.table2.total,page:e.table2.getdataListParm.offset,limit:e.table2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table2.getdataListParm,"pagecount",t)},pagination:e.getList2}})],1)])],1),a("el-dialog",{attrs:{title:"新增仪表盘",width:"750px",visible:e.editDialogVisible},on:{"update:visible":function(t){e.editDialogVisible=t}}},[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:e.dbObj.dname,callback:function(t){e.$set(e.dbObj,"dname",t)},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:e.dbObj.display,callback:function(t){e.$set(e.dbObj,"display",t)},expression:"dbObj.display"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.editDialogVisible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSubmit}},[e._v(" 确认")])],1)],1)],1)},s=[],r=(a("4160"),a("c975"),a("d81d"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("1276"),a("159b"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"BoardEchartManagement",components:{Pagination:o["a"]},data:function(){return{empid:n.a.get("employeid"),editDialogVisible:!1,dbObj:{},requestParams:[{name:"getRoleAll",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],statueList:[{id:"1",value:"公开"},{id:"0",value:"私有"}],statueList2:[{id:"1",value:"公开"},{id:"0",value:"私有"}],roleList:[],rolenamesIdTempArr:[],table:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getDashboardList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),dname:"",statue:"",empid:n.a.get("employeid")}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},table2:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getChartList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),cname:"",statue:"",empid:n.a.get("employeid")}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},activeName:"first"}},created:function(){this.getList(),this.getList2(),this.getDownList(),"second"==this.$route.params.tab?this.activeName="second":this.activeName="first"},methods:{handleClick:function(e,t){console.log(e,t)},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){console.log("下拉框数据",t.data),e.roleList=t.data.getRoleAll.list}))},getList:function(){var e=this;this.table.listLoading=!0,console.log(this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);var i=t.data.list;i.map((function(e,t){return e.roleids?e.rolenamesId=e.roleids.split(","):e.rolenamesId=[]})),i.map((function(e,t){return e.roleids?e.rolenamesId2B=e.roleids.split(","):e.rolenamesId2B=[]})),e.table.list=i,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},getList2:function(){var e=this;this.table2.listLoading=!0,console.log(this.table2.getdataListParm),Object(r["d"])(this.table2.getdataListParm).then((function(t){if(console.log("table2数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table2.list=t.data.list,e.table2.pageNum=t.data.pageNum,e.table2.pageSize=t.data.pageSize,e.table2.total=t.data.total}else e.table2.list=[];setTimeout((function(){e.table2.listLoading=!1}),100)}))},handleEnableChange:function(e){console.log("点击了是否启用",e)},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleSearch2:function(){console.log("点击了查询"),this.table2.getdataListParm.offset=1,this.getList2()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.cname="",this.table.getdataListParm.parammaps.dname="",this.table.getdataListParm.parammaps.statue="",this.table.getdataListParm.offset=1,this.getList()},handleRefresh2:function(){console.log("点击了重置"),this.table2.getdataListParm.parammaps.cname="",this.table2.getdataListParm.parammaps.dname="",this.table2.getdataListParm.parammaps.statue="",this.table2.getdataListParm.offset=1,this.getList2()},changeStatue:function(e){console.log("点击了状态",e),this.table.temp.statueid=e,this.table.temp.statue=e},changeStatue2:function(e){console.log("点击了状态",e),this.table2.temp.statueid=e,this.table2.temp.statue=e},changeRole:function(e){console.log("点击了角色",e),console.log("this.table.list",this.table.list);var t=[];this.roleList.forEach((function(a){e.forEach((function(e){a.id==e&&t.push(a)}))})),console.log("点击了角色",t),this.table.temp.rolenamesId=t,this.rolenamesIdTempArr=t},handleCreate:function(){this.editDialogVisible=!0},handleSubmit:function(){var e=this,t={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["g"])(t).then((function(a){console.log("新增保存发送参数",t),e.$message({type:"success",message:e.$t("common.saveSuccess")}),e.editDialogVisible=!1,console.log("res",a),a.data.LastInsertId&&(e.$router.push({name:"Addboard",params:{id:a.data.LastInsertId,isEdit:"create"}}),n.a.set("AddboardIsEdit","create"),n.a.set("AddboardIsEditId",a.data.LastInsertId),localStorage.setItem("AddboardIsEditId",a.data.LastInsertId))}))},createData:function(e){var t=this;if(console.log("点击了新增保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.dname=e.dname,this.table.temp.display=e.display,this.table.temp.statue=e.statue,this.table.temp.reportenable=e.reportenable,this.table.temp.emp=e.emp,this.table.temp.opratetime=e.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(){t.isokDisable=!1}),1e3),this.requestParam.name="insertDashboard",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleCreate2:function(e){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(e){console.log("点击了查看",e),this.$router.push({name:"Addboard",params:{id:e.id,isEdit:"view"}}),n.a.set("AddboardIsEdit","view"),n.a.set("AddboardIsEditId",e.id),localStorage.setItem("AddboardIsEditId",e.id)},jumpEdit:function(e){console.log("点击了编辑",e),this.$router.push({name:"Addboard",params:{id:e.id,isEdit:"edit"}}),n.a.set("AddboardIsEdit","edit"),n.a.set("AddboardIsEditId",e.id),localStorage.setItem("AddboardIsEditId",e.id)},jumpSee2:function(e){console.log("点击了查看",e),this.$router.push({name:"ChartPanel",params:{id:e.id,isEdit:"view"}}),n.a.set("ChartPanelIsEdit","view"),n.a.set("ChartPanelIsEditId",e.id),localStorage.setItem("ChartPanelIsEditId",e.id),localStorage.setItem("ChartPanelIsEdit","view"),this.$store.state.user.dashchartid=e.id,this.$store.state.user.dashchartidisedit="view"},jumpEdit2:function(e){console.log("点击了编辑",e),this.$router.push({name:"ChartPanel",params:{id:e.id,isEdit:"edit"}}),n.a.set("ChartPanelIsEdit","edit"),n.a.set("ChartPanelIsEditId",e.id),localStorage.setItem("ChartPanelIsEditId",e.id),localStorage.setItem("ChartPanelIsEdit","edit"),this.$store.state.user.dashchartid=e.id,this.$store.state.user.dashchartidisedit="edit"},handleUpdate:function(e){console.log("点击了设置",e);for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.statue=String(e.statue),console.log("row.statue ",e.statue),this.table.temp.statue=e.statue,this.table.temp.statueid=e.statueid,this.table.temp.parentname=e.parentname},handleUpdate2:function(e){console.log("点击了设置",e);for(var t=0;t<this.table2.list.length;t++)if(1==this.table2.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.statue=String(e.statue),this.table2.temp.statue=e.statue,this.table2.temp.statueid=e.statueid},updateData:function(e){var t=this;console.log("点击了编辑保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.dname=e.dname,this.table.temp.display=e.display,this.table.temp.reportenable=e.reportenable,this.table.temp.emp=e.emp,this.table.temp.opratetime=e.opratetime,this.table.temp.id=e.id,this.table.temp.statue=e.statue,this.table.temp.rolenamesId=e.rolenamesId,console.log(this.table.temp.rolenamesId);var a=[];if(this.table.temp.rolenamesId.forEach((function(e,t){a.push({id:e})})),""==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(){t.isokDisable=!1}),1e3),console.log(this.table.temp);var s={common:{returnmap:"0"},data:[{name:"updateDashboard",type:"e",parammaps:this.table.temp},{name:"deleteDrole",type:"e",parammaps:{id:e.id,pastureid:n.a.get("pastureid")}},{name:"insertSpotList",resultmaps:{list:a},children:[{name:"insertDrole",type:"e",parammaps:{id:e.id,pastureid:n.a.get("pastureid"),roleid:"@insertSpotList.id"}}]}]};Object(r["b"])(s).then((function(e){"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},updateData2:function(e){var t=this;if(console.log("点击了编辑保存"),this.table2.temp.pastureid=n.a.get("pastureid"),this.table2.temp.cname=e.cname,this.table2.temp.display=e.display,this.table2.temp.emp=e.emp,this.table2.temp.opratetime=e.opratetime,this.table2.temp.id=e.id,this.table2.temp.statue=e.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(){t.isokDisable=!1}),1e3),console.log(this.table2.temp);var i={name:"updateChart",parammaps:this.table2.temp};Object(r["g"])(i).then((function(e){console.log("新增保存发送参数",i),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList2()):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,e.rolenamesId=e.rolenamesId2B},updateCancel2:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteDashboard",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleRowDelete2:function(e){var t=this;console.log("点击了行内删除");var a={name:"getChartuseCount",parammaps:{pastureid:n.a.get("pastureid"),id:e.id}};Object(r["d"])(a).then((function(a){console.log(a),a.data.list[0].cou>0?c["MessageBox"].confirm("当前图表已被引用,是否进行删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteChart",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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.getList2())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})})):(t.requestParam.name="deleteChart",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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.getList2())})))}))}}},m=d,p=(a("ca7a"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"08ba642a",null);t["default"]=u.exports},"7f67":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"效率统计",name:"first"}},[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:e.tab.table.getdataListParm.parammaps.date,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"date",t)},expression:"tab.table.getdataListParm.parammaps.date"}}),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:e.changeRadio},model:{value:e.tab.radio,callback:function(t){e.$set(e.tab,"radio",t)},expression:"tab.radio"}},[e._v("配方")]),a("el-radio",{attrs:{label:"2"},on:{change:e.changeRadio},model:{value:e.tab.radio,callback:function(t){e.$set(e.tab,"radio",t)},expression:"tab.radio"}},[e._v("栏舍")]),a("el-radio",{attrs:{label:"3"},on:{change:e.changeRadio},model:{value:e.tab.radio,callback:function(t){e.$set(e.tab,"radio",t)},expression:"tab.radio"}},[e._v("牲畜类别")]),e.tab.isFormulaName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"配方模板"},model:{value:e.tab.table.getdataListParm.parammaps.ftname,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"ftname",t)},expression:"tab.table.getdataListParm.parammaps.ftname"}}):e._e(),e.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"栏舍"},model:{value:e.tab.table.getdataListParm.parammaps.barname,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"barname",t)},expression:"tab.table.getdataListParm.parammaps.barname"}}):e._e(),e.tab.isHouseName?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"配方模板"},model:{value:e.tab.table.getdataListParm.parammaps.ftname,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"ftname",t)},expression:"tab.table.getdataListParm.parammaps.ftname"}}):e._e(),e.tab.isLivestockType?a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牲畜类别"},model:{value:e.tab.table.getdataListParm.parammaps.cowclass,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"cowclass",t)},expression:"tab.table.getdataListParm.parammaps.cowclass"}}):e._e(),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"export",on:{click:e.handleDownload}},[e._v("导出")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"down"},on:{click:e.handleQuickJumpChart}})],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.table.listLoading,expression:"tab.table.listLoading"}],key:e.tab.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[e.tab.isFormulaName?a("el-table-column",{attrs:{label:"配方模板","min-width":"110px",align:"center",prop:"配方模板"}}):e._e(),e.tab.isHouseName?a("el-table-column",{attrs:{label:"栏舍","min-width":"110px",align:"center",prop:"栏舍"}}):e._e(),e.tab.isHouseName?a("el-table-column",{attrs:{label:"配方模板","min-width":"110px",align:"center",prop:"配方模板"}}):e._e(),e.tab.isLivestockType?a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center",prop:"牲畜类别"}}):e._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",{staticStyle:{height:"90px"},attrs:{id:"chartDate"}}),a("div",{staticClass:"AnalysisChart"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:2}},[a("h4",[e._v("图表查询时间:")])]),a("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:22}},[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":"结束日期","picker-options":e.pickerOptions},model:{value:e.tab.chartDate,callback:function(t){e.$set(e.tab,"chartDate",t)},expression:"tab.chartDate"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleChartDate}},[e._v("确认")]),a("svg-icon",{staticStyle:{width:"40px",height:"40px",float:"right"},attrs:{"icon-class":"Up"},on:{click:e.handleQuickJumpTop}})],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("泌乳牛采食量")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":e.pickerOptions},on:{change:function(t){return e.changeChartDate("chart1")}},model:{value:e.tab.chart1.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart1.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart1.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart1")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart1")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine1"}}),e.tab.chart1.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart1")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart1")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart1.table.listLoading,expression:"tab.chart1.table.listLoading"}],key:e.tab.chart1.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart1.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("牛栏剩料率")]),a("div",[a("el-select",{staticStyle:{width:"200px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},on:{"visible-change":function(t){return e.changeStatisticChart2()}},model:{value:e.tab.chart2.getdataListParm.parammaps.statisticsList,callback:function(t){e.$set(e.tab.chart2.getdataListParm.parammaps,"statisticsList",t)},expression:"tab.chart2.getdataListParm.parammaps.statisticsList"}},e._l(e.tab.chart2.statisticsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":e.pickerOptions},on:{change:function(t){return e.changeChartDate("chart2")}},model:{value:e.tab.chart2.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart2.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart2.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart2")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart2")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine2"}}),e.tab.chart2.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart2")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart2")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart2.table.listLoading,expression:"tab.chart2.table.listLoading"}],key:e.tab.chart2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart2.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("混料时间统计")]),a("div",[a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":e.pickerOptions},on:{change:function(t){return e.changeChartDate("chart3")}},model:{value:e.tab.chart3.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart3.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart3.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart3")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart3")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine3"}}),e.tab.chart3.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart3")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart3")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart3.table.listLoading,expression:"tab.chart3.table.listLoading"}],key:e.tab.chart3.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart3.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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:"field1"}})],1)],1):e._e()]),a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("转化率")]),a("div",[a("el-select",{staticStyle:{width:"200px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},on:{"visible-change":function(t){return e.changeStatisticChart4()}},model:{value:e.tab.chart4.getdataListParm.parammaps.statisticsList,callback:function(t){e.$set(e.tab.chart4.getdataListParm.parammaps,"statisticsList",t)},expression:"tab.chart4.getdataListParm.parammaps.statisticsList"}},e._l(e.tab.chart4.statisticsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":e.pickerOptions},on:{change:function(t){return e.changeChartDate("chart4")}},model:{value:e.tab.chart4.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart4.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart4.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart4")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart4")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine4"}}),e.tab.chart4.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart4")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart4")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart4.table.listLoading,expression:"tab.chart4.table.listLoading"}],key:e.tab.chart4.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart4.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._e()])],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:24}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("成本分析")]),a("div",[a("el-select",{staticStyle:{width:"200px","margin-right":"5px"},attrs:{multiple:"","collapse-tags":"",placeholder:"请选择统计参数"},on:{"visible-change":function(t){return e.changeStatisticChart5()}},model:{value:e.tab.chart5.getdataListParm.parammaps.statisticsList,callback:function(t){e.$set(e.tab.chart5.getdataListParm.parammaps,"statisticsList",t)},expression:"tab.chart5.getdataListParm.parammaps.statisticsList"}},e._l(e.tab.chart5.statisticsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":e.pickerOptions},on:{change:function(t){return e.changeChartDate("chart5")}},model:{value:e.tab.chart5.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.chart5.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.chart5.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart5")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleTable("chart5")}}},[e._v("切换表格")])],1),a("div",{staticStyle:{width:"100%",height:"430px"},attrs:{id:"chartLine5"}}),e.tab.chart5.isTable?a("div",{staticClass:"table",staticStyle:{width:"100%","z-index":"1",position:"absolute",top:"19px",right:"0"}},[a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleExport("chart5")}}},[e._v("导出")]),a("el-button",{staticStyle:{float:"right","margin-right":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleChart("chart5")}}},[e._v("切换图表")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.chart5.table.listLoading,expression:"tab.chart5.table.listLoading"}],key:e.tab.chart5.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.chart5.table.list,border:"",fit:"","highlight-current-row":"",height:"430","row-style":e.rowStyle,"cell-style":e.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):e._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:e.changeTab2Date},model:{value:e.tab2.table.getdataListParm.parammaps.date,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"date",t)},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"}},[e._v("宾州筛分析")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.table.listLoading,expression:"tab2.table.listLoading"}],key:e.tab2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,height:"400px"}},[a("el-table-column",{attrs:{label:"宾州筛","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"第一层重量","min-width":"110px",align:"center",prop:"oneweight"}}),a("el-table-column",{attrs:{label:"第一层百分比","min-width":"110px",align:"center",prop:"onerate"}}),a("el-table-column",{attrs:{label:"第二层重量","min-width":"110px",align:"center",prop:"twoweight"}}),a("el-table-column",{attrs:{label:"第二层百分比","min-width":"110px",align:"center",prop:"tworate"}}),a("el-table-column",{attrs:{label:"第三层重量","min-width":"110px",align:"center",prop:"threeweight"}}),a("el-table-column",{attrs:{label:"第三层百分比","min-width":"110px",align:"center",prop:"threerate"}}),a("el-table-column",{attrs:{label:"第四层重量","min-width":"110px",align:"center",prop:"fourweight"}}),a("el-table-column",{attrs:{label:"第四层百分比","min-width":"110px",align:"center",prop:"fourrate"}}),a("el-table-column",{attrs:{label:"参考标准","min-width":"110px",align:"center",prop:"standard"}})],1)],1),a("el-col",{attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("粪便筛分析")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.table2.listLoading,expression:"tab2.table2.listLoading"}],key:e.tab2.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,height:"400px"}},[a("el-table-column",{attrs:{label:"粪便筛","min-width":"150px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"第一层重量","min-width":"110px",align:"center",prop:"oneweight"}}),a("el-table-column",{attrs:{label:"第一层百分比","min-width":"110px",align:"center",prop:"onerate"}}),a("el-table-column",{attrs:{label:"第二层重量","min-width":"110px",align:"center",prop:"twoweight"}}),a("el-table-column",{attrs:{label:"第二层百分比","min-width":"110px",align:"center",prop:"tworate"}}),a("el-table-column",{attrs:{label:"第三层重量","min-width":"110px",align:"center",prop:"threeweight"}}),a("el-table-column",{attrs:{label:"第三层百分比","min-width":"110px",align:"center",prop:"threerate"}}),a("el-table-column",{attrs:{label:"参考标准","min-width":"110px",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"}},[e._v("BCS评分")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.table3.listLoading,expression:"tab2.table3.listLoading"}],key:e.tab2.table3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.table3.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,height:"400px"}},[a("el-table-column",{attrs:{label:"栏舍","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"抽查样本数","min-width":"110px",align:"center",prop:"sumcowcount"}}),a("el-table-column",{attrs:{label:"单产","min-width":"110px",align:"center",prop:"product"}}),a("el-table-column",{attrs:{label:"干物质采食量","min-width":"110px",align:"center",prop:"dryweight"}}),a("el-table-column",{attrs:{label:"泌乳天数","min-width":"110px",align:"center",prop:"avgdim"}}),a("el-table-column",{attrs:{label:"标准分数","min-width":"110px",align:"center",prop:"standardscore"}}),a("el-table-column",{attrs:{label:"2.75-分(数量、百分比)","min-width":"110px",align:"center",prop:"score25"}}),a("el-table-column",{attrs:{label:"2.75分(数量、百分比","min-width":"110px",align:"center",prop:"score275"}}),a("el-table-column",{attrs:{label:"3分(数量、百分比)","min-width":"110px",align:"center",prop:"score3"}}),a("el-table-column",{attrs:{label:"3.25分(数量、百分比)","min-width":"110px",align:"center",prop:"score325"}}),a("el-table-column",{attrs:{label:"3.5分(数量、百分比)","min-width":"110px",align:"center",prop:"score35"}}),a("el-table-column",{attrs:{label:"3.75分(数量、百分比)","min-width":"110px",align:"center",prop:"score375"}}),a("el-table-column",{attrs:{label:"4+分(数量、百分比)","min-width":"110px",align:"center",prop:"score4"}})],1)],1),a("el-col",{attrs:{span:12}},[a("h4",{staticStyle:{"text-align":"center"}},[e._v("粪便评分")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.table4.listLoading,expression:"tab2.table4.listLoading"}],key:e.tab2.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.table4.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,height:"400px"}},[a("el-table-column",{attrs:{label:"栏舍","min-width":"110px",align:"center",prop:"barname"}}),a("el-table-column",{attrs:{label:"抽查样本数","min-width":"110px",align:"center",prop:"sumcowcount"}}),a("el-table-column",{attrs:{label:"单产","min-width":"110px",align:"center",prop:"product"}}),a("el-table-column",{attrs:{label:"干物质采食量","min-width":"110px",align:"center",prop:"dryweight"}}),a("el-table-column",{attrs:{label:"泌乳天数","min-width":"110px",align:"center",prop:"avgdim"}}),a("el-table-column",{attrs:{label:"标准分数","min-width":"110px",align:"center",prop:"standardscore"}}),a("el-table-column",{attrs:{label:"1分(数量、百分比)","min-width":"110px",align:"center",prop:"score1"}}),a("el-table-column",{attrs:{label:"2分(数量、百分比)","min-width":"110px",align:"center",prop:"score2"}}),a("el-table-column",{attrs:{label:"3分(数量、百分比)","min-width":"110px",align:"center",prop:"score3"}}),a("el-table-column",{attrs:{label:"4分(数量、百分比)","min-width":"110px",align:"center",prop:"score4"}}),a("el-table-column",{attrs:{label:"5分(数量、百分比)","min-width":"110px",align:"center",prop:"score5"}})],1)],1)],1)],1)])],1)],1)},s=[],r=(a("7db0"),a("b0c0"),a("313e")),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08"),m=a("333d"),p=a("5c96");a("817d");var u={name:"ErrorAnalysis",components:{Pagination:m["a"]},data:function(){var e=this;return{pickerMinDate:"",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()}},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["e"])(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["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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:"getFeedEffCB",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),startTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(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["e"])(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:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getTabList(),this.getTimeFn(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()},mounted:function(){},methods:{getTimeFn:function(){var e=this,t=new Date,a=new Date,i=new Date;i.setTime(i.getTime()-864e5),e.tab.table.getdataListParm.parammaps.date=Object(d["e"])(i,"{y}-{m}-{d}"),a.setTime(a.getTime()-6048e5),e.tab.chartDate[0]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chartDate[1]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart1.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart1.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart1.getdataListParm.parammaps.startTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart2.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart2.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart2.getdataListParm.parammaps.startTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart3.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart3.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart3.getdataListParm.parammaps.startTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart4.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart4.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart4.getdataListParm.parammaps.startTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart5.getdataListParm.parammaps.inputDatetime[0]=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart5.getdataListParm.parammaps.inputDatetime[1]=Object(d["e"])(t,"{y}-{m}-{d}"),e.tab.chart5.getdataListParm.parammaps.startTime=Object(d["e"])(a,"{y}-{m}-{d}"),e.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["e"])(t,"{y}-{m}-{d}")},handleDownload:function(){if("1"==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["d"])(e,"效率统计-配方",!0,"xlsx")}else if("2"==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["d"])(t,"效率统计-栏舍",!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["d"])(a,"效率统计-牲畜类别",!0,"xlsx")}},handleTabClick:function(){if("first"==this.activeName){var e=new Date;e.setTime(e.getTime()-864e5),this.tab.table.getdataListParm.parammaps.date=Object(d["e"])(e,"{y}-{m}-{d}"),this.getTabList(),this.getChart1(),this.getChart2(),this.getChart3(),this.getChart4(),this.getChart5()}else if("second"==this.activeName){var t=new Date;t.setTime(t.getTime()-864e5),this.tab2.table.getdataListParm.parammaps.date=Object(d["e"])(t,"{y}-{m}-{d}"),this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()}},changeRadio:function(){console.log(this.tab.radio),"1"==this.tab.radio?(console.log("配方名称"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.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="getFeedEffCB",this.getChart5()):"2"==this.tab.radio?(console.log("栏舍名称"),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()):"3"==this.tab.radio&&(console.log(" 牲畜类别"),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())},getTabList:function(){var e=this;this.tab.table.listLoading=!0,Object(n["d"])(this.tab.table.getdataListParm).then((function(t){console.log("汇总统计/混料table数据",t.data.list),null!==t.data.list?(e.tab.table.list=t.data.list,e.tab.table.total=t.data.total):e.tab.table.list=[],setTimeout((function(){e.tab.table.listLoading=!1}),100)}))},handleSearch:function(){"1"==this.tab.radio?(console.log("配方名称/查询"),this.tab.isFormulaName=!0,this.tab.isHouseName=!1,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getFeedEfficiencyFT",this.getTabList()):"2"==this.tab.radio?(console.log("栏舍名称/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!0,this.tab.isLivestockType=!1,this.tab.table.getdataListParm.name="getFeedEfficiencyLS",this.getTabList()):"3"==this.tab.radio&&(console.log(" 牲畜类别/查询"),this.tab.isFormulaName=!1,this.tab.isHouseName=!1,this.tab.isLivestockType=!0,this.tab.table.getdataListParm.name="getFeedEfficiencySC",this.getTabList())},handleQuickJumpChart:function(){console.log(document.querySelector("#chartDate")),document.querySelector("#chartDate").scrollIntoView()},handleQuickJumpTop:function(){window.scrollTo(0,0)},handleChartDate:function(){var e=this;console.log("点击了确认时间"),p["MessageBox"].confirm("是否调整以下所有图表查询时间?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e,a=Object(d["e"])(e.tab.chartDate[0],"{y}-{m}-{d}"),i=Object(d["e"])(e.tab.chartDate[1],"{y}-{m}-{d}");t.tab.chart1.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart1.getdataListParm.parammaps.startTime=a,t.tab.chart1.getdataListParm.parammaps.stopTime=i,t.getChart1(),t.tab.chart2.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart2.getdataListParm.parammaps.startTime=a,t.tab.chart2.getdataListParm.parammaps.stopTime=i,t.getChart2(),t.tab.chart3.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart3.getdataListParm.parammaps.startTime=a,t.tab.chart3.getdataListParm.parammaps.stopTime=i,t.getChart3(),t.tab.chart4.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart4.getdataListParm.parammaps.startTime=a,t.tab.chart4.getdataListParm.parammaps.stopTime=i,t.getChart4(),t.tab.chart5.getdataListParm.parammaps.inputDatetime=e.tab.chartDate,t.tab.chart5.getdataListParm.parammaps.startTime=a,t.tab.chart5.getdataListParm.parammaps.stopTime=i,t.getChart5()}))},getChart1:function(){var e=this;this.tab.chart1.listLoading=!0,Object(n["f"])(this.tab.chart1.getdataListParm).then((function(t){console.log("泌乳牛采食量图表数据",t.data.list),null!==t.data.list?(e.tab.chart1.table.list=t.data.data,e.tab.chart1.chartLine_data=t.data.list,e.roadChartLine1(e.tab.chart1.chartLine_data)):e.tab.chart1.list=[],setTimeout((function(){e.tab.chart1.listLoading=!1}),100)}))},roadChartLine1:function(e){null!=this.tab.chart1.chartLine&&this.tab.chart1.chartLine.dispose(),this.tab.chart1.chartLine=l.a.init(document.getElementById("chartLine1"));var t={tooltip:{trigger:"axis"},legend:{data:["泌乳牛采食量","泌乳牛产奶量"],right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},xAxis:[{type:"category",data:e.data1}],yAxis:[{type:"value",name:"泌乳牛采食量",axisLabel:{formatter:"{value} "}},{type:"value",name:"泌乳牛产奶量",axisLabel:{formatter:"{value} "}}],series:[{name:"泌乳牛采食量",type:"bar",itemStyle:{normal:{color:"#61a5e8"}},data:e.data2},{name:"泌乳牛产奶量",type:"line",itemStyle:{normal:{color:"#ff2d2d"}},yAxisIndex:1,data:e.data3}]};this.tab.chart1.chartLine.setOption(t),window.onresize=function(){this.tab.chart1.chartLine.resize()}},changeStatisticChart2:function(){for(var e=this,t=[],a=function(a){for(var i=e.tab.chart2.statisticsList.find((function(t){return t.name==e.tab.chart2.getdataListParm.parammaps.statisticsList[a]})).id,s=0;s<e.tab.chart2.chart2Data3.length;s++)s==i&&t.push(e.tab.chart2.chart2Data3[s])},i=0;i<this.tab.chart2.getdataListParm.parammaps.statisticsList.length;i++)a(i);this.tab.chart2.chartLine_data.data3=t,this.tab.chart2.chartLine_data.data1=this.tab.chart2.getdataListParm.parammaps.statisticsList,this.roadChartLine2(this.tab.chart2.chartLine_data)},getChart2:function(){var e=this;this.tab.chart2.listLoading=!0,Object(n["f"])(this.tab.chart2.getdataListParm).then((function(t){if(console.log("转化率图表数据",t.data.list),null!==t.data.list){e.tab.chart2.table.list=t.data.data,e.tab.chart2.chartLine_data=t.data.list,e.tab.chart2.total=t.data.total,e.tab.chart2.statisticsList=[],e.tab.chart2.getdataListParm.parammaps.statisticsList=[];for(var a=0;a<t.data.list.data1.length;a++){a<10&&e.tab.chart2.getdataListParm.parammaps.statisticsList.push(t.data.list.data1[a]);var i={};i.id=a,i.name=t.data.list.data1[a],e.tab.chart2.statisticsList.push(i)}e.tab.chart2.chart2Data3=t.data.list.data3,e.tab.chart2.total=t.data.total,console.log("牛栏剩料率图数据",e.tab.chart2.chartLine_data),console.log("牛栏剩料率表数据",e.tab.chart2.table.list);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<e.tab.chart2.getdataListParm.parammaps.statisticsList.length;l++)r(l);e.tab.chart2.chartLine_data.data3=s,e.tab.chart2.chartLine_data.data1=e.tab.chart2.getdataListParm.parammaps.statisticsList,e.roadChartLine2(e.tab.chart2.chartLine_data)}else e.tab.chart2.list=[];setTimeout((function(){e.tab.chart2.listLoading=!1}),100)}))},roadChartLine2:function(e){null!=this.tab.chart2.chartLine&&this.tab.chart2.chartLine.dispose(),this.tab.chart2.chartLine=l.a.init(document.getElementById("chartLine2"));var t={title:{text:""},tooltip:{trigger:"axis"},legend:{data:e.data1,right:10},grid:{top:"20%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e.data2,name:"日期"},yAxis:{type:"value",name:"剩料率",axisLabel:{formatter:"{value} %"}},series:function(){for(var t=[],a=0;a<e.data3.length;a++){var i={name:e.data1[a],type:"line",data:e.data3[a].data};t.push(i)}return t}()};this.tab.chart2.chartLine.setOption(t),window.onresize=function(){this.tab.chart2.chartLine.resize()}},getChart3:function(){var e=this;this.tab.chart3.listLoading=!0,Object(n["f"])(this.tab.chart3.getdataListParm).then((function(t){console.log("混料时间统计图表数据",t.data.list),null!==t.data.list?(e.tab.chart3.table.list=t.data.data,e.tab.chart3.chartLine_data=t.data.list,e.tab.chart3.total=t.data.total,e.tab.chart3.total=t.data.total,e.roadChartLine3(e.tab.chart3.chartLine_data)):e.tab.chart3.list=[],setTimeout((function(){e.tab.chart3.listLoading=!1}),100)}))},roadChartLine3:function(e){null!=this.tab.chart3.chartLine&&this.tab.chart3.chartLine.dispose(),this.tab.chart3.chartLine=l.a.init(document.getElementById("chartLine3"));var t={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:e.data1,name:"日期"},yAxis:{type:"value",name:"分钟",axisLabel:{formatter:"{value}min"}},series:[{name:"混料时间",type:"line",stack:"总量",data:e.data2}]};this.tab.chart3.chartLine.setOption(t),window.onresize=function(){this.tab.chart3.chartLine.resize()}},changeStatisticChart4:function(){for(var e=this,t=[],a=function(a){for(var i=e.tab.chart4.statisticsList.find((function(t){return t.name==e.tab.chart4.getdataListParm.parammaps.statisticsList[a]})).id,s=0;s<e.tab.chart4.chart4Data3.length;s++)s==i&&t.push(e.tab.chart4.chart4Data3[s])},i=0;i<this.tab.chart4.getdataListParm.parammaps.statisticsList.length;i++)a(i);this.tab.chart4.chartLine_data.data3=t,this.tab.chart4.chartLine_data.data1=this.tab.chart4.getdataListParm.parammaps.statisticsList,this.roadChartLine4(this.tab.chart4.chartLine_data)},getChart4:function(){var e=this;this.tab.chart4.listLoading=!0,Object(n["f"])(this.tab.chart4.getdataListParm).then((function(t){if(console.log("转化率图表数据",t.data.list),null!==t.data.list){e.tab.chart4.table.list=t.data.data,e.tab.chart4.chartLine_data=t.data.list,e.tab.chart4.total=t.data.total,e.tab.chart4.statisticsList=[],e.tab.chart4.getdataListParm.parammaps.statisticsList=[];for(var a=0;a<t.data.list.data1.length;a++){a<10&&e.tab.chart4.getdataListParm.parammaps.statisticsList.push(t.data.list.data1[a]);var i={};i.id=a,i.name=t.data.list.data1[a],e.tab.chart4.statisticsList.push(i)}e.tab.chart4.chart4Data3=t.data.list.data3,e.tab.chart4.total=t.data.total,console.log("转化率图数据",e.tab.chart4.chartLine_data),console.log("转化率表数据",e.tab.chart4.table.list);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<e.tab.chart4.getdataListParm.parammaps.statisticsList.length;l++)r(l);e.tab.chart4.chartLine_data.data3=s,e.tab.chart4.chartLine_data.data1=e.tab.chart4.getdataListParm.parammaps.statisticsList,e.roadChartLine4(e.tab.chart4.chartLine_data)}else e.tab.chart4.list=[];setTimeout((function(){e.tab.chart4.listLoading=!1}),100)}))},roadChartLine4:function(e){null!=this.tab.chart4.chartLine&&this.tab.chart4.chartLine.dispose(),this.tab.chart4.chartLine=l.a.init(document.getElementById("chartLine4"));var t={title:{text:""},tooltip:{trigger:"axis"},legend:{data:e.data1,right:10},grid:{top:"20%",left:"3%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e.data2,name:"日期"},yAxis:{type:"value",name:"百分比",axisLabel:{formatter:"{value} %"}},series:function(){for(var t=[],a=0;a<e.data3.length;a++){var i={name:e.data1[a],type:"line",data:e.data3[a].data};t.push(i)}return t}()};this.tab.chart4.chartLine.setOption(t),window.onresize=function(){this.tab.chart4.chartLine.resize()}},changeStatisticChart5:function(){for(var e=this,t=[],a=function(a){for(var i=e.tab.chart5.statisticsList.find((function(t){return t.name==e.tab.chart5.getdataListParm.parammaps.statisticsList[a]})).id,s=0;s<e.tab.chart5.chart5Data3.length;s++)s==i&&t.push(e.tab.chart5.chart5Data3[s])},i=0;i<this.tab.chart5.getdataListParm.parammaps.statisticsList.length;i++)a(i);this.tab.chart5.chartLine_data.data3=t,this.tab.chart5.chartLine_data.data1=this.tab.chart5.getdataListParm.parammaps.statisticsList,this.roadChartLine5(this.tab.chart5.chartLine_data)},getChart5:function(){var e=this;this.tab.chart5.listLoading=!0,Object(n["f"])(this.tab.chart5.getdataListParm).then((function(t){if(console.log("转化率图表数据",t.data.list),null!==t.data.list){e.tab.chart5.table.list=t.data.data,e.tab.chart5.chartLine_data=t.data.list,e.tab.chart5.total=t.data.total,e.tab.chart5.statisticsList=[],e.tab.chart5.getdataListParm.parammaps.statisticsList=[];for(var a=0;a<t.data.list.data1.length;a++){a<10&&e.tab.chart5.getdataListParm.parammaps.statisticsList.push(t.data.list.data1[a]);var i={};i.id=a,i.name=t.data.list.data1[a],e.tab.chart5.statisticsList.push(i)}e.tab.chart5.chart5Data3=t.data.list.data3,e.tab.chart5.total=t.data.total,console.log("转化率图数据",e.tab.chart5.chartLine_data),console.log("转化率表数据",e.tab.chart5.table.list);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<e.tab.chart5.getdataListParm.parammaps.statisticsList.length;l++)r(l);e.tab.chart5.chartLine_data.data3=s,e.tab.chart5.chartLine_data.data1=e.tab.chart5.getdataListParm.parammaps.statisticsList,e.roadChartLine5(e.tab.chart5.chartLine_data)}else e.tab.chart5.list=[];setTimeout((function(){e.tab.chart5.listLoading=!1}),100)}))},roadChartLine5:function(e){null!=this.tab.chart5.chartLine&&this.tab.chart5.chartLine.dispose(),this.tab.chart5.chartLine=l.a.init(document.getElementById("chartLine5"));var t={title:{text:""},tooltip:{trigger:"axis"},legend:{data:e.data1,right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e.data2,name:"日期"},yAxis:{type:"value",name:"公斤奶饲料成本(元)"},series:function(){for(var t=[],a=0;a<e.data3.length;a++){var i={name:e.data1[a],type:"line",data:e.data3[a].data};t.push(i)}return t}()};this.tab.chart5.chartLine.setOption(t),window.onresize=function(){this.tab.chart5.chartLine.resize()}},changeChartDate:function(e){console.log(e),"chart1"==e?""!==this.tab.chart1.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart1.getdataListParm.parammaps.inputDatetime?(this.tab.chart1.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart1.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart1.getdataListParm.parammaps.stopTime=Object(d["e"])(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"==e?""!==this.tab.chart2.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart2.getdataListParm.parammaps.inputDatetime?(this.tab.chart2.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart2.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart2.getdataListParm.parammaps.stopTime=Object(d["e"])(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"==e?""!==this.tab.chart3.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart3.getdataListParm.parammaps.inputDatetime?(this.tab.chart3.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart3.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart3.getdataListParm.parammaps.stopTime=Object(d["e"])(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"==e?""!==this.tab.chart4.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart4.getdataListParm.parammaps.inputDatetime?(this.tab.chart4.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart4.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart4.getdataListParm.parammaps.stopTime=Object(d["e"])(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"==e&&(""!==this.tab.chart5.getdataListParm.parammaps.inputDatetime&&null!==this.tab.chart5.getdataListParm.parammaps.inputDatetime?(this.tab.chart5.getdataListParm.parammaps.startTime=Object(d["e"])(this.tab.chart5.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.chart5.getdataListParm.parammaps.stopTime=Object(d["e"])(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(e){if("chart1"==e){console.log("泌乳牛采食量导出");var t=[{tHeader:["日期","泌乳牛采食量","泌乳牛产奶量"],filterVal:["日期","field1","field2"],tableDatas:this.tab.chart1.table.list,sheetName:"泌乳牛采食量"}];Object(d["d"])(t,"泌乳牛采食量",!0,"xlsx")}else if("chart2"==e){console.log("牛栏剩料率导出");var a=[{tHeader:["日期","栏舍名称","剩料量","撒料量","剩料率"],filterVal:["日期","名称","剩料量","撒料量","准确率"],tableDatas:this.tab.chart2.table.list,sheetName:"牛栏剩料率"}];Object(d["d"])(a,"牛栏剩料率",!0,"xlsx")}else if("chart3"==e){console.log("混料时间统计导出");var i=[{tHeader:["日期","混料时间(分钟)"],filterVal:["日期","field1"],tableDatas:this.tab.chart3.table.list,sheetName:"混料时间统计"}];Object(d["d"])(i,"混料时间统计",!0,"xlsx")}else if("chart4"==e){console.log("转化率导出");var s=[{tHeader:["日期","配方名称","饲料转化率"],filterVal:["日期","名称","准确率"],tableDatas:this.tab.chart4.table.list,sheetName:"转化率统计"}];Object(d["d"])(s,"转化率",!0,"xlsx")}else if("chart5"==e){console.log("成本分析导出");var r=[{tHeader:["日期","牲畜类别","公斤奶饲料成本(元)"],filterVal:["日期","名称","准确率"],tableDatas:this.tab.chart5.table.list,sheetName:"成本分析"}];Object(d["d"])(r,"成本分析",!0,"xlsx")}},handleTable:function(e){"chart1"==e?(console.log("泌乳牛采食量表格"),this.tab.chart1.isTable=!0,this.tab.chart1.isChart=!1):"chart2"==e?(console.log("牛栏剩料率表格"),this.tab.chart2.isTable=!0,this.tab.chart2.isChart=!1):"chart3"==e?(console.log("混料时间统计表格"),this.tab.chart3.isTable=!0,this.tab.chart3.isChart=!1):"chart4"==e?(console.log("转化率表格"),this.tab.chart4.isTable=!0,this.tab.chart4.isChart=!1):"chart5"==e&&(console.log("成本分析表格"),this.tab.chart5.isTable=!0,this.tab.chart5.isChart=!1)},handleChart:function(e){"chart1"==e?(console.log("泌乳牛采食量图表"),this.tab.chart1.isTable=!1,this.tab.chart1.isChart=!0):"chart2"==e?(console.log("牛栏剩料率图表"),this.tab.chart2.isTable=!1,this.tab.chart2.isChart=!0):"chart3"==e?(console.log("混料时间统计图表"),this.tab.chart3.isTable=!1,this.tab.chart3.isChart=!0):"chart4"==e?(console.log("转化率图表"),this.tab.chart4.isTable=!1,this.tab.chart4.isChart=!0):"chart5"==e&&(console.log("成本分析图表"),this.tab.chart5.isTable=!1,this.tab.chart5.isChart=!0)},changeTab2Date:function(){this.getTab2List(),this.getTab2List2(),this.getTab2List3(),this.getTab2List4()},getTab2List:function(){var e=this;this.tab2.table.listLoading=!0,Object(n["d"])(this.tab2.table.getdataListParm).then((function(t){console.log("宾州筛分析table数据",t.data.list),null!==t.data.list?(e.tab2.table.list=t.data.list,e.tab2.table.total=t.data.total):e.tab2.table.list=[],setTimeout((function(){e.tab2.table.listLoading=!1}),100)}))},getTab2List2:function(){var e=this;this.tab2.table2.listLoading=!0,this.tab2.table2.getdataListParm.parammaps.date=this.tab2.table.getdataListParm.parammaps.date,Object(n["d"])(this.tab2.table2.getdataListParm).then((function(t){console.log("粪便筛分析table数据",t.data.list),null!==t.data.list?(e.tab2.table2.list=t.data.list,e.tab2.table2.total=t.data.total):e.tab2.table2.list=[],setTimeout((function(){e.tab2.table2.listLoading=!1}),100)}))},getTab2List3:function(){var e=this;this.tab2.table3.listLoading=!0,this.tab2.table3.getdataListParm.parammaps.date=this.tab2.table.getdataListParm.parammaps.date,Object(n["d"])(this.tab2.table3.getdataListParm).then((function(t){console.log("BCS评分table数据",t.data.list),null!==t.data.list?(e.tab2.table3.list=t.data.list,e.tab2.table3.total=t.data.total):e.tab2.table3.list=[],setTimeout((function(){e.tab2.table3.listLoading=!1}),100)}))},getTab2List4:function(){var e=this;this.tab2.table4.listLoading=!0,this.tab2.table4.getdataListParm.parammaps.date=this.tab2.table.getdataListParm.parammaps.date,Object(n["d"])(this.tab2.table4.getdataListParm).then((function(t){console.log("成本分析table数据",t.data.list),null!==t.data.list?(e.tab2.table4.list=t.data.list,e.tab2.table4.total=t.data.total):e.tab2.table4.list=[],setTimeout((function(){e.tab2.table4.listLoading=!1}),100)}))}}},h=u,g=(a("27f2"),a("2877")),f=Object(g["a"])(h,i,s,!1,null,"1c6f036c",null);t["default"]=f.exports},"7f86":function(e,t,a){"use strict";var i=a("5862"),s=a.n(i);s.a},"7fd9":function(e,t,a){"use strict";var i=a("0c9d"),s=a.n(i);s.a},"7ffb":function(e,t,a){"use strict";var i=a("7443"),s=a.n(i);s.a},"80c8":function(e,t,a){"use strict";var i=a("6272"),s=a.n(i);s.a},"81f0":function(e,t,a){"use strict";var i=a("3fc7"),s=a.n(i);s.a},8269:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card-component",staticStyle:{"margin-left":"8px"}},[a("div",{staticClass:"box-card-header",attrs:{slot:"header"},slot:"header"},[a("img",{attrs:{src:"https://wpimg.wallstcn.com/e7d23d71-cf19-4b90-a1cc-f56af8c0903d.png"}})]),a("div",{staticStyle:{position:"relative"}},[a("pan-thumb",{staticClass:"panThumb",attrs:{image:e.avatar}}),a("mallki",{attrs:{"class-name":"mallki-text",text:"vue-element-admin"}}),a("div",{staticClass:"progress-item",staticStyle:{"padding-top":"35px"}},[a("span",[e._v("Vue")]),a("el-progress",{attrs:{percentage:70}})],1),a("div",{staticClass:"progress-item"},[a("span",[e._v("JavaScript")]),a("el-progress",{attrs:{percentage:18}})],1),a("div",{staticClass:"progress-item"},[a("span",[e._v("Css")]),a("el-progress",{attrs:{percentage:12}})],1),a("div",{staticClass:"progress-item"},[a("span",[e._v("ESLint")]),a("el-progress",{attrs:{percentage:100,status:"success"}})],1)],1)])},s=[],r=a("be94"),l=a("2f62"),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pan-item",style:{zIndex:e.zIndex,height:e.height,width:e.width}},[a("div",{staticClass:"pan-info"},[a("div",{staticClass:"pan-info-roles-container"},[e._t("default")],2)]),a("img",{staticClass:"pan-thumb",attrs:{src:e.image}})])},o=[],c=(a("a9e3"),{name:"PanThumb",props:{image:{type:String,required:!0},zIndex:{type:Number,default:1},width:{type:String,default:"150px"},height:{type:String,default:"150px"}}}),d=c,m=(a("2452"),a("2877")),p=Object(m["a"])(d,n,o,!1,null,"0d3d578f",null),u=p.exports,h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{staticClass:"link--mallki",class:e.className,attrs:{href:"#"}},[e._v(" "+e._s(e.text)+" "),a("span",{attrs:{"data-letters":e.text}}),a("span",{attrs:{"data-letters":e.text}})])},g=[],f={props:{className:{type:String,default:""},text:{type:String,default:"vue-element-admin"}}},b=f,v=(a("8c05"),Object(m["a"])(b,h,g,!1,null,null,null)),w=v.exports,y={components:{PanThumb:u,Mallki:w},filters:{statusFilter:function(e){var t={success:"success",pending:"danger"};return t[e]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(r["a"])({},Object(l["b"])(["name","avatar","roles"]))},L=y,x=(a("7736"),a("50ce"),Object(m["a"])(L,i,s,!1,null,"5ef9ea86",null));t["default"]=x.exports},"835b":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"83d2":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-栏舍生产性能",use:"icon-栏舍生产性能-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-栏舍生产性能"><defs><style type="text/css"></style></defs><path d="M113.777778 910.222222h910.222222v113.777778H56.888889a56.888889 56.888889 0 0 1-56.888889-56.888889V0h113.777778v910.222222z" p-id="6425" fill="#ffffff" /><path d="M312.888889 341.333333A85.333333 85.333333 0 0 0 227.555556 426.666667v369.720889h170.666666V426.666667A85.333333 85.333333 0 0 0 312.888889 341.333333M625.777778 0a85.333333 85.333333 0 0 0-85.333334 85.333333V796.444444h170.666667V85.333333A85.333333 85.333333 0 0 0 625.777778 0M938.666667 262.485333a85.333333 85.333333 0 0 0-85.333334 85.333334V796.444444h170.666667V347.818667a85.333333 85.333333 0 0 0-85.333333-85.333334" p-id="6426" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"83d6":function(e,t){e.exports={title:"阳光餐饮后台管理系统",fixedHeader:!0,tagsView:!0,sidebarLogo:!0}},"84a2":function(e,t,a){"use strict";var i=a("6bbe"),s=a.n(i);s.a},"84f1":function(e,t,a){},"85e2":function(e,t,a){"use strict";var i=a("adf0"),s=a.n(i);s.a},"85ea":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"服务单号"},model:{value:e.table.getdataListParm.parammaps.serviceCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"serviceCode",t)},expression:"table.getdataListParm.parammaps.serviceCode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"客户名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.customerId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerId",t)},expression:"table.getdataListParm.parammaps.customerId"}},e._l(e.customerNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"服务人员",clearable:""},model:{value:e.table.getdataListParm.parammaps.employeeId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"employeeId",t)},expression:"table.getdataListParm.parammaps.employeeId"}},e._l(e.employeeNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"服务类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.servicetypeId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"servicetypeId",t)},expression:"table.getdataListParm.parammaps.servicetypeId"}},e._l(e.servicetypeNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"服务单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serviceCode))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"服务日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serviceDate))])]}}])}),a("el-table-column",{attrs:{label:"服务人员","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeeName))])]}}])}),a("el-table-column",{attrs:{label:"服务类型","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.servicetypeName))])]}}])}),a("el-table-column",{attrs:{label:"接待人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"接待人电话","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveTel))])]}}])}),a("el-table-column",{attrs:{label:"服务结果","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serviceResult))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerId"}},[a("el-select",{ref:"customerId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择客户",disabled:"see"==e.create.dialogStatus},on:{change:e.changeCustomer},model:{value:e.create.temp.customerId,callback:function(t){e.$set(e.create.temp,"customerId",t)},expression:"create.temp.customerId"}},e._l(e.customerNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务单号:",prop:"serviceCode"}},[a("el-input",{ref:"serviceCode",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入服务单号",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.serviceCode,callback:function(t){e.$set(e.create.temp,"serviceCode",t)},expression:"create.temp.serviceCode"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务日期:",prop:"serviceDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.serviceDate,callback:function(t){e.$set(e.create.temp,"serviceDate",t)},expression:"create.temp.serviceDate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务人员:",prop:"employeeId"}},[a("el-select",{ref:"employeeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择服务人员",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.employeeId,callback:function(t){e.$set(e.create.temp,"employeeId",t)},expression:"create.temp.employeeId"}},e._l(e.employeeNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务类型:",prop:"servicetypeId"}},[a("el-select",{ref:"servicetypeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择服务类型",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.servicetypeId,callback:function(t){e.$set(e.create.temp,"servicetypeId",t)},expression:"create.temp.servicetypeId"}},e._l(e.servicetypeNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"接待人:",prop:"receiverId"}},[a("el-select",{ref:"receiverId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择接待人","allow-create":"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceiver},model:{value:e.create.temp.receiverId,callback:function(t){e.$set(e.create.temp,"receiverId",t)},expression:"create.temp.receiverId"}},e._l(e.create.receiverNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"接待人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入接待人电话",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.receiverTel,callback:function(t){e.$set(e.create.temp,"receiverTel",t)},expression:"create.temp.receiverTel"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务描述:",prop:"describe"}},[a("el-input",{ref:"describe",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入服务描述",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.describe,callback:function(t){e.$set(e.create.temp,"describe",t)},expression:"create.temp.describe"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务结果:",prop:"serviceResult"}},[a("el-input",{ref:"serviceResult",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入服务结果",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.serviceResult,callback:function(t){e.$set(e.create.temp,"serviceResult",t)},expression:"create.temp.serviceResult"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"拜访记录关联:",prop:"visitId"}},[a("el-select",{ref:"visitId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择拜访记录 ",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.visitId,callback:function(t){e.$set(e.create.temp,"visitId",t)},expression:"create.temp.visitId"}},e._l(e.create.visitNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"回访记录关联:",prop:"telvisitId"}},[a("el-select",{ref:"telvisitId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选回访记录关联 ",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.telvisitId,callback:function(t){e.$set(e.create.temp,"telvisitId",t)},expression:"create.temp.telvisitId"}},e._l(e.create.telvisitNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],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",staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"现场照片:",prop:"scenePhoto1"}},[a("el-upload",{staticClass:"uploadPic",attrs:{id:"uploadPic","list-type":"picture-card",action:e.uploadImageUrl,limit:3,headers:e.headers,"file-list":e.fileList,"on-preview":e.handlePicPreview,"auto-upload":!0,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,i){return e.handlePicSuccess(t,a,i)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),a("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务单照片:",prop:"serviceCodePhoto"}},[a("el-upload",{attrs:{id:"uploadPic2","list-type":"picture-card",action:e.uploadImageUrl,limit:1,headers:e.headers,"file-list":e.fileList2,"on-preview":e.handlePicPreview2,"auto-upload":!0,"on-change":function(t,a){return e.handlePicChange2(t,a)},"on-success":function(t,a,i){return e.handlePicSuccess2(t,a,i)},"on-remove":function(t,a){return e.handlePicRemove2(t,a)}}},[a("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),a("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(t){e.dialogVisible2=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1)],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"备货关联:",prop:"stockupId"}},[a("el-select",{ref:"stockupId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择备货关联",disabled:"see"==e.create.dialogStatus},on:{change:e.changePostalName},model:{value:e.create.temp.stockupId,callback:function(t){e.$set(e.create.temp,"stockupId",t)},expression:"create.temp.stockupId"}},e._l(e.create.postalNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._l(e.tableArrList,(function(t,i){return a("div",[a("el-row",[a("el-divider"),e._v(" 备货单号:"+e._s(t.title)+" "),a("el-button",{staticClass:"miniDanger",on:{click:function(a){return e.handleRowDeleteCode(t,i)}}},[e._v("删除")])],1),a("el-row",[a("el-table",{key:t.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{data:t.tablelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.nums))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.nums,callback:function(a){e.$set(t.row,"nums",a)},expression:"scope.row.nums"}}):e._e()]}}],null,!0)}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}],null,!0)}),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"110","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return["update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(s,i)}}},[e._v("删除")]):e._e()]}}],null,!0)}):e._e()],1)],1)],1)}))],2),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("c740"),a("4160"),a("caad"),a("c975"),a("d81d"),a("a434"),a("b0c0"),a("d3b7"),a("ac1f"),a("25f0"),a("2532"),a("1276"),a("159b"),a("2934")),l=(a("a78e"),a("ed08")),n=a("5f87"),o=a("333d"),c=a("5c96"),d={name:"SiteService",components:{Pagination:o["a"]},data:function(){return{disabled:!1,dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,uploadImageUrl:"http://192.168.1.90:8082/authdata/uploaderimage",headers:{optname:"insertcustompic",id:1,token:Object(n["a"])()},fileList:[],fileList2:[],isRoleEdit:[],requestParams:[{name:"getCustomerSelect",offset:0,pagecount:0,parammaps:{}},{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getEmployeesSelect",offset:0,pagecount:0,parammaps:{}},{name:"getDictListSelect4",offset:0,pagecount:0,parammaps:{pid:"61"}}],customerNameList:[],groupNameList:[],employeeNameList:[],servicetypeNameList:[],table:{getdataListParm:{name:"getService",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{serviceCode:"",customerId:"",groupId:"",employeeId:"",servicetypeId:"",inputDatetime:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",serviceCode:"",serviceDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),employeeId:"",servicetypeId:"",receiverId:"",receiverTel:"",receiverName:"",describe:"",serviceResult:"",visitId:"",telvisitId:"",stockupIds:"",remark:"",id:"",modifyName:"add",receiverChoose:"true",scenePhoto1:-1,scenePhoto2:-1,scenePhoto3:-1,serviceCodePhoto:-1,picname1:"",picname2:"",picname3:"",picname4:""},rules:{customerId:[{required:!0,message:"必填",trigger:"blur"}],serviceCode:[{required:!0,message:"必填",trigger:"blur"}],serviceDate:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],servicetypeId:[{required:!0,message:"必填",trigger:"blur"}],serviceResult:[{required:!0,message:"必填",trigger:"blur"}],describe:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],scenePhoto1:[{required:!0,message:"必填",trigger:"blur"}],serviceCodePhoto:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm0:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},getdataListParm01:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm1:{name:"getStockGoodsByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},postalNameList:[],getdataListParm3:{name:"getStockGoodsBySid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{stockupId:""}},getdataListParm4:{name:"getServiceGoodsByServiceId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{serviceId:""}},getdataListParm5:{name:"getVisitByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},visitNameList:[],getdataListParm6:{name:"getTelvisitByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},telvisitNameList:[]},textMap:{create:"新增",see:"查看",update:"编辑"},stockupIdArr:[],tableArrList:[],requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handlePicChange:function(e,t){},handlePicSuccess:function(e,t,a){console.log("文件上传成功时的钩子response",e),console.log("文件上传成功时的钩子file",t),console.log("fileList",a),3==a.length?document.getElementById("uploadPic").lastChild.style.display="none":document.getElementById("uploadPic").lastChild.style.display="inline-block",void 0===this.create.temp.scenePhoto1||-1==this.create.temp.scenePhoto1?this.create.temp.scenePhoto1=e.execresult.LastInsertId:void 0===this.create.temp.scenePhoto2||-1==this.create.temp.scenePhoto2?this.create.temp.scenePhoto2=e.execresult.LastInsertId:void 0!==this.create.temp.scenePhoto3&&-1!=this.create.temp.scenePhoto3||(this.create.temp.scenePhoto3=e.execresult.LastInsertId),console.log("this.picArr1",this.picArr1)},handlePicRemove:function(e,t){console.log(e,"文件列表移除文件时的钩子file---"),console.log(t,"文件列表移除文件时的钩子fileList--"),3==t.length?document.getElementById("uploadPic").lastChild.style.display="none":document.getElementById("uploadPic").lastChild.style.display="inline-block",this.create.temp.scenePhoto1=-1,this.create.temp.scenePhoto2=-1,this.create.temp.scenePhoto3=-1,3==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId,this.create.temp.scenePhoto3=t[2].response.execresult.LastInsertId):2==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId):1==t.length&&(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId),console.log(this.create.temp)},handlePicPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handlePicChange2:function(e,t){},handlePicSuccess2:function(e,t,a){console.log("文件上传成功时的钩子response",e),console.log("文件上传成功时的钩子file",t),console.log("fileList",a),1==a.length?document.getElementById("uploadPic2").lastChild.style.display="none":document.getElementById("uploadPic2").lastChild.style.display="inline-block",this.create.temp.serviceCodePhoto=e.execresult.LastInsertId,console.log("this.picArr1",this.picArr1)},handlePicRemove2:function(e,t){console.log(e,"文件列表移除文件时的钩子file---"),console.log(t,"文件列表移除文件时的钩子fileList--"),1==t.length?document.getElementById("uploadPic2").lastChild.style.display="none":document.getElementById("uploadPic2").lastChild.style.display="inline-block",this.create.temp.serviceCodePhoto=t[0].response.execresult.LastInsertId},getButtons:function(){var e="siteService",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.customerNameList=t.data.getCustomerSelect.list,console.log("客户名称下拉框",e.houseNameList),e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),e.employeeNameList=t.data.getEmployeesSelect.list,console.log("服务人员下拉框",e.employeeNameList),e.servicetypeNameList=t.data.getDictListSelect4.list,console.log("服务类型下拉框",e.servicetypeNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(l["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(l["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.serviceCode="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.employeeId="",this.table.getdataListParm.parammaps.servicetypeId="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",serviceCode:"",serviceDate:Object(l["e"])(new Date,"{y}-{m}-{d}"),employeeId:"",servicetypeId:"",receiverId:"",receiverTel:"",receiverName:"",describe:"",serviceResult:"",visitId:"",telvisitId:"",stockupIds:"",remark:"",id:"",modifyName:"add",receiverChoose:"true",scenePhoto1:-1,scenePhoto2:-1,scenePhoto3:-1,serviceCodePhoto:-1,picname1:"",picname2:"",picname3:"",picname4:""},this.stockupIdArr=[],this.tableArrList=[],this.fileList=[],this.fileList2=[],this.create.postalNameList=[],document.getElementById("uploadPic").lastChild.style.display="inline-block",document.getElementById("uploadPic2").lastChild.style.display="inline-block"},changeCustomer:function(e){console.log(e),this.create.temp.stockupId="",this.tableArrList=[],this.create.getdataListParm0.parammaps.customerId=e,this.getReceiverNameList(),this.create.getdataListParm2.parammaps.id=e,this.getGroupNameId(),this.create.getdataListParm1.parammaps.customerId=e,this.getPostalNameList(),this.create.getdataListParm5.parammaps.customerId=e,this.getVisitNameList(),this.create.getdataListParm5.parammaps.customerId=e,this.getTelvisitNameList()},getVisitNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm5).then((function(t){null!==t.data.list?(e.create.visitNameList=t.data.list,console.log("拜访数据",t.data.list)):e.create.visitNameList=[]}))},getTelvisitNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm6).then((function(t){null!==t.data.list?(e.create.telvisitNameList=t.data.list,console.log("回访数据",t.data.list)):e.create.telvisitNameList=[]}))},getReceiverNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm0).then((function(t){null!==t.data.list?(e.create.receiverNameList=t.data.list,console.log("接待人数据",t.data.list)):e.create.receiverNameList=[]}))},changeReceiver:function(e){this.create.getdataListParm01.parammaps.id=e,this.create.temp.receiverName=this.create.receiverNameList.find((function(t){return t.id===e})).name,this.getTelephoneName()},getTelephoneName:function(){var e=this;Object(r["d"])(this.create.getdataListParm01).then((function(t){null!==t.data.list&&(e.create.temp.receiverTel=t.data.list[0].telephone,console.log("接待人电话",t.data.list))}))},getPostalNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm1).then((function(t){null!==t.data.list?(e.create.postalNameList=t.data.list,console.log("关联接收数据",t.data.list)):e.create.postalNameList=[]}))},getGroupNameId:function(){var e=this;Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},changePostalName:function(e){console.log("发货详情ID ",e),console.log("发货详情ID是否已存在 ",this.stockupIdArr.includes(e)),console.log("stockupIdArr===>",this.stockupIdArr),this.stockupIdArr.includes(e)||(this.stockupIdArr.push(e),this.create.getdataListParm3.parammaps.stockupId=e,this.getReceProduct())},handleRowDeleteCode:function(e,t){console.log("小表格中的删除单号",e),this.tableArrList.splice(t,1),this.stockupIdArr.splice(this.stockupIdArr.indexOf(e.stockupId),1),console.log("stockupIdArr===>",this.stockupIdArr)},handleRowDelete2:function(e,t){console.log("小表格中的删除",e,t);var a=this.tableArrList[t].tablelist.findIndex((function(t){return t.id==e.id}));this.tableArrList[t].tablelist,this.tableArrList[t].tablelist.splice(a,1)},handleCreate:function(){console.log("点击了新增"),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.resetTemp()},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.stockupIds=e.stockupIdArr.toString();var a=[];e.tableArrList.forEach((function(e){e.tablelist.forEach((function(e){a.push(e)}))}));var i=e.create.temp.customerId;if(a.map((function(e){return e.customerId=i})),a.map((function(e){return e.serviceId=""})),console.log("点击了新增保存this.create.temp",e.create.temp),console.log("点击了新增保存this.tableArrList",e.tableArrList),console.log("点击了新增保存sendTableArr",a),"-1"==e.create.temp.scenePhoto1||"-1"==e.create.temp.serviceCodePhoto)var s=!0;else s=!1;if(s)e.$message({type:"error",message:"请添加现场照片或服务单照片!",duration:2e3});else{e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="@insertContactsNew.LastInsertId";var l={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"insertService",type:"e",parammaps:e.create.temp},{name:"insertServiceGoods",resultmaps:{list:a},children:[{name:"insertServiceGoods",type:"e",parammaps:{serviceId:"@insertServiceGoods.serviceId",customerId:"@insertServiceGoods.customerId",productsId:"@insertServiceGoods.productsId",nums:"@insertServiceGoods.nums",remark:"@insertServiceGoods.remark",stockupId:"@insertServiceGoods.stockupId"}}]}]};console.log("新增保存发送参数",l),Object(r["b"])(l).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}}))},handleSee:function(e){if(this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.resetTemp(),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,console.log("点击了查看"),this.create.getdataListParm0.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getPostalNameList(),""!==e.stockupIds){this.stockupIdArr=e.stockupIds.split(",");var t=[];this.stockupIdArr.forEach((function(e){t.push(parseInt(e))})),this.stockupIdArr=t,console.log("stockupIdArr",this.stockupIdArr),this.create.getdataListParm4.parammaps.serviceId=e.id,this.getReceProduct2()}var a=[],i=[],s=[];void 0==this.create.temp.picname1&&void 0==this.create.temp.picname2&&void 0==this.create.temp.picname3?a.push():void 0==this.create.temp.picname1?(a.push("http://192.168.1.90:8082/"+this.create.temp.picname2,"http://192.168.1.90:8082/"+this.create.temp.picname3),i.push(this.create.temp.scenePhoto2,this.create.temp.scenePhoto3)):void 0==this.create.temp.picname2&&void 0==this.create.temp.picname3?(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1),i.push(this.create.temp.scenePhoto1)):void 0==this.create.temp.picname2?(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1,"http://192.168.1.90:8082/"+this.create.temp.picname3),i.push(this.create.temp.scenePhoto1,this.create.temp.scenePhoto3)):void 0==this.create.temp.picname3?(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1,"http://192.168.1.90:8082/"+this.create.temp.picname2),i.push(this.create.temp.scenePhoto1,this.create.temp.scenePhoto2)):(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1,"http://192.168.1.90:8082/"+this.create.temp.picname2,"http://192.168.1.90:8082/"+this.create.temp.picname3),i.push(this.create.temp.scenePhoto1,this.create.temp.scenePhoto2,this.create.temp.scenePhoto3)),console.log("urlArray",a),console.log("urlArrayId",i);for(var r=0;r<a.length;r++){var l={url:"",response:{execresult:{LastInsertId:""}}};l.url=a[r],l.response.execresult.LastInsertId=i[r],s.push(l)}this.fileList=s,console.log("fileList",s);var n=[],o=[],c=[];void 0==this.create.temp.picname4?n.push():(n.push("http://192.168.1.90:8082/"+this.create.temp.picname4),o.push(this.create.temp.serviceCodePhoto)),console.log("urlArray2",n),console.log("urlArrayId2",o);for(var d=0;d<n.length;d++){var m={url:"",response:{execresult:{LastInsertId:""}}};m.url=n[d],m.response.execresult.LastInsertId=o[d],c.push(m)}this.fileList2=c,console.log("fileList2",c)},handleUpdate:function(e){if(console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.getdataListParm0.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getPostalNameList(),""!==e.stockupIds){this.stockupIdArr=e.stockupIds.split(",");var t=[];this.stockupIdArr.forEach((function(e){t.push(parseInt(e))})),this.stockupIdArr=t,console.log("stockupIdArr",this.stockupIdArr),this.create.getdataListParm4.parammaps.serviceId=e.id,this.getReceProduct2()}var a=[],i=[],s=[];void 0==this.create.temp.picname1&&void 0==this.create.temp.picname2&&void 0==this.create.temp.picname3?a.push():void 0==this.create.temp.picname1?(a.push("http://192.168.1.90:8082/"+this.create.temp.picname2,"http://192.168.1.90:8082/"+this.create.temp.picname3),i.push(this.create.temp.scenePhoto2,this.create.temp.scenePhoto3)):void 0==this.create.temp.picname2&&void 0==this.create.temp.picname3?(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1),i.push(this.create.temp.scenePhoto1)):void 0==this.create.temp.picname2?(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1,"http://192.168.1.90:8082/"+this.create.temp.picname3),i.push(this.create.temp.scenePhoto1,this.create.temp.scenePhoto3)):void 0==this.create.temp.picname3?(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1,"http://192.168.1.90:8082/"+this.create.temp.picname2),i.push(this.create.temp.scenePhoto1,this.create.temp.scenePhoto2)):(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1,"http://192.168.1.90:8082/"+this.create.temp.picname2,"http://192.168.1.90:8082/"+this.create.temp.picname3),i.push(this.create.temp.scenePhoto1,this.create.temp.scenePhoto2,this.create.temp.scenePhoto3)),console.log("urlArray",a),console.log("urlArrayId",i);for(var r=0;r<a.length;r++){var l={url:"",response:{execresult:{LastInsertId:""}}};l.url=a[r],l.response.execresult.LastInsertId=i[r],s.push(l)}this.fileList=s,console.log("fileList",s);var n=[],o=[],c=[];void 0==this.create.temp.picname4?n.push():(n.push("http://192.168.1.90:8082/"+this.create.temp.picname4),o.push(this.create.temp.serviceCodePhoto)),console.log("urlArray2",n),console.log("urlArrayId2",o);for(var d=0;d<n.length;d++){var m={url:"",response:{execresult:{LastInsertId:""}}};m.url=n[d],m.response.execresult.LastInsertId=o[d],c.push(m)}this.fileList2=c,console.log("fileList2",c),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},getReceProduct:function(){var e=this;Object(r["d"])(this.create.getdataListParm3).then((function(t){if(console.log("新增弹窗中的小表格",t.data.list),null!==t.data.list){var a={};a.title=t.data.list[0].stockupCode,a.stockupId=t.data.list[0].stockupId,a.tablelist=t.data.list,e.tableArrList.push(a)}}))},getReceProduct2:function(){var e=this;Object(r["d"])(this.create.getdataListParm4).then((function(t){if(console.log("查看和编辑中的小表格",t.data.list),console.log("查看和编辑的当前小表格ID",e.stockupIdArr),null!==t.data.list){var a=[];e.stockupIdArr.forEach((function(e){var i={title:"",stockupId:e,tablelist:[]};t.data.list.forEach((function(t){e==t.stockupId&&i.tablelist.push(t)})),a.push(i)})),console.log(a),a.map((function(e){return e.title=e.tablelist[0].stockupCode})),e.tableArrList=a}}))},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.stockupIds=e.stockupIdArr.toString();var a=[];e.tableArrList.forEach((function(e){e.tablelist.forEach((function(e){a.push(e)}))}));var i=e.create.temp.customerId;a.map((function(e){return e.customerId=i}));var s=e.create.temp.id;if(a.map((function(e){return e.serviceId=s})),console.log("点击了编辑保存this.create.temp",e.create.temp),console.log("点击了编辑保存this.tableArrList",e.tableArrList),console.log("点击了编辑保存sendTableArr",a),"-1"==e.create.temp.scenePhoto1||"-1"==e.create.temp.serviceCodePhoto)var l=!0;else l=!1;if(l)e.$message({type:"error",message:"货品数量不可为空",duration:2e3});else{e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!"));var n={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateService",type:"e",parammaps:e.create.temp},{name:"deleteServiceGoodsByServiceId",type:"e",parammaps:{serviceId:e.create.temp.id}},{name:"insertServiceGoods",resultmaps:{list:a},children:[{name:"insertServiceGoods",type:"e",parammaps:{serviceId:"@insertServiceGoods.serviceId",customerId:"@insertServiceGoods.customerId",productsId:"@insertServiceGoods.productsId",nums:"@insertServiceGoods.nums",remark:"@insertServiceGoods.remark",stockupId:"@insertServiceGoods.stockupId"}}]}]};console.log("编辑保存发送参数",n),Object(r["b"])(n).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}}))},handleRowDelete:function(e){var t=this;c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delService",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},m=d,p=(a("7fd9"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"4a68b80c",null);t["default"]=u.exports},8642:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-饲料合同",use:"icon-饲料合同-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲料合同"><defs><style type="text/css"></style></defs><path d="M694.02624 420.0448c-142.619989 0-262.71744 116.347904-262.71744 262.726656 0.000341 146.374997 116.346539 262.722901 262.71744 262.722901 146.376021 0 262.71744-116.347904 262.71744-262.722901 3.755349-146.379093-116.346539-262.726656-262.71744-262.726656l0 0zm0 480.413013c-120.097109 0-217.676117-97.585493-217.676117-217.685333 0.000341-120.104619 97.579008-217.685675 217.676117-217.685675 120.102571 0 217.680896 97.585835 217.680896 217.685675 0 120.09984-97.578667 217.685333-217.680896 217.685333z" p-id="95202" fill="#ffffff" /><path d="M209.876992 262.415019 585.188693 262.415019 585.188693 322.46272 209.876992 322.46272Z" p-id="95203" fill="#ffffff" /><path d="M209.876992 416.293547 510.12608 416.293547 510.12608 476.34432 209.876992 476.34432Z" p-id="95204" fill="#ffffff" /><path d="M209.876992 592.6912 360.000853 592.6912 360.000853 652.73856 209.876992 652.73856Z" p-id="95205" fill="#ffffff" /><path d="M393.775787 870.43072l-262.716075 0 0-731.869867 604.25216 0 0 210.178048c15.010133 0 48.786773 3.751936 63.801344 3.751936l0.000341-243.951616c0-15.019691-15.014912-30.030507-30.025387-30.030507l-671.798613 0c-15.019008 0-30.030165 15.011499-30.030165 30.030848l0 795.671893c0 15.014912 15.011157 30.021291 30.030165 30.021291l334.021973 0c-15.009792-18.761728-26.273792-48.787797-37.533013-63.799296l0 0z" p-id="95206" fill="#ffffff" /><path d="M844.148053 633.97888c-3.746816-11.259221-11.254443-15.009792-22.518443-18.766507l-71.309653-11.254784-33.77152-63.802709c-7.508651-18.768213-37.534379-18.768213-48.796672 0l-33.772544 63.802709-71.314773 11.254784c-11.254443 0-18.766848 7.507627-22.518443 18.766507-3.746133 11.259563 0 18.767189 7.508309 26.27584l52.537685 48.792576-7.502165 75.062272c0 11.254784 3.756373 18.767189 11.25888 26.274816 7.507627 7.498411 18.766507 7.498752 30.025387 3.746475l63.803051-33.77664 63.801685 33.77664c3.751595 3.751936 7.507285 3.752277 11.258539 3.752277 7.507968-0.000341 11.259221-3.752277 15.015936-3.752277 7.507285-7.502165 11.257856-15.009792 11.257856-26.269355l-11.257173-71.31136 52.542123-48.788139c3.751936-11.264 3.751936-22.523563 3.751936-33.783125l0 0zm-108.838229 52.545195c-7.507285 7.507285-7.507285 15.014571-7.507285 22.523563l3.755349 33.77664-26.273451-18.766848c-3.751936-3.755691-7.502507-3.755691-11.259221-3.755691-3.751936 0-7.502507 0-11.259221 3.755691l-30.020267 15.011499 3.751936-30.021632c0-7.508651-0.000341-18.766507-7.508992-22.523221l-22.516736-22.519125 33.780736-3.750229c7.503872 0 15.010816-7.508651 18.766507-15.016277l15.011157-30.026069 15.009451 30.026069c3.756715 7.502507 11.264 11.259563 18.767531 15.016277l33.776299 3.750229-26.273792 22.519125z" p-id="95207" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"86ac":function(e,t,a){},"86e0":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-宾州筛",use:"icon-宾州筛-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-宾州筛"><defs><style type="text/css"></style></defs><path d="M517.123115 1005.607512l-129.180644-73.057956a98.657779 98.657779 0 0 1-51.23903-87.551394v-415.898659a20.67678 20.67678 0 0 0-7.876868-15.753737L30.332639 170.42314l-3.229516-3.938434C-0.780991 138.167363-7.318792 96.104885 8.316792 59.280525A95.507031 95.507031 0 0 1 97.758634 0.007089h805.567346c38.990499 0 74.042564 23.03984 90.190145 59.234052 16.068812 36.076058 9.176552 78.374842-17.447264 107.282949l-3.938434 3.938434-302.471752 245.443224a21.228161 21.228161 0 0 0-7.089182 15.793122v485.727099a97.870092 97.870092 0 0 1-98.027629 100.03623c-16.423271 0.118153-32.689004-3.938434-47.458133-11.815303zM81.532285 111.189089L378.884072 352.103113c23.315531 19.062022 37.021282 47.418749 37.021283 77.62654v415.898659c0 7.325488 3.229516 14.572207 9.727932 17.841107l129.14126 71.718888a21.818926 21.818926 0 0 0 20.086015 0 20.794933 20.794933 0 0 0 9.727932-17.722954V432.407788c0-30.28656 13.036217-58.564518 36.391133-77.665924l297.903168-243.434622a20.598011 20.598011 0 0 0 1.969218-21.110008 19.49525 19.49525 0 0 0-17.565417-11.185153H97.837403c-7.7981 0-14.296516 3.938434-17.526033 11.185153a20.322321 20.322321 0 0 0 1.299683 21.110008v-0.078769zM753.035328 524.488381h211.887764a37.17882 37.17882 0 0 0 26.860122-11.736534 38.36035 38.36035 0 0 0 10.358082-27.726577c0-21.740157-16.738346-39.463111-37.218204-39.463112h-211.887764c-20.479858 0-37.218204 17.722954-37.218204 39.463112a38.557272 38.557272 0 0 0 37.218204 39.463111z m211.887764 151.62972h-211.887764a38.557272 38.557272 0 0 1-37.218204-39.423727c0-21.818926 16.738346-39.54188 37.218204-39.54188h211.887764c20.479858 0 37.218204 17.801723 37.218204 39.54188a38.517887 38.517887 0 0 1-10.358082 27.765961 37.218204 37.218204 0 0 1-26.860122 11.69715z m-211.887764 151.708488h211.887764a37.572663 37.572663 0 0 0 26.781353-11.854687 38.754193 38.754193 0 0 0 10.436851-27.687193c0-21.661388-16.738346-39.463111-37.218204-39.463112h-211.887764c-20.479858 0-37.218204 17.801723-37.218204 39.463112-0.393843 21.346314 16.226349 38.990499 37.218204 39.54188z" fill="#ffffff" p-id="17621" /></symbol>'});l.a.add(n);t["default"]=n},"88eb":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"驾驶员名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.drivername,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"drivername",t)},expression:"table.getdataListParm.parammaps.drivername"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"驾驶员编号",clearable:""},model:{value:e.table.getdataListParm.parammaps.drivercode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"drivercode",t)},expression:"table.getdataListParm.parammaps.drivercode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.drivercode))]):e._e(),t.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:t.row.drivercode,callback:function(a){e.$set(t.row,"drivercode",a)},expression:"scope.row.drivercode"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"驾驶员名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.drivername))]):e._e(),t.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:t.row.drivername,callback:function(a){e.$set(t.row,"drivername",a)},expression:"scope.row.drivername"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"Driver",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getDriverList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),enable:"",drivername:"",drivercode:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},methods:{getButtons:function(){var e="Driver",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.drivername="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.drivercode="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,drivercode:"",drivername:""})},createData:function(e){var t=this;return console.log("点击了新增保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.drivercode=e.drivercode,this.table.temp.drivername=e.drivername,this.table.temp.enable=e.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(){t.isokDisable=!1}),1e3),this.requestParam.name="insertDriver",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},updateData:function(e){var t=this;return console.log("点击了编辑保存",e),this.table.temp.pastureid=e.pastureid,this.table.temp.drivercode=e.drivercode,this.table.temp.drivername=e.drivername,this.table.temp.enable=e.enable,this.table.temp.id=e.id,console.log(this.table.temp.drivercode),console.log(this.table.temp.drivername),""==this.table.temp.drivercode&&""==this.table.temp.drivername?(this.$message({type:"error",message:"驾驶员编号/驾驶员名称不能为空",duration:2e3}),!1):void 0==this.table.temp.drivercode||""==this.table.temp.drivercode?(this.$message({type:"error",message:"驾驶员编号不能为空",duration:2e3}),!1):void 0==this.table.temp.drivername||""==this.table.temp.drivername?(this.$message({type:"error",message:"驾驶员名称不能为空",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateDriver",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteDriver",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择驾驶员信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteDriver",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},m=d,p=(a("9d15"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"035a1fa4",null);t["default"]=u.exports},"88fe":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form-item",{attrs:{label:"排序"}},[a("draggable",{staticStyle:{display:"inline-block"},attrs:{group:{name:"orderBy",pull:!1,put:!1}},model:{value:e.orderByStrs,callback:function(t){e.orderByStrs=t},expression:"orderByStrs"}},[e._l(e.orderByStrs,(function(t,i){return a("el-tag",{key:i,staticStyle:{display:"none"},attrs:{closable:"",size:"small"},on:{close:e.handleCloseOrderBy}},[e._v(" "+e._s(t)+" ")])})),e._l(e.orderByStrs1,(function(t,i){return a("el-tag",{key:i,attrs:{closable:"",size:"small"},on:{close:e.handleCloseOrderBy}},[e._v(" "+e._s(t)+" ")])}))],2),a("el-cascader",{staticStyle:{width:"150px"},attrs:{options:e.orderByOption,disabled:0===e.orderByOption.length,size:"mini",placeholder:e.$t("chart.selectOrderBy")},on:{change:e.handleOrderByChange},model:{value:e.orderBy,callback:function(t){e.orderBy=t},expression:"orderBy"}})],1)},s=[],r=(a("99af"),a("c740"),a("4160"),a("c975"),a("d81d"),a("a434"),a("ac1f"),a("1276"),a("159b"),a("310e")),l=a.n(r),n=a("3537"),o={components:{draggable:l.a},props:{value:{required:!0,type:Array}},data:function(){return{orderBy:[],orderBy1:[],orderByStrs1:[]}},computed:{allSelected:function(){return n["a"].state.caculCols.concat(n["a"].state.dimensions)},orderByStrs:{set:function(e){this.$emit("input",e)},get:function(){return this.value}},orderByOption:function(){return this.allSelected.map((function(e){return{value:e.Column,label:e.Comment,children:[{value:"desc",label:"降序"},{value:"asc",label:"正序"}]}}))}},watch:{"store.state.dimensions":function(e){this.watchHandler(e)},"store.state.caculCols":function(e){this.watchHandler(e)}},methods:{watchHandler:function(e){var t=this;console.log("cols",e),this.orderByStrs.forEach((function(a,i){console.log("orderByStr",a);var s=a.split(" ")[0];console.log("colName",s),e.findIndex((function(e){return e.Column===s}))||t.orderByStrs.splice(i,1)}))},handleOrderByChange:function(e){console.log("handleOrderByChange:",e),console.log("orderBy:",this.orderBy),console.log("orderByOption:",this.orderByOption);var t="";this.orderByOption.forEach((function(a,i){a.value==e[0]&&(t=a.label)})),console.log("china_value:",t),this.orderBy=[];var a=this.orderByStrs.findIndex((function(t){return t.indexOf(e[0])>=0}));if(a>=0?this.orderByStrs.splice(a,1,"".concat(e[0]," ").concat(e[1])):this.orderByStrs.push("".concat(e[0]," ").concat(e[1])),this.orderBy1=[],"desc"==e[1])var i="降序";else i="正序";var s=this.orderByStrs1.findIndex((function(e){return e.indexOf(t)>=0}));s>=0?this.orderByStrs1.splice(s,1,"".concat(t," ").concat(i)):this.orderByStrs1.push("".concat(t," ").concat(i)),console.log("handleOrderByChange:",e),console.log("this.orderByStrs",this.orderByStrs),console.log("this.orderByStrs1",this.orderByStrs1)},handleCloseOrderBy:function(e){this.orderByStrs.splice(this.orderByStrs.indexOf(e),1),this.orderByStrs1.splice(this.orderByStrs1.indexOf(e),1)}}},c=o,d=a("2877"),m=Object(d["a"])(c,i,s,!1,null,null,null);t["default"]=m.exports},"890a":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"896f":function(e,t,a){},"897d":function(e,t,a){"use strict";var i=a("ef26"),s=a.n(i);s.a},"89b8":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._v(" 标签管理 ")])},s=[],r=(a("2934"),a("a78e"),a("ed08"),a("5c96"),a("333d")),l={name:"LabelManagement",components:{Pagination:r["a"]},data:function(){return{rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{}},n=l,o=(a("8dc4"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"4a47f535",null);t["default"]=c.exports},"8a4c":function(e,t,a){},"8c05":function(e,t,a){"use strict";var i=a("3014"),s=a.n(i);s.a},"8c8c":function(e,t,a){"use strict";var i=a("6ba8"),s=a.n(i);s.a},"8cdb":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[e._m(0),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),a("div",{staticClass:"bullshit__info"},[e._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[e._v("Back to home")])])])])},s=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pic-404"},[i("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),i("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])}],r={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=r,n=(a("a87e"),a("2877")),o=Object(n["a"])(l,i,s,!1,null,"9671e528",null);t["default"]=o.exports},"8d29":function(e,t,a){"use strict";var i=a("ed1c"),s=a.n(i);s.a},"8d41":function(e,t,a){},"8d8b":function(e,t,a){"use strict";a.r(t);var i=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-3",type:"success"}})],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!0,null,null,null);t["default"]=n.exports},"8dc4":function(e,t,a){"use strict";var i=a("5a49"),s=a.n(i);s.a},"8de3":function(e,t,a){"use strict";var i=a("228b"),s=a.n(i);s.a},"8e8d":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"8f12":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-撒料计划",use:"icon-撒料计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-撒料计划"><defs><style type="text/css"></style></defs><path d="M534.804 891.967h-57.879c-22.502 0-27.334 4.822-27.334 27.326v59.48c0 22.514 4.823 27.336 27.334 27.336h57.879c22.514 0 27.334-4.822 27.334-27.336V919.3c-1.603-22.521-6.424-27.333-27.334-27.333zM341.896 891.967h-57.875c-22.502 0-27.333 4.822-27.333 27.326v59.48c0 22.514 4.82 27.336 27.333 27.336h57.875c22.503 0 27.324-4.822 27.324-27.336V919.3c-1.614-22.521-6.435-27.333-27.324-27.333zM341.896 685.811h-57.875c-22.502 0-27.333 4.818-27.333 27.32v57.879c0 22.502 4.82 27.322 27.333 27.322h57.875c22.503 0 27.324-4.82 27.324-27.322v-59.473c-1.614-20.908-6.435-25.726-27.324-25.726zM476.925 491.286c-22.502 0-27.322 4.82-27.322 27.33v59.475c0 22.516 4.82 27.336 27.322 27.336h57.879c22.504 0 27.325-4.82 27.325-27.336v-59.475c-1.604-22.509-6.425-27.33-27.325-27.33h-57.879zM534.804 685.811h-57.879c-22.502 0-27.334 4.818-27.334 27.32v57.879c0 22.502 4.823 27.322 27.334 27.322h57.879c22.514 0 27.334-4.82 27.334-27.322v-59.473c-1.603-20.908-6.424-25.726-27.334-25.726zM341.896 491.286h-57.875c-22.502 0-27.333 4.82-27.333 27.33v59.475c0 22.506 4.82 27.326 27.333 27.326h57.875c22.503 0 27.324-4.82 27.324-27.326v-59.475c-1.614-24.109-6.435-27.33-27.324-27.33zM998.269 751.152a60.61 60.61 0 0 0-18.671-44.93L878.081 595.674l-0.527-0.559c-4.516-4.637-15.081-15.482-33.849-15.482-12.256 0-24.667 5.375-34.046 14.748-9.38 9.365-14.715 21.787-14.715 34.043v34.734c-33.728 4.549-63.369 14.17-88.355 28.721a180.558 180.558 0 0 0-64.513 63.512c-27.783 46.127-31.459 96.766-33.229 121.105-0.268 3.645-0.499 6.795-0.724 8.852-0.115 1-0.177 2.01-0.177 3.016 0 26.57 23.754 45.029 45.025 45.029 16.539 0 29.27-8.182 37.854-24.338 28.622-45.334 61.384-68.625 103.971-73.143v42.832c0 25.701 19.396 45.027 45.131 45.027 18.118 0 28.418-10.035 33.372-14.859l0.08-0.076c0.407-0.404 0.809-0.818 1.196-1.252l101.579-112.613c8.487-8.393 21.964-22.184 22.115-43.819" fill="#ffffff" p-id="30870" /><path d="M938.162 757.576l-1.095 1.098-88.959 98.688v-48.605c-0.005-14.178-11.101-25.877-25.259-26.625-39.112-2.088-74.188 5.912-104.331 23.744-19.672 11.652-37.443 27.459-53.818 47.842 9.604-65.979 41.491-132.889 158.302-139.715 14.097-0.83 25.106-12.506 25.106-26.627V641.99l92.836 101.033a27.827 27.827 0 0 0 1.557 1.574 7.307 7.307 0 0 1 2.363 5.488c-0.981 1.847-4.8 5.612-6.702 7.491z" fill="#ffffff" p-id="30871" /><path d="M998.826 401.018a31.522 31.522 0 0 0-13.141-29.198L525.523 27.357c-11.189-8.364-26.553-8.364-37.743 0L26.759 371.82c-13.952 10.418-16.813 30.173-6.396 44.121 10.416 13.95 30.168 16.816 44.119 6.399l44.523-33.277v585.548c0 17.4 14.107 31.508 31.51 31.508 17.4 0 31.507-14.107 31.507-31.508V341.918l334.58-249.994 441.313 330.339a31.522 31.522 0 0 0 31.718 4.39 31.507 31.507 0 0 0 19.193-25.635" fill="#ffffff" p-id="30872" /></symbol>'});l.a.add(n);t["default"]=n},"8f3e":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.handleCustomerSelect,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"拜访人",clearable:""},model:{value:e.table.getdataListParm.parammaps.visiterId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"visiterId",t)},expression:"table.getdataListParm.parammaps.visiterId"}},e._l(e.visiterNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"接待人",clearable:""},model:{value:e.table.getdataListParm.parammaps.receiverName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"receiverName",t)},expression:"table.getdataListParm.parammaps.receiverName"}}),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"拜访单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.visitCode))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"拜访日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.vdate))])]}}])}),a("el-table-column",{attrs:{label:"拜访人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.visiterName))])]}}])}),a("el-table-column",{attrs:{label:"接待人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"接待人电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverTel))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit&&"1"==i.isModify&&i.createrId==e.employeid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit&&"1"==i.isDel&&i.createrId==e.employeid?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},["create"==e.create.dialogStatus?a("el-autocomplete",{staticStyle:{width:"100%","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer,clear:e.clearCustomerSelectTemp,blur:e.blurCustomerSelectTemp},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}],null,!1,2238609474),model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}}):a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"拜访日期:",prop:"vdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.vdate,callback:function(t){e.$set(e.create.temp,"vdate",t)},expression:"create.temp.vdate"}})],1),a("el-form-item",{attrs:{label:"拜访人:",prop:"visiterId"}},[a("el-select",{ref:"visiterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择拜访人",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.visiterId,callback:function(t){e.$set(e.create.temp,"visiterId",t)},expression:"create.temp.visiterId"}},e._l(e.visiterNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"接待人:",prop:"receiverId"}},[a("el-select",{ref:"receiverId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择接待人","allow-create":"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceiver},model:{value:e.create.temp.receiverId,callback:function(t){e.$set(e.create.temp,"receiverId",t)},expression:"create.temp.receiverId"}},e._l(e.create.receiverNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"接待人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入接待人电话",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.receiverTel,callback:function(t){e.$set(e.create.temp,"receiverTel",t)},expression:"create.temp.receiverTel"}})],1),a("el-form-item",{attrs:{label:"现场照片:",prop:"vPhoto1"}},[a("el-upload",{staticClass:"uploadPic",attrs:{id:"uploadPic","list-type":"picture-card",action:e.uploadImageUrl,limit:9,headers:e.headers,"file-list":e.fileList,"on-preview":e.handlePicPreview,"auto-upload":!0,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,i){return e.handlePicSuccess(t,a,i)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:"40%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{width:"80%",src:e.dialogImageUrl,alt:""}})])],1),a("el-form-item",{attrs:{label:"定位:",prop:"location"}},[a("el-input",{ref:"location",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.location,callback:function(t){e.$set(e.create.temp,"location",t)},expression:"create.temp.location"}})],1),a("el-form-item",{attrs:{label:"情况说明:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入情况说明",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.content,callback:function(t){e.$set(e.create.temp,"content",t)},expression:"create.temp.content"}})],1),a("el-form-item",{attrs:{label:"下一步计划:",prop:"nextId"}},[a("el-select",{ref:"nextId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择下一步计划",disabled:"see"==e.create.dialogStatus,clearable:"",filterable:""},model:{value:e.create.temp.nextId,callback:function(t){e.$set(e.create.temp,"nextId",t)},expression:"create.temp.nextId"}},e._l(e.nextNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("ade3")),l=a("2934"),n=a("a78e"),o=a.n(n),c=a("ed08"),d=a("333d"),m=a("5c96"),p=a("5f87"),u={name:"VisitRecord",components:{Pagination:d["a"]},data:function(){return{dialogImageUrl:"",dialogVisible:!1,uploadImageUrl:"http://192.168.1.90:8082/authdata/uploaderimage",headers:{optname:"insertcustompic",id:1,token:Object(p["a"])()},fileList:[],employeid:o.a.get("employeid"),isRoleEdit:[],requestParams:[{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getEmployeesSelect",offset:0,pagecount:0,parammaps:{}},{name:"getDictListSelect4",offset:0,pagecount:0,parammaps:{pid:"55"}}],customerNameList:[],loading:!1,groupNameList:[],visiterNameList:[],receiverNameList:[],nextNameList:[],table:{getdataListParm:{name:"getVisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:"",groupId:"",visiterId:"",receiverId:"",receiverName:"",inputDatetime:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",vdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),visiterId:"",receiverId:"",receiverName:"",receiverTel:"",remark:"",content:"",nextId:"",modifyName:"add",receiverChoose:"true",vPhoto1:-1,vPhoto2:-1,vPhoto3:-1,vPhoto4:-1,vPhoto5:-1,vPhoto6:-1,vPhoto7:-1,vPhoto8:-1,vPhoto9:-1,picname1:"",picname2:"",picname3:"",picname4:"",picname5:"",picname6:"",picname7:"",picname8:"",picname9:"",location:""},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],vdate:[{required:!0,message:"必填",trigger:"blur"}],visiterId:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],content:[{type:"string",required:!0,message:"必填",trigger:"blur"}],vPhoto1:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm0:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}}},textMap:{create:"新增",see:"查看",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons(),console.log("isRoleEdit",sessionStorage.getItem("buttons")),console.log(o.a.get("employeid"))},methods:{queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(l["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},handleCustomerSelect:function(e){console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name},clearCustomerSelect:function(e){document.activeElement.blur(),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName=""},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handlePicChange:function(e,t){},handlePicSuccess:function(e,t,a){console.log("文件上传成功时的钩子response",e),console.log("文件上传成功时的钩子file",t),console.log("fileList",a),9==a.length?document.getElementById("uploadPic").lastChild.style.display="none":document.getElementById("uploadPic").lastChild.style.display="inline-block",void 0===this.create.temp.vPhoto1||-1==this.create.temp.vPhoto1?(console.log("111"),this.create.temp.vPhoto1=e.execresult.LastInsertId):void 0===this.create.temp.vPhoto2||-1==this.create.temp.vPhoto2?(console.log("222"),this.create.temp.vPhoto2=e.execresult.LastInsertId):void 0===this.create.temp.vPhoto3||-1==this.create.temp.vPhoto3?(console.log("333"),this.create.temp.vPhoto3=e.execresult.LastInsertId):void 0===this.create.temp.vPhoto4||-1==this.create.temp.vPhoto4?(console.log("444"),this.create.temp.vPhoto4=e.execresult.LastInsertId):void 0===this.create.temp.vPhoto5||-1==this.create.temp.vPhoto5?(console.log("555"),this.create.temp.vPhoto5=e.execresult.LastInsertId):void 0===this.create.temp.vPhoto6||-1==this.create.temp.vPhoto6?(console.log("666"),this.create.temp.vPhoto6=e.execresult.LastInsertId):void 0===this.create.temp.vPhoto7||-1==this.create.temp.vPhoto7?(console.log("777"),this.create.temp.vPhoto7=e.execresult.LastInsertId):void 0===this.create.temp.vPhoto8||-1==this.create.temp.vPhoto8?(console.log("888"),this.create.temp.vPhoto8=e.execresult.LastInsertId):void 0!==this.create.temp.vPhoto9&&-1!=this.create.temp.vPhoto9||(console.log("999"),this.create.temp.vPhoto9=e.execresult.LastInsertId),console.log("this.picArr1",this.picArr1),console.log("this.create.temp",this.create.temp)},handlePicRemove:function(e,t){console.log(e,"文件列表移除文件时的钩子file---"),console.log(t,"文件列表移除文件时的钩子fileList--"),9==t.length?document.getElementById("uploadPic").lastChild.style.display="none":document.getElementById("uploadPic").lastChild.style.display="inline-block",this.create.temp.vPhoto1=-1,this.create.temp.vPhoto2=-1,this.create.temp.vPhoto3=-1,this.create.temp.vPhoto4=-1,this.create.temp.vPhoto5=-1,this.create.temp.vPhoto6=-1,this.create.temp.vPhoto7=-1,this.create.temp.vPhoto8=-1,this.create.temp.vPhoto9=-1,9==t.length?(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId,this.create.temp.vPhoto2=t[1].response.execresult.LastInsertId,this.create.temp.vPhoto3=t[2].response.execresult.LastInsertId,this.create.temp.vPhoto4=t[3].response.execresult.LastInsertId,this.create.temp.vPhoto5=t[4].response.execresult.LastInsertId,this.create.temp.vPhoto6=t[5].response.execresult.LastInsertId,this.create.temp.vPhoto7=t[6].response.execresult.LastInsertId,this.create.temp.vPhoto8=t[7].response.execresult.LastInsertId,this.create.temp.vPhoto9=t[8].response.execresult.LastInsertId):8==t.length?(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId,this.create.temp.vPhoto2=t[1].response.execresult.LastInsertId,this.create.temp.vPhoto3=t[2].response.execresult.LastInsertId,this.create.temp.vPhoto4=t[3].response.execresult.LastInsertId,this.create.temp.vPhoto5=t[4].response.execresult.LastInsertId,this.create.temp.vPhoto6=t[5].response.execresult.LastInsertId,this.create.temp.vPhoto7=t[6].response.execresult.LastInsertId,this.create.temp.vPhoto8=t[7].response.execresult.LastInsertId):7==t.length?(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId,this.create.temp.vPhoto2=t[1].response.execresult.LastInsertId,this.create.temp.vPhoto3=t[2].response.execresult.LastInsertId,this.create.temp.vPhoto4=t[3].response.execresult.LastInsertId,this.create.temp.vPhoto5=t[4].response.execresult.LastInsertId,this.create.temp.vPhoto6=t[5].response.execresult.LastInsertId,this.create.temp.vPhoto7=t[6].response.execresult.LastInsertId):6==t.length?(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId,this.create.temp.vPhoto2=t[1].response.execresult.LastInsertId,this.create.temp.vPhoto3=t[2].response.execresult.LastInsertId,this.create.temp.vPhoto4=t[3].response.execresult.LastInsertId,this.create.temp.vPhoto5=t[4].response.execresult.LastInsertId,this.create.temp.vPhoto6=t[5].response.execresult.LastInsertId):5==t.length?(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId,this.create.temp.vPhoto2=t[1].response.execresult.LastInsertId,this.create.temp.vPhoto3=t[2].response.execresult.LastInsertId,this.create.temp.vPhoto4=t[3].response.execresult.LastInsertId,this.create.temp.vPhoto5=t[4].response.execresult.LastInsertId):4==t.length?(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId,this.create.temp.vPhoto2=t[1].response.execresult.LastInsertId,this.create.temp.vPhoto3=t[2].response.execresult.LastInsertId,this.create.temp.vPhoto4=t[3].response.execresult.LastInsertId):3==t.length?(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId,this.create.temp.vPhoto2=t[1].response.execresult.LastInsertId,this.create.temp.vPhoto3=t[2].response.execresult.LastInsertId):2==t.length?(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId,this.create.temp.vPhoto2=t[1].response.execresult.LastInsertId):1==t.length&&(this.create.temp.vPhoto1=t[0].response.execresult.LastInsertId),console.log(this.create.temp)},getButtons:function(){var e="visitRecord",t=Object(l["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(l["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),e.visiterNameList=t.data.getEmployeesSelect.list,console.log("拜访人下拉框",e.visiterNameList),e.nextNameList=t.data.getDictListSelect4.list,console.log("下一步下拉框",e.nextNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(l["d"])(this.table.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.visiterId="",this.table.getdataListParm.parammaps.receiverId="",this.table.getdataListParm.parammaps.receiverName="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",vdate:Object(c["e"])(new Date,"{y}-{m}-{d}"),visiterId:"",receiverId:"",receiverName:"",receiverTel:"",remark:"",content:"",nextId:"",modifyName:"add",receiverChoose:"true",vPhoto1:-1,vPhoto2:-1,vPhoto3:-1,vPhoto4:-1,vPhoto5:-1,vPhoto6:-1,vPhoto7:-1,vPhoto8:-1,vPhoto9:-1,picname1:"",picname2:"",picname3:"",picname4:"",picname5:"",picname6:"",picname7:"",picname8:"",picname9:"",location:""},this.fileList=[]},changeCustomer:function(e){console.log(e),this.create.temp.customerId=e.id,this.create.temp.customerName=e.name,this.create.getdataListParm0.parammaps.customerId=e.id,this.getReceiverNameList(),this.create.getdataListParm2.parammaps.id=e.id,this.getGroupNameId()},clearCustomerSelectTemp:function(e){document.activeElement.blur(),this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},getGroupNameId:function(){var e=this;Object(l["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},getReceiverNameList:function(){var e=this;Object(l["d"])(this.create.getdataListParm0).then((function(t){null!==t.data.list?(e.create.receiverNameList=t.data.list,console.log("接待人数据",t.data.list)):e.create.receiverNameList=[]}))},changeReceiver:function(e){this.create.getdataListParm3.parammaps.id=e,this.create.temp.receiverName=this.create.receiverNameList.find((function(t){return t.id===e})).name,this.getTelephoneName()},getTelephoneName:function(){var e=this;Object(l["d"])(this.create.getdataListParm3).then((function(t){null!==t.data.list&&(e.create.temp.receiverTel=t.data.list[0].telephone,console.log("接待人电话",t.data.list))}))},handleCreate:function(){console.log("点击了新增"),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.resetTemp()},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="add",e.create.temp.id="",e.requestParam.name="modyfiVisit",e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="",e.create.temp.createrId=o.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"insertVisit",resultmaps:{list:[e.create.temp]},children:[{name:"insertVisit",type:"e",parammaps:{customerId:"@insertVisit.customerId",groupId:"@insertVisit.groupId",vdate:"@insertVisit.vdate",visiterId:"@insertVisit.visiterId",receiverId:"@insertVisit.receiverId",receiverId2:"@insertContactsNew.LastInsertId",receiverTel:"@insertVisit.receiverTel",remark:"@insertVisit.remark",content:"@insertVisit.content",nextId:"@insertVisit.nextId",receiverChoose:"@insertVisit.receiverChoose",vPhoto1:"@insertVisit.vPhoto1",vPhoto2:"@insertVisit.vPhoto2",vPhoto3:"@insertVisit.vPhoto3",vPhoto4:"@insertVisit.vPhoto4",vPhoto5:"@insertVisit.vPhoto5",vPhoto6:"@insertVisit.vPhoto6",vPhoto7:"@insertVisit.vPhoto7",vPhoto8:"@insertVisit.vPhoto8",createrId:"@insertVisit.createrId",vPhoto9:"@insertVisit.vPhoto9"}}]}]};if(console.log("新增保存发送参数 ",a),"-1"==e.create.temp.vPhoto1)var i=!0;else i=!1;i?e.$message({type:"error",message:"请添加现场照片!",duration:2e3}):Object(l["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleSee:function(e){console.log("点击了查看",e),this.create.temp=Object.assign({},e),this.create.getdataListParm0.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.temp.id=e.id;var t=[],a=[],i=[];void 0!=this.create.temp.picname1&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname1),a.push(this.create.temp.vPhoto1)),void 0!=this.create.temp.picname2&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname2),a.push(this.create.temp.vPhoto2)),void 0!=this.create.temp.picname3&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname3),a.push(this.create.temp.vPhoto3)),void 0!=this.create.temp.picname4&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname4),a.push(this.create.temp.vPhoto4)),void 0!=this.create.temp.picname5&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname5),a.push(this.create.temp.vPhoto5)),void 0!=this.create.temp.picname6&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname6),a.push(this.create.temp.vPhoto6)),void 0!=this.create.temp.picname7&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname7),a.push(this.create.temp.vPhoto7)),void 0!=this.create.temp.picname8&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname8),a.push(this.create.temp.vPhoto8)),void 0!=this.create.temp.picname9&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname9),a.push(this.create.temp.vPhoto9)),console.log("urlArray",t),console.log("urlArrayId",a);for(var s=0;s<t.length;s++){var r={url:"",response:{execresult:{LastInsertId:""}}};r.url=t[s],r.response.execresult.LastInsertId=a[s],i.push(r)}this.fileList=i,console.log("fileList",i),this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.getdataListParm0.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.temp.id=e.id;var t=[],a=[],i=[];void 0!=this.create.temp.picname1&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname1),a.push(this.create.temp.vPhoto1)),void 0!=this.create.temp.picname2&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname2),a.push(this.create.temp.vPhoto2)),void 0!=this.create.temp.picname3&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname3),a.push(this.create.temp.vPhoto3)),void 0!=this.create.temp.picname4&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname4),a.push(this.create.temp.vPhoto4)),void 0!=this.create.temp.picname5&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname5),a.push(this.create.temp.vPhoto5)),void 0!=this.create.temp.picname6&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname6),a.push(this.create.temp.vPhoto6)),void 0!=this.create.temp.picname7&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname7),a.push(this.create.temp.vPhoto7)),void 0!=this.create.temp.picname8&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname8),a.push(this.create.temp.vPhoto8)),void 0!=this.create.temp.picname9&&(t.push("http://192.168.1.90:8082/"+this.create.temp.picname9),a.push(this.create.temp.vPhoto9)),console.log("urlArray",t),console.log("urlArrayId",a);for(var s=0;s<t.length;s++){var r={url:"",response:{execresult:{LastInsertId:""}}};r.url=t[s],r.response.execresult.LastInsertId=a[s],i.push(r)}this.fileList=i,console.log("fileList",i),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a;e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="update",e.requestParam.name="modyfiVisit",e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.requestParam.parammaps=e.create.temp,e.create.temp.receiverId2="";var i={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateVisit",resultmaps:{list:[e.create.temp]},children:[{name:"updateVisit",type:"e",parammaps:(a={vdate:"@updateVisit.vdate"},Object(r["a"])(a,"vdate","@insertVisit.vdate"),Object(r["a"])(a,"visiterId","@insertVisit.visiterId"),Object(r["a"])(a,"receiverId","@updateVisit.receiverId"),Object(r["a"])(a,"receiverId2","@insertContactsNew.LastInsertId"),Object(r["a"])(a,"receiverTel","@updateVisit.receiverTel"),Object(r["a"])(a,"remark","@updateVisit.remark"),Object(r["a"])(a,"content","@updateVisit.content"),Object(r["a"])(a,"nextId","@updateVisit.nextId"),Object(r["a"])(a,"receiverChoose","@updateVisit.receiverChoose"),Object(r["a"])(a,"id","@updateVisit.id"),Object(r["a"])(a,"vPhoto1","@insertVisit.vPhoto1"),Object(r["a"])(a,"vPhoto2","@insertVisit.vPhoto2"),Object(r["a"])(a,"vPhoto3","@insertVisit.vPhoto3"),Object(r["a"])(a,"vPhoto4","@insertVisit.vPhoto4"),Object(r["a"])(a,"vPhoto5","@insertVisit.vPhoto5"),Object(r["a"])(a,"vPhoto6","@insertVisit.vPhoto6"),Object(r["a"])(a,"vPhoto7","@insertVisit.vPhoto7"),Object(r["a"])(a,"vPhoto8","@insertVisit.vPhoto8"),Object(r["a"])(a,"vPhoto9","@insertVisit.vPhoto9"),a)}]}]};if(console.log("编辑保存发送参数 ",i),"-1"==e.create.temp.vPhoto1)var s=!0;else s=!1;s?e.$message({type:"error",message:"请添加现场照片!",duration:2e3}):Object(l["b"])(i).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="delVisit",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(l["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},h=u,g=(a("80c8"),a("2877")),f=Object(g["a"])(h,i,s,!1,null,"5fd003b2",null);t["default"]=f.exports},"8f59":function(e,t,a){},"90bb":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-默认参数配置",use:"icon-默认参数配置-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-默认参数配置"><defs><style type="text/css"></style></defs><path d="M248 324.8c-70.4 0-128-57.6-128-128s57.6-128 128-128 128 57.6 128 128-57.6 128-128 128z m0-192c-38.4 0-64 25.6-64 64s25.6 64 64 64 64-25.6 64-64-25.6-64-64-64z" p-id="70696" fill="#ffffff" /><path d="M248 964.8c-19.2 0-32-12.8-32-32v-640c0-19.2 12.8-32 32-32s32 12.8 32 32v640c0 19.2-12.8 32-32 32z m537.6 0c-70.4 0-128-57.6-128-128s57.6-128 128-128 128 57.6 128 128-57.6 128-128 128z m0-192c-38.4 0-64 25.6-64 64s25.6 64 64 64 64-25.6 64-64-25.6-64-64-64z" p-id="70697" fill="#ffffff" /><path d="M785.6 772.8c-19.2 0-32-12.8-32-32v-640c0-19.2 12.8-32 32-32s32 12.8 32 32v640c0 19.2-12.8 32-32 32z m-256 192c-19.2 0-32-12.8-32-32v-352c0-19.2 12.8-32 32-32s32 12.8 32 32v352c0 19.2-12.8 32-32 32z m0-576c-19.2 0-32-12.8-32-32v-256c0-19.2 12.8-32 32-32s32 12.8 32 32v256c0 19.2-12.8 32-32 32z" p-id="70698" fill="#ffffff" /><path d="M529.6 612.8c-70.4 0-128-57.6-128-128s57.6-128 128-128 128 57.6 128 128-57.6 128-128 128z m0-192c-38.4 0-64 25.6-64 64s25.6 64 64 64 64-25.6 64-64-25.6-64-64-64z" p-id="70699" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"90fe":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"ID",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.$index)+" ")]}}])}),a("el-table-column",{attrs:{label:"Title"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.title)+" ")]}}])}),a("el-table-column",{attrs:{label:"Author",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.author))])]}}])}),a("el-table-column",{attrs:{label:"Pageviews",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.pageviews)+" ")]}}])}),a("el-table-column",{attrs:{"class-name":"status-col",label:"Status",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:e._f("statusFilter")(t.row.status)}},[e._v(e._s(t.row.status))])]}}])}),a("el-table-column",{attrs:{align:"center",prop:"created_at",label:"Display_time",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{staticClass:"el-icon-time"}),a("span",[e._v(e._s(t.row.display_time))])]}}])})],1)],1)},s=[],r=a("b775");function l(e){return Object(r["a"])({url:"/table/list",method:"get",params:e})}var n={filters:{statusFilter:function(e){var t={published:"success",draft:"gray",deleted:"danger"};return t[e]}},data:function(){return{list:null,listLoading:!0}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.listLoading=!0,l().then((function(t){e.list=t.data.items,e.listLoading=!1}))}}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);t["default"]=d.exports},"912a":function(e,t,a){},"91b3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-1",type:"success"}},[a("router-view")],1)],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!1,null,null,null);t["default"]=n.exports},9225:function(e,t,a){"use strict";var i=a("be94"),s=a("2b0e"),r=a("a925"),l={common:{dashboard:"Dashbord",chart:"Chart",dataSource:"Data Source",share:"Share",add:"Add",edit:"Edit",delete:"Delete",cancel:"Cancel",confirm:"Confirm",name:"Name",desc:"Description",close:"Close",operation:"Operation",back:"Back",save:"Save",open:"Open",closed:"Closed",saveSuccess:"Success saved",deleteSuccess:"Deleted",openGuide:"Show tutorial"},auth:{useTestAccount:"Click here to use test account",signIn:"SIGN IN",signUp:"SIGN UP",toSignUp:"Sign up",toSignIn:"Already have an account? Sign In",passwordPlaceholder:"Please enter your password",emailPlaceholder:"Please enter your email",usernamePlaceholder:"Please enter your username",logout:"Log Out",signUpSuccess:"Sign up success, please sign in"},navbar:{document:"Document",home:"Home"},home:{slogan:"A Data Analysis Board in Vue.",start:"Get Start"},dashboard:{addDashboard:"Add Dashboard",dashboardName:"Dashboard Name",dashboardDesc:"Dashboard Description",addOrEditDashboard:"Add or edit Dashboard",addChart:"Add Chart",shareLink:"Share Link",emptyDashboardTip:"Dashboard Is Empty,Go Create Your First Chart!",dashboardNamePlaceholder:"Please enter dashboard name",dashboardDescPlaceholder:"Please enter dashboard description.",dashboardList:"Dashboard List",removeChartConfirm:"Are you sure you want to remove chart from dashboard ?",chartQueryException:"Something wrong with chart {0}.",deleteConfirm:"Are you sure you want to delete dashboard: {0}?"},chart:{myChart:"My Chart",createNewChart:"Create New Chart",editChart:"Edit Chart",createChart:"Create Chart",allCharts:"AllCharts",addToDashboard:"Add to Dashboard",chartName:"Chart Name",chartDesc:"Chart Description",namePlaceholder:"Please enter chart name",descPlaceholder:"Please enter chart description",dimensions:"Dimension",values:"Values",order:"Order",selectOrderBy:"Select order by",descend:"Descend",ascend:"Ascend",filters:"Filters",chartType:"Chart Types",addFilters:"Add Filters",filterField:"Filter Field",filterCantBeEmpty:"Field and operator can't be empty",selectFilterField:"Please select filter field",filterOperator:"Filter Operator",selectFilterOperator:"Please select filter operator",comparedValue:"Compared Value",limit:"Query {0} rows",fieldExisted:"Field already existed.",beforeLeaveConfirm:"Are you sure you want to leave, changes you made may not be saved.",deleteConfirm:"Are you sure you want to delete chart: {0}?",chartNameWarning:"Save failed, please enter chart name. "},dataSource:{sourcePlaceholder:"Select data source",tablePlaceholder:"Select table",table:"Table",fields:"Fields",addDataSource:"Add Data Source",baseName:"Base Name",host:"Host",port:"Port",user:"User",password:"Password",dataBase:"DataBase",createdAt:"Created Time",manageTables:"Manage Tables",tableName:"Table Name",linked:"Linked",deleteConfirm:"Are you sure you want to remove this data source ?"},guide:{dataPanel:"Data Panel",dataPanelDesc:"Here is the data source and the field list of the data source, you can switch the data source here, drag the field to the Data Query Panel to query.",formPanel:"Data Query Panel",formPanelDesc:"Perform data query here, you can construct and adjust query statements here to query data.",dimensionInput:"Dimension Editor",dimensionInputDesc:"Dimension refers to the angle of data summarization, such as time dimension, category dimension, etc. The dimension should generally not exceed 2.",fieldInput:"Field Editor",fieldInputDesc:"The field refers to the content of the query data, such as the number, sum, etc. There can be multiple fields, but it should not be too much so as not to affect the visualization effect.",vizPanel:"Visualization panel",vizPanelDesc:"Here is the visualization panel, where you can visualize the data, choose different chart types and styles, etc."},chartType:{table:"Table",tableDesc:"Any dimensions and values",line:"Line Chart",lineDesc:"1 or 2 dimensions;1+ values",bar:"Bar Chart",barDesc:"1 or 2 dimensions;1+ values",stackBar:"Stacked Bar Chart",stackBarDesc:"1 or 2 dimensions;2+ values",pie:"Pie Chart",pieDesc:"1 dimension and 1 value;Or 0 dimension and multiple values",horizontalBar:"Horizontal Bar Chart",horizontalBarDesc:"1 dimension;1+ values"},config:{is:"Is ",greater:"Greater",less:"Less",greaterOrEqual:"Greater Or Equal",lessorEqual:"Less or Equal",isNot:"Is Not",between:"Between",in:"In",like:"Like",sum:"Sum",avg:"Avg",max:"Max",min:"Min",count:"Count",none:"-"}},n={common:{dashboard:"看板",chart:"图表",dataSource:"数据源",share:"分享",add:"添加",edit:"编辑",delete:"删除",cancel:"取消",confirm:"确认",name:"名称",desc:"描述",close:"关闭",operation:"操作",back:"后退",save:"保存",open:"开启",closed:"关闭",saveSuccess:"保存成功",deleteSuccess:"删除成功",openGuide:"开启新手引导"},auth:{useTestAccount:"不想注册?点我使用测试账号",signIn:"登录",signUp:"注册",toSignUp:"没有账号?去注册",toSignIn:"已有账号? 去登录",passwordPlaceholder:"请输入密码",emailPlaceholder:"请输入邮箱",usernamePlaceholder:"请输入用户名",logout:"登出",signUpSuccess:"注册成功,请登录"},navbar:{document:"文档",home:"首页"},home:{slogan:"基于Vue的数据可视化分析.",start:"开始"},dashboard:{addDashboard:"添加看板",dashboardName:"看板名称",dashboardDesc:"看板描述",addOrEditDashboard:"添加或编辑看板",addChart:"添加图表",shareLink:"分享链接",emptyDashboardTip:"看板空空如也, 去创建新的图表吧!",dashboardNamePlaceholder:"请输入看板名称",dashboardDescPlaceholder:"请输入看板描述.",dashboardList:"看板列表",removeChartConfirm:"确定要把该图表从仪表盘中移除 ?",chartQueryException:"图表:{0} 查询语句异常",deleteConfirm:"确定要删除{0}仪表盘吗?"},chart:{myChart:"我的图表",createNewChart:"创建新的图表",editChart:"编辑图表",createChart:"创建图表",allCharts:"所有图表",addToDashboard:"添加到看板",chartName:"图表名称",chartDesc:"图表描述",namePlaceholder:"请输入图表名称",descPlaceholder:"请输入图表描述",dimensions:"维度",values:"数值",order:"排序",selectOrderBy:"选择排序方式",descend:"降序",ascend:"正序",filters:"筛选",chartType:"图表类型",addFilters:"添加筛选条件",filterField:"筛选字段",filterCantBeEmpty:"筛选字段和筛选方式不可为空",selectFilterField:"请选择筛选字段",filterOperator:"筛选操作符",selectFilterOperator:"请选择筛选操作符",comparedValue:"判断条件值",limit:"查询前 {0} 行",fieldExisted:"字段已存在",beforeLeaveConfirm:"确定要离开当前页面吗?系统可能不会保存您所做的更改",deleteConfirm:"确定要删除图表:{0}?",chartNameWarning:"保存失败,请输入图表名称"},dataSource:{sourcePlaceholder:"选择数据源",tablePlaceholder:"选择表",table:"表",fields:"字段",addDataSource:"添加数据源",baseName:"数据源名称",host:"Host",port:"端口",user:"用户名",password:"密码",dataBase:"数据库",createdAt:"创建时间",manageTables:"管理表",tableName:"表名称",linked:"是否连接",deleteConfirm:"删除后不可撤销,确定要移除该数据源?"},guide:{dataPanel:"数据面板",dataPanelDesc:"这里是数据源以及数据源的字段列表,你可以在这里切换数据源、将字段拖拽到数据查询面板进行查询",formPanel:"数据查询面板",formPanelDesc:"这里进行数据查询,你可以在这里构建、调整查询语句,实现对数据的查询",dimensionInput:"维度编辑",dimensionInputDesc:"维度是指数据归纳的角度,如时间维度、类别维度等,维度一般不宜超过 2 个",fieldInput:"字段编辑",fieldInputDesc:"字段是指查询数据的内容,如个数、总和等,字段可以有多个,但是不宜过多以免影响可视化效果",vizPanel:"可视化面板",vizPanelDesc:"这里是可视化面板,可以在此对数据进行可视化,选择不同的图表类型和样式等等"},chartType:{table:"表格",tableDesc:"任意维度和数值",line:"折线图",lineDesc:"1 或 2个维度;1或多个数值",bar:"柱状图",barDesc:"1 或 2个维度;1或多个数值",stackBar:"堆积柱状图",stackBarDesc:"1 或 2个维度;2或多个数值",pie:"饼图",pieDesc:"1个维度1个数值;0个维度多个数值",horizontalBar:"条形图",horizontalBarDesc:"1个维度;1或多个数值"},config:{is:"等于",greater:"大于",less:"小于",greaterOrEqual:"大于等于",lessorEqual:"小于等于",isNot:"不等于",between:"区间",in:"In",like:"包含",sum:"合计",avg:"平均",max:"最大值",min:"最小值",count:"计数",none:"-"}},o=a("b2d6"),c=a.n(o),d=a("f0d9"),m=a.n(d);s["default"].use(r["a"]);var p=new r["a"]({locale:"CN",messages:{EN:Object(i["a"])(Object(i["a"])({},l),c.a),CN:Object(i["a"])(Object(i["a"])({},n),m.a)}});t["a"]=p},"92b6":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e()],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"产品分类",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.smallclassid,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"smallclassid",t)},expression:"tableObj.getdataListParm.parammaps.smallclassid"}},e._l(e.productClassNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.productclass,value:e.smallclassid}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"产品名称",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.productname,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"productname",t)},expression:"tableObj.getdataListParm.parammaps.productname"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"产品分类","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productclass))])]}}])}),a("el-table-column",{attrs:{label:"品名","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productname))])]}}])}),a("el-table-column",{attrs:{label:"产品规格","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specifications))])]}}])}),a("el-table-column",{attrs:{label:"产品单位","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),a("el-table-column",{attrs:{label:"排序","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"价格","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit?a("el-button",{staticClass:"miniEdit",attrs:{icon:"el-icon-edit-outline"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDelete",attrs:{icon:"el-icon-delete"},on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"产品分类:",prop:"smallclassid"}},[a("el-select",{ref:"smallclassid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.smallclassid,callback:function(t){e.$set(e.create.temp,"smallclassid",t)},expression:"create.temp.smallclassid"}},e._l(e.productClassNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.productclass,value:e.smallclassid}})})),1)],1),a("el-form-item",{attrs:{label:"产品名称:",prop:"productname"}},[a("el-input",{ref:"productname",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入名称",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.productname,callback:function(t){e.$set(e.create.temp,"productname",t)},expression:"create.temp.productname"}})],1),a("el-form-item",{attrs:{label:"产品规格:",prop:"specifications"}},[a("el-select",{ref:"specifications",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.specifications,callback:function(t){e.$set(e.create.temp,"specifications",t)},expression:"create.temp.specifications"}},e._l(e.specificationsNameList,(function(e){return a("el-option",{key:e.specname,attrs:{label:e.specname,value:e.specname}})})),1)],1),a("el-form-item",{attrs:{label:"产品单位:",prop:"unitid"}},[a("el-select",{ref:"unitid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.unitid,callback:function(t){e.$set(e.create.temp,"unitid",t)},expression:"create.temp.unitid"}},e._l(e.unitNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.unitname,value:e.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:e.create.temp.enable,callback:function(t){e.$set(e.create.temp,"enable",t)},expression:"create.temp.enable"}})],1),a("el-form-item",{attrs:{label:"排序:",prop:"sort"}},[a("el-input",{ref:"sort",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.sort,callback:function(t){e.$set(e.create.temp,"sort",t)},expression:"create.temp.sort"}})],1),a("el-form-item",{attrs:{label:"当前价格:",prop:"price"}},[a("el-input",{ref:"price",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"",disabled:""},model:{value:e.create.temp.price,callback:function(t){e.$set(e.create.temp,"price",t)},expression:"create.temp.price"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniEdit",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=a("2934"),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c=a("3de8"),d=a("5c96"),m={name:"ProductInfo",components:{Pagination:o["a"],TreeSelect:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],requestParams:[{name:"getCollatingSort",offset:0,pagecount:0,parammaps:{}},{name:"getSpec",offset:0,pagecount:0,parammaps:{}},{name:"getProunit",offset:0,pagecount:0,parammaps:{}}],productClassNameList:[],specificationsNameList:[],unitNameList:[],tableObj:{getdataListParm:{name:"getProductInfo",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{smallclassid:"",productname:""}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{smallclassname:"",smallclassid:"",productname:"",productid:"",specificationsId:"",specifications:"",unitid:"",unit:"",id:"",sort:"",enable:1},rules:{productname:[{required:!0,message:"必填",trigger:"blur"}],smallclassid:[{required:!0,message:"必填",trigger:"blur"}],specifications:[{required:!0,message:"必填",trigger:"blur"}],unitid:[{required:!0,message:"必填",trigger:"blur"}]}},textMap:{create:"新增",see:"查看",update:"编辑"},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px",fontSize:"16px"},headStyle:{padding:"0px",fontSize:"16px",fontWeight:"bold",color:"#333"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="productInfo",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.productClassNameList=t.data.getCollatingSort.list,console.log("产品分类下拉框",e.productClassNameList),e.specificationsNameList=t.data.getSpec.list,console.log("产品规格下拉框",e.specificationsNameList),e.unitNameList=t.data.getProunit.list,console.log("产品单位下拉框",e.unitNameList)}))},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm.parammaps),Object(r["r"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):e.tableObj.list=[],setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),this.tableObj.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.smallclassid="",this.tableObj.getdataListParm.parammaps.productname="",this.tableObj.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={smallclassname:"",smallclassid:"",productname:"",productid:"",specificationsId:"",specifications:"",unitid:"",unit:"",id:"",sort:"",enable:1}},handleEnableChange:function(){console.log("点击了是否启用")},handleCreate:function(){console.log("新增=====>"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("新增保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"addProductInfo",offset:0,pagecount:0,parammaps:{smallclassname:e.create.temp.smallclassname,smallclassid:e.create.temp.smallclassid,productname:e.create.temp.productname,productid:0,specifications:e.create.temp.specifications,unitid:e.create.temp.unitid,unit:e.create.temp.unit,enable:e.create.temp.enable,sort:e.create.temp.sort}};console.log("新增保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleSee:function(e){console.log("查看=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("编辑=====>",e),this.create.temp=Object.assign({},e),this.create.temp.productid=e.productid,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;console.log("编辑保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={name:"addProductInfo",offset:0,pagecount:0,parammaps:{smallclassname:e.create.temp.smallclassname,smallclassid:e.create.temp.smallclassid,productname:e.create.temp.productname,productid:e.create.temp.productid,specifications:e.create.temp.specifications,unitid:e.create.temp.unitid,unit:e.create.temp.unit,enable:e.create.temp.enable,sort:e.create.temp.sort}};console.log("编辑保存发送参数 ",a),Object(r["g"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;console.log("删除=====>",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:"delProductInfo",parammaps:{productid:e.productid}};Object(r["g"])(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.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("9ebc"),a("b82a"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"e7f55978",null);t["default"]=h.exports},"92d3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增流程")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreateTemple}},[e._v("流程模板")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"流程名称",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.eventName,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"eventName",t)},expression:"tableObj.getdataListParm.parammaps.eventName"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"流程名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.processName))])]}}])}),a("el-table-column",{attrs:{label:"流程说明","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.processExplain))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),a("el-button",{staticClass:"miniEdit",attrs:{icon:"el-icon-edit-outline"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDelete",attrs:{icon:"el-icon-delete"},on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]),a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"}},[e._v("添加至模板")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"流程名称:",prop:"processName"}},[a("el-input",{ref:"processName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入流程名称",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.processName,callback:function(t){e.$set(e.create.temp,"processName",t)},expression:"create.temp.processName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"流程说明:",prop:"processExplain"}},[a("el-input",{ref:"processExplain",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入流程说明",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.processExplain,callback:function(t){e.$set(e.create.temp,"processExplain",t)},expression:"create.temp.processExplain"}})],1)],1)],1),a("el-row",[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"事件管理",name:"first"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_fieldInfluTable}},[e._v("添加事件")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.fieldInfluTableObj.listLoading,expression:"fieldInfluTableObj.listLoading"}],key:e.fieldInfluTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.fieldInfluTableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.fieldInfluTableObj.pageNum-1)*e.fieldInfluTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"事件分类","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.eventClass))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.eventClass,callback:function(a){e.$set(t.row,"eventClass",a)},expression:"scope.row.eventClass"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"预警条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.warnCondition))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.warnCondition,callback:function(a){e.$set(t.row,"warnCondition",a)},expression:"scope.row.warnCondition"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"触发条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.trigCondition))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.trigCondition,callback:function(a){e.$set(t.row,"trigCondition",a)},expression:"scope.row.trigCondition"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"目标事件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.targetEvent))]):e._e(),t.row.Edit?a("el-select",{ref:"targetEventId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择目标事件"},model:{value:t.row.targetEventId,callback:function(a){e.$set(t.row,"targetEventId",a)},expression:"scope.row.targetEventId"}},e._l(e.fieldInfluTableObj.targetEventList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"终止条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.termination))]):e._e(),t.row.Edit?a("el-select",{ref:"terminationId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择目标事件"},model:{value:t.row.terminationId,callback:function(a){e.$set(t.row,"terminationId",a)},expression:"scope.row.terminationId"}},e._l(e.fieldInfluTableObj.terminationList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"完成条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.compleCondition))]):e._e(),t.row.Edit?a("el-select",{ref:"compleConditionId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择目标事件"},model:{value:t.row.compleConditionId,callback:function(a){e.$set(t.row,"compleConditionId",a)},expression:"scope.row.compleConditionId"}},e._l(e.fieldInfluTableObj.compleConditionList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"必须完成","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.mustComp))]):e._e(),t.row.Edit?a("el-select",{ref:"mustCompId",staticClass:"filter-item",staticStyle:{width:"95%","paddin\n g":"10px 0"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.row.mustCompId,callback:function(a){e.$set(t.row,"mustCompId",a)},expression:"scope.row.mustCompId"}},e._l(e.fieldInfluTableObj.mustCompList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"自动/手动","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.auto))]):e._e(),t.row.Edit?a("el-select",{ref:"autoId",staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"请选择"},model:{value:t.row.autoId,callback:function(a){e.$set(t.row,"autoId",a)},expression:"scope.row.autoId"}},e._l(e.fieldInfluTableObj.autoList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_fieldInfluTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{attrs:{type:"miniDelete"},on:{click:function(t){return e.create_fieldInfluTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldInfluTable(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.set_fieldInfluTable_condition(i)}}},[e._v("设置条件组")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_fieldInfluTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldInfluTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_fieldInfluTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.fieldInfluTableObj.total>=0,expression:"fieldInfluTableObj.total>=0"}],attrs:{total:e.fieldInfluTableObj.total,page:e.fieldInfluTableObj.getdataListParm.offset,limit:e.fieldInfluTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.fieldInfluTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.fieldInfluTableObj.getdataListParm,"pagecount",t)},pagination:e.get_fieldInfluTable_list}})],1)])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniAdd",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:"设置条件组",visible:e.fieldSetConditionObj.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){return e.$set(e.fieldSetConditionObj,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp2",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.fieldSetConditionObj.rules,model:e.fieldSetConditionObj.temp,"label-position":"right","label-width":"150px"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_fieldSetConditionTable}},[e._v("添加条件组")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.fieldSetConditionObj.listLoading,expression:"fieldSetConditionObj.listLoading"}],key:e.fieldSetConditionObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.fieldSetConditionObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.fieldSetConditionObj.pageNum-1)*e.fieldSetConditionObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"条件类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifType))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.ifType,callback:function(a){e.$set(t.row,"ifType",a)},expression:"scope.row.ifType"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"字段","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifField))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"字段",clearable:""},model:{value:t.row.ifFieldId,callback:function(a){e.$set(t.row,"ifFieldId",a)},expression:"scope.row.ifFieldId"}},e._l(e.fieldSetConditionObj.ifFieldList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifCondition))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"条件",clearable:""},model:{value:t.row.ifConditionId,callback:function(a){e.$set(t.row,"ifConditionId",a)},expression:"scope.row.ifConditionId"}},e._l(e.fieldSetConditionObj.ifConditionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifValue))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.ifValue,callback:function(a){e.$set(t.row,"ifValue",a)},expression:"scope.row.ifValue"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_fieldSetConditionTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.create_fieldSetConditionTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldSetConditionTable(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_fieldSetConditionTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldSetConditionTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_fieldSetConditionTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.fieldSetConditionObj.total>=0,expression:"fieldSetConditionObj.total>=0"}],attrs:{total:e.fieldSetConditionObj.total,page:e.fieldSetConditionObj.getdataListParm.offset,limit:e.fieldSetConditionObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.fieldSetConditionObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.fieldSetConditionObj.getdataListParm,"pagecount",t)},pagination:e.get_fieldSetConditionTable_list}})],1)]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.fieldSetConditionObj.dialogFormVisible=!1,e.get_fieldSetConditionTable_list()}}},[e._v("关闭")]),"create"===e.fieldSetConditionObj.dialogStatus||"update"===e.fieldSetConditionObj.dialogStatus?a("el-button",{staticClass:"miniAdd",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.fieldSetConditionObj.dialogStatus?e.create_fieldSetConditionTable_sure():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:"新增事件",visible:e.createTemple.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.createTemple,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.createTemple.rules,model:e.createTemple.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"流程名称:",prop:"processName"}},[a("el-input",{ref:"processName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入流程名称",disabled:"see"==e.createTemple.dialogStatus},model:{value:e.createTemple.temp.processName,callback:function(t){e.$set(e.createTemple.temp,"processName",t)},expression:"createTemple.temp.processName"}})],1)],1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("el-row",[a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.createTempleTableObj.listLoading,expression:"createTempleTableObj.listLoading"}],key:e.createTempleTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.createTempleTableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.createTempleTableObj.pageNum-1)*e.createTempleTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"流程名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.processName))])]}}])}),a("el-table-column",{attrs:{label:"流程说明","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.processExplain))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_fieldInfluTable_save(i)}}},[e._v("查看")]),a("el-button",{attrs:{type:"miniDelete"},on:{click:function(t){return e.create_fieldInfluTable_cancel(i)}}},[e._v("使用")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.fieldInfluTableObj.total>=0,expression:"fieldInfluTableObj.total>=0"}],attrs:{total:e.fieldInfluTableObj.total,page:e.fieldInfluTableObj.getdataListParm.offset,limit:e.fieldInfluTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.fieldInfluTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.fieldInfluTableObj.getdataListParm,"pagecount",t)},pagination:e.get_fieldInfluTable_list}})],1)])],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniAdd",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c=a("3de8"),d=a("5c96"),m={name:"FlowpathManagement",components:{Pagination:o["a"],TreeSelect:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],url_add_table:"modifyTelvisit",url_edit_table:"modifyTelvisit",url_del_table:"modifyTelvisit",requestParams:[],tableObj:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eventClassId:"",eventName:""}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[{processName:"牛群/繁殖",processExplain:1,id:1,isModify:"0"}],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{processName:"",processExplain:"",id:"",modifyName:"add",enable:1},rules:{}},createTemple:{dialogFormVisible:!1,dialogStatus:"",temp:{processName:"",processExplain:"",id:"",modifyName:"add",enable:1},rules:{}},createTempleTableObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",processName:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{id:"",processName:"流程名称",processExplain:"流程说明"}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,targetEventList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],terminationList:[{id:"配种",name:"配种"},{id:"流产",name:"流产"}],compleConditionList:[{id:"配种",name:"配种"},{id:"流产",name:"流产"}],mustCompList:[{id:"1",name:"是"},{id:"0",name:"否"}],autoList:[{id:"自动1",name:"自动"},{id:"手动1",name:"手动"}]},textMap:{create:"新增",see:"查看",update:"编辑"},activeName:"first",fieldInfluTableObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",processName:"",processExplain:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{eventClass:"牛号",warnCondition:"牛号1",trigCondition:"增加",targetEvent:"牛号",targetEventId:"牛号1",termination:"流产",terminationId:"流产",compleCondition:"流产",compleConditionId:"流产",mustComp:"是",mustCompId:"1",auto:"自动",autoId:"自动1",remark:"备注",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,targetEventList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],terminationList:[{id:"配种",name:"配种"},{id:"流产",name:"流产"}],compleConditionList:[{id:"配种",name:"配种"},{id:"流产",name:"流产"}],mustCompList:[{id:"1",name:"是"},{id:"0",name:"否"}],autoList:[{id:"自动1",name:"自动"},{id:"手动1",name:"手动"}]},fieldSetConditionObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",fieldTableObjName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{ifType:"预警条件",ifFieldId:"牛号1",ifField:"牛号",ifConditionId:"1",ifCondition:"大于",ifValue:"值1",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,ifFieldList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],ifConditionList:[{id:"1",name:"大于"},{id:"2",name:"等于"},{id:"3",name:"小于"}]},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{getButtons:function(){var e="telephoneFollow",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){Object(r["e"])(this.requestParams).then((function(e){}))},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm),Object(r["d"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):e.tableObj.list=[],setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),this.tableObj.getdataListParm.offset=1},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.customerName="",this.tableObj.getdataListParm.parammaps.telVisitCode="",this.tableObj.getdataListParm.parammaps.customerId="",this.tableObj.getdataListParm.parammaps.groupId="",this.tableObj.getdataListParm.parammaps.visiterId="",this.tableObj.getdataListParm.parammaps.receiverName="",this.tableObj.getdataListParm.parammaps.typeIds="",this.tableObj.getdataListParm.parammaps.statusId="",this.tableObj.getdataListParm.parammaps.beginDate="",this.tableObj.getdataListParm.parammaps.endDate="",this.tableObj.getdataListParm.parammaps.inputDatetime="",this.tableObj.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={eventClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1}},resetTemp2:function(){this.create.temp={eventClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1}},handleEnableChange:function(){console.log("点击了是否启用")},handleShowMenuChange:function(){console.log("点击了是否启用")},popoverHide:function(e,t){console.log("树形多级选择",e,t),this.create.temp.eventClassId=t.id,this.tableObj.getdataListParm.parammaps.eventClassId=t.id},handleCreate:function(){console.log("新增=====>"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},handleCreateTemple:function(){console.log("新增=====>"),this.resetTemp2(),this.createTemple.dialogFormVisible=!0},createData:function(){var e=this;console.log("新增保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="add",e.create.temp.id="",e.create.temp.createrId=n.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"insertfieldTableObjsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,fieldTableObjName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:e.url_add_table,resultmaps:{list:[e.create.temp]},children:[{name:"insertTelvisit",type:"e",parammaps:{customerId:"@insertTelvisit.customerId",groupId:"@insertTelvisit.groupId",tdate:"@insertTelvisit.tdate",visiterId:"@insertTelvisit.visiterId",receiverId:"@insertTelvisit.receiverId",receiverId2:"@insertfieldTableObjsNew.LastInsertId",receiverTel:"@insertTelvisit.receiverTel",typeIds:"@insertTelvisit.typeIds",statusName:"@insertTelvisit.statusName",remark:"@insertTelvisit.remark",content:"@insertTelvisit.content",nextId:"@insertTelvisit.nextId",createrId:"@insertTelvisit.createrId",receiverChoose:"@insertTelvisit.receiverChoose"}}]}]};console.log("新增保存发送参数 ",a)}}))},handleSee:function(e){console.log("查看=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("编辑=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;console.log("编辑保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={common:{returnmap:"0"},data:[{name:"insertfieldTableObjsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,fieldTableObjName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateTelvisit",resultmaps:{list:[e.create.temp]},children:[{name:"updateTelvisit",type:"e",parammaps:{tdate:"@updateTelvisit.tdate",visiterId:"@updateTelvisit.visiterId",receiverId:"@updateTelvisit.receiverId",receiverId2:"@insertfieldTableObjsNew.LastInsertId",receiverTel:"@updateTelvisit.receiverTel",typeIds:"@updateTelvisit.typeIds",statusName:"@updateTelvisit.statusName",remark:"@updateTelvisit.remark",content:"@updateTelvisit.content",nextId:"@insertTelvisit.nextId",receiverChoose:"@insertTelvisit.receiverChoose",id:"@insertTelvisit.id"}}]}]};console.log("编辑保存发送参数 ",a),0==e.create.temp.typeIdsArr.length?e.$notify({title:"失败",message:"回访类型必选!"+response.data,type:"error",duration:2e3}):Object(r["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;console.log("删除=====>",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:t.url_del_table,parammaps:{id:e.id}};Object(r["g"])(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.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleClick:function(e,t){console.log(e,t)},get_fieldInfluTable_list:function(){var e=this;this.fieldInfluTableObj.listLoading=!0,Object(r["d"])(this.fieldInfluTableObj.getdataListParm).then((function(t){if(console.log("字段影响table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.fieldInfluTableObj.list=t.data.list,e.fieldInfluTableObj.pageNum=t.data.pageNum,e.fieldInfluTableObj.pageSize=t.data.pageSize,e.fieldInfluTableObj.total=t.data.total}else e.fieldInfluTableObj.list=[];setTimeout((function(){e.fieldInfluTableObj.listLoading=!1}),100)}))},create_fieldInfluTable:function(){console.log("字段影响 - 新增");for(var e=0;e<this.fieldInfluTableObj.list.length;e++)if(console.log(this.fieldInfluTableObj.list[e].Edit),console.log(this.fieldInfluTableObj.list[e].NoEdit),1==this.fieldInfluTableObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldInfluTableObj.list.unshift({eventClass:"牛号",warnCondition:"牛号1",trigCondition:"增加",targetEvent:"牛号",targetEventId:"牛号1",termination:"流产",terminationId:"流产",compleCondition:"流产",compleConditionId:"流产",mustComp:"是",mustCompId:"1",auto:"自动",autoId:"自动1",remark:"备注",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_fieldInfluTable_save:function(e){console.log("字段影响 - 新增保存",e)},create_fieldInfluTable_cancel:function(e){console.log("事件管理 - 新增取消",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++){if(e.myId===this.fieldInfluTableObj.list[t].myId)var a=this.fieldInfluTableObj.list.indexOf(this.eventTableObj.list[t]);if(a>-1)return void this.fieldInfluTableObj.list.splice(a,1)}},edit_fieldInfluTable:function(e){console.log("字段影响 - 编辑",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++)if(1==this.fieldInfluTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},set_fieldInfluTable_condition:function(e){console.log("事件管理 - 设置条件组",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++)if(1==this.fieldInfluTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldSetConditionObj.dialogFormVisible=!0},edit_fieldInfluTable_save:function(e){var t=this;console.log("字段管理 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_fieldInfluTable_cancel:function(e){console.log("字段管理 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_fieldInfluTable:function(e){var t=this;console.log("事件管理 - 删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},get_fieldSetConditionTable_list:function(){var e=this;this.fieldSetConditionObj.listLoading=!0,Object(r["d"])(this.fieldSetConditionObj.getdataListParm).then((function(t){if(console.log("字段管理table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.fieldSetConditionObj.list=t.data.list,e.fieldSetConditionObj.pageNum=t.data.pageNum,e.fieldSetConditionObj.pageSize=t.data.pageSize,e.fieldSetConditionObj.total=t.data.total}else e.fieldSetConditionObj.list=[];setTimeout((function(){e.fieldSetConditionObj.listLoading=!1}),100)}))},create_fieldSetConditionTable:function(){console.log("设置条件组 - 新增");for(var e=0;e<this.fieldSetConditionObj.list.length;e++)if(console.log(this.fieldSetConditionObj.list[e].Edit),console.log(this.fieldSetConditionObj.list[e].NoEdit),1==this.fieldSetConditionObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldSetConditionObj.list.unshift({ifFieldId:"牛号1",ifField:"牛号",ifConditionId:"1",ifCondition:"大于",ifValue:"值1",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_fieldSetConditionTable_save:function(e){console.log("设置条件组 - 新增保存",e)},create_fieldSetConditionTable_cancel:function(e){console.log("设置条件组 - 新增取消",e);for(var t=0;t<this.fieldSetConditionObj.list.length;t++){if(e.myId===this.fieldSetConditionObj.list[t].myId)var a=this.fieldSetConditionObj.list.indexOf(this.fieldSetConditionObj.list[t]);if(a>-1)return void this.fieldSetConditionObj.list.splice(a,1)}},edit_fieldSetConditionTable:function(e){console.log("设置条件组 - 编辑",e);for(var t=0;t<this.fieldSetConditionObj.list.length;t++)if(1==this.fieldSetConditionObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},edit_fieldSetConditionTable_save:function(e){var t=this;console.log("设置条件组 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_fieldSetConditionTable_cancel:function(e){console.log("设置条件组 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_fieldSetConditionTable:function(e){var t=this;console.log("事件管理 - 删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},create_fieldSetConditionTable_sure:function(){console.log("新增保存参数:",this.create.temp)},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("4d08"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"53697de4",null);t["default"]=h.exports},9380:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._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);t["default"]=o.exports},"93cd":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},9406:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-container"},[a(e.currentRole,{ref:"child",tag:"component"})],1)},s=[],r=a("be94"),l=a("2f62"),n=a("5851"),o={inject:["reload"],name:"Dashboard",components:{editorDashboard:n["default"]},data:function(){return{currentRole:"editorDashboard"}},computed:Object(r["a"])({},Object(l["b"])(["roles"])),created:function(){this.currentRole="editorDashboard"},mounted:function(){var e=this;this.$nextTick((function(){e.$refs.child.getList()}))},methods:{}},c=o,d=a("2877"),m=Object(d["a"])(c,i,s,!1,null,null,null);t["default"]=m.exports},"941a":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-操作日志",use:"icon-操作日志-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-操作日志"><defs><style type="text/css"></style></defs><path d="M939.842901 675.865075a248.249581 248.249581 0 0 0-52.780992-79.171488 233.488795 233.488795 0 0 0-77.829598-53.675585 240.64554 240.64554 0 0 0-190.548327 0 248.696878 248.696878 0 0 0-130.163294 134.188963 255.853622 255.853622 0 0 0 0 194.573996 246.907691 246.907691 0 0 0 52.333696 79.171488 237.961761 237.961761 0 0 0 77.829598 53.675585 242.434726 242.434726 0 0 0 268.377925-53.675585 254.511733 254.511733 0 0 0 52.333696-79.171488 255.853622 255.853622 0 0 0 0-194.573996m-225.884754 288.953566a191.890217 191.890217 0 1 1 188.311844-191.890216 190.10103 190.10103 0 0 1-188.311844 191.890216" p-id="80336" fill="#ffffff" /><path d="M751.08376 268.377925H233.114364A31.758055 31.758055 0 0 1 198.672531 236.172574a31.758055 31.758055 0 0 1 33.54724-33.54724h518.863989a31.758055 31.758055 0 0 1 33.994538 33.54724 31.758055 31.758055 0 0 1-33.994538 33.994538z m-158.342976 202.625334h-357.837233a33.994537 33.994537 0 0 1 0-67.541778h357.837233a33.994537 33.994537 0 1 1 0 67.541778zM345.385797 675.417779H233.114364a33.994537 33.994537 0 0 1 0-67.541778h112.271433a33.994537 33.994537 0 1 1 0 67.541778z" p-id="80337" fill="#ffffff" /><path d="M840.990365 0H165.572587A103.772798 103.772798 0 0 0 64.483568 101.089019v810.054038a104.220094 104.220094 0 0 0 101.089019 101.536315h195.021292a33.994537 33.994537 0 0 0 33.547241-33.994537 33.547241 33.547241 0 0 0-33.547241-33.547241H166.019883a31.758055 31.758055 0 0 1-33.994537-33.994537V101.089019a33.994537 33.994537 0 0 1 10.28782-25.048607 33.994537 33.994537 0 0 1 23.706717-8.498634h674.970482a34.88913 34.88913 0 0 1 23.706717 8.498634 33.994537 33.994537 0 0 1 10.287821 25.048607v352.469675a33.994537 33.994537 0 0 0 67.541778 0V101.089019A104.220094 104.220094 0 0 0 840.990365 0zM827.124173 699.571792l-34.441834-34.441834a16.549972 16.549972 0 0 0-23.706717 0l-151.186231 151.186232-5.367559 55.464771a6.262152 6.262152 0 0 0 0 4.472965 5.814855 5.814855 0 0 0 4.025669 0l55.464771-5.367558L780.158036 768.902756l44.729654-44.729654a16.549972 16.549972 0 0 0 0-23.706717z" p-id="80338" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},"949a":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{filterable:"",placeholder:"牲畜父类",clearable:""},model:{value:e.table.getdataListParm.parammaps.parentname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"parentname",t)},expression:"table.getdataListParm.parammaps.parentname"}},e._l(e.parentList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"牲畜类别",clearable:""},model:{value:e.table.getdataListParm.parammaps.classname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"classname",t)},expression:"table.getdataListParm.parammaps.classname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-form",{ref:"form",attrs:{rules:e.table.rules,model:e.table}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"牲畜父类","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.parentname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"牲畜类别父类"},on:{change:e.changeParent},model:{value:t.row.parentid,callback:function(a){e.$set(t.row,"parentid",a)},expression:"scope.row.parentid"}},e._l(e.parentList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.classname))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.classname,callback:function(a){e.$set(t.row,"classname",a)},expression:"scope.row.classname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"牲畜类别编号","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.classcode))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"0 10px"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.classcode,callback:function(a){e.$set(t.row,"classcode",a)},expression:"scope.row.classcode"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"LivestockCategory",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["牲畜父类"]}],enableList:[{id:1,name:"是"},{id:0,name:"否"}],parentList:[],table:{rules:{name:{type:"string",required:!0,message:"必填字段",trigger:"change"}},getdataListParm:{name:"getCowclassList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),classname:"",parentname:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="LivestockCategory",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.parentList=t.data.getDictByName.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(e){console.log("点击了是否启用",e)},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.classname="",this.table.getdataListParm.parammaps.parentname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},changeParent:function(e){console.log("点击了牲畜类别父类",e),console.log(this.parentList.find((function(t){return t.value==e})).label),this.table.temp.parentname=this.parentList.find((function(t){return t.value==e})).label},handleCreate:function(){console.log("点击了新增");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;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(e){var t=this;if(console.log("点击了新增保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.classcode=e.classcode,this.table.temp.classname=e.classname,this.table.temp.parentid=e.parentid,this.table.temp.enable=e.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(){t.isokDisable=!1}),1e3),this.requestParam.name="insertCowclass",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){console.log("点击了编辑",e);for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.parentid=String(e.parentid),this.table.temp.parentid=e.parentid,this.table.temp.parentname=e.parentname},updateData:function(e){var t=this;if(console.log("点击了编辑保存"),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.classcode=e.classcode,this.table.temp.classname=e.classname,this.table.temp.parentid=e.parentid,this.table.temp.enable=e.enable,this.table.temp.id=e.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(){t.isokDisable=!1}),1e3),this.requestParam.name="updateCowclass",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteCowclass",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择牲畜类别信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteCowclass",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},m=d,p=(a("b6b7"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"5960bf14",null);t["default"]=u.exports},"957d":function(e,t,a){"use strict";var i=a("1b9b"),s=a.n(i);s.a},"95d5":function(e,t,a){},"962c":function(e,t,a){},"97b2":function(e,t,a){},"980b":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:e.handleCreate}},[e._v("新增车次")]),a("el-button",{staticClass:"danger",staticStyle:{float:"left"},on:{click:e.handleDelete}},[e._v("减少车次")]),a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:e.handleCheck}},[e._v("校验")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleHistoryRecords}},[e._v("历史记录")])],1),a("div",{staticClass:"search"}),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{id:"table","element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id"},on:{"selection-change":e.handleSelect}},[a("el-table-column",{attrs:{type:"selection","min-width":"50"}}),a("el-table-column",{attrs:{label:"车次","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.sort))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"number"},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",a)},expression:"scope.row.sort"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"栏舍","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.bar))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeBars(a,t.row)}},model:{value:t.row.barid,callback:function(a){e.$set(t.row,"barid",a)},expression:"scope.row.barid"}},e._l(e.barsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.tmrcode))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeTMRNumber(a,t.row)}},model:{value:t.row.tmrid,callback:function(a){e.$set(t.row,"tmrid",a)},expression:"scope.row.tmrid"}},e._l(e.TMRNumberList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"生效","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.times))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeTimes(a,t.row)}},model:{value:t.row.times,callback:function(a){e.$set(t.row,"times",a)},expression:"scope.row.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"撒料计划车次跟随","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.lppcode))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeCarFollow(a,t.row)}},model:{value:t.row.lppid,callback:function(a){e.$set(t.row,"lppid",a)},expression:"scope.row.lppid"}},e._l(e.carFollowList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.lppcode,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.rtime))]):e._e(),t.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:t.row.rtime,callback:function(a){e.$set(t.row,"rtime",a)},expression:"scope.row.rtime"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"剩料处理方式","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.treatmethod))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeResidueDisposal(a,t.row)}},model:{value:t.row.treatmethod,callback:function(a){e.$set(t.row,"treatmethod",a)},expression:"scope.row.treatmethod"}},e._l(e.residueDisposalList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"转投栏舍","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.useinbar))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{disabled:"继续饲喂"==t.row.treatmethod,filterable:"",placeholder:""},on:{change:function(a){e.changeTransferbars(a,t.row)}},model:{value:t.row.useinbarid,callback:function(a){e.$set(t.row,"useinbarid",a)},expression:"scope.row.useinbarid"}},e._l(e.transferbarsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.history.dialogStatus],"destroy-on-close":!0,visible:e.history.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.history,"dialogFormVisible",t)}}},[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:e.changeDate},model:{value:e.history.getdataListParm.parammaps.date,callback:function(t){e.$set(e.history.getdataListParm.parammaps,"date",t)},expression:"history.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleApplication}},[e._v("应用")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.history.listLoading,expression:"history.listLoading"}],key:e.history.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.history.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"车次","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"栏舍","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.bar))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tmrcode))])]}}])}),a("el-table-column",{attrs:{label:"生效","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"发料计划车次跟随","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lppcode))])]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.rtime))])]}}])}),a("el-table-column",{attrs:{label:"剩料处理方式","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.treatmethod))])]}}])}),a("el-table-column",{attrs:{label:"转投栏舍","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useinbar))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.history.total>0,expression:"history.total>0"}],attrs:{total:e.history.total,page:e.history.getdataListParm.offset,limit:e.history.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.history.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.history.getdataListParm,"pagecount",t)},pagination:e.getHistoryList}})],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.history.dialogFormVisible=!1}}},[e._v("关闭")])],1)]),a("el-dialog",{attrs:{title:e.textMap[e.check.dialogStatus],"destroy-on-close":!0,visible:e.check.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){return e.$set(e.check,"dialogFormVisible",t)}}},[a("div",{staticClass:"check"},[a("p",[e._v("当前有栏舍未分配,建议及时进行分配,未分配栏舍如下:")]),e._v(" 1-6;1-7;1-8 ")]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSuccess"},[e._v("确认")])],1)])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("333d"),n=a("aa47"),o=a("a78e"),c=a.n(o),d=a("5c96"),m={name:"SurplusMaterialPlan",components:{Pagination:l["a"]},data:function(){return{requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getTMRYHList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],barsList:[],residueDisposalList:[{value:"0",label:"转投剩料"},{value:"1",label:"继续饲喂"}],TMRNumberList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}}},frequencyList:[],getCarFollowParm:{name:"getLPPCodeList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:""}},carFollowList:[],getTransferbarsParm:{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:""}},transferbarsList:[],table:{getdataListParm:{name:"getRemainplanList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0},history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataDateParm:{name:"getRPMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},getdataListParm:{name:"getRemainplanListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}}},check:{dialogFormVisible:!1,dialogStatus:""},textMap:{history:"历史记录",check:"提示"},requestParam:{},selectList:[],isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},dropState:!1}},created:function(){this.getList(),this.getDownList(),this.getIsDisplay()},methods:{getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.barsList=t.data.getBarListEnable.list,e.TMRNumberList=t.data.getTMRYHList.list}))},getIsDisplay:function(){var e=this;Object(r["d"])(this.maxTime.getMaxTimesParm).then((function(t){1==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"}]:2==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]:3==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]:4==t.data.list[0].inforvalue&&(e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"groupEdit",!1),e.$set(t.data.list[a],"groupNoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.rowDrop(),e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了生效")},rowDrop:function(){console.log(document.querySelector("#table .el-table__body-wrapper tbody"));var e=document.querySelector("#table .el-table__body-wrapper tbody"),t=this,a=n["default"].create(e,{disabled:t.dropState,onChoose:function(e){e.newIndex,e.oldIndex;1==t.dropState&&a.destroy()},onEnd:function(e){var a=e.newIndex,i=e.oldIndex,s=t.table.list.splice(i,1)[0];t.table.list.splice(a,0,s),console.log("索引",a),console.log("拖动数据",s),console.log("上",t.table.list[a-1]),console.log("下",t.table.list[a+1])}})},handleCreate:function(){console.log("点击了新增车次"),this.dropState=!0;for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;var t=0;t=this.table.list.length>0?parseInt(this.table.list[this.table.list.length-1].sort)+1:"0",this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,sort:t,ftid:"",ftname:"",tmrcode:"",tmrid:"",times:"",lppcode:"",lppid:"",rtime:"",barid:"",treatmethod:"",useinbar:"",useinbarid:""}),console.log(this.table.list)},changeBars:function(e,t){t.bar=this.barsList.find((function(t){return t.id==e})).bname},changeTMRNumber:function(e,t){t.tmrcode=this.TMRNumberList.find((function(t){return t.id==e})).tname},changeCarFollow:function(e,t){t.lppcode=this.carFollowList.find((function(t){return t.id==e})).lppcode},changeTimes:function(e,t){console.log(e,t),this.getCarFollowParm.parammaps.times=e,this.getCarFollowList(t)},getCarFollowList:function(e){var t=this;Object(r["d"])(this.getCarFollowParm).then((function(a){console.log("撒料计划车次跟随列表数据",a.data.list),null!==a.data.list&&(t.carFollowList=a.data.list,e.lppid=t.carFollowList[0].id,e.lppcode=t.carFollowList[0].lppcode)}))},changeResidueDisposal:function(e,t){console.log(e,t),this.getCarFollowParm.parammaps.times=e,this.getTransferbarsList()},getTransferbarsList:function(){var e=this;Object(r["d"])(this.getTransferbarsParm).then((function(t){console.log("撒料计划车次跟随列表数据",t.data.list),null!==t.data.list&&(e.transferbarsList=t.data.list)}))},changeTransferbars:function(e,t){console.log(e,t),t.useinbar=this.transferbarsList.find((function(t){return t.id==e})).bname},createData:function(e){var t=this;if(console.log("点击了新增保存",e),""==e.sort&&""==e.barid&&""==e.tmrid&&""==e.times&&""==e.treatmethod)return this.$message({type:"error",message:"车次/栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==e.barid&&""==e.tmrid&&""==e.times&&""==e.treatmethod)return this.$message({type:"error",message:"栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==e.tmrid&&""==e.times&&""==e.treatmethod)return this.$message({type:"error",message:"TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==e.times&&""==e.treatmethod)return this.$message({type:"error",message:"班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==e.sort)return console.log(e.sort,!0),this.$message({type:"error",message:"车次不能为空",duration:2e3}),!1;if(""==e.barid)return this.$message({type:"error",message:"栏舍不能为空",duration:2e3}),!1;if(""==e.tmrid)return this.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==e.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==e.treatmethod)return this.$message({type:"error",message:"剩料处理方式不能为空",duration:2e3}),!1;if(""!==e.treatmethod&&"转投剩料"==e.treatmethod&&""==e.useinbarid)return this.$message({type:"error",message:"转投栏舍不能为空",duration:2e3}),!1;""!==e.treatmethod&&"继续饲喂"==e.treatmethod&&(e.useinbarid="0"),""!=e.rtime&&null!=e.rtime||(e.rtime="");for(var a=0;a<this.table.list.length;a++)if(e.sort==this.table.list[a].sort&&e.myId!==this.table.list[a].myId)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==e.sort&&!i.test(parseFloat(e.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="insertRemainplan",this.requestParam.parammaps=e,this.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.dropState=!1):Object(r["l"])(e,t.$notify)}))},createCancel:function(e){console.log("点击了新增取消"),this.dropState=!1;for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,"0"==e.useinbarid&&(e.useinbarid=""),void 0==e.barid&&(e.barid=""),void 0==e.tmrid&&(e.tmrid=""),void 0==e.times&&(e.times=""),void 0==e.useinbarid&&(e.useinbarid=""),void 0==e.treatmethod&&(e.treatmethod=""),this.getCarFollowParm.parammaps.times=e.times,this.getCarFollowList(e),this.dropState=!0},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),""==e.barid&&""==e.tmrid&&""==e.times&&""==e.treatmethod)return this.$message({type:"error",message:"栏舍/TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==e.tmrid&&""==e.times&&""==e.treatmethod)return this.$message({type:"error",message:"TMR编号/班次/剩料处理方式不能为空",duration:2e3}),!1;if(""==e.times&&""==e.treatmethod)return this.$message({type:"error",message:"班次/混剩料处理方式不能为空",duration:2e3}),!1;if(""==e.barid)return this.$message({type:"error",message:"栏舍不能为空",duration:2e3}),!1;if(""==e.tmrid)return this.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==e.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==e.treatmethod)return this.$message({type:"error",message:"剩料处理方式不能为空",duration:2e3}),!1;if(""!==e.treatmethod&&"转投剩料"==e.treatmethod&&""==e.useinbarid)return this.$message({type:"error",message:"转投栏舍不能为空",duration:2e3}),!1;""!==e.treatmethod&&"继续饲喂"==e.treatmethod&&(e.useinbarid="0"),""!=e.rtime&&null!=e.rtime||(e.rtime="");for(var a=0;a<this.table.list.length;a++)if(e.sort==this.table.list[a].sort&&e.id!==this.table.list[a].id)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==e.sort&&!i.test(parseFloat(e.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateRemainplan",this.requestParam.parammaps=e,this.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.dropState=!1):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList(),this.dropState=!1},handleSelect:function(e){console.log("勾选数据",e),this.selectList=e},handleRowDelete:function(e){var t=this;console.log(e,"点击了行删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam={},t.requestParam.name="deleteRemainplan",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleDelete:function(){var e=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteRemainplan",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCheck:function(){console.log("点击了校验"),this.check.dialogStatus="check",this.check.dialogFormVisible=!0},handleHistoryRecords:function(){console.log("点击了历史记录"),this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var e=this;Object(r["d"])(this.history.getdataDateParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.history.getdataListParm.parammaps.date=t.data.list[0].maxdate,e.getHistoryList()):e.history.getdataListParm.parammaps.date=""}))},changeDate:function(){this.getHistoryList()},handleApplication:function(){var e=this;console.log("点击了应用"),d["MessageBox"].confirm("是否确认将"+this.history.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="applyFPdate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=c.a.get("pastureid"),e.requestParam.parammaps.date=e.history.getdataListParm.parammaps.date,Object(r["g"])(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.getHistoryIsDisplay(),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消应用"})}))},getHistoryList:function(){var e=this;this.history.listLoading=!0,Object(r["d"])(this.history.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(console.log("table数据",t.data.list),e.history.list=t.data.list,e.history.pageNum=t.data.pageNum,e.history.pageSize=t.data.pageSize,e.history.total=t.data.total):e.history.list=[],setTimeout((function(){e.history.listLoading=!1}),100)}))}}},p=m,u=(a("a578"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"2c504ff0",null);t["default"]=h.exports},9875:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;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":e.pickerOptions},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"计划类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.pid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"pid",t)},expression:"table.getdataListParm.parammaps.pid"}},e._l(e.planTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"TMR名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.tmrtname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"tmrtname",t)},expression:"table.getdataListParm.parammaps.tmrtname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"工作状态",clearable:""},model:{value:e.table.getdataListParm.parammaps.iscompleted,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"iscompleted",t)},expression:"table.getdataListParm.parammaps.iscompleted"}},e._l(e.workingConditionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("h4",[e._v("TMR设备列表")]),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,height:"970px"},on:{"row-click":e.rowClick}},[a("el-table-column",{attrs:{label:"开始时间","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.intime))])]}}])}),a("el-table-column",{attrs:{label:"计划类型","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lpplantype))])]}}])}),a("el-table-column",{attrs:{label:"描述","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"TMR名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tmrtname))])]}}])})],1)],1)]),a("el-col",{attrs:{span:16}},[a("h4",[e._v("过程详情")]),a("div",{staticClass:"detail"},[a("div",{staticClass:"detail-t"},[e._v(" 过程时间: "),0!==e.table2.list.length?a("span",[e._v(e._s(e.table2.list[0].proesstime))]):e._e(),e._v("; 工作状态: "),0!==e.table2.list.length?a("span",[e._v(e._s(e.table2.list[0].iscompleted))]):e._e()]),a("div",{staticClass:"detail-b"},[e._v(" 混料误差值: "),0!==e.table2.list.length?a("span",[e._v(e._s(e.table2.list[0].Hdif)+"kg")]):e._e(),e._v("; 混料准确率: "),0!==e.table2.list.length?a("span",[e._v(e._s(e.table2.list[0].HdifRate))]):e._e(),e._v("; 撒料误差值: "),0!==e.table2.list.length?a("span",[e._v(e._s(e.table2.list[0].Sdif)+"kg")]):e._e(),e._v("; 撒料准确率: "),0!==e.table2.list.length?a("span",[e._v(e._s(e.table2.list[0].SdifRate))]):e._e()])]),a("div",{staticClass:"Mixture"},[a("h4",[e._v("混料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table3.listLoading,expression:"table3.listLoading"}],key:e.table3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table3.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,height:"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"计划重量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lweight))])]}}])}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.actualweightminus))])]}}])}),a("el-table-column",{attrs:{label:"误差值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.diff))])]}}])}),a("el-table-column",{attrs:{label:"准确率","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.diffRate))])]}}])}),a("el-table-column",{attrs:{label:"完成时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.intime))])]}}])}),a("el-table-column",{attrs:{label:"过程时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.proesstime))])]}}])}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buttontype))])]}}])}),a("el-table-column",{attrs:{label:"开始重量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lastactualweight))])]}}])}),a("el-table-column",{attrs:{label:"结束重量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.actualweight))])]}}])})],1)],1),a("div",{staticClass:"SpreadingMaterials"},[a("h4",[e._v("撒料详情")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table4.listLoading,expression:"table4.listLoading"}],key:e.table4.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table4.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,height:"200px"}},[a("el-table-column",{attrs:{label:"操作编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"计划重量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lweight))])]}}])}),a("el-table-column",{attrs:{label:"实际重量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.actualweightminus))])]}}])}),a("el-table-column",{attrs:{label:"误差值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.diff))])]}}])}),a("el-table-column",{attrs:{label:"准确率","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.diffRate))])]}}])}),a("el-table-column",{attrs:{label:"完成时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.intime))])]}}])}),a("el-table-column",{attrs:{label:"过程时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.proesstime))])]}}])}),a("el-table-column",{attrs:{label:"跳转方式","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.buttontype))])]}}])}),a("el-table-column",{attrs:{label:"开始重量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lastactualweight))])]}}])}),a("el-table-column",{attrs:{label:"结束重量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.actualweight))])]}}])})],1)],1),a("div",{staticClass:"ControlChart"},[a("h4",[e._v("监控图")]),a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"chartLine"}})])])],1)],1)},s=[],r=a("313e"),l=a.n(r),n=a("2934"),o=a("a78e"),c=a.n(o),d=a("ed08");a("817d");var m={name:"ProcessAnalysis",data:function(){var e=this;return{pickerMinDate:"",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()}},requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],planTypeList:[{id:"3",name:"预混计划"},{id:"2",name:"撒料计划"},{id:"4",name:"剩料计划"}],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["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(d["e"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],iscompleted:"",tmrtname:""}},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:{},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.table.listLoading=!0,Object(n["d"])(this.table.getdataListParm).then((function(t){console.log("TMR设备列表table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table2.getdataListParm.parammaps.id=t.data.list[0].id,e.table3.getdataListParm.parammaps.pid=t.data.list[0].id,e.table4.getdataListParm.parammaps.pid=t.data.list[0].id,e.chart1.getdataListParm.parammaps.pid=t.data.list[0].id,e.getList2(),e.getList3(),e.getList4(),e.getChart1()):(e.table.list=[],e.table2.list=[],e.table3.list=[],e.table2.listLoading=!1,e.table3.listLoading=!1,e.table4.listLoading=!1,e.chart1.listLoading=!1),setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(d["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(d["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.tmrtname="",this.table.getdataListParm.parammaps.iscompleted="",this.table.getdataListParm.parammaps.pid="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},rowClick:function(e,t,a){this.table2.getdataListParm.parammaps.id=e.id,this.table3.getdataListParm.parammaps.pid=e.id,this.table4.getdataListParm.parammaps.pid=e.id,this.chart1.getdataListParm.parammaps.pid=e.id,this.getList2(),this.getList3(),this.getList4(),this.getChart1()},getList2:function(){var e=this;this.table2.listLoading=!0,Object(n["d"])(this.table2.getdataListParm).then((function(t){console.log("过程详情table数据",t.data.list),null!==t.data.list?e.table2.list=t.data.list:e.table2.list=[],setTimeout((function(){e.table2.listLoading=!1}),100)}))},getList3:function(){var e=this;this.table3.listLoading=!0,Object(n["d"])(this.table3.getdataListParm).then((function(t){console.log("混料详情table数据",t.data.list),null!==t.data.list?e.table3.list=t.data.list:e.table3.list=[],setTimeout((function(){e.table3.listLoading=!1}),100)}))},getList4:function(){var e=this;this.table4.listLoading=!0,Object(n["d"])(this.table4.getdataListParm).then((function(t){console.log("撒料详情table数据",t.data.list),null!==t.data.list?e.table4.list=t.data.list:e.table4.list=[],setTimeout((function(){e.table4.listLoading=!1}),100)}))},getChart1:function(){var e=this;this.chart1.listLoading=!0,Object(n["f"])(this.chart1.getdataListParm).then((function(t){if(null!==t.data.list){e.chart1.list=t.data.data,console.log("实时监控",t.data.list);for(var a=[],i=[],s=0;s<t.data.list.data4.length;s++)console.log(t.data.list.data4[s]),0==s?i.push(t.data.list.data4[s]):s%2==0?a.push(t.data.list.data4[s]):i.push(t.data.list.data4[s]);t.data.list.data4=i,t.data.list.data5=a,e.chart1.chartLine_data=t.data.list,e.chart1.total=t.data.total,e.roadChartLine1(e.chart1.chartLine_data)}else e.chart1.list=[];setTimeout((function(){e.chart1.listLoading=!1}),100)}))},roadChartLine1:function(e){null!=this.chartLine&&this.chartLine.dispose(),this.chartLine=l.a.init(document.getElementById("chartLine"));var t={title:{text:"",subtext:""},color:["#ff3131","#61a5e8","#ff3131","#61a5e8"],legend:{data:[{name:"设计重量",icon:"rectangle"},{name:"实际重量",icon:"rectangle"},{name:"开始重量",icon:"triangle"},{name:"结束重量",icon:"triangle"}],right:"20%",textStyle:{fontSize:12,color:"#666"}},tooltip:{trigger:"axis"},calculable:!0,yAxis:[{type:"value",name:"重量(kg)",splitLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#666"}}}],xAxis:[{type:"category",splitLine:{show:!1},name:"时间",data:e.data1,axisLabel:{show:!0,textStyle:{color:"#666"}}}],series:[{symbol:"none",name:"实际重量",type:"line",data:e.data3,smooth:!0,barWidth:"37",itemStyle:{normal:{lineStyle:{color:"#ff3131"}}}},{symbol:"none",name:"设计重量",type:"line",barWidth:"37",data:e.data2,itemStyle:{normal:{lineStyle:{color:"#61a5e8"}}}},{name:"开始重量",symbol:"triangle",symbolSize:10,type:"scatter",data:e.data4},{name:"结束重量",symbol:"triangle",symbolSize:10,type:"scatter",data:e.data5}]};this.chartLine.setOption(t),window.onresize=function(){this.chartLine.resize()}}}},p=m,u=(a("b678"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"3a8bfbee",null);t["default"]=h.exports},"98af":function(e,t,a){"use strict";var i=a("86ac"),s=a.n(i);s.a},9921:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},9950:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-设备基础信息",use:"icon-设备基础信息-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-设备基础信息"><defs><style type="text/css"></style></defs><path d="M689.536 192c26.816 0 50.794667 16.64 60.202667 41.706667l78.08 207.978666 67.754666-39.125333 27.562667 47.786667-50.709333 29.269333a64.213333 64.213333 0 0 1 27.157333 52.522667v202.368a64.298667 64.298667 0 0 1-64.298667 64.298666h-27.648V874.666667h-55.146666v-75.861334H255.957333V874.666667H200.853333v-75.861334H173.184a64.298667 64.298667 0 0 1-64.32-64.298666v-202.368a64.213333 64.213333 0 0 1 27.2-52.522667L85.333333 450.346667l27.584-47.786667 67.733334 39.104 78.08-207.957333A64.298667 64.298667 0 0 1 318.933333 192h370.602667z m145.728 342.954667H173.184v199.552h662.101333v-199.552z m-556.288 50.090666a41.386667 41.386667 0 1 1 0 82.752 41.386667 41.386667 0 0 1 0-82.752z m455.125333 0a41.386667 41.386667 0 1 1 0 82.752 41.386667 41.386667 0 0 1 0-82.752z m-44.565333-328.746666H318.933333l-79.402666 211.52h529.386666l-79.36-211.52z m-79.573333 46.037333v62.058667h-206.869334v-62.08h206.869334z" p-id="7118" /></symbol>'});l.a.add(n);t["default"]=n},"9a85":function(e,t,a){},"9aa1":function(e,t,a){"use strict";a.r(t);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);t["default"]=n},"9ae9":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-系统管理",use:"icon-系统管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-系统管理"><defs><style type="text/css"></style></defs><path d="M990.930764 623.116113h-2.794151c-44.2049 0-79.556537-37.982029-79.556537-84.34651 0-15.291067 6.98026-32.055973 6.980259-32.055973 6.98026-16.283861 1.402193-36.006677-12.097752-46.364481l-0.931383-0.491279-76.762387-45.381923-0.931383-0.491279a38.278843 38.278843 0 0 0-14.891903-2.957911 40.018791 40.018791 0 0 0-28.842188 12.333157c-9.303601 10.357805-39.077172 36.989235-62.801867 36.989235-24.185269 0-53.498266-27.132945-63.272676-37.49075a38.933882 38.933882 0 0 0-28.842187-12.824436c-5.117492 0-10.234985 0.982559-14.421094 2.957911l-0.931384 0.491279-79.546302 46.364482-1.402193 0.491279c-13.960519 10.357805-19.067777 29.599576-12.097752 46.364481 0 0 6.98026 16.764905 6.98026 32.547252 0 46.865996-35.822447 84.34651-79.556538 84.34651h-2.794151c-13.029136-0.491279-23.264121 11.841877-26.518845 30.090856-0.450339 1.484073-6.499215 36.508191-6.499216 63.630901 0 27.624224 6.048876 62.146828 6.509451 63.630901 3.254725 18.248978 13.48971 30.090855 26.048036 30.090855h3.26496c44.194665 0 79.556537 37.982029 79.556538 84.34651 0 15.291067-6.98026 32.066208-6.98026 32.557487-6.50945 16.273626-1.862767 35.515397 12.097752 46.364482l0.931384 0.491279 75.370428 44.389129 0.931384 0.491279a36.641246 36.641246 0 0 0 14.891903 2.957911 38.933882 38.933882 0 0 0 28.842187-12.824436c8.843027-10.357805 39.547981-38.964587 64.20406-38.964587s54.900459 28.606783 64.674869 39.947146c6.970025 8.392688 17.675819 12.824436 28.842188 13.315715 5.117492 0 9.774411-0.982559 14.421093-2.957911l0.931384-0.491279 78.154344-45.873202 0.931384-0.491279c13.960519-10.357805 19.078012-29.599576 12.097752-46.364482 0 0-6.98026-16.764905-6.98026-32.557487 0-46.855761 35.822447-84.34651 79.556538-84.34651h2.794151c13.029136 0.491279 23.264121-11.841877 26.518845-30.090855 0.460574-1.484073 6.50945-36.508191 6.509451-63.630901 0-27.624224-6.048876-62.648342-6.048876-64.12218-3.275195-18.730022-13.980989-30.5719-26.539316-30.070386z m-32.567722 144.517986c-55.831842 2.968146-100.026507 52.280303-100.026507 111.479455 0 19.722816 7.440834 38.964587 8.843027 42.915292l-66.066827 38.964587c-0.931384 0-1.862767-0.491279-2.323342-0.491279-1.391958-1.484073-10.695559-12.333157-24.656078-23.192476-20.46997-16.273626-40.008556-24.656079-58.155184-24.656078-18.136393 0-37.22464 7.891173-57.684375 24.164799a217.565073 217.565073 0 0 0-24.656078 22.690961c-0.460574 0-1.391958 0.491279-2.323342 0.49128l-63.733251-37.982029c1.402193-3.950704 8.843027-23.182241 8.843027-42.915292 0-59.680197-43.73409-108.511309-100.026507-111.479455-0.931384-4.431748-5.117492-31.073414-5.117492-50.806465s4.186109-45.873202 5.117492-50.806464c55.831842-2.957911 100.026507-52.280303 100.026507-111.479455 0-19.733051-7.440834-38.964587-8.843027-42.915292l67.458785-39.455867c0.931384 0 1.862767 0 2.323342 0.49128 7.440834 7.891173 15.352477 15.291067 24.195504 21.698168 20.009395 15.291067 39.547981 23.182241 56.752991 23.18224 17.215245 0 36.283021-7.399894 56.292417-22.690961 8.832792-6.417336 16.744435-13.806995 24.195504-21.206889 0.931384-0.491279 1.391958-0.491279 2.323342-0.491279h0.470809l65.135444 38.473308c-1.391958 3.950704-8.832792 23.182241-8.832792 42.915292 0 59.188917 43.723855 108.521544 100.026507 111.479455 0.931384 4.431748 5.117492 31.073414 5.117492 50.806464s-3.746004 46.384951-4.677388 50.8167z" fill="#ffffff" p-id="13863" /><path d="M717.380324 589.576068c-66.066827 0-120.035902 57.213565-120.035903 127.261801s53.498266 126.760287 120.035903 127.261802c66.056592 0 120.025667-57.213565 120.025667-127.261802S782.976342 589.576068 717.380324 589.576068z m0 191.865026c-33.499105 0-60.949335-29.098062-60.949335-64.61346s27.450229-64.613459 60.949335-64.613459c33.48887 0 60.9391 29.098062 60.939099 64.613459-0.460574 35.515397-27.910804 64.613459-60.939099 64.61346z" fill="#ffffff" p-id="13864" /><path d="M921.148637 0.624334H102.349849c-56.527821 0-102.349849 45.822027-102.349849 102.349849v614.099091c0 56.527821 45.822027 102.349849 102.349849 102.349849h173.994742a30.704955 30.704955 0 1 0 0-61.409909H102.349849a40.939939 40.939939 0 0 1-40.93994-40.93994v-614.099091a40.939939 40.939939 0 0 1 40.93994-40.93994h818.798788c22.578377 0 40.939939 18.361563 40.93994 40.93994v276.344591a30.704955 30.704955 0 1 0 61.409909 0v-276.344591c0-56.517586-45.822027-102.349849-102.349849-102.349849zM378.69444 962.088577H133.054803a30.704955 30.704955 0 1 0 0 61.409909h245.639637a30.704955 30.704955 0 1 0 0-61.409909z" fill="#ffffff" p-id="13865" /></symbol>'});l.a.add(n);t["default"]=n},"9b64":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"服务单号"},model:{value:e.table.getdataListParm.parammaps.serviceCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"serviceCode",t)},expression:"table.getdataListParm.parammaps.serviceCode"}}),a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.handleCustomerSelect,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"服务人员",clearable:""},model:{value:e.table.getdataListParm.parammaps.employeeId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"employeeId",t)},expression:"table.getdataListParm.parammaps.employeeId"}},e._l(e.employeeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"服务类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.servicetypeId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"servicetypeId",t)},expression:"table.getdataListParm.parammaps.servicetypeId"}},e._l(e.servicetypeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"服务单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serviceCode))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"服务日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serviceDate))])]}}])}),a("el-table-column",{attrs:{label:"服务人员","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeeName))])]}}])}),a("el-table-column",{attrs:{label:"服务类型","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.servicetypeName))])]}}])}),a("el-table-column",{attrs:{label:"接待人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"接待人电话","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiveTel))])]}}])}),a("el-table-column",{attrs:{label:"服务结果","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.serviceResult))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit&&"1"==i.isModify&&i.createrId==e.employeid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit&&"1"==i.isDel&&i.createrId==e.employeid?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},["create"==e.create.dialogStatus?a("el-autocomplete",{staticStyle:{width:"100%","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer,clear:e.clearCustomerSelectTemp,blur:e.blurCustomerSelectTemp},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}],null,!1,2238609474),model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}}):a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务单号:",prop:"serviceCode"}},[a("el-input",{ref:"serviceCode",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入服务单号",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.serviceCode,callback:function(t){e.$set(e.create.temp,"serviceCode",t)},expression:"create.temp.serviceCode"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务日期:",prop:"serviceDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.serviceDate,callback:function(t){e.$set(e.create.temp,"serviceDate",t)},expression:"create.temp.serviceDate"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务人员:",prop:"employeeId"}},[a("el-select",{ref:"employeeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择服务人员",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.employeeId,callback:function(t){e.$set(e.create.temp,"employeeId",t)},expression:"create.temp.employeeId"}},e._l(e.employeeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务类型:",prop:"servicetypeId"}},[a("el-select",{ref:"servicetypeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择服务类型",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.servicetypeId,callback:function(t){e.$set(e.create.temp,"servicetypeId",t)},expression:"create.temp.servicetypeId"}},e._l(e.servicetypeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"接待人:",prop:"receiverId"}},[a("el-select",{ref:"receiverId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择接待人","allow-create":"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceiver},model:{value:e.create.temp.receiverId,callback:function(t){e.$set(e.create.temp,"receiverId",t)},expression:"create.temp.receiverId"}},e._l(e.create.receiverNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"接待人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入接待人电话",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.receiverTel,callback:function(t){e.$set(e.create.temp,"receiverTel",t)},expression:"create.temp.receiverTel"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务描述:",prop:"describe"}},[a("el-input",{ref:"describe",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入服务描述",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.describe,callback:function(t){e.$set(e.create.temp,"describe",t)},expression:"create.temp.describe"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务结果:",prop:"serviceResult"}},[a("el-input",{ref:"serviceResult",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请输入服务结果",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.serviceResult,callback:function(t){e.$set(e.create.temp,"serviceResult",t)},expression:"create.temp.serviceResult"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"拜访记录关联:",prop:"visitId"}},[a("el-select",{ref:"visitId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择拜访记录 ",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.visitId,callback:function(t){e.$set(e.create.temp,"visitId",t)},expression:"create.temp.visitId"}},e._l(e.create.visitNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"回访记录关联:",prop:"telvisitId"}},[a("el-select",{ref:"telvisitId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选回访记录关联 ",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.telvisitId,callback:function(t){e.$set(e.create.temp,"telvisitId",t)},expression:"create.temp.telvisitId"}},e._l(e.create.telvisitNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span: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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"定位:",prop:"location"}},[a("el-input",{ref:"location",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.location,callback:function(t){e.$set(e.create.temp,"location",t)},expression:"create.temp.location"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"现场照片:",prop:"scenePhoto1"}},[a("el-upload",{staticClass:"uploadPic",attrs:{id:"uploadPic","list-type":"picture-card",action:e.uploadImageUrl,limit:9,headers:e.headers,"file-list":e.fileList,"on-preview":e.handlePicPreview,"auto-upload":!0,"on-change":function(t,a){return e.handlePicChange(t,a)},"on-success":function(t,a,i){return e.handlePicSuccess(t,a,i)},"on-remove":function(t,a){return e.handlePicRemove(t,a)}}},[a("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),a("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":"",width:"40%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{width:"80%",src:e.dialogImageUrl,alt:""}})])],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"服务单照片:",prop:"serviceCodePhoto"}},[a("el-upload",{attrs:{id:"uploadPic2","list-type":"picture-card",action:e.uploadImageUrl,limit:1,headers:e.headers,"file-list":e.fileList2,"on-preview":e.handlePicPreview2,"auto-upload":!0,"on-change":function(t,a){return e.handlePicChange2(t,a)},"on-success":function(t,a,i){return e.handlePicSuccess2(t,a,i)},"on-remove":function(t,a){return e.handlePicRemove2(t,a)}}},[a("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),a("el-dialog",{attrs:{visible:e.dialogVisible2,"append-to-body":"",width:"40%"},on:{"update:visible":function(t){e.dialogVisible2=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1)],1)],1),a("el-row",[a("el-form-item",{attrs:{label:"备货关联:",prop:"stockupId"}},[a("el-select",{ref:"stockupId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择备货关联",disabled:"see"==e.create.dialogStatus},on:{change:e.changePostalName},model:{value:e.create.temp.stockupId,callback:function(t){e.$set(e.create.temp,"stockupId",t)},expression:"create.temp.stockupId"}},e._l(e.create.postalNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._l(e.tableArrList,(function(t,i){return a("div",[a("el-row",[a("el-divider"),e._v(" 备货单号:"+e._s(t.title)+" "),a("el-button",{staticClass:"miniDanger",on:{click:function(a){return e.handleRowDeleteCode(t,i)}}},[e._v("删除")])],1),a("el-row",[a("el-table",{key:t.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{data:t.tablelist,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}],null,!0)}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.nums))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.nums,callback:function(a){e.$set(t.row,"nums",a)},expression:"scope.row.nums"}}):e._e()]}}],null,!0)}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}],null,!0)}),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"110","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return["update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(s,i)}}},[e._v("删除")]):e._e()]}}],null,!0)}):e._e()],1)],1)],1)}))],2),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("c740"),a("4160"),a("caad"),a("c975"),a("d81d"),a("a434"),a("b0c0"),a("d3b7"),a("ac1f"),a("25f0"),a("2532"),a("1276"),a("159b"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("5f87"),d=a("333d"),m=a("5c96"),p={name:"SiteService",components:{Pagination:d["a"]},data:function(){return{employeid:n.a.get("employeid"),disabled:!1,dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,uploadImageUrl:"http://192.168.1.90:8082/authdata/uploaderimage",headers:{optname:"insertcustompic",id:1,token:Object(c["a"])()},fileList:[],fileList2:[],isRoleEdit:[],requestParams:[{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getEmployeesSelect",offset:0,pagecount:0,parammaps:{}},{name:"getDictListSelect4",offset:0,pagecount:0,parammaps:{pid:"61"}}],customerNameList:[],groupNameList:[],employeeNameList:[],servicetypeNameList:[],table:{getdataListParm:{name:"getService",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{serviceCode:"",customerId:"",groupId:"",employeeId:"",servicetypeId:"",inputDatetime:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",serviceCode:"",serviceDate:Object(o["e"])(new Date,"{y}-{m}-{d}"),employeeId:"",servicetypeId:"",receiverId:"",receiverTel:"",receiverName:"",describe:"",serviceResult:"",visitId:"",telvisitId:"",stockupIds:"",remark:"",id:"",modifyName:"add",receiverChoose:"true",scenePhoto1:-1,scenePhoto2:-1,scenePhoto3:-1,scenePhoto4:-1,scenePhoto5:-1,scenePhoto6:-1,scenePhoto7:-1,scenePhoto8:-1,scenePhoto9:-1,serviceCodePhoto:-1,picname1:"",picname2:"",picname3:"",picname4:"",picname5:"",picname6:"",picname7:"",picname8:"",picname9:"",location:""},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],serviceCode:[{required:!0,message:"必填",trigger:"blur"}],serviceDate:[{required:!0,message:"必填",trigger:"blur"}],employeeId:[{required:!0,message:"必填",trigger:"blur"}],servicetypeId:[{required:!0,message:"必填",trigger:"blur"}],serviceResult:[{required:!0,message:"必填",trigger:"blur"}],describe:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],scenePhoto1:[{required:!0,message:"必填",trigger:"blur"}],serviceCodePhoto:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm0:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},getdataListParm01:{name:"getTelById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},receiverNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm1:{name:"getStockGoodsByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},postalNameList:[],getdataListParm3:{name:"getStockGoodsBySid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{stockupId:""}},getdataListParm4:{name:"getServiceGoodsByServiceId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{serviceId:""}},getdataListParm5:{name:"getVisitByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},visitNameList:[],getdataListParm6:{name:"getTelvisitByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},telvisitNameList:[]},textMap:{create:"新增",see:"查看",update:"编辑"},stockupIdArr:[],tableArrList:[],requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{handlePicPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handlePicChange:function(e,t){},handlePicSuccess:function(e,t,a){console.log("文件上传成功时的钩子response",e),console.log("文件上传成功时的钩子file",t),console.log("fileList",a),9==a.length?document.getElementById("uploadPic").lastChild.style.display="none":document.getElementById("uploadPic").lastChild.style.display="inline-block",void 0===this.create.temp.scenePhoto1||-1==this.create.temp.scenePhoto1?(console.log("111"),this.create.temp.scenePhoto1=e.execresult.LastInsertId):void 0===this.create.temp.scenePhoto2||-1==this.create.temp.scenePhoto2?(console.log("222"),this.create.temp.scenePhoto2=e.execresult.LastInsertId):void 0===this.create.temp.scenePhoto3||-1==this.create.temp.scenePhoto3?(console.log("333"),this.create.temp.scenePhoto3=e.execresult.LastInsertId):void 0===this.create.temp.scenePhoto4||-1==this.create.temp.scenePhoto4?(console.log("444"),this.create.temp.scenePhoto4=e.execresult.LastInsertId):void 0===this.create.temp.scenePhoto5||-1==this.create.temp.scenePhoto5?(console.log("555"),this.create.temp.scenePhoto5=e.execresult.LastInsertId):void 0===this.create.temp.scenePhoto6||-1==this.create.temp.scenePhoto6?(console.log("666"),this.create.temp.scenePhoto6=e.execresult.LastInsertId):void 0===this.create.temp.scenePhoto7||-1==this.create.temp.scenePhoto7?(console.log("777"),this.create.temp.scenePhoto7=e.execresult.LastInsertId):void 0===this.create.temp.scenePhoto8||-1==this.create.temp.scenePhoto8?(console.log("888"),this.create.temp.scenePhoto8=e.execresult.LastInsertId):void 0!==this.create.temp.scenePhoto9&&-1!=this.create.temp.scenePhoto9||(console.log("999"),this.create.temp.scenePhoto9=e.execresult.LastInsertId),console.log("this.picArr1",this.picArr1),console.log("this.create.temp",this.create.temp)},handlePicRemove:function(e,t){console.log(e,"文件列表移除文件时的钩子file---"),console.log(t,"文件列表移除文件时的钩子fileList--"),9==t.length?document.getElementById("uploadPic").lastChild.style.display="none":document.getElementById("uploadPic").lastChild.style.display="inline-block",this.create.temp.scenePhoto1=-1,this.create.temp.scenePhoto2=-1,this.create.temp.scenePhoto3=-1,this.create.temp.scenePhoto4=-1,this.create.temp.scenePhoto5=-1,this.create.temp.scenePhoto6=-1,this.create.temp.scenePhoto7=-1,this.create.temp.scenePhoto8=-1,this.create.temp.scenePhoto9=-1,9==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId,this.create.temp.scenePhoto3=t[2].response.execresult.LastInsertId,this.create.temp.scenePhoto4=t[3].response.execresult.LastInsertId,this.create.temp.scenePhoto5=t[4].response.execresult.LastInsertId,this.create.temp.scenePhoto6=t[5].response.execresult.LastInsertId,this.create.temp.scenePhoto7=t[6].response.execresult.LastInsertId,this.create.temp.scenePhoto8=t[7].response.execresult.LastInsertId,this.create.temp.scenePhoto9=t[8].response.execresult.LastInsertId):8==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId,this.create.temp.scenePhoto3=t[2].response.execresult.LastInsertId,this.create.temp.scenePhoto4=t[3].response.execresult.LastInsertId,this.create.temp.scenePhoto5=t[4].response.execresult.LastInsertId,this.create.temp.scenePhoto6=t[5].response.execresult.LastInsertId,this.create.temp.scenePhoto7=t[6].response.execresult.LastInsertId,this.create.temp.scenePhoto8=t[7].response.execresult.LastInsertId):7==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId,this.create.temp.scenePhoto3=t[2].response.execresult.LastInsertId,this.create.temp.scenePhoto4=t[3].response.execresult.LastInsertId,this.create.temp.scenePhoto5=t[4].response.execresult.LastInsertId,this.create.temp.scenePhoto6=t[5].response.execresult.LastInsertId,this.create.temp.scenePhoto7=t[6].response.execresult.LastInsertId):6==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId,this.create.temp.scenePhoto3=t[2].response.execresult.LastInsertId,this.create.temp.scenePhoto4=t[3].response.execresult.LastInsertId,this.create.temp.scenePhoto5=t[4].response.execresult.LastInsertId,this.create.temp.scenePhoto6=t[5].response.execresult.LastInsertId):5==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId,this.create.temp.scenePhoto3=t[2].response.execresult.LastInsertId,this.create.temp.scenePhoto4=t[3].response.execresult.LastInsertId,this.create.temp.scenePhoto5=t[4].response.execresult.LastInsertId):4==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId,this.create.temp.scenePhoto3=t[2].response.execresult.LastInsertId,this.create.temp.scenePhoto4=t[3].response.execresult.LastInsertId):3==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId,this.create.temp.scenePhoto3=t[2].response.execresult.LastInsertId):2==t.length?(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId,this.create.temp.scenePhoto2=t[1].response.execresult.LastInsertId):1==t.length&&(this.create.temp.scenePhoto1=t[0].response.execresult.LastInsertId),console.log(this.create.temp)},handlePicPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handlePicChange2:function(e,t){},handlePicSuccess2:function(e,t,a){console.log("文件上传成功时的钩子response",e),console.log("文件上传成功时的钩子file",t),console.log("fileList",a),1==a.length?document.getElementById("uploadPic2").lastChild.style.display="none":document.getElementById("uploadPic2").lastChild.style.display="inline-block",this.create.temp.serviceCodePhoto=e.execresult.LastInsertId,console.log("this.picArr1",this.picArr1)},handlePicRemove2:function(e,t){console.log(e,"文件列表移除文件时的钩子file---"),console.log(t,"文件列表移除文件时的钩子fileList--"),1==t.length?document.getElementById("uploadPic2").lastChild.style.display="none":document.getElementById("uploadPic2").lastChild.style.display="inline-block",this.create.temp.serviceCodePhoto=t[0].response.execresult.LastInsertId},getButtons:function(){var e="siteService",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),e.employeeNameList=t.data.getEmployeesSelect.list,console.log("服务人员下拉框",e.employeeNameList),e.servicetypeNameList=t.data.getDictListSelect4.list,console.log("服务类型下拉框",e.servicetypeNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.serviceCode="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.employeeId="",this.table.getdataListParm.parammaps.servicetypeId="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",serviceCode:"",serviceDate:Object(o["e"])(new Date,"{y}-{m}-{d}"),employeeId:"",servicetypeId:"",receiverId:"",receiverTel:"",receiverName:"",describe:"",serviceResult:"",visitId:"",telvisitId:"",stockupIds:"",remark:"",id:"",modifyName:"add",receiverChoose:"true",scenePhoto1:-1,scenePhoto2:-1,scenePhoto3:-1,scenePhoto4:-1,scenePhoto5:-1,scenePhoto6:-1,scenePhoto7:-1,scenePhoto8:-1,scenePhoto9:-1,serviceCodePhoto:-1,picname1:"",picname2:"",picname3:"",picname4:"",picname5:"",picname6:"",picname7:"",picname8:"",picname9:"",codePicname:""},this.stockupIdArr=[],this.tableArrList=[],this.fileList=[],this.fileList2=[],this.create.postalNameList=[],document.getElementById("uploadPic").lastChild.style.display="inline-block",document.getElementById("uploadPic2").lastChild.style.display="inline-block"},clearCustomerSelectTemp:function(e){document.activeElement.blur(),this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(r["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},handleCustomerSelect:function(e){console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name},clearCustomerSelect:function(e){document.activeElement.blur(),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName=""},changeCustomer:function(e){console.log(e),this.create.temp.customerId=e.id,this.create.temp.customerName=e.name,this.create.temp.stockupId="",this.tableArrList=[],this.create.getdataListParm0.parammaps.customerId=e.id,this.getReceiverNameList(),this.create.getdataListParm2.parammaps.id=e.id,this.getGroupNameId(),this.create.getdataListParm1.parammaps.customerId=e.id,this.getPostalNameList(),this.create.getdataListParm5.parammaps.customerId=e.id,this.getVisitNameList(),this.create.getdataListParm5.parammaps.customerId=e.id,this.getTelvisitNameList()},getVisitNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm5).then((function(t){null!==t.data.list?(e.create.visitNameList=t.data.list,console.log("拜访数据",t.data.list)):e.create.visitNameList=[]}))},getTelvisitNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm6).then((function(t){null!==t.data.list?(e.create.telvisitNameList=t.data.list,console.log("回访数据",t.data.list)):e.create.telvisitNameList=[]}))},getReceiverNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm0).then((function(t){null!==t.data.list?(e.create.receiverNameList=t.data.list,console.log("接待人数据",t.data.list)):e.create.receiverNameList=[]}))},changeReceiver:function(e){this.create.getdataListParm01.parammaps.id=e,this.create.temp.receiverName=this.create.receiverNameList.find((function(t){return t.id===e})).name,this.getTelephoneName()},getTelephoneName:function(){var e=this;Object(r["d"])(this.create.getdataListParm01).then((function(t){null!==t.data.list&&(e.create.temp.receiverTel=t.data.list[0].telephone,console.log("接待人电话",t.data.list))}))},getPostalNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm1).then((function(t){null!==t.data.list?(e.create.postalNameList=t.data.list,console.log("关联接收数据",t.data.list)):e.create.postalNameList=[]}))},getGroupNameId:function(){var e=this;Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},changePostalName:function(e){console.log("发货详情ID ",e),console.log("发货详情ID是否已存在 ",this.stockupIdArr.includes(e)),console.log("stockupIdArr===>",this.stockupIdArr),this.stockupIdArr.includes(e)||(this.stockupIdArr.push(e),this.create.getdataListParm3.parammaps.stockupId=e,this.getReceProduct())},handleRowDeleteCode:function(e,t){console.log("小表格中的删除单号",e),this.tableArrList.splice(t,1),this.stockupIdArr.splice(this.stockupIdArr.indexOf(e.stockupId),1),console.log("stockupIdArr===>",this.stockupIdArr)},handleRowDelete2:function(e,t){console.log("小表格中的删除",e,t);var a=this.tableArrList[t].tablelist.findIndex((function(t){return t.id==e.id}));this.tableArrList[t].tablelist,this.tableArrList[t].tablelist.splice(a,1)},handleCreate:function(){console.log("点击了新增"),this.create.dialogStatus="create",this.create.dialogFormVisible=!0,this.resetTemp()},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.stockupIds=e.stockupIdArr.toString();var a=[];e.tableArrList.forEach((function(e){e.tablelist.forEach((function(e){a.push(e)}))}));var i=e.create.temp.customerId;if(a.map((function(e){return e.customerId=i})),a.map((function(e){return e.serviceId=""})),console.log("点击了新增保存this.create.temp",e.create.temp),console.log("点击了新增保存this.tableArrList",e.tableArrList),console.log("点击了新增保存sendTableArr",a),"-1"==e.create.temp.scenePhoto1||"-1"==e.create.temp.serviceCodePhoto)var s=!0;else s=!1;if(s)e.$message({type:"error",message:"请添加现场照片或服务单照片!",duration:2e3});else{e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="@insertContactsNew.LastInsertId",e.create.temp.createrId=n.a.get("employeid");var l={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"insertService",type:"e",parammaps:e.create.temp},{name:"insertServiceGoods",resultmaps:{list:a},children:[{name:"insertServiceGoods",type:"e",parammaps:{serviceId:"@insertServiceGoods.serviceId",customerId:"@insertServiceGoods.customerId",productsId:"@insertServiceGoods.productsId",nums:"@insertServiceGoods.nums",remark:"@insertServiceGoods.remark",createrId:"@insertServiceGoods.createrId",stockupId:"@insertServiceGoods.stockupId"}}]}]};console.log("新增保存发送参数",l),Object(r["b"])(l).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}}))},handleSee:function(e){if(this.create.temp=Object.assign({},e),this.create.temp.id=e.id,console.log("点击了查看"),this.create.getdataListParm0.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getPostalNameList(),""!==e.stockupIds&&null!==e.stockupIds&&void 0!==e.stockupIds){this.stockupIdArr=e.stockupIds.split(",");var t=[];this.stockupIdArr.forEach((function(e){t.push(parseInt(e))})),this.stockupIdArr=t,console.log("stockupIdArr",this.stockupIdArr),this.create.getdataListParm4.parammaps.serviceId=e.id,this.getReceProduct2()}var a=[],i=[],s=[];void 0!=this.create.temp.picname1&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1),i.push(this.create.temp.scenePhoto1)),void 0!=this.create.temp.picname2&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname2),i.push(this.create.temp.scenePhoto2)),void 0!=this.create.temp.picname3&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname3),i.push(this.create.temp.scenePhoto3)),void 0!=this.create.temp.picname4&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname4),i.push(this.create.temp.scenePhoto4)),void 0!=this.create.temp.picname5&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname5),i.push(this.create.temp.scenePhoto5)),void 0!=this.create.temp.picname6&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname6),i.push(this.create.temp.scenePhoto6)),void 0!=this.create.temp.picname7&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname7),i.push(this.create.temp.scenePhoto7)),void 0!=this.create.temp.picname8&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname8),i.push(this.create.temp.scenePhoto8)),void 0!=this.create.temp.picname9&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname2),i.push(this.create.temp.scenePhoto9)),console.log("urlArray",a),console.log("urlArrayId",i);for(var r=0;r<a.length;r++){var l={url:"",response:{execresult:{LastInsertId:""}}};l.url=a[r],l.response.execresult.LastInsertId=i[r],s.push(l)}this.fileList=s,console.log("fileList",s);var n=[],o=[],c=[];void 0==this.create.temp.codePicname?n.push():(n.push("http://192.168.1.90:8082/"+this.create.temp.codePicname),o.push(this.create.temp.serviceCodePhoto)),console.log("urlArray2",n),console.log("urlArrayId2",o);for(var d=0;d<n.length;d++){var m={url:"",response:{execresult:{LastInsertId:""}}};m.url=n[d],m.response.execresult.LastInsertId=o[d],c.push(m)}this.fileList2=c,console.log("fileList2",c),this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){if(console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.getdataListParm0.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getPostalNameList(),""!==e.stockupIds&&e.stockupIds){this.stockupIdArr=e.stockupIds.split(",");var t=[];this.stockupIdArr.forEach((function(e){t.push(parseInt(e))})),this.stockupIdArr=t,console.log("stockupIdArr",this.stockupIdArr),this.create.getdataListParm4.parammaps.serviceId=e.id,this.getReceProduct2()}var a=[],i=[],s=[];void 0!=this.create.temp.picname1&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname1),i.push(this.create.temp.scenePhoto1)),void 0!=this.create.temp.picname2&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname2),i.push(this.create.temp.scenePhoto2)),void 0!=this.create.temp.picname3&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname3),i.push(this.create.temp.scenePhoto3)),void 0!=this.create.temp.picname4&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname4),i.push(this.create.temp.scenePhoto4)),void 0!=this.create.temp.picname5&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname5),i.push(this.create.temp.scenePhoto5)),void 0!=this.create.temp.picname6&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname6),i.push(this.create.temp.scenePhoto6)),void 0!=this.create.temp.picname7&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname7),i.push(this.create.temp.scenePhoto7)),void 0!=this.create.temp.picname8&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname8),i.push(this.create.temp.scenePhoto8)),void 0!=this.create.temp.picname9&&(a.push("http://192.168.1.90:8082/"+this.create.temp.picname2),i.push(this.create.temp.scenePhoto9)),console.log("urlArray",a),console.log("urlArrayId",i);for(var r=0;r<a.length;r++){var l={url:"",response:{execresult:{LastInsertId:""}}};l.url=a[r],l.response.execresult.LastInsertId=i[r],s.push(l)}this.fileList=s,console.log("fileList",s);var n=[],o=[],c=[];void 0==this.create.temp.codePicname?n.push():(n.push("http://192.168.1.90:8082/"+this.create.temp.codePicname),o.push(this.create.temp.serviceCodePhoto)),console.log("urlArray2",n),console.log("urlArrayId2",o);for(var d=0;d<n.length;d++){var m={url:"",response:{execresult:{LastInsertId:""}}};m.url=n[d],m.response.execresult.LastInsertId=o[d],c.push(m)}this.fileList2=c,console.log("fileList2",c),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},getReceProduct:function(){var e=this;Object(r["d"])(this.create.getdataListParm3).then((function(t){if(console.log("新增弹窗中的小表格",t.data.list),null!==t.data.list){var a={};a.title=t.data.list[0].stockupCode,a.stockupId=t.data.list[0].stockupId,a.tablelist=t.data.list,e.tableArrList.push(a)}}))},getReceProduct2:function(){var e=this;Object(r["d"])(this.create.getdataListParm4).then((function(t){if(console.log("查看和编辑中的小表格",t.data.list),console.log("查看和编辑的当前小表格ID",e.stockupIdArr),null!==t.data.list){var a=[];e.stockupIdArr.forEach((function(e){var i={title:"",stockupId:e,tablelist:[]};t.data.list.forEach((function(t){e==t.stockupId&&i.tablelist.push(t)})),a.push(i)})),console.log(a),a.map((function(e){return e.title=e.tablelist[0].stockupCode})),e.tableArrList=a}}))},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.stockupIds=e.stockupIdArr.toString();var a=[];e.tableArrList.forEach((function(e){e.tablelist.forEach((function(e){a.push(e)}))}));var i=e.create.temp.customerId;a.map((function(e){return e.customerId=i}));var s=e.create.temp.id;if(a.map((function(e){return e.serviceId=s})),console.log("点击了编辑保存this.create.temp",e.create.temp),console.log("点击了编辑保存this.tableArrList",e.tableArrList),console.log("点击了编辑保存sendTableArr",a),"-1"==e.create.temp.scenePhoto1||"-1"==e.create.temp.serviceCodePhoto)var l=!0;else l=!1;if(l)e.$message({type:"error",message:"货品数量不可为空",duration:2e3});else{e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!"));var n={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateService",type:"e",parammaps:e.create.temp},{name:"deleteServiceGoodsByServiceId",type:"e",parammaps:{serviceId:e.create.temp.id}},{name:"insertServiceGoods",resultmaps:{list:a},children:[{name:"insertServiceGoods",type:"e",parammaps:{serviceId:"@insertServiceGoods.serviceId",customerId:"@insertServiceGoods.customerId",productsId:"@insertServiceGoods.productsId",nums:"@insertServiceGoods.nums",remark:"@insertServiceGoods.remark",stockupId:"@insertServiceGoods.stockupId"}}]}]};console.log("编辑保存发送参数",n),Object(r["b"])(n).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}}))},handleRowDelete:function(e){var t=this;m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delService",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},u=p,h=(a("0979"),a("2877")),g=Object(h["a"])(u,i,s,!1,null,"7107f95a",null);t["default"]=g.exports},"9b83":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"产品类别",clearable:""},model:{value:e.table.getdataListParm.parammaps.cname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"cname",t)},expression:"table.getdataListParm.parammaps.cname"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"产品类别","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cname))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"顺序",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"产品类别:",prop:"cname"}},[a("el-input",{ref:"cname",staticClass:"filter-item",staticStyle:{width:"100%"},model:{value:e.create.temp.cname,callback:function(t){e.$set(e.create.temp,"cname",t)},expression:"create.temp.cname"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.create.temp.sort,callback:function(t){e.$set(e.create.temp,"sort",t)},expression:"create.temp.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.create.temp.enable,callback:function(t){e.$set(e.create.temp,"enable",t)},expression:"create.temp.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("b0c0"),a("2934")),l=a("61f7"),n=(a("a78e"),a("ed08"),a("333d")),o=a("5c96"),c={name:"ProductClass",components:{Pagination:n["a"]},data:function(){return{isRoleEdit:[],table:{getdataListParm:{name:"getCategory",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{cname:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{cname:"",remark:"",sort:"",enable:1},rules:{cname:[{type:"string",required:!0,message:"必填",trigger:"blur"}],sort:[{validator:l["b"],trigger:"blur"}]}},textMap:{create:"添加",update:"编辑"},requestParam:{},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{getButtons:function(){var e="DungScores",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据======>",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.cname="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={cname:"",remark:"",sort:"",enable:1}},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="checkCategoryByName",e.requestParam.parammaps=e.create.temp,Object(r["d"])(e.requestParam).then((function(t){console.log("验证名字是否存在发送参数",e.requestParam),0==t.data.list[0].num?(e.requestParam.name="insertCategory",e.requestParam.parammaps=e.create.temp,Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))):e.$notify({title:"失败",message:"产品类别已存在",type:"error",duration:2e3})})))}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.$refs["temp"].validate((function(t){t&&(e.requestParam.name="updateCategory",e.requestParam.parammaps=e.create.temp,Object(r["g"])(e.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateCategory",this.requestParam.parammaps={id:t.id,cname:t.cname,remark:t.remark,sort:t.sort,enable:t.enable},Object(r["g"])(this.requestParam).then((function(e){console.log("表格中的启用发送参数",a.requestParam),"fail"!==e.msg?(a.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),a.create.dialogFormVisible=!1,a.getList()):a.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))},handleRowDelete:function(e){var t=this;o["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delCategory",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},d=c,m=(a("524d"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"71865dfa",null);t["default"]=p.exports},"9bc7":function(e,t,a){"use strict";var i=a("9e20"),s=a.n(i);s.a},"9c0c":function(e,t,a){},"9c15":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:4}},[a("el-col",{attrs:{span:3}},[a("el-card",{staticClass:"box-card"},[a("el-tree",{ref:"tree",attrs:{data:e.treedata,"node-key":"id",props:"{children: 'children',label: 'label'}","default-expand-all":""},on:{"node-click":e.handleNodeClick}})],1)],1),a("el-col",{attrs:{span:21}},[a("el-row",[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"date",placeholder:"发布日期"},model:{value:e.tableObj.getdataListParm.parammaps.starttime,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"starttime",t)},expression:"tableObj.getdataListParm.parammaps.starttime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"品名",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.productname,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"productname",t)},expression:"tableObj.getdataListParm.parammaps.productname"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")]),a("el-button",{staticClass:"successBorder2",on:{click:e.editAll}},[e._v("编辑")]),a("el-button",{staticClass:"successBorder2",on:{click:e.saveAll}},[e._v("保存全部")])],1),a("el-row",[a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[e._v(" > "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"品名","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productname))])]}}])}),a("el-table-column",{attrs:{label:"编码","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.productcode))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"5px 0"},model:{value:t.row.productcode,callback:function(a){e.$set(t.row,"productcode",a)},expression:"scope.row.productcode"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specifications))])]}}])}),a("el-table-column",{attrs:{label:"单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._l(e.tableObj.tableHeadList,(function(t,i){return[a("el-table-column",{attrs:{label:t.column_title,"min-width":"50px",align:"center"}},[e._l(t.headlist,(function(t,i){return[a("el-table-column",{key:i,attrs:{label:t.column_title,align:"center","min-width":"50px"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.NoEdit?a("span",[e._v(e._s(i.row[t.column_name]))]):e._e(),i.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"5px 0"},model:{value:i.row[t.column_name],callback:function(a){e.$set(i.row,t.column_name,a)},expression:"scope.row[items.column_name]"}}):e._e()]}}],null,!0)})]}))],2)]}))],2)],1)])],1)],1)],1)},s=[],r=(a("4160"),a("159b"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("3de8");a("5c96"),a("313e");a("817d");var m={name:"SetPrice",components:{Pagination:c["a"],TreeSelect:d["a"]},data:function(){return{treeRequest:{name:"getProductClass",idname:"id",params:[0]},treeClickData:{id:1,label:"",layer:1,parentid:1,sort:1},treedata:[],employeid:n.a.get("employeid"),isRoleEdit:[],tableObj:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:1e4,returntype:"Map",parammaps:{starttime:Object(o["e"])(new Date,"{y}-{m}-{d}"),productname:"",productclassid:""}},tableKey:0,pageNum:1,pageSize:10,total:0,tableHeadList:[],list:[],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{processName:"",processExplain:"",id:"",modifyName:"add",enable:1},rules:{}},textMap:{create:"新增",see:"查看",update:"编辑"},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px",fontSize:"16px"},headStyle:{padding:"0px",fontSize:"16px",fontWeight:"bold",color:"#333"}}},created:function(){this.getButtons(),this.getTreeList()},methods:{getButtons:function(){var e="setprice",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getTreeList:function(){var e=this;Object(r["o"])(this.treeRequest).then((function(t){e.treedata=t.data,console.log("树形组件",e.treedata),e.tableObj.getdataListParm.parammaps.productclassid=t.data[0].id}))},handleNodeClick:function(e){console.log("树形选中",e),this.treeClickData=e,this.tableObj.getdataListParm.parammaps.productclassid=e.id,this.getList()},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm),Object(r["q"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t),null!==t.data.list?(e.tableObj.tableHeadList=t.data.headlist,e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):(e.tableObj.tableHeadList=t.data.headlist,e.tableObj.list=[]),setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),""!==this.tableObj.getdataListParm.parammaps.starttime&&null!==this.tableObj.getdataListParm.parammaps.starttime?this.tableObj.getdataListParm.parammaps.starttime=Object(o["e"])(this.tableObj.getdataListParm.parammaps.starttime,"{y}-{m}-{d}"):this.tableObj.getdataListParm.parammaps.starttime=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.tableObj.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.starttime=Object(o["e"])(new Date,"{y}-{m}-{d}"),this.tableObj.getdataListParm.parammaps.productname="",this.tableObj.getdataListParm.offset=1,this.getList()},editAll:function(){var e=this,t=this;console.log("编辑数据",this.tableObj.list),this.tableObj.list.forEach((function(e,a){t.$set(t.tableObj.list[a],"Edit",!0),t.$set(t.tableObj.list[a],"NoEdit",!1)})),setTimeout((function(){e.$forceUpdate()}),2e3)},saveAll:function(){var e=this;console.log(this.tableObj.list);var t={page:1,offset:1,pagecount:10,returntype:"Map",params:this.tableObj.list};Object(r["v"])(t).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList()):Object(r["l"])(t,e.$notify)}))}}},p=m,u=(a("bf89"),a("15eb"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"b8daa5f6",null);t["default"]=h.exports},"9c18":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-collapse",{attrs:{accordion:""}},[a("el-collapse-item",[a("template",{slot:"title"},[e._v(" 操作序号1 ")]),a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.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",[e._v("控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;")]),a("div",[e._v("页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。")])]),a("el-collapse-item",{attrs:{title:"效率 Efficiency"}},[a("div",[e._v("简化流程:设计简洁直观的操作流程;")]),a("div",[e._v("清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;")]),a("div",[e._v("帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。")])]),a("el-collapse-item",{attrs:{title:"可控 Controllability"}},[a("div",[e._v("用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;")]),a("div",[e._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);t["default"]=o.exports},"9cd8":function(e,t,a){},"9d15":function(e,t,a){"use strict";var i=a("912a"),s=a.n(i);s.a},"9de1":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"饲料大类",clearable:""},model:{value:e.table.getdataListParm.parammaps.bigfeedclassname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"bigfeedclassname",t)},expression:"table.getdataListParm.parammaps.bigfeedclassname"}},e._l(e.feedCategoryList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"饲料分类名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.fcname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"fcname",t)},expression:"table.getdataListParm.parammaps.fcname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"饲料分类编号",clearable:""},model:{value:e.table.getdataListParm.parammaps.fccode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"fccode",t)},expression:"table.getdataListParm.parammaps.fccode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"饲料大类","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.bigfeedclassname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"饲料大类"},on:{change:e.changeBigfeedclass},model:{value:t.row.bigfeedclassid,callback:function(a){e.$set(t.row,"bigfeedclassid",a)},expression:"scope.row.bigfeedclassid"}},e._l(e.feedCategoryList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"饲料分类","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fcname))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.fcname,callback:function(a){e.$set(t.row,"fcname",a)},expression:"scope.row.fcname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"饲料分类编号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fccode))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.fccode,callback:function(a){e.$set(t.row,"fccode",a)},expression:"scope.row.fccode"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"FeedClassification",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["饲料大类"]}],enableList:[{id:1,name:"是"},{id:0,name:"否"}],feedCategoryList:[],table:{getdataListParm:{name:"getFeedclassList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fccode:"",fcname:"",bigfeedclassname:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="FeedClassification",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.feedCategoryList=t.data.getDictByName.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.bigfeedclassname="",this.table.getdataListParm.parammaps.fccode="",this.table.getdataListParm.parammaps.fcname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},changeBigfeedclass:function(e){this.table.temp.bigfeedclassname=this.feedCategoryList.find((function(t){return t.value===e})).label},handleCreate:function(){for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;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(e){var t=this;if(console.log("点击了新增保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.fccode=e.fccode,this.table.temp.fcname=e.fcname,this.table.temp.bigfeedclassname=this.table.temp.bigfeedclassname,this.table.temp.bigfeedclassid=e.bigfeedclassid,this.table.temp.enable=e.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(){t.isokDisable=!1}),1e3),this.requestParam.name="insertFeedclass",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.bigfeedclassid=String(e.bigfeedclassid),this.table.temp.bigfeedclassid=e.bigfeedclassid,this.table.temp.bigfeedclassname=e.bigfeedclassname},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),console.log("点击了新增保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.fccode=e.fccode,this.table.temp.fcname=e.fcname,this.table.temp.bigfeedclassname=this.table.temp.bigfeedclassname,this.table.temp.bigfeedclassid=e.bigfeedclassid,this.table.temp.enable=e.enable,this.table.temp.id=e.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(){t.isokDisable=!1}),1e3),this.requestParam.name="updateFeedclass",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteFeedclass",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择饲料分类信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteFeedclass",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},m=d,p=(a("0b1a"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"5fdaf372",null);t["default"]=u.exports},"9e20":function(e,t,a){},"9ebc":function(e,t,a){"use strict";var i=a("fc57"),s=a.n(i);s.a},"9ed6":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login-container"},[a("div",{staticClass:"login"},[a("div",{staticClass:"logo"}),e._m(0),a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.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:"Username",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"password"}})],1),a("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),a("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[a("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),a("el-button",{staticClass:"btn",attrs:{type:"text",loading:e.loading},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录")])],1)])},s=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"title-container"},[i("img",{attrs:{src:a("ab4b")}})])}],r=a("61f7"),l={name:"Login",data:function(){var e=function(e,t,a){Object(r["c"])(t)?a():a(new Error("请输入正确的用户名"))},t=function(e,t,a){t.length<6?a(new Error("密码不能少于6个字符")):a()};return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},loading:!1,passwordType:"password",redirect:void 0}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},created:function(){var e=this;document.onkeydown=function(t){t=window.event||t,"/login"!=e.$route.path||"Enter"!=t.code&&"Num Enter"!=t.code||e.handleLogin("ruleForm2")}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this,t=this.loginForm.username;this.$refs.loginForm.validate((function(a){if(!a)return console.log("error submit!!"),!1;window.localStorage.setItem("username",t),e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/"}),e.loading=!1})).catch((function(){e.loading=!1}))}))}}},n=l,o=(a("2017"),a("77a8"),a("d22d"),a("2877")),c=Object(o["a"])(n,i,s,!1,null,"6d3cad26",null);t["default"]=c.exports},"9f50":function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-预混计划",use:"icon-预混计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-预混计划"><defs><style type="text/css"></style></defs><path d="M859.546 874.496c7.168 7.168 17.612 11.264 27.238 11.264s20.07-4.096 27.238-11.264l98.714-98.714c7.168-7.168 11.264-16.793 11.264-27.238s-4.096-20.07-11.264-27.238l-98.714-98.714c-15.155-15.155-40.14-15.155-55.296 0-15.155 15.155-15.155 40.14 0 55.296l32.154 32.154H700.826l-72.91-72.91c-15.154-15.154-40.14-15.154-55.295 0s-15.155 40.142 0 55.297l84.992 83.353c7.168 7.168 16.793 11.264 27.238 11.264H890.88L858.726 819.2c-14.336 15.155-14.336 40.14 0.82 55.296zM41.779 314.778h243.712l74.547 74.547c7.168 7.168 17.613 11.264 27.239 11.264 9.625 0 20.07-4.096 27.238-11.264 15.155-15.155 15.155-40.141 0-55.296l-85.811-85.811c-7.168-7.168-16.794-11.264-27.238-11.264H41.779c-21.709 0-39.321 17.612-39.321 39.321 0 20.89 17.612 38.503 39.321 38.503z m-2.457 472.268h265.42c10.445 0 20.07-4.096 27.239-11.264l372.94-461.004H890.88l-32.154 32.153c-15.155 15.155-15.155 40.141 0 55.296 7.168 7.168 17.613 11.264 27.239 11.264s20.07-4.096 27.238-11.264l98.714-98.713c7.168-7.168 11.264-16.794 11.264-27.239s-4.096-20.07-11.264-27.238l-97.075-99.533c-15.156-15.155-40.141-15.155-55.296 0-15.156 15.155-15.156 40.14 0 55.296l32.153 32.154H688.742c-10.444 0-20.07 4.096-27.238 11.264l-372.736 461.21H39.322C17.612 709.427 0 727.04 0 748.747c0 20.686 17.613 38.298 39.322 38.298z" p-id="35246" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},a002:function(e,t,a){"use strict";var i=a("b1a4"),s=a.n(i);s.a},a00f:function(e,t,a){},a18c:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"c",(function(){return c}));a("d3b7");var i=a("2b0e"),s=a("8c4f"),r=a("c1f7");i["default"].use(s["a"]);var l=[{path:"/login",component:function(){return Promise.resolve().then(a.bind(null,"9ed6"))},hidden:!0},{path:"/404",component:function(){return Promise.resolve().then(a.bind(null,"8cdb"))},hidden:!0},{path:"/",component:r["a"],redirect:"/dashboard",children:[{path:"dashboard",name:"Dashboard",component:function(){return Promise.resolve().then(a.bind(null,"5851"))},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 e=n();o.matcher=e.matcher}t["b"]=o},a26c:function(e,t,a){},a36b:function(e,t,a){e.exports=a.p+"static/img/404.a57b6f31.png"},a445:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-饲喂效率",use:"icon-饲喂效率-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲喂效率"><defs><style type="text/css"></style></defs><path d="M882.266861 1024l15.876855-37.357436L37.357436 986.642564 37.357436 125.858482 0 141.733139 59.78113 0l59.78113 141.733139L82.204825 125.858482 82.204825 941.795175l815.938891 0-15.876855-37.357436 141.733139 59.78113L882.266861 1024zM156.950474 881.998656l149.491298 0 0-179.389557-149.491298 0L156.950474 881.998656zM530.678718 881.998656 530.678718 538.168671l-149.491298 0 0 343.829985L530.678718 881.998656zM635.322626 881.998656l149.491298 0L784.813924 388.677374l-149.491298 0L635.322626 881.998656zM151.913936 486.416103l10.075274 43.710816c162.453073-37.491538 406.990058-146.127743 575.422782-329.927294l55.99988 41.692683 21.300312-182.095789-168.340392 72.593414 54.907274 40.89906C539.962567 347.463942 307.039737 450.626128 151.913936 486.416103z" p-id="19996" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},a4b5:function(e,t,a){"use strict";var i=a("8a4c"),s=a.n(i);s.a},a578:function(e,t,a){"use strict";var i=a("dc21"),s=a.n(i);s.a},a5e0:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return l}));a("99af"),a("7db0"),a("c975"),a("a15b"),a("d81d"),a("b0c0"),a("ac1f"),a("1276");var i=a("aa35");function s(e){var t;return t=e.indexOf("(")>=0?i["a"].find((function(t){return t.name===e.split("(")[0]})):i["a"].find((function(t){return t.name===e})),t}function r(e){var t,a,i,r=e.dataSrc,l=e.selectedCalcul,n=e.selectedCalcul2,o=e.selectedDimension,c=e.orderByStrs,d=e.filterStr,m=e.limit,p=[],u=[],h=[];if(h=h.concat(l).concat(n).concat(o),p=h.map((function(e){var t=l.find((function(t){return t.Column===e.Column})),a=n.find((function(t){return t.Column===e.Column}));return t&&"none"!==t.calculFunc?"".concat(t.calculFunc||s(t.Type).availableFunc[0],"(").concat(t.Column,") as ").concat(t.Column):a&&"none"!==a.calculFunc?"".concat(a.calculFunc||s(a.Type).availableFunc[0],"(").concat(a.Column,") as ").concat(a.Column):(u.push(e.Column),e.Column)})),0!==p.length&&r)return u.length>0&&(t="GROUP BY ".concat(u.join())),c.length>0&&(a="ORDER BY ".concat(c.join())),d&&(i="where ".concat(d)),"SELECT ".concat(p.join()," FROM ").concat(r," ").concat(i||""," ").concat(t||""," ").concat(a||""," LIMIT ").concat(m||200)}function l(e){var t,a=e.value;return s(e.colType).needQuotation&&(a=i(e.value)),t=1===e.operatorParamNum?"".concat(e.filteCol," ").concat(e.filterOperator," ").concat(a.value1):2===e.operatorParamNum?"".concat(e.filteCol," ").concat(e.filterOperator," ").concat(a.value1," and ").concat(a.value2):"".concat(e.filteCol," ").concat(e.filterOperator," ('").concat(a.arrValue.join(","),"')"),t;function i(e){return{value1:"'".concat(e.value1,"'"),value2:"'".concat(e.value2,"'"),arrValue:e.arrValue.map((function(e){return"'".concat(e,"'")}))}}}},a74a:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},a762:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-饲料分类",use:"icon-饲料分类-usage",viewBox:"0 0 1130 1024",content:'<symbol class="icon" viewBox="0 0 1130 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-饲料分类"><defs><style type="text/css"></style></defs><path d="M1032.201649 845.372909H108.671849c-39.31967 0-74.417903-20.986572-93.836513-56.084805-19.90106-35.942521-18.815548-79.845465 2.774087-114.823086L114.823086 508.984688l0.361837-0.48245c74.900353-117.717786 145.57927-202.8702 215.896349-260.402356 34.012721-27.861484 68.387279-49.209894 102.158775-63.442167 33.289046-14.111661 67.060542-21.83086 100.349588-23.036985 45.229682-1.567962 91.062426 8.804711 136.533333 31.118021 39.80212 19.539223 79.724853 48.003769 121.81861 87.082215 76.227091 70.558304 149.077032 166.204005 223.253711 266.191755l0.723674 0.9649 90.821202 132.673734c25.328622 30.394346 30.756184 71.643816 14.111661 107.948174-16.403298 35.701296-50.295406 57.77338-88.650177 57.77338zM171.390342 543.721084l-96.972439 165.239104-0.241225 0.361838c-9.166549 14.714723-9.648999 32.685984-1.206124 47.883157 3.618375 6.513074 14.473498 21.83086 35.821908 21.830859h923.529799c17.609423 0 25.569847-13.267373 28.223322-18.93616 4.703887-10.252061 5.789399-25.811072-5.306949-38.595995l-1.206125-1.44735-92.630389-135.085983C808.947939 379.446879 680.857479 222.650648 535.881272 227.957597c-52.948881 1.9298-106.2596 25.328622-162.947468 71.643816-63.804005 52.104594-131.708834 134.241696-201.543462 244.119671z" fill="#ffffff" p-id="67041" /><path d="M586.176678 792.906478l-50.898468 90.459364c-15.679623 21.469022 8.201649 55.240518 34.97762 55.240518h467.735218c32.685984 0 59.100118-24.363722 39.199058-62.959717l-50.657244-79.242403C944.39576 682.666667 736.580448 566.275618 586.176678 792.906478z" fill="#ffffff" p-id="67042" /><path d="M1037.991048 971.774794H570.25583c-26.775972 0-52.587044-16.52391-65.492579-42.093757-10.975736-21.710247-10.131449-45.470907 2.41225-64.04523l50.777856-90.097527 0.723675-0.9649c31.962309-48.244994 68.628504-84.91119 108.792462-109.274911 37.269258-22.554535 77.553828-34.374558 119.768197-35.218846 51.380919-0.9649 105.2947 14.714723 155.951944 45.470907 42.69682 25.931684 81.895878 61.994817 110.360424 101.314488l1.085512 1.567962 51.501531 80.56914 0.723675 1.326737c18.694935 36.304358 8.563486 62.959717 0.844288 75.744641-13.870436 22.433922-39.80212 35.701296-69.714017 35.701296z m-474.007067-71.764429c1.326737 2.41225 4.462662 5.306949 6.271849 5.548174h467.614606c8.081037 0 12.302473-3.015312 12.784923-3.859599 0.241225-0.48245 0.241225-3.738987-2.532862-9.528386l-49.209894-76.950766C955.250883 754.67232 873.234393 694.727915 788.323204 696.41649c-65.854417 1.326737-124.351472 39.560895-173.923204 113.737574l-50.416019 89.856301z" fill="#ffffff" p-id="67043" /></symbol>'});l.a.add(n);t["default"]=n},a7bf:function(e,t,a){},a7dc:function(e,t,a){"use strict";var i=a("ed08");t["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_resizeHandler:function(){var e=this;return Object(i["a"])((function(){e.chart&&e.chart.resize()}),100)()},$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},a87e:function(e,t,a){"use strict";var i=a("d0b6"),s=a.n(i);s.a},a8a9:function(e,t,a){},a983:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"牧场",clearable:""},model:{value:e.table.getdataListParm.parammaps.pastureName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"pastureName",t)},expression:"table.getdataListParm.parammaps.pastureName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),e.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):e._e(),e.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):e._e(),e.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[e._v("地址")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:e.table.getdataListParm.parammaps.address,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"address",t)},expression:"table.getdataListParm.parammaps.address"}})],1),a("li",[a("a",[e._v("联系人")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:e.table.getdataListParm.parammaps.contact,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"contact",t)},expression:"table.getdataListParm.parammaps.contact"}})],1),a("li",[a("a",[e._v("联系电话")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:e.table.getdataListParm.parammaps.phone,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"phone",t)},expression:"table.getdataListParm.parammaps.phone"}})],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(t){e.arrowUp=!1,e.arrowDown=!0}}},[e._v("取消")]),a("el-button",{staticClass:"miniPrimary",on:{click:e.handleSearch}},[e._v("搜索")])],1)])]):e._e()],1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"集团名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.group))])]}}])}),a("el-table-column",{attrs:{label:"牧场名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pastureName))])]}}])}),a("el-table-column",{attrs:{label:"地址","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.address))]):e._e(),t.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:t.row.address,callback:function(a){e.$set(t.row,"address",a)},expression:"scope.row.address"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"联系人","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.contact))]):e._e(),t.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:t.row.contact,callback:function(a){e.$set(t.row,"contact",a)},expression:"scope.row.contact"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"联系电话","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.phone))]):e._e(),t.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:t.row.phone,callback:function(a){e.$set(t.row,"phone",a)},expression:"scope.row.phone"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c={name:"RanchInformation",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getPastureList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),phone:"",contact:"",address:"",pastureName:"",enable:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},arrowDown:!0,arrowUp:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getButtons()},mounted:function(){var e=this;document.addEventListener("click",(function(t){void 0!==e.$refs.selectInput&&(e.$refs.selectInput.contains(t.target)?(e.arrowDown=!1,e.arrowUp=!0):(e.arrowDown=!0,e.arrowUp=!1))}))},methods:{getButtons:function(){var e="RanchInformation",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable),e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleConfirmStartChange:function(){console.log("点击了确认开始")},handleSearch:function(){console.log("点击了查询"),this.getList(),this.table.getdataListParm.offset=1,this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.empCode="",this.table.getdataListParm.parammaps.phone="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.contact="",this.table.getdataListParm.parammaps.address="",this.table.getdataListParm.parammaps.pastureName="",this.table.getdataListParm.offset=1,this.getList()},handleSelectionChange:function(e){console.log("勾选数据",e)},handleUpdate:function(e){console.log("点击了编辑");for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),this.table.temp.pastureid=e.pastureid,this.table.temp.phone=e.phone,this.table.temp.enable=e.enable,this.table.temp.contact=e.contact,this.table.temp.address=e.address,this.table.temp.pastureName=e.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(){t.isokDisable=!1}),1e3),this.requestParam.name="updatepastureinfo",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()}}},d=c,m=(a("26e6"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"8fa35844",null);t["default"]=p.exports},aa35:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));a("d81d"),a("b0c0");var i=a("be94"),s=a("9225"),r={sum:s["a"].t("config.sum"),avg:s["a"].t("config.avg"),max:s["a"].t("config.max"),min:s["a"].t("config.min"),count:s["a"].t("config.count"),none:s["a"].t("config.none")},l=[{operator:"=",name:"config.is",paramNum:1},{operator:">",name:"config.greater",paramNum:1},{operator:"<",name:"config.less",paramNum:1},{operator:">=",name:"config.greaterOrEqual",paramNum:1},{operator:"<=",name:"config.lessorEqual",paramNum:1},{operator:"!=",name:"config.isNot",paramNum:1},{operator:"BETWEEN",name:"config.between",paramNum:2},{operator:"IN",name:"config.in",paramNum:-1},{operator:"LIKE",name:"config.like",paramNum:1}];function n(){return l.map((function(e){var t=Object(i["a"])({},e);return t.name=s["a"].t(e.name),t}))}var o=[{name:"tinyint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"smallint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"mediumint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"int",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"bigint",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"float",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"double",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"real",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"decimal",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]},{name:"timestamp",needQuotation:!1,availableFunc:["count","none"]},{name:"date",needQuotation:!0,availableFunc:["count","none"]},{name:"time",needQuotation:!0,availableFunc:["count","none"]},{name:"datetime",needQuotation:!0,availableFunc:["count","none"]},{name:"year",needQuotation:!0,availableFunc:["count","none"]},{name:"char",needQuotation:!0,availableFunc:["count","none"]},{name:"varchar",needQuotation:!0,availableFunc:["count","none"]},{name:"tinytext",needQuotation:!0,availableFunc:["count","none"]},{name:"text",needQuotation:!0,availableFunc:["count","none"]},{name:"mediumtext",needQuotation:!0,availableFunc:["count","none"]},{name:"longtext",needQuotation:!0,availableFunc:["count","none"]},{name:"integer",needQuotation:!1,availableFunc:["sum","avg","max","min","count","none"]}]},aad2:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-过程分析",use:"icon-过程分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-过程分析"><defs><style type="text/css"></style></defs><path d="M872.8 96H151.2C103.1 96 64 135.2 64 183.4v445.1c0 48.2 39.1 87.4 87.2 87.4h721.6c48.1 0 87.2-39.2 87.2-87.4V183.4c0-48.2-39.1-87.4-87.2-87.4z m-721.6 63.6h721.6c13.1 0 23.8 10.7 23.8 23.8v246.4H696.2L569.9 224 369.6 496.4l-66.5-66.6H127.4V183.4c0-13.1 10.7-23.8 23.8-23.8z m721.6 492.8H151.2c-13.1 0-23.8-10.7-23.8-23.8V493.4h149.4l100 100.3L565 337.6l95.6 155.8h235.8v135.1c0.2 13.2-10.5 23.9-23.6 23.9zM179 864.4h666.1V928H179z" fill="#ffffff" p-id="14389" /></symbol>'});l.a.add(n);t["default"]=n},ab4b:function(e,t,a){e.exports=a.p+"static/img/login-top.6d71c76d.png"},acd4:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("dashboardItem",{attrs:{dashboard:e.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 e=this;Object(l["d"])(this.$route.params.id).then((function(t){t.data.content=JSON.parse(t.data.content),e.currentDashboard=t.data}))}},o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,null,null);t["default"]=d.exports},ad81:function(e,t,a){},ad9f:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-值班记录",use:"icon-值班记录-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-值班记录"><defs><style type="text/css"></style></defs><path d="M738.3552 205.6704v21.4528a31.232 31.232 0 0 1-62.5152 0v-21.4528H329.728v21.4528a31.232 31.232 0 0 1-62.5152 0v-21.4528H132.3008c-10.24 0-18.5856 8.3456-18.5856 18.5344v110.592H891.904v-110.592c0-10.24-8.2944-18.5344-18.5344-18.5344H738.304z m0-62.5152h134.9632c44.6464 0 81.1008 36.352 81.1008 81.0496v667.5456c0 44.6976-36.4544 81.0496-81.1008 81.0496H132.3008C87.6032 972.8 51.2 936.448 51.2 891.7504V224.256c0-44.7488 36.352-81.0496 81.1008-81.0496H267.264V82.432a31.232 31.232 0 0 1 62.5152 0v60.672h346.112V82.432a31.232 31.232 0 0 1 62.5152 0v60.672zM113.7152 397.312v494.4384c0 10.24 8.3456 18.5344 18.5856 18.5344h741.0176c10.24 0 18.5344-8.3456 18.5344-18.5344V397.312H113.7152z m247.3984 254.464l49.8688 31.744c23.9616 15.2064 38.4512 41.6768 38.4512 70.0416v45.1584H188.0064v-45.1584c0-28.3648 14.5408-54.784 38.5536-70.0928l49.8176-31.6416c-18.0736-22.4256-29.8496-55.4496-29.8496-79.4624a72.192 72.192 0 0 1 144.384 0c0 23.9616-11.776 56.9856-29.7984 79.4112z m442.112-45.568H536.064a31.232 31.232 0 1 1 0-62.5664h267.1104a31.232 31.232 0 0 1 0 62.5152z m0 149.1968h-184.6272a31.232 31.232 0 1 1 0-62.5152h184.6272a31.232 31.232 0 0 1 0 62.5152z" p-id="35235" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},adf0:function(e,t,a){},afc7:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._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);t["default"]=o.exports},afd5:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:5}},[a("el-col",{attrs:{span:5}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",staticStyle:{"text-align":"right"},attrs:{slot:"header"},slot:"header"},[a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:2}},[a("el-col",{staticStyle:{"text-align":"left","vertical-align":"middle","font-size":"20px"},attrs:{span:12}},[a("span",[e._v("字典分类 ")])]),a("el-col",{attrs:{span:6}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"warning",icon:"el-icon-edit",size:"mini"},on:{click:e.jump}})],1)],1),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:e.parent,props:e.defaultProps,"default-expand-all":""},on:{"node-click":e.handleNodeClick}})],1)])],1),a("el-col",{attrs:{span:19}},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"名称","header-align":"center",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.label))])]}}])}),a("el-table-column",{attrs:{label:"值","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.value))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderby))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{directives:[{name:"enterToNext",rawName:"v-enterToNext",value:!0,expression:"true"}],ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"名称",prop:"label"}},[a("el-input",{ref:"label",model:{value:e.deptform.label,callback:function(t){e.$set(e.deptform,"label",t)},expression:"deptform.label"}})],1),a("el-form-item",{attrs:{label:"值",prop:"value"}},[a("el-input",{ref:"value",model:{value:e.deptform.value,callback:function(t){e.$set(e.deptform,"value",t)},expression:"deptform.value"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"orderby"}},[a("el-input",{ref:"orderby",model:{value:e.deptform.orderby,callback:function(t){e.$set(e.deptform,"orderby",t)},expression:"deptform.orderby"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.createData_again()}}},[e._v(" 确认新增 ")]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])],1)},s=[],r=(a("b0c0"),a("6724")),l=a("6041"),n=a("2934"),o=a("61f7"),c=a("333d"),d=a("5c96"),m={name:"Dict",components:{Pagination:c["a"]},directives:{waves:r["a"],enterToNext:l["a"]},data:function(){return{defaultProps:{children:"children",label:"name"},dictid:0,list:[],total:0,listLoading:!0,requestParam:{name:"",params:[]},deptform:{label:"",value:"",orderby:"",enable:"",pid:""},getdataListParm:{name:"getDictList",offset:1,pagecount:10,params:[]},getRecuListParm:{name:"getDictclass",idname:"id",params:[-1]},rules:{label:[{type:"string",required:!0,message:"名称必填",trigger:"change"}],value:[{type:"string",required:!0,message:"只必填",trigger:"change"}],orderby:[{validator:o["b"],trigger:"blur"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},parent:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{jump:function(){this.$router.push("/console/menu")},handleNodeClick:function(e){var t=this;0===e.children.length&&(this.listLoading=!0,this.dictid=e.id,this.getdataListParm.params=[e.id,e.id],Object(n["d"])(this.getdataListParm).then((function(e){t.list=e.data.list,t.total=e.data.total,setTimeout((function(){t.listLoading=!1}),100)})))},getDownList:function(){var e=this;Object(n["o"])(this.getRecuListParm).then((function(t){e.parent=t.data}))},getList:function(){var e=this;this.listLoading=!0,this.getDownList(),Object(n["d"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},resetRequestParam:function(){this.deptform.id="",this.deptform.pid="",this.deptform.label="",this.deptform.value="",this.deptform.orderby="0",this.deptform.enable="1"},handleCreate:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.deptform.orderby="0",this.deptform.enable=1,this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs["label"].focus()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,Object(n["g"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,Object(n["g"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["label"].focus()})),e.getList(),e.resetRequestParam(),e.deptform.orderby="0",e.deptform.enable=1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(e){var t=this;this.deptform.id=e.id,this.deptform.label=e.label,this.deptform.value=e.value,this.deptform.orderby=e.orderby,this.deptform.enable=e.enable,this.deptform.pid=e.pid,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["label"].focus()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,e.requestParam.params[5]=e.deptform.id,Object(n["g"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateDictList",this.requestParam.params=[],this.requestParam.params[0]=t.label,this.requestParam.params[1]=t.value,this.requestParam.params[2]=t.orderby,this.requestParam.params[3]=t.enable,this.requestParam.params[4]=this.dictid,this.requestParam.params[5]=t.id,Object(n["g"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(e){var t=this;d["MessageBox"].confirm("名称:"+e.label,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteDictList",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(n["g"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},p=m,u=a("2877"),h=Object(u["a"])(p,i,s,!1,null,null,null);t["default"]=h.exports},b189:function(e,t,a){e.exports=a.p+"static/img/logo1.0121925c.png"},b1a4:function(e,t,a){},b20f:function(e,t,a){e.exports={menuText:"#333",menuActiveText:"#fff",menuActiveBg:"#009C69",subMenuActiveText:"#f4f4f5",menuBg:"#fff",menuHover:"#fff",subMenuBg:"#ededed",subMenuHover:"#009C69",sideBarWidth:"116px"}},b2bd:function(e,t,a){},b30b:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._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);t["default"]=o.exports},b3b5:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},b642:function(e,t,a){"use strict";var i=a("7dcd"),s=a.n(i);s.a},b678:function(e,t,a){"use strict";var i=a("f7a0"),s=a.n(i);s.a},b6b7:function(e,t,a){"use strict";var i=a("df71"),s=a.n(i);s.a},b6fb:function(e,t,a){"use strict";a.r(t);var i=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2-2",type:"warning"}})],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!0,null,null,null);t["default"]=n.exports},b775:function(e,t,a){"use strict";a("d3b7");var i=a("bc3a"),s=a.n(i),r=a("5c96"),l=a("4360"),n=a("5f87"),o=s.a.create({baseURL:"http://192.168.1.90:8082/",withCredentials:!0,timeout:6e4});o.interceptors.request.use((function(e){return e.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",e.withCredentials=!1,l["a"].getters.token&&(e.headers["token"]=Object(n["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),o.interceptors.response.use((function(e){var t=e.data;return 200!==t.code?(Object(r["Message"])({message:"请求超时",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||r["MessageBox"].confirm("你已经注销登陆,你可以取消或重新登陆","确认注销",{confirmButtonText:"重新登陆",cancelButtonText:"取消",type:"warning"}).then((function(){l["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),20002===t.code&&l["a"].dispatch("user/resetToken").then((function(){location.reload()})),void 0===t.code?t:Promise.reject(new Error(t.message||"Error"))):t}),(function(e){return console.log("err"+e),Object(r["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=o},b82a:function(e,t,a){"use strict";var i=a("3231"),s=a.n(i);s.a},b8a0:function(e,t,a){"use strict";var i=a("fe3f"),s=a.n(i);s.a},b8ff:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-入库管理",use:"icon-入库管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-入库管理"><defs><style type="text/css"></style></defs><path d="M852.8 948.1H666.3c-18.3 0-33.2-14.6-33.2-32.6s14.8-32.6 33.2-32.6h184.4V369.5L505.3 137.1 155.4 381.8v162.8c0 18-14.8 32.6-33.2 32.6-18.3 0-33.2-14.6-33.2-32.6V380.7c0-20.4 10.1-39.6 27-51.4l352-246c21.9-15.3 51.4-15.6 73.6-0.7l347.6 233.7c17.5 11.8 27.9 31.2 27.9 52.1V885c0 34.8-28.9 63.1-64.3 63.1z" p-id="81250" fill="#ffffff" /><path d="M490.1 782.3h-348c-17.6 0-32-14.4-32-32s14.4-32 32-32h348c17.6 0 32 14.4 32 32s-14.4 32-32 32z" p-id="81251" fill="#ffffff" /><path d="M383.1 939.8c-7.8 0-15.7-2.9-21.8-8.6-12.9-12.1-13.6-32.3-1.5-45.2l128.7-137.7-135.3-132.6c-12.6-12.4-12.8-32.6-0.4-45.3 12.4-12.6 32.6-12.8 45.3-0.4l157.5 154.5c12.4 12.2 12.8 32 1 44.7l-150 160.5c-6.4 6.7-15 10.1-23.5 10.1z" p-id="81252" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},b947:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"TMR设备编号",clearable:""},model:{value:e.table.getdataListParm.parammaps.eqcode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"eqcode",t)},expression:"table.getdataListParm.parammaps.eqcode"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{filterable:"",placeholder:"TMR设备类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.classname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"classname",t)},expression:"table.getdataListParm.parammaps.classname"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.label}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"TMR设备编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.eqcode))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.eqcode,callback:function(a){e.$set(t.row,"eqcode",a)},expression:"scope.row.eqcode"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"TMR设备名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.tname))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},maxlength:"32"},model:{value:t.row.tname,callback:function(a){e.$set(t.row,"tname",a)},expression:"scope.row.tname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"数据采集卡编号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.datacaptureno))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"number",step:"0.01"},model:{value:t.row.datacaptureno,callback:function(a){e.$set(t.row,"datacaptureno",a)},expression:"scope.row.datacaptureno"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"TMR设备类型","min-width":"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.tclassname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"95%",padding:"10px 0"},attrs:{filterable:"",placeholder:"TMR设备类型"},on:{change:e.changeType},model:{value:t.row.tclassid,callback:function(a){e.$set(t.row,"tclassid",a)},expression:"scope.row.tclassid"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"最大搅拌量(KG)","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.maxstirfeed))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"80%"},model:{value:t.row.maxstirfeed,callback:function(a){e.$set(t.row,"maxstirfeed",a)},expression:"scope.row.maxstirfeed"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"EquipmentTMR",components:{Pagination:o["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["TMR设备类型"]}],typeList:[],enableList:[{id:1,name:"是"},{id:0,name:"否"}],table:{getdataListParm:{name:"getTMRList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),eqcode:"",classname:"",enable:"",eqtype:"1"}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="EquipmentTMR",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log(this.isRoleEdit)},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.typeList=t.data.getDictByName.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.eqcode="",this.table.getdataListParm.parammaps.classname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.eqtype="1",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){console.log("点击了新增");for(var e=0;e<this.table.list.length;e++)if(1==this.table.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,eqcode:"",tname:"",datacaptureno:"",tclassid:"",maxstirfeed:""})},changeType:function(e){this.table.temp.tclassname=this.typeList.find((function(t){return t.value===e})).label},createData:function(e){var t=this;if(console.log("点击了新增保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.eqcode=e.eqcode,this.table.temp.tname=e.tname,this.table.temp.datacaptureno=e.datacaptureno,this.table.temp.tclassid=e.tclassid,this.table.temp.tclassname=this.table.temp.tclassname,this.table.temp.maxstirfeed=e.maxstirfeed,this.table.temp.enable=e.enable,this.table.temp.remark=e.remark,""==this.table.temp.eqcode&&""==this.table.temp.tname&&""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备编号/TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.tname&&""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.eqcode)return this.$message({type:"error",message:"TMR设备编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"TMR设备名称不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tclassid)return this.$message({type:"error",message:"设备类型不能为空",duration:2e3}),!1;if(""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"最大搅拌量不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseFloat(this.table.temp.datacaptureno)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=/^[1-9]\d*$/;if(!i.test(parseFloat(this.table.temp.maxstirfeed)))return this.$message({type:"error",message:"最大搅拌量请输入正整数",duration:2e3}),!1;var s=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return s.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):s.test(this.table.temp.tname)?(this.$message({type:"error",message:"TMR设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="insertTMR",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.tclassid=String(e.tclassid),this.table.temp.tclassid=e.tclassid,this.table.temp.tclassname=e.tclassname},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.eqcode=e.eqcode,this.table.temp.tname=e.tname,this.table.temp.datacaptureno=e.datacaptureno,this.table.temp.tclassid=e.tclassid,this.table.temp.tclassname=this.table.temp.tclassname,this.table.temp.maxstirfeed=e.maxstirfeed,this.table.temp.enable=e.enable,this.table.temp.remark=e.remark,this.table.temp.id=e.id,""==this.table.temp.eqcode&&""==this.table.temp.tname&&""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备编号/TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.tname&&""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备名称/数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno&&""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"数据采集卡编号/TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.tclassid&&""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"TMR设备类型/最大搅拌量不能为空",duration:2e3}),!1;if(""==this.table.temp.eqcode)return this.$message({type:"error",message:"TMR设备编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tname)return this.$message({type:"error",message:"设备名称不能为空",duration:2e3}),!1;if(""==this.table.temp.datacaptureno)return this.$message({type:"error",message:"数据采集卡编号不能为空",duration:2e3}),!1;if(""==this.table.temp.tclassid)return this.$message({type:"error",message:"设备类型不能为空",duration:2e3}),!1;if(""==this.table.temp.maxstirfeed)return this.$message({type:"error",message:"最大搅拌量不能为空",duration:2e3}),!1;var a=/^([0-9]|(1[0-5]))$/;if(!a.test(parseInt(this.table.temp.datacaptureno)))return this.$message({type:"error",message:"数据采集卡请输入0-15之间整数",duration:2e3}),!1;var i=/^[1-9]\d*$/;if(!i.test(parseInt(this.table.temp.maxstirfeed)))return this.$message({type:"error",message:"最大搅拌量请输入正整数",duration:2e3}),!1;var s=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");return s.test(this.table.temp.eqcode)?(this.$message({type:"error",message:"TMR设备编号不可输入特殊字符",duration:2e3}),!1):s.test(this.table.temp.tname)?(this.$message({type:"error",message:"TMR设备名称不可输入特殊字符",duration:2e3}),!1):(this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateTMR",this.requestParam.parammaps=this.table.temp,void Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)})))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteTMR",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择TMR设备信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteTMR",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},m=d,p=(a("d90e"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"0cf592bf",null);t["default"]=u.exports},b9b2:function(e,t,a){"use strict";var i=a("10a2"),s=a.n(i);s.a},ba5d:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-统计分析",use:"icon-统计分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-统计分析"><defs><style type="text/css"></style></defs><path d="M106.044235 80.775529c13.492706 0 24.455529 10.962824 24.45553 24.45553v796.943059H957.741176a27.407059 27.407059 0 1 1 0 54.753882H111.736471a30.117647 30.117647 0 0 1-30.117647-30.117647V105.200941c0-13.462588 10.932706-24.395294 24.425411-24.395294zM300.032 610.785882c14.004706 0 25.449412 7.981176 25.449412 17.709177v200.583529c0 9.697882-11.444706 17.679059-25.449412 17.679059H215.250824c-14.004706 0-25.449412-7.981176-25.449412-17.709176v-200.58353c0-9.697882 11.444706-17.679059 25.449412-17.679059h84.781176z m195.674353-168.538353c14.004706 0 25.449412 9.095529 25.449412 20.239059v364.032c0 11.143529-11.444706 20.239059-25.449412 20.239059h-84.781177c-14.004706 0-25.449412-9.095529-25.449411-20.239059V462.486588c0-11.143529 11.444706-20.239059 25.449411-20.239059h84.781177z m195.674353 101.135059c14.004706 0 25.449412 9.095529 25.449412 20.208941v262.927059c0 11.143529-11.444706 20.239059-25.449412 20.239059h-84.781177c-14.004706 0-25.449412-9.095529-25.449411-20.239059v-262.927059c0-11.143529 11.444706-20.208941 25.449411-20.208941h84.781177z m195.674353-168.538353c14.004706 0 25.449412 9.095529 25.449412 20.208941v431.465412c0 11.143529-11.444706 20.239059-25.449412 20.239059h-84.781177c-14.004706 0-25.449412-9.095529-25.449411-20.239059V395.053176c0-11.143529 11.444706-20.208941 25.449411-20.208941h84.781177z m25.6-254.192941l-16.26353 149.202824-40.478117-40.658824-177.091765 217.449412c-5.421176 6.174118-13.010824 10.179765-21.323294 10.902588a30.569412 30.569412 0 0 1-22.407529-7.981176l-170.224942-157.936942-224.828235 204.047059a30.599529 30.599529 0 0 1-20.239059 7.619765 29.816471 29.816471 0 0 1-22.407529-9.788235 30.479059 30.479059 0 0 1 2.16847-42.857412l245.398589-222.569412a30.268235 30.268235 0 0 1 40.508235 0.39153l166.972235 155.015529 160.828236-197.511529-48.790589-49.001412 148.178824-16.323765z" p-id="6085" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},badd:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.barid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"barid",t)},expression:"table.getdataListParm.parammaps.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"第一层",align:"center"}},[a("el-table-column",{attrs:{prop:"onerate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"oneweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第二层",align:"center"}},[a("el-table-column",{attrs:{prop:"tworate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"twoweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第三层",align:"center"}},[a("el-table-column",{attrs:{prop:"threerate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"threeweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.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"}},[e._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:e.changeBar},model:{value:e.create.temp.barid,callback:function(t){e.$set(e.create.temp,"barid",t)},expression:"create.temp.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[e._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:e.blurWeight},model:{value:e.create.temp.oneweight,callback:function(t){e.$set(e.create.temp,"oneweight",t)},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:e.blurWeight},model:{value:e.create.temp.twoweight,callback:function(t){e.$set(e.create.temp,"twoweight",t)},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:e.blurWeight},model:{value:e.create.temp.threeweight,callback:function(t){e.$set(e.create.temp,"threeweight",t)},expression:"create.temp.threeweight"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第一层比例 (%):"}},[a("span",[e._v(e._s(e.create.temp.onerate))]),a("span",[e._v(e._s(e.create.temp.onerange))])])],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第二层比例 (%):"}},[a("span",[e._v(e._s(e.create.temp.tworate))]),a("span",[e._v(e._s(e.create.temp.tworange))])])],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"第三层比例 (%):"}},[a("span",[e._v(e._s(e.create.temp.threerate))]),a("span",[e._v(e._s(e.create.temp.threerange))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[e._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:e.blurEmp},model:{value:e.create.temp.emp,callback:function(t){e.$set(e.create.temp,"emp",t)},expression:"create.temp.emp"}},e._l(e.create.noteTakerList,(function(e,t){return a("el-option",{key:e.myId,attrs:{label:e.emp,value:e.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"==e.create.dialogStatus,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.changeOperatetime},model:{value:e.create.temp.operatetime,callback:function(t){e.$set(e.create.temp,"operatetime",t)},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:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},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(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createDataAgain()}}},[e._v("确认新增")]):e._e(),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"FecalScreen",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getDungsieveList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",oneweight:"",twoweight:"",threeweight:"",onerate:"",tworate:"",threerate:"",tworange:"",threerange:"",remark:"",ccid:"",ccname:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],oneweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],twoweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],threeweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getDungscoreEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getDungsieveRange",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="FecalScreen",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){if(e.houseNameList=t.data.getBarListEnable.list,null!==t.data.getSysoptEnable.list)for(var a=1;a<=t.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="第四班"),e.frequencyList.push(i)}else e.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",oneweight:"",twoweight:"",threeweight:"",onerate:"",tworate:"",threerate:"",tworange:"",threerange:"",remark:"",ccid:"",ccname:""}},blurEmp:function(e){this.create.temp.emp=e.target.value},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname,this.getRange()},changeOperatetime:function(){this.getRange()},getRange:function(){var e=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list?(e.create.temp.onerange=t.data.list[0].oneRange,e.create.temp.tworange=t.data.list[0].twoRange,e.create.temp.threerange=t.data.list[0].threeRange,e.create.temp.ccid=t.data.list[0].ccid,e.create.temp.ccname=t.data.list[0].ccname):(e.create.temp.onerange="",e.create.temp.tworange="",e.create.temp.threerange="",e.create.temp.ccid="",e.create.temp.ccname="")}))},getNoteTakerList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].myId=a;e.create.noteTakerList=t.data.list,console.log("记录人数据",t.data.list),console.log(e.create.noteTakerList)}else e.create.noteTakerList=[]}))},blurWeight:function(){if(this.create.temp.oneweight&&this.create.temp.twoweight&&this.create.temp.threeweight){var e=parseFloat(this.create.temp.oneweight)+parseFloat(this.create.temp.twoweight)+parseFloat(this.create.temp.threeweight);this.create.temp.onerate=(parseFloat(this.create.temp.oneweight)/e*100).toFixed(2),this.create.temp.tworate=(parseFloat(this.create.temp.twoweight)/e*100).toFixed(2),this.create.temp.threerate=(100-this.create.temp.onerate-this.create.temp.tworate).toFixed(2)}},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.oneweight))||!a.test(parseFloat(e.create.temp.twoweight))||!a.test(parseFloat(e.create.temp.threeweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="insertDungsieve",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},createDataAgain:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.oneweight))||!a.test(parseFloat(e.create.temp.twoweight))||!a.test(parseFloat(e.create.temp.threeweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="insertDungsieve",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.resetTemp(),e.getList(),e.getNoteTakerList()):Object(r["l"])(t,e.$notify)}))}}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.oneweight))||!a.test(parseFloat(e.create.temp.twoweight))||!a.test(parseFloat(e.create.temp.threeweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="updateDungsieve",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteDungsieve",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择粪便筛",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteDungsieve",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCopy:function(){var e=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择粪便筛",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="copyDungsieve",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.selectList[0].pastureid,e.requestParam.parammaps.id=e.selectList[0].id,Object(r["g"])(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:"已取消删除"})})):this.$message({type:"error",message:"请选择一条粪便筛",duration:2e3})},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("1a31"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"5dee3e02",null);t["default"]=h.exports},bc3b:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"用户名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.empCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"empCode",t)},expression:"table.getdataListParm.parammaps.empCode"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"员工姓名",clearable:""},model:{value:e.table.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"empname",t)},expression:"table.getdataListParm.parammaps.empname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"用户名称","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.username))]):e._e(),t.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:t.row.username,callback:function(a){e.$set(t.row,"username","string"===typeof a?a.trim():a)},expression:"scope.row.username"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"员工姓名","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.empname))]):e._e(),t.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:t.row.empname,callback:function(a){e.$set(t.row,"empname","string"===typeof a?a.trim():a)},expression:"scope.row.empname"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"手机号","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.phone))]):e._e(),t.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:t.row.phone,callback:function(a){e.$set(t.row,"phone","string"===typeof a?a.trim():a)},expression:"scope.row.phone"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"角色","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.rolename))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"90%",padding:"10px 0"},attrs:{placeholder:"角色",filterable:""},on:{change:e.changeRolename},model:{value:t.row.roleid,callback:function(a){e.$set(t.row,"roleid",a)},expression:"scope.row.roleid"}},e._l(e.roleList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.rolename,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"创建时间","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createdtime))])]}}])}),a("el-table-column",{attrs:{label:"创建人","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createmp))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",staticStyle:{width:"80px"},attrs:{size:"mini"},on:{click:function(t){return e.handleResetPassword(i)}}},[e._v(" 重置密码 ")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate&&e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave&&e.isRoleEdit?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("5c96"),d=a("333d"),m={name:"User",components:{Pagination:d["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getRoleAll",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}}],enableList:[{id:1,name:"是"},{id:0,name:"否"}],roleList:[],table:{getdataListParm:{name:"getuserallL",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),empCode:"",empname:"",enable:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="User",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.roleList=t.data.getRoleAll.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleEnableChange:function(){console.log("点击了是否启用")},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.empCode="",this.table.getdataListParm.parammaps.empname="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},handleCreate:function(){for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,createdtime:Object(o["e"])(new Date,"{y}-{m}-{d}"),createmp:n.a.get("employename"),username:"",roleid:""})},changeRolename:function(e){this.table.temp.rolename=this.roleList.find((function(t){return t.id===e})).rolename},createData:function(e){var t=this;if(console.log("点击了新增保存",e),this.table.temp.pastureid=n.a.get("pastureid"),this.table.temp.empname=e.empname,this.table.temp.username=e.username,this.table.temp.phone=e.phone,this.table.temp.createmp=e.createmp,this.table.temp.enable=e.enable,this.table.temp.roleid=e.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(){t.isokDisable=!1}),1e3),this.requestParam.name="createUser",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},createCancel:function(e){console.log("点击了新增取消");for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.roleid=String(e.roleid),this.table.temp.roleid=e.roleid,this.table.temp.rolename=e.rolename},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),this.table.temp.pastureid=e.pastureid,this.table.temp.empname=e.empname,this.table.temp.username=e.username,this.table.temp.phone=e.phone,this.table.temp.createmp=e.createmp,this.table.temp.enable=e.enable,this.table.temp.roleid=e.roleid,this.table.temp.id=e.id,""==this.table.temp.username&&""==this.table.temp.roleid)return this.$message({type:"error",message:"用户名称/角色不能为空",duration:2e3}),!1;if(""==this.table.temp.username)return this.$message({type:"error",message:"用户名称不能为空",duration:2e3}),!1;if(""==this.table.temp.roleid)return this.$message({type:"error",message:"角色不能为空",duration:2e3}),!1;if(console.log(this.table.temp.phone),void 0!==this.table.temp.phone&&""!==this.table.temp.phone){var a=/^\d{11}$/;if(!a.test(this.table.temp.phone))return this.$message({type:"error",message:"请输入11位手机号",duration:2e3}),!1}this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateUser",this.requestParam.parammaps=this.table.temp,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteUser",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择用户信息",duration:2e3}):c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteUser",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleResetPassword:function(e){var t=this;c["MessageBox"].confirm("是否确认将此用户密码重置为默认密码123456?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="initPassword",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"重置密码成功",type:"success",duration:2e3})}))}))}}},p=m,u=(a("e5c3"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"1a204b00",null);t["default"]=h.exports},bc91:function(e,t,a){"use strict";var i=a("73f1"),s=a.n(i);s.a},bca1:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-标准参数",use:"icon-标准参数-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-标准参数"><defs><style type="text/css"></style></defs><path d="M173.8 377.5c6 6 14.1 9.4 22.6 9.4s16.6-3.4 22.6-9.4l148.6-148.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-125.9 126-70.9-70.9c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l93.6 93.5zM406.1 64H41.6C18.6 64 0 82.6 0 105.9v364.8C0 493.7 18.6 512 41.6 512h364.5c23 0 41.9-18.3 41.9-41.3V106c0-23.4-18.9-42-41.9-42zM384 448H64V128h320v320z m192-192h416c17.7 0 32-14.3 32-32s-14.3-32-32-32H576c-17.7 0-32 14.3-32 32s14.3 32 32 32z m416 128H576c-17.7 0-32 14.3-32 32s14.3 32 32 32h416c17.7 0 32-14.3 32-32s-14.3-32-32-32zM173.8 889.5c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4l148.6-148.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-125.9 126-70.9-70.9c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l93.6 93.5zM406.1 576H41.6C18.6 576 0 594.6 0 617.9V982.6c0 23 18.6 41.3 41.6 41.3h364.5c23 0 41.9-18.3 41.9-41.3V617.9c0-23.3-18.9-41.9-41.9-41.9zM384 960H64V640h320v320z m608-256H576c-17.7 0-32 14.3-32 32s14.3 32 32 32h416c17.7 0 32-14.3 32-32s-14.3-32-32-32z m0 192H576c-17.7 0-32 14.3-32 32s14.3 32 32 32h416c17.7 0 32-14.3 32-32s-14.3-32-32-32z" p-id="70936" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},bcff:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:4}},[a("el-col",{attrs:{span:3}},[a("el-card",{staticClass:"box-card"},[a("el-tree",{ref:"tree",attrs:{data:e.treedata,"show-checkbox":"","node-key":"id",props:"{children: 'children',label: 'label'}","default-expand-all":""}})],1)],1),a("el-col",{attrs:{span:21}},[a("el-row",[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},model:{value:e.tableObj.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"inputDatetime",t)},expression:"tableObj.getdataListParm.parammaps.inputDatetime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"产品名称",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.productname,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"productname",t)},expression:"tableObj.getdataListParm.parammaps.productname"}}),a("el-checkbox",{staticStyle:{margin:"0px 10px"},attrs:{size:"medium",label:"关注"},model:{value:e.checked1,callback:function(t){e.checked1=t},expression:"checked1"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")]),a("el-button",{staticClass:"successBorder",on:{click:e.focus}},[e._v("关注")]),a("el-button",{staticClass:"successBorder2",on:{click:e.clear_all}},[e._v("清空关注")]),a("el-button",{staticClass:"successBorder2",on:{click:e.handleExport}},[e._v("导出")])],1),a("el-row",[a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,ref:"multipleTable",staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"品名","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.productname))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specifications))])]}}])}),a("el-table-column",{attrs:{label:"单位","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._l(e.tableObj.tableHeadList,(function(t,i){return[a("el-table-column",{attrs:{label:t.column_title,"min-width":"50px",align:"center"}},[e._l(t.headlist,(function(t,i){return[a("el-table-column",{key:i,attrs:{label:t.column_title,align:"center","min-width":"50px"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.NoEdit?a("span",[e._v(e._s(i.row[t.column_name]))]):e._e(),i.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:i.row[t.column_name],callback:function(a){e.$set(i.row,t.column_name,a)},expression:"scope.row[items.column_name]"}}):e._e()]}}],null,!0)})]}))],2)]})),a("el-table-column",{attrs:{label:"操作",align:"center",width:"100","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.handleSee(i)}}},[e._v("全部报价")])]}}])})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1)])],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"95%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("div",{staticClass:"table tableBox"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.priceTableObj.listLoading,expression:"priceTableObj.listLoading"}],key:e.priceTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.priceTableObj.list,border:"",fit:"","highlight-current-row":"","header-row-style":"padding: 0px;font-size:16px;font-weight:bold;color:#333;","row-style":e.rowStyle,"cell-style":"padding: 0px;font-size:16px;"}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.priceTableObj.pageNum-1)*e.priceTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"日期","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pricedate))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"50px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.specifications))])]}}])}),a("el-table-column",{attrs:{label:"单位","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unit))])]}}])}),e._l(e.tableObj.tableHeadList,(function(t,i){return[a("el-table-column",{attrs:{label:t.column_title,"min-width":"80px",align:"center"}},[e._l(t.headlist,(function(t,i){return[a("el-table-column",{key:i,attrs:{label:t.column_title,"min-width":"50px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return[i.row.NoEdit?a("span",[e._v(e._s(i.row[t.column_name]))]):e._e(),i.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:i.row[t.column_name],callback:function(a){e.$set(i.row,t.column_name,a)},expression:"scope.row[items.column_name]"}}):e._e()]}}],null,!0)})]}))],2)]}))],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.priceTableObj.total>=0,expression:"priceTableObj.total>=0"}],attrs:{total:e.priceTableObj.total,page:e.priceTableObj.getdataListParm.offset,limit:e.priceTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.priceTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.priceTableObj.getdataListParm,"pagecount",t)},pagination:e.get_priceTable_list}})],1)]),a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartLine1"}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)],1)])],1)},s=[],r=(a("4160"),a("c975"),a("d3b7"),a("25f0"),a("3ca3"),a("159b"),a("ddb0"),a("2b3d"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("3de8"),m=a("5c96"),p=a("bc3a"),u=a.n(p),h=a("5f87"),g=a("313e"),f=a.n(g);a("817d");var b={name:"PriceAverage",components:{Pagination:c["a"],TreeSelect:d["a"]},data:function(){return{pickerOptions:{shortcuts:[{text:"最近7天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近15天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-1296e6),e.$emit("pick",[a,t])}},{text:"最近30天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}}]},checked1:!1,treeRequest:{name:"getProductClass",idname:"id",params:[0]},treeClickData:{id:1,label:"",layer:1,parentid:1,sort:1},treedata:[],defaultProps:{children:"children",label:"label"},selectList:[],employeid:n.a.get("employeid"),isRoleEdit:[],requestParams:[],tableObj:{getdataListParm:{name:"",page:1,offset:1,pagecount:50,returntype:"Map",parammaps:{inputDatetime:"",starttime:"",endtime:"",productname:"",productclassid:"",productid:"",userid:"",empname:n.a.get("employename")}},tableKey:0,pageNum:1,pageSize:50,total:0,tableHeadList:[],list:[],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{processName:"",processExplain:"",id:"",modifyName:"add",enable:1},rules:{}},textMap:{create:"新增",see:"查看",update:"编辑"},priceTableObj:{getdataListParm:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",starttime:"",endtime:"",productname:"",productclassid:"",productid:""}},tableKey:0,pageNum:1,pageSize:10,total:0,tableHeadList:[],list:[],listLoading:!1,temp:{}},lineObj:{getdataListParm:{name:"",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",starttime:"",endtime:"",productid:""}},tableKey:0,pageNum:1,pageSize:10,total:0,tableHeadList:[],list:[],listLoading:!1,temp:{}},chartLine1:null,chartLine_data:[],isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getTreeList(),this.getButtons()},methods:{getButtons:function(){var e="priceAverage",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getTreeList:function(){var e=this;Object(r["o"])(this.treeRequest).then((function(t){e.treedata=t.data,console.log("树形组件",e.treedata)}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},getList:function(){var e=this;if(this.tableObj.listLoading=!0,console.log("1111111111111",this.checked1),this.checked1){var t=window.localStorage.getItem("username");this.tableObj.getdataListParm.parammaps.userid=t}else this.tableObj.getdataListParm.parammaps.userid="";console.log("查询表格:",this.tableObj.getdataListParm),Object(r["m"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj.tableHeadList=t.data.headlist,e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):(e.tableObj.tableHeadList=t.data.headlist,e.tableObj.list=[]),setTimeout((function(){e.tableObj.listLoading=!1}),100);var a={name:"getAttention",returntype:"list",parammaps:{userid:window.localStorage.getItem("username")}};Object(r["d"])(a).then((function(t){if(console.log("勾选数据======>",t),null!==t.data.lists||void 0!==t.data.lists){var a=t.data.lists.productid;0!=a.length||void 0!==a||null!==a?e.$nextTick((function(){e.tableObj.list.forEach((function(t){a.indexOf(t.productid)>=0&&e.$refs.multipleTable.toggleRowSelection(t,!0)}))})):e.$refs.multipleTable.clearSelection()}else e.$refs.multipleTable.clearSelection()}))}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),console.log(this.$refs.tree.getCheckedKeys());var e=this.$refs.tree.getCheckedKeys();this.tableObj.getdataListParm.parammaps.productclassid=e.toString(),""!==this.tableObj.getdataListParm.parammaps.inputDatetime&&null!==this.tableObj.getdataListParm.parammaps.inputDatetime?(this.tableObj.getdataListParm.parammaps.starttime=Object(o["e"])(this.tableObj.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tableObj.getdataListParm.parammaps.endtime=Object(o["e"])(this.tableObj.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}"),this.lineObj.getdataListParm.parammaps.starttime=Object(o["e"])(this.tableObj.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.lineObj.getdataListParm.parammaps.endtime=Object(o["e"])(this.tableObj.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tableObj.getdataListParm.parammaps.inputDatetime="",this.tableObj.getdataListParm.parammaps.starttime="",this.tableObj.getdataListParm.parammaps.endtime="",this.lineObj.getdataListParm.parammaps.inputDatetime="",this.lineObj.getdataListParm.parammaps.starttime="",this.lineObj.getdataListParm.parammaps.endtime=""),this.tableObj.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.inputDatetime="",this.tableObj.getdataListParm.parammaps.starttime="",this.tableObj.getdataListParm.parammaps.endtime="",this.tableObj.getdataListParm.parammaps.productname="",this.tableObj.getdataListParm.parammaps.productid="",this.tableObj.getdataListParm.parammaps.userid="",this.tableObj.getdataListParm.offset=1,this.getList()},focus:function(){var e=this;m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否关注",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList);var t=[];e.selectList.forEach((function(e){t.push(e.productid)}));var a={userid:window.localStorage.getItem("username"),params:t};Object(r["i"])(a).then((function(t){console.log("关注数据======>",t),e.getList()}))}))},clear_all:function(e){var t=this;m["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否清空所有关注",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.$refs.multipleTable.clearSelection();var e={userid:window.localStorage.getItem("username"),params:[]};Object(r["i"])(e).then((function(e){console.log("关注数据======>",e)}))}))},handleSee:function(e){console.log("查看=====>",e),this.create.temp=Object.assign({},e),this.create.dialogStatus="see",this.create.dialogFormVisible=!0,this.priceTableObj.getdataListParm.parammaps.productid=e.productid,this.lineObj.getdataListParm.parammaps.productid=e.productid,this.get_priceTable_list(),this.get_line_list()},get_line_list:function(){var e=this;Object(r["n"])(this.lineObj.getdataListParm).then((function(t){console.log("线图:",t),e.chartLine_data=t.data,e.roadChartLine1(e.chartLine_data)}))},roadChartLine1:function(e){null!=this.chartLine1&&this.chartLine1.dispose(),this.chartLine1=f.a.init(document.getElementById("chartLine1"));var t={title:{text:""},tooltip:{trigger:"axis"},legend:{data:e[0],right:10},grid:{top:"20%",left:"5%",right:"8%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{}},xAxis:{type:"category",boundaryGap:!1,data:e[1],name:"日期"},yAxis:{},series:function(){for(var t=[],a=0;a<e[0].length;a++){var i={name:e[0][a],type:"line",data:e[a+2]};t.push(i)}return t}()};this.chartLine1.setOption(t),window.onresize=function(){this.chartLine1.resize()}},get_priceTable_list:function(){var e=this;this.priceTableObj.listLoading=!0,console.log("查询表格:",this.priceTableObj.getdataListParm),Object(r["m"])(this.priceTableObj.getdataListParm).then((function(t){console.log("table数据======>",t),null!==t.data.list?(e.priceTableObj.tableHeadList=t.data.headlist,e.priceTableObj.list=t.data.list,e.priceTableObj.pageNum=t.data.pageNum,e.priceTableObj.pageSize=t.data.pageSize,e.priceTableObj.total=t.data.total):(e.priceTableObj.tableHeadList=t.data.headlist,e.priceTableObj.list=[]),setTimeout((function(){e.priceTableObj.listLoading=!1}),100)}))},handleExport:function(e){var t=this;if(this.checked1){var a=window.localStorage.getItem("username");this.tableObj.getdataListParm.parammaps.userid=a}else this.tableObj.getdataListParm.parammaps.userid="";var i=this.tableObj.getdataListParm,s="http://192.168.1.90:8082/authdata/getAveragePrice/excel";console.log(s),u()({method:"POST",url:s,data:i,headers:{token:Object(h["a"])(),optname:"insertcustomdoc"},responseType:"blob"}).then((function(e){if(e){t.percentage=99,setTimeout((function(){t.isPercentage=!1}),2e3);var a=new Blob([e.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=t.tableObj.getdataListParm.parammaps.starttime+" - "+t.tableObj.getdataListParm.parammaps.endtime+"平均价格.xlsx";s.setAttribute("download",r),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(i)}}))},handleImport:function(){var e=this;console.log("点击了导入"),console.log("点击了导出模板");var t=this.requestParam,a="http://192.168.1.90:8082/file/导入导出模板/配方计划/配方模板导入模板.xlsx";console.log(a),u()({method:"GET",url:a,data:t,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)}}))}}},v=b,w=(a("d1f1"),a("05ba"),a("ea01"),a("2877")),y=Object(w["a"])(v,i,s,!1,null,"53a3324f",null);t["default"]=y.exports},bd6c:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增字段")]):e._e()],1),a("div",{staticClass:"search"},[a("tree-select",{staticStyle:{display:"inline-block"},attrs:{height:260,width:200,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:!1,"checked-keys":e.defaultCheckedKeys,"collapse-tags":""},on:{popoverHide:e.popoverHide},model:{value:e.fieldClassId,callback:function(t){e.fieldClassId=t},expression:"fieldClassId"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"字段名称",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.fieldName,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"fieldName",t)},expression:"tableObj.getdataListParm.parammaps.fieldName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"格式",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.formatId,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"formatId",t)},expression:"tableObj.getdataListParm.parammaps.formatId"}},e._l(e.formatNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"字段分类","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fieldClass))])]}}])}),a("el-table-column",{attrs:{label:"字段名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fieldName))])]}}])}),a("el-table-column",{attrs:{label:"字段类型","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fieldType))])]}}])}),a("el-table-column",{attrs:{label:"组件类型","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.compType))])]}}])}),a("el-table-column",{attrs:{label:"字段长度","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fieldLength))])]}}])}),a("el-table-column",{attrs:{label:"最小取值范围","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.minRange))])]}}])}),a("el-table-column",{attrs:{label:"最大取值范围","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.maxRange))])]}}])}),a("el-table-column",{attrs:{label:"计算公式","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.calFormula))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),a("el-button",{staticClass:"miniEdit",attrs:{icon:"el-icon-edit-outline"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDelete",attrs:{icon:"el-icon-delete"},on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"字段分类:",prop:"fieldClassId"}},[a("tree-select",{attrs:{height:200,width:300,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:!1,"checked-keys":e.defaultCheckedKeys,"collapse-tags":""},on:{popoverHide:e.popoverHide},model:{value:e.fieldClassId,callback:function(t){e.fieldClassId=t},expression:"fieldClassId"}})],1),a("el-form-item",{attrs:{label:"字段名称:",prop:"fieldName"}},[a("el-input",{ref:"fieldName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入字段名称",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.fieldName,callback:function(t){e.$set(e.create.temp,"fieldName",t)},expression:"create.temp.fieldName"}})],1),a("el-form-item",{attrs:{label:"字段类型:",prop:"fieldTypeId"}},[a("el-select",{ref:"fieldTypeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择字段格式",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.fieldTypeId,callback:function(t){e.$set(e.create.temp,"fieldTypeId",t)},expression:"create.temp.fieldTypeId"}},e._l(e.fieldTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"组件类型:",prop:"compTypeId"}},[a("el-select",{ref:"compTypeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择录入方式","allow-create":"",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.compTypeId,callback:function(t){e.$set(e.create.temp,"compTypeId",t)},expression:"create.temp.compTypeId"}},e._l(e.compTypeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"字段长度:",prop:"fieldLength"}},[a("el-input",{ref:"fieldLength",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入字段长度",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.fieldLength,callback:function(t){e.$set(e.create.temp,"fieldLength",t)},expression:"create.temp.fieldLength"}})],1),a("el-form-item",{attrs:{label:"取值范围:"}},[a("el-col",{attrs:{span:11}},[a("el-input",{ref:"minRange",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最小取值范围",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.minRange,callback:function(t){e.$set(e.create.temp,"minRange",t)},expression:"create.temp.minRange"}})],1),a("el-col",{staticClass:"line",attrs:{span:2}},[e._v("-")]),a("el-col",{attrs:{span:11}},[a("el-input",{ref:"maxRange",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最大取值范围",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.maxRange,callback:function(t){e.$set(e.create.temp,"maxRange",t)},expression:"create.temp.maxRange"}})],1)],1),a("el-form-item",{attrs:{label:"计算公式:",prop:"calFormula"}},[a("el-input",{ref:"calFormula",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"请输入计算公式",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.calFormula,callback:function(t){e.$set(e.create.temp,"calFormula",t)},expression:"create.temp.calFormula"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"miniSee",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniEdit",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=a("ade3"),l=a("2934"),n=a("a78e"),o=a.n(n),c=(a("ed08"),a("333d")),d=a("3de8"),m=a("5c96"),p={name:"FieldManagement",components:{Pagination:c["a"],TreeSelect:d["a"]},data:function(){var e,t;return{employeid:o.a.get("employeid"),isRoleEdit:[],url_add_table:"modifyTelvisit",url_edit_table:"modifyTelvisit",url_del_table:"modifyTelvisit",requestParams:[],formatNameList:[{id:"字符1",name:"字符"},{id:"日期1",name:"日期"},{id:"整数1",name:"整数"},{id:"数字1",name:"数字"}],fieldTypeList:[{id:"字符1",name:"字符"},{id:"日期1",name:"日期"},{id:"整数1",name:"整数"},{id:"数字1",name:"数字"}],compTypeList:[{id:"单行文本1",name:"单行文本"},{id:"多行文本1",name:"下拉选择框"},{id:"单选框组1",name:"单选框组"},{id:"多选框组1",name:"多选框组"},{id:"日期选择器1",name:"日期选择器"},{id:"时间选择器1",name:"时间选择器"}],parentClass:[{NewName:"一级",checkNumber:"01",enable:1,fieldClassId:1,haschildren:6,id:1,pid:-1,sort:0,typeCode:"01",typeName:"一级(01)",children:[{NewName:"电料",checkNumber:"01.01",enable:1,fieldClassId:4,haschildren:4,id:4,pid:1,sort:null,typeCode:"01.01",typeName:"装载机(01.01)",children:[{NewName:"小型装载机",checkNumber:"01.01.01",enable:1,fieldClassId:24,haschildren:0,id:24,pid:4,sort:null,typeCode:"01.01.01",typeName:"小型装载机(01.01.01)"},{NewName:"30装载机",checkNumber:"01.01.02",enable:1,fieldClassId:25,haschildren:0,id:25,pid:4,sort:null,typeCode:"01.01.02",typeName:"30装载机(01.01.02)"}]},{NewName:"工具",checkNumber:"01.02",enable:1,fieldClassId:5,haschildren:3,id:5,pid:1,sort:null,typeCode:"01.02",typeName:"叉车(01.02)",children:[{NewName:"电动叉车",checkNumber:"01.02.01",enable:1,fieldClassId:28,haschildren:0,id:28,pid:5,sort:0,typeCode:"01.02.01",typeName:"电动叉车(01.02.01)"},{NewName:"柴油叉车",checkNumber:"01.02.02",enable:1,fieldClassId:29,haschildren:0,id:29,pid:5,sort:null,typeCode:"01.02.02",typeName:"柴油叉车(01.02.02)"}]},{NewName:"水暖",checkNumber:"01.03",enable:1,fieldClassId:6,haschildren:6,id:6,pid:1,sort:null,typeCode:"01.03",typeName:"饲喂车(01.03)",children:[{NewName:"17立方饲喂车",checkNumber:"01.03.01",enable:1,fieldClassId:32,haschildren:0,id:32,pid:6,sort:null,typeCode:"01.03.01",typeName:"17立方饲喂车(01.03.01)"},{NewName:"18立方饲喂车",checkNumber:"01.03.02",enable:1,fieldClassId:33,haschildren:0,id:33,pid:6,sort:null,typeCode:"01.03.02",typeName:"18立方饲喂车(01.03.02)"}]}]},{NewName:"二级",checkNumber:"02",enable:1,fieldClassId:1,haschildren:6,id:2,pid:-1,sort:2,typeCode:"02",typeName:"二级(02)",children:[{NewName:"搅拌机",checkNumber:"02.01",enable:1,fieldClassId:10,haschildren:3,id:10,pid:2,sort:null,typeCode:"02.01",typeName:"搅拌机(02.01)",children:[{NewName:"卧式搅拌机",checkNumber:"02.01.01",enable:1,fieldClassId:47,haschildren:0,id:47,pid:10,sort:null,typeCode:"02.01.01",typeName:"卧式搅拌机(02.01.01)"},{NewName:"立式搅拌机",checkNumber:"02.01.02",enable:1,fieldClassId:48,haschildren:0,id:48,pid:10,sort:0,typeCode:"02.01.02",typeName:"立式搅拌机(02.01.02)"}]},{NewName:"脱渣机",checkNumber:"02.02",enable:1,fieldClassId:11,haschildren:4,id:11,pid:2,sort:null,typeCode:"02.02",typeName:"脱渣机(02.02)",children:[{NewName:"五辊脱渣机",checkNumber:"02.02.01",enable:1,fieldClassId:51,haschildren:0,id:51,pid:11,sort:null,typeCode:"02.02.01",typeName:"五辊脱渣机(02.02.01)"},{NewName:"螺旋分离机",checkNumber:"02.02.02",enable:1,fieldClassId:52,haschildren:0,id:52,pid:11,sort:null,typeCode:"02.02.02",typeName:"螺旋分离机(02.02.02)"},{NewName:"二次挤压机",checkNumber:"02.02.03",enable:1,fieldClassId:53,haschildren:0,id:53,pid:11,sort:0,typeCode:"02.02.03",typeName:"二次挤压机(02.02.03)"},{NewName:"镜面分离机",checkNumber:"02.02.04",enable:1,fieldClassId:1896,haschildren:0,id:1896,pid:11,sort:0,typeCode:"02.02.04",typeName:"镜面分离机(02.02.04)"}]}]}],defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],fieldClassId:1,tableObj:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{fieldClassId:"",fieldName:"",formatId:""}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[(e={fieldClass:"一级/二级/三级",fieldClassId:1,fieldName:"牛号",fieldType:"字符"},Object(r["a"])(e,"fieldType",1),Object(r["a"])(e,"compType","单行文本"),Object(r["a"])(e,"compTypeId",1),Object(r["a"])(e,"fieldLength"," 10"),Object(r["a"])(e,"minRange",0),Object(r["a"])(e,"maxRange",999999),Object(r["a"])(e,"calFormula","-"),Object(r["a"])(e,"enable",1),Object(r["a"])(e,"id",1),Object(r["a"])(e,"isModify","0"),e),(t={fieldClass:"一级/二级/三级",fieldClassId:1,fieldName:"牛号",fieldType:"字符"},Object(r["a"])(t,"fieldType",1),Object(r["a"])(t,"compType","单行文本"),Object(r["a"])(t,"compTypeId",1),Object(r["a"])(t,"fieldLength"," 10"),Object(r["a"])(t,"minRange",0),Object(r["a"])(t,"maxRange",999999),Object(r["a"])(t,"calFormula","-"),Object(r["a"])(t,"enable",1),Object(r["a"])(t,"id",1),Object(r["a"])(t,"isModify","0"),t)],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{fieldClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1},rules:{fieldClass:[{required:!0,message:"必填",trigger:"blur"}],fieldName:[{required:!0,message:"必填",trigger:"blur"}],fieldType:[{required:!0,message:"必填",trigger:"blur"}],compType:[{required:!0,message:"必填",trigger:"blur"}]}},textMap:{create:"新增",see:"查看",update:"编辑"},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{getButtons:function(){var e="telephoneFollow",t=Object(l["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){Object(l["e"])(this.requestParams).then((function(e){}))},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm),Object(l["d"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):e.tableObj.list=[],setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),this.tableObj.getdataListParm.offset=1},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.customerName="",this.tableObj.getdataListParm.parammaps.telVisitCode="",this.tableObj.getdataListParm.parammaps.customerId="",this.tableObj.getdataListParm.parammaps.groupId="",this.tableObj.getdataListParm.parammaps.visiterId="",this.tableObj.getdataListParm.parammaps.receiverName="",this.tableObj.getdataListParm.parammaps.typeIds="",this.tableObj.getdataListParm.parammaps.statusId="",this.tableObj.getdataListParm.parammaps.beginDate="",this.tableObj.getdataListParm.parammaps.endDate="",this.tableObj.getdataListParm.parammaps.inputDatetime="",this.tableObj.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={fieldClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1}},handleEnableChange:function(){console.log("点击了是否启用")},popoverHide:function(e,t){console.log("树形多级选择",e,t),this.create.temp.fieldClassId=t.id,this.tableObj.getdataListParm.parammaps.fieldClassId=t.id},handleCreate:function(){console.log("新增=====>"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("新增保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="add",e.create.temp.id="",e.create.temp.createrId=o.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:e.url_add_table,resultmaps:{list:[e.create.temp]},children:[{name:"insertTelvisit",type:"e",parammaps:{customerId:"@insertTelvisit.customerId",groupId:"@insertTelvisit.groupId",tdate:"@insertTelvisit.tdate",visiterId:"@insertTelvisit.visiterId",receiverId:"@insertTelvisit.receiverId",receiverId2:"@insertContactsNew.LastInsertId",receiverTel:"@insertTelvisit.receiverTel",typeIds:"@insertTelvisit.typeIds",statusName:"@insertTelvisit.statusName",remark:"@insertTelvisit.remark",content:"@insertTelvisit.content",nextId:"@insertTelvisit.nextId",createrId:"@insertTelvisit.createrId",receiverChoose:"@insertTelvisit.receiverChoose"}}]}]};console.log("新增保存发送参数 ",a)}}))},handleSee:function(e){console.log("查看=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("编辑=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;console.log("编辑保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateTelvisit",resultmaps:{list:[e.create.temp]},children:[{name:"updateTelvisit",type:"e",parammaps:{tdate:"@updateTelvisit.tdate",visiterId:"@updateTelvisit.visiterId",receiverId:"@updateTelvisit.receiverId",receiverId2:"@insertContactsNew.LastInsertId",receiverTel:"@updateTelvisit.receiverTel",typeIds:"@updateTelvisit.typeIds",statusName:"@updateTelvisit.statusName",remark:"@updateTelvisit.remark",content:"@updateTelvisit.content",nextId:"@insertTelvisit.nextId",receiverChoose:"@insertTelvisit.receiverChoose",id:"@insertTelvisit.id"}}]}]};console.log("编辑保存发送参数 ",a),0==e.create.temp.typeIdsArr.length?e.$notify({title:"失败",message:"回访类型必选!"+response.data,type:"error",duration:2e3}):Object(l["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;console.log("删除=====>",e),m["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:t.url_del_table,parammaps:{id:e.id}};Object(l["g"])(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.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},u=p,h=(a("46af"),a("2877")),g=Object(h["a"])(u,i,s,!1,null,"636ececf",null);t["default"]=g.exports},bdae:function(e,t,a){},bdf4:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleExamine}},[e._v("审核")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:e.handleExport}},[e._v("导出")])],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"牲畜类别",clearable:""},model:{value:e.table.getdataListParm.parammaps.cowclassid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"cowclassid",t)},expression:"table.getdataListParm.parammaps.cowclassid"}},e._l(e.livestockTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.mixname,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.feedid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"feedid",t)},expression:"table.getdataListParm.parammaps.feedid"}},e._l(e.feedNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.fname,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"是否审核",clearable:""},model:{value:e.table.getdataListParm.parammaps.ischarge,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"ischarge",t)},expression:"table.getdataListParm.parammaps.ischarge"}},e._l(e.isAuditList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"业务日期","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.usedate))])]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cowclass))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"库存重量(kg)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.repertoryweight))])]}}])}),a("el-table-column",{attrs:{label:"计划重量(kg)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.planweight))])]}}])}),a("el-table-column",{attrs:{label:"设备实测重量(kg)","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.actweight))])]}}])}),a("el-table-column",{attrs:{label:"出库重量(kg)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.operateweight))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{placeholder:"最多保留两位小数",type:"number",step:.01},model:{value:t.row.operateweight,callback:function(a){e.$set(t.row,"operateweight",a)},expression:"scope.row.operateweight"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注(kg)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.remark))]):e._e(),t.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:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否审核","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.ischarge?a("span",[e._v("是")]):a("span",[e._v("否")])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"150","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isUpdate&&1!==i.ischarge?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1)])},s=[],r=(a("b0c0"),a("2934")),l=a("5c96"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"SystemConsumption",data:function(){return{livestockTypeList:[],feedNameList:[{id:0,name:"羊草"},{id:1,name:"小苏打"}],isAuditList:[{id:"1",name:"是"},{id:"0",name:"否"}],requestParams:[{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getCowclassListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}}],table:{getdataListParm:{name:"getFeeduseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputDatetime:"",pastureid:o.a.get("pastureid"),startTime:"",stopTime:"",usetype:"系统用量",feedid:"",cowclassid:"",ischarge:""}},tableKey:0,list:[],total:0,listLoading:!0},selectList:[],requestParam:{},isokDisable:!1,isRoleEdit:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getButtons(),this.getDownList(),this.getList()},methods:{getButtons:function(){var e="SystemConsumption",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.feedNameList=t.data.getFeedListEnable.list,e.livestockTypeList=t.data.getCowclassListEnable.list}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(c["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.feedid="",this.table.getdataListParm.parammaps.cowclassid="",this.table.getdataListParm.parammaps.ischarge="",this.table.getdataListParm.offset=1},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isUpdate=!1,e.isUpdateSave=!0},updateData:function(e){var t=this;console.log("点击了编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updateFeeduse",this.requestParam.parammaps={},this.requestParam.parammaps.pastureid=e.pastureid,this.requestParam.parammaps.id=e.id,this.requestParam.parammaps.remark=e.remark,this.requestParam.parammaps.operateweight=e.operateweight,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList()):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isUpdate=!0,e.isUpdateSave=!1,this.getList()},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleExamine:function(){var e=this;if(0==this.selectList.length)this.$message({type:"error",message:"请选择需要审核的单据",duration:2e3});else{for(var t=0;t<this.selectList.length;t++)if(1==this.selectList[t].ischarge)return void this.$message({type:"error",message:"单据不可重复审核,请重新选择",duration:2e3});l["MessageBox"].confirm("是否确认审核系统用量?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"chargeFeedstorageuse",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid",operateweight:"@insertSpotList.operateweight"}},Object(r["b"])(e.requestParam).then((function(t){console.log("审核保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"成功",type:"success",duration:2e3}),e.getList())}))}))}},handleExport:function(){console.log("点击了导出")}}},m=d,p=(a("7ffb"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"011042a8",null);t["default"]=u.exports},be0d:function(e,t,a){},be35:function(e,t,a){},bf45:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",on:{click:e.handleDelete}},[e._v("删除")]):e._e(),a("el-button",{staticClass:"success",on:{click:e.handleFeedBank}},[e._v("饲料库")])],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"fname",t)},expression:"table.getdataListParm.parammaps.fname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"饲料类别",clearable:""},model:{value:e.table.getdataListParm.parammaps.fclassid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"fclassid",t)},expression:"table.getdataListParm.parammaps.fclassid"}},e._l(e.feedTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.mixname,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"饲料来源",clearable:""},model:{value:e.table.getdataListParm.parammaps.source,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"source",t)},expression:"table.getdataListParm.parammaps.source"}},e._l(e.feedSourcesList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"是否启用",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("div",{ref:"selectInput",staticClass:"filter-item selectInput"},[a("el-input",{staticClass:"Input",attrs:{type:"text",name:"",value:"",placeholder:"请点击选择搜索条件"}}),e.arrowDown?a("i",{staticClass:"el-icon-arrow-down",attrs:{icon:"el-icon-arrow-down"}}):e._e(),e.arrowUp?a("i",{staticClass:"el-icon-arrow-up",attrs:{icon:"el-icon-arrow-up"}}):e._e(),e.arrowUp?a("ul",{staticClass:"selectUl"},[a("li",[a("a",[e._v("允许误差数")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:e.table.getdataListParm.parammaps.allowratio,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"allowratio",t)},expression:"table.getdataListParm.parammaps.allowratio"}})],1),a("li",[a("a",[e._v("跳转重量域")]),a("el-input",{staticStyle:{width:"245px"},attrs:{type:"text"},model:{value:e.table.getdataListParm.parammaps.autozone,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"autozone",t)},expression:"table.getdataListParm.parammaps.autozone"}})],1),a("li",[a("a",[e._v("跳转延时")]),a("el-select",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{filterable:"",placeholder:"跳转延时",clearable:""},model:{value:e.table.getdataListParm.parammaps.autosecond,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"autosecond",t)},expression:"table.getdataListParm.parammaps.autosecond"}},e._l(e.jumpDelayList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("li",[a("div",{staticStyle:{float:"right"}},[a("el-button",{staticClass:"minCancel",on:{click:function(t){e.arrowUp=!1,e.arrowDown=!0}}},[e._v("取消")]),a("el-button",{staticClass:"miniPrimary",on:{click:e.handleSearch}},[e._v("搜索")])],1)])]):e._e()],1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"饲料分类","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fclass))])]}}])}),a("el-table-column",{attrs:{label:"唯一编码","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedcode))])]}}])}),a("el-table-column",{attrs:{label:"饲料来源","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.source))])]}}])}),a("el-table-column",{attrs:{label:"计划类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.printgroup))])]}}])}),a("el-table-column",{attrs:{label:"允许误差数(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.allowratio))])]}}])}),a("el-table-column",{attrs:{label:"包装单位重量(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.unitweight))])]}}])}),a("el-table-column",{attrs:{label:"单价","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.uprice))])]}}])}),a("el-table-column",{attrs:{label:"跳转重量域(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.autozone))])]}}])}),a("el-table-column",{attrs:{label:"跳转延时","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.autosecondname))])]}}])}),a("el-table-column",{attrs:{label:"确认开始","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.confirmstartname))])]}}])}),a("el-table-column",{attrs:{label:"继电器位置","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.trgaddress))])]}}])}),a("el-table-column",{attrs:{label:"备用字段01","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.backup1))])]}}])}),a("el-table-column",{attrs:{label:"备用字段02","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.backup2))])]}}])}),a("el-table-column",{attrs:{label:"备用字段03","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.backup3))])]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:"","active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSuccess",on:{click:function(t){e.handleNutritive(i)}}},[e._v("营养价值")]),e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleRelation(i)}}},[e._v("关联")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.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"}},[e._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:e.create.temp.fname,callback:function(t){e.$set(e.create.temp,"fname",t)},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:e.changeFeedList},model:{value:e.create.temp.fclassid,callback:function(t){e.$set(e.create.temp,"fclassid",t)},expression:"create.temp.fclassid"}},e._l(e.feedTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.mixname,value:e.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:e.create.temp.feedcode,callback:function(t){e.$set(e.create.temp,"feedcode",t)},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:e.create.temp.source,callback:function(t){e.$set(e.create.temp,"source",t)},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:e.changePlanList},model:{value:e.create.temp.printgroupid,callback:function(t){e.$set(e.create.temp,"printgroupid",t)},expression:"create.temp.printgroupid"}},e._l(e.planTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.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:e.create.temp.unitweight,callback:function(t){e.$set(e.create.temp,"unitweight",t)},expression:"create.temp.unitweight"}})],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"单价:",prop:"uprice"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"uprice",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"最多俩位小数",type:"number",step:"0.01"},model:{value:e.create.temp.uprice,callback:function(t){e.$set(e.create.temp,"uprice",t)},expression:"create.temp.uprice"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[e._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:e.create.temp.allowratio,callback:function(t){e.$set(e.create.temp,"allowratio",t)},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"==e.create.temp.autosecond,placeholder:"0-20之间的整数",type:"text"},model:{value:e.create.temp.autozone,callback:function(t){e.$set(e.create.temp,"autozone",t)},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:e.changeAutosecond},model:{value:e.create.temp.autosecond,callback:function(t){e.$set(e.create.temp,"autosecond",t)},expression:"create.temp.autosecond"}},e._l(e.jumpDelayList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.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:e.changeConfirmstart},model:{value:e.create.temp.confirmstart,callback:function(t){e.$set(e.create.temp,"confirmstart",t)},expression:"create.temp.confirmstart"}},e._l(e.confirmStartList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.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:e.create.temp.enable,callback:function(t){e.$set(e.create.temp,"enable",t)},expression:"create.temp.enable"}},e._l(e.enableList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.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:e.create.temp.trgaddress,callback:function(t){e.$set(e.create.temp,"trgaddress",t)},expression:"create.temp.trgaddress"}})],1)],1)],1),a("el-row",[a("h3",{staticStyle:{width:"160px","text-align":"right"}},[e._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:e.create.temp.backup1,callback:function(t){e.$set(e.create.temp,"backup1",t)},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:e.create.temp.backup2,callback:function(t){e.$set(e.create.temp,"backup2",t)},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:e.create.temp.backup3,callback:function(t){e.$set(e.create.temp,"backup3",t)},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(t){e.create.dialogFormVisible=!1}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:e.textMap[e.feedBank.dialogStatus],visible:e.feedBank.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.feedBank,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:e.feedBank.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.feedBank.getdataListParm.parammaps,"fname",t)},expression:"feedBank.getdataListParm.parammaps.fname"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterabler:"",placeholder:"关联状态",clearable:""},model:{value:e.feedBank.getdataListParm.parammaps.statue,callback:function(t){e.$set(e.feedBank.getdataListParm.parammaps,"statue",t)},expression:"feedBank.getdataListParm.parammaps.statue"}},e._l(e.associationStatusList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleFeedBankSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleFeedBankRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.feedBank.listLoading,expression:"feedBank.listLoading"}],key:e.feedBank.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{"element-loading-text":"给我一点时间",data:e.feedBank.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"来源","min-width":"90",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sources))])]}}])}),a("el-table-column",{attrs:{label:"中国饲料号","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedcode))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"价格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),a("el-table-column",{attrs:{label:"样品说明","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"干物质(DM%)","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dry))])]}}])}),a("el-table-column",{attrs:{label:"淀粉(%DM)","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.starch))])]}}])}),a("el-table-column",{attrs:{label:"粗蛋白(CP%DM)","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cp))])]}}])}),a("el-table-column",{attrs:{label:"钙(Ca%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ca))])]}}])}),a("el-table-column",{attrs:{label:"磷(P%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.p))])]}}])}),a("el-table-column",{attrs:{label:"产奶净能(%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.n))])]}}])}),a("el-table-column",{attrs:{label:"脂肪(%DM)","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fat))])]}}])}),a("el-table-column",{attrs:{label:"ADF(%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.adf))])]}}])}),a("el-table-column",{attrs:{label:"NDF(%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ndf))])]}}])}),a("el-table-column",{attrs:{label:"NDIP%","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ndip))])]}}])}),a("el-table-column",{attrs:{label:"粗灰分(Ash%)","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ash))])]}}])}),a("el-table-column",{attrs:{label:"粗料","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.iscu))])]}}])}),a("el-table-column",{attrs:{label:"关联状态","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.statue?a("span",[e._v("否")]):e._e(),1==t.row.statue?a("span",[e._v("是")]):e._e()]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.feedBank.dialogFormVisible=!1}}},[e._v("关闭")])],1)])]),a("el-dialog",{attrs:{title:e.textMap[e.relation.dialogStatus],visible:e.relation.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.relation,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"饲料名称",clearable:""},model:{value:e.relation.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.relation.getdataListParm.parammaps,"fname",t)},expression:"relation.getdataListParm.parammaps.fname"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleRelationSearch}},[e._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.relation.listLoading,expression:"relation.listLoading"}],key:e.relation.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{"element-loading-text":"给我一点时间",data:e.relation.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"}}),a("el-table-column",{attrs:{label:"来源","min-width":"90",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sources))])]}}])}),a("el-table-column",{attrs:{label:"中国饲料号","min-width":"100px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedcode))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"价格","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.price))])]}}])}),a("el-table-column",{attrs:{label:"样品说明","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"干物质(DM%)","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.dry))])]}}])}),a("el-table-column",{attrs:{label:"淀粉(%DM)","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.starch))])]}}])}),a("el-table-column",{attrs:{label:"粗蛋白(CP%DM)","min-width":"75px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.cp))])]}}])}),a("el-table-column",{attrs:{label:"钙(Ca%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ca))])]}}])}),a("el-table-column",{attrs:{label:"磷(P%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.p))])]}}])}),a("el-table-column",{attrs:{label:"产奶净能(%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.n))])]}}])}),a("el-table-column",{attrs:{label:"脂肪(%DM)","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fat))])]}}])}),a("el-table-column",{attrs:{label:"ADF(%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.adf))])]}}])}),a("el-table-column",{attrs:{label:"NDF(%DM)","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ndf))])]}}])}),a("el-table-column",{attrs:{label:"NDIP%","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ndip))])]}}])}),a("el-table-column",{attrs:{label:"粗灰分(Ash%)","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ash))])]}}])}),a("el-table-column",{attrs:{label:"粗料","min-width":"70px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.iscu))])]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"150px",align:"center","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return["1"==i.statueRelation?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.disassociateData(i)}}},[e._v("取消关联")]):e._e(),"0"==i.statueRelation?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.relationData(i)}}},[e._v("关联")]):e._e()]}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.relation.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")])],1)])]),a("el-dialog",{attrs:{title:e.textMap[e.nutritive.dialogStatus],visible:e.nutritive.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.nutritive,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:e.nutritive.rules,model:e.nutritive.temp,"label-position":"right","label-width":"160px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"干物质(DM%):",prop:"dry"}},[a("el-input",{directives:[{name:"limit",rawName:"v-limit"}],ref:"dry",staticClass:"filter-item",attrs:{disabled:0==e.isRoleEdit,placeholder:"请输入干物质",type:"number",step:"0.01"},model:{value:e.nutritive.temp.dry,callback:function(t){e.$set(e.nutritive.temp,"dry",t)},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==e.isRoleEdit,placeholder:"请输入淀粉",type:"number",step:"0.01"},model:{value:e.nutritive.temp.starch,callback:function(t){e.$set(e.nutritive.temp,"starch",t)},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==e.isRoleEdit,placeholder:"请输入粗蛋白",type:"number",step:"0.01"},model:{value:e.nutritive.temp.cp,callback:function(t){e.$set(e.nutritive.temp,"cp",t)},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==e.isRoleEdit,placeholder:"请输入钙",type:"number",step:"0.01"},model:{value:e.nutritive.temp.ca,callback:function(t){e.$set(e.nutritive.temp,"ca",t)},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==e.isRoleEdit,placeholder:"请输入磷",type:"number",step:"0.01"},model:{value:e.nutritive.temp.p,callback:function(t){e.$set(e.nutritive.temp,"p",t)},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==e.isRoleEdit,placeholder:"请输入产奶净能",type:"number",step:"0.01"},model:{value:e.nutritive.temp.n,callback:function(t){e.$set(e.nutritive.temp,"n",t)},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==e.isRoleEdit,placeholder:"请输入脂肪",type:"number",step:"0.01"},model:{value:e.nutritive.temp.fat,callback:function(t){e.$set(e.nutritive.temp,"fat",t)},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==e.isRoleEdit,placeholder:"请输入ADF",type:"number",step:"0.01"},model:{value:e.nutritive.temp.adf,callback:function(t){e.$set(e.nutritive.temp,"adf",t)},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==e.isRoleEdit,placeholder:"请输入NDF",type:"number",step:"0.01"},model:{value:e.nutritive.temp.ndf,callback:function(t){e.$set(e.nutritive.temp,"ndf",t)},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==e.isRoleEdit,placeholder:"请输入NDIP",type:"number",step:"0.01"},model:{value:e.nutritive.temp.ndip,callback:function(t){e.$set(e.nutritive.temp,"ndip",t)},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==e.isRoleEdit,placeholder:"请输入粗灰分",type:"number",min:"0.00",step:"0.01"},model:{value:e.nutritive.temp.ash,callback:function(t){e.$set(e.nutritive.temp,"ash",t)},expression:"nutritive.temp.ash"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{right:"30px",position:"absolute",bottom:"5px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.nutritive.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"nutritive"===e.nutritive.dialogStatus&&e.isRoleEdit?a("el-button",{attrs:{type:"success",disabled:e.isokDisable},on:{click:function(t){return e.nutritiveData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("4d63"),a("ac1f"),a("25f0"),a("466d"),a("5319"),a("2934")),l=a("a78e"),n=a.n(l),o=a("333d"),c=a("5c96"),d={name:"FeedTable",components:{Pagination:o["a"]},directives:{limit:{update:function(e){e.onkeypress=function(e){var t=e.charCode;if(0!=t&&!String.fromCharCode(t).match(/[0-9\.]/))return!1},e.addEventListener("textInput",(function(e){e.target.value=e.target.value.replace(/[^0-9\.]/g,"")})),e.onkeyup=function(e){e.target.value=e.target.value.replace(/[^0-9\.]/g,"")}}}},data:function(){return{isRoleEdit:[],requestParams:[{name:"getDictByName",offset:0,pagecount:0,params:["跳转延时"]},{name:"getFeedclassByBig",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getDictByName2",offset:0,pagecount:0,params:["计划类型"]}],enableList:[{id:"1",name:"是"},{id:"0",name:"否"}],feedSourcesList:[{id:"0",name:"系统内置"},{id:"1",name:"用户自定义"}],confirmStartList:[{id:"0",name:"禁用"},{id:"1",name:"启用"}],associationStatusList:[{id:"1",name:"是"},{id:"0",name:"否"}],jumpDelayList:[],feedTypeList:[],planTypeList:[],table:{tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFeedList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fname:"",fclassid:"",source:"",autozone:"",autosecond:"",allowratio:"",printgroup:"",enable:""}}},arrowDown:!0,arrowUp:!1,create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),fname:"",fclassid:"",fclass:"",feedcode:"",source:"用户自定义",printgroupid:"1",printgroup:"无",unitweight:"",uprice:"",allowratio:"",autozone:"",autosecond:"0",autosecondname:"禁用",confirmstart:"0",confirmstartname:"禁用",enable:"1",trgaddress:"",backup1:"",backup2:"",backup3:""},rules:{fname:[{type:"string",required:!0,message:"必填",trigger:"blur"}],fclassid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],feedcode:[{type:"string",required:!0,message:"必填",trigger:"blur"}]}},feedBank:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFeednurList",page:1,offset:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fname:"",statue:""}}},relation:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataListParm:{name:"getFeednurRelation",page:1,offset:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),fname:""}}},nutritive:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{}},textMap:{create:"新增",update:"编辑",feedBank:"饲料库",relation:"关联",nutritive:"营养价值"},isokDisable:!1,selectList:[],requestParam:{},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},mounted:function(){var e=this;document.addEventListener("click",(function(t){void 0!==e.$refs.selectInput&&(e.$refs.selectInput.contains(t.target)?(e.arrowDown=!1,e.arrowUp=!0):(e.arrowDown=!0,e.arrowUp=!1))}))},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="FeedTable",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.jumpDelayList=t.data.getDictByName.list,e.feedTypeList=t.data.getFeedclassByBig.list,e.planTypeList=t.data.getDictByName2.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList(),this.arrowDown=!0,this.arrowUp=!1},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.fname="",this.table.getdataListParm.parammaps.fclassid="",this.table.getdataListParm.parammaps.source="",this.table.getdataListParm.parammaps.autozone="",this.table.getdataListParm.parammaps.autosecond="",this.table.getdataListParm.parammaps.allowratio="",this.table.getdataListParm.parammaps.printgroup="",this.table.getdataListParm.parammaps.enable="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),fname:"",fclassid:"",fclass:"",feedcode:"",source:"用户自定义",printgroupid:"1",printgroup:"无",unitweight:"",uprice:"",allowratio:"",autozone:"",autosecond:"0",autosecondname:"禁用",confirmstart:"0",confirmstartname:"禁用",enable:"1",trgaddress:"",backup1:"",backup2:"",backup3:""}},changePlanList:function(e){this.create.temp.printgroup=this.planTypeList.find((function(t){return t.value===e})).label},changeFeedList:function(e){this.create.temp.fclass=this.feedTypeList.find((function(t){return t.id===e})).mixname},changeAutosecond:function(e){this.create.temp.autosecondname=this.jumpDelayList.find((function(t){return t.value===e})).label},changeConfirmstart:function(e){this.create.temp.confirmstartname=this.confirmStartList.find((function(t){return t.id===e})).name},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a=/^[1-9]\d*$/;if(""!==e.create.temp.unitweight&&!a.test(parseFloat(e.create.temp.unitweight)))return e.$message({type:"error",message:"包装单位重量请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==e.create.temp.uprice&&!i.test(parseFloat(e.create.temp.uprice)))return e.$message({type:"error",message:"单价请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.autozone){var s=/^([0-9]|(1[0-9]|(20)))$/;if(!s.test(parseFloat(e.create.temp.autozone)))return e.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于20的整数",duration:2e3}),!1}else e.create.temp.autozone="0";if(e.create.temp.trgaddress.length>8)return e.$message({type:"error",message:"继电器位置请输入1-8位数字",duration:2e3}),!1;var l=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(l.test(e.create.temp.fname))return e.$message({type:"error",message:"饲料名称不可输入特殊字符",duration:2e3}),!1;var n=/^[0-9]\d*$/;if(""!==e.create.temp.allowratio&&!n.test(parseFloat(e.create.temp.allowratio)))return e.$message({type:"error",message:"允许误差数请输入大于等于0的整数",duration:2e3}),!1;e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="insertFeed",e.requestParam.parammaps=e.create.temp,""==e.create.temp.allowratio&&(e.create.temp.allowratio="0"),""==e.create.temp.uprice&&(e.create.temp.uprice="0"),""==e.create.temp.unitweight&&(e.create.temp.unitweight="0"),""==e.create.temp.autozone&&(e.create.temp.autozone="0"),""==e.create.temp.trgaddress&&(e.create.temp.trgaddress="0"),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):(Object(r["l"])(t,e.$notify),"0"==e.create.temp.allowratio&&(e.create.temp.allowratio=""),"0"==e.create.temp.uprice&&(e.create.temp.uprice=""),"0"==e.create.temp.unitweight&&(e.create.temp.unitweight=""),"0"==e.create.temp.autozone&&(e.create.temp.autozone=""),"0"==e.create.temp.trgaddress&&(e.create.temp.trgaddress=""))}))}}))},handleUpdate:function(e){console.log("点击了编辑"),this.create.dialogStatus="update",this.create.dialogFormVisible=!0,e.fclassid=String(e.fclassid),e.printgroupid=String(e.printgroupid),e.autosecond=String(e.autosecond),e.confirmstart=String(e.confirmstart),e.enable=String(e.enable),this.create.temp=Object.assign({},e),"0"==this.create.temp.allowratio&&(this.create.temp.allowratio=""),"0.00"==this.create.temp.uprice&&(this.create.temp.uprice=""),"0"==this.create.temp.unitweight&&(this.create.temp.unitweight=""),"0"==this.create.temp.autozone&&(this.create.temp.autozone=""),"0"==this.create.temp.trgaddress&&(this.create.temp.trgaddress="")},updateData:function(){var e=this;console.log("点击了编辑保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){var a=/^[1-9]\d*$/;if(""!==e.create.temp.unitweight&&!a.test(parseFloat(e.create.temp.unitweight)))return e.$message({type:"error",message:"包装单位重量请输入正整数",duration:2e3}),!1;var i=/^\d+(\.\d{1,2})?$/;if(""!==e.create.temp.uprice&&!i.test(parseFloat(e.create.temp.uprice)))return e.$message({type:"error",message:"单价请保留两位小数",duration:2e3}),!1;if(""!==e.create.temp.autozone){var s=/^([0-9]|(1[0-9]|(20)))$/;if(!s.test(parseFloat(e.create.temp.autozone)))return e.$message({type:"error",message:"跳转重量域请输入大于等于0小于等于20的整数",duration:2e3}),!1}else e.create.temp.autozone="0";if(e.create.temp.trgaddress.length>8)return e.$message({type:"error",message:"继电器位置请输入1-8位数字",duration:2e3}),!1;var l=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]");if(l.test(e.create.temp.fname))return e.$message({type:"error",message:"饲料名称不可输入特殊字符",duration:2e3}),!1;var n=/^[0-9]\d*$/;if(""!==e.create.temp.allowratio&&!n.test(parseFloat(e.create.temp.allowratio)))return e.$message({type:"error",message:"允许误差数请输入大于等于0的整数",duration:2e3}),!1;e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="updateFeed",e.requestParam.parammaps=e.create.temp,""==e.create.temp.allowratio&&(e.create.temp.allowratio="0"),""==e.create.temp.uprice&&(e.create.temp.uprice="0"),""==e.create.temp.unitweight&&(e.create.temp.unitweight="0"),""==e.create.temp.autozone&&(e.create.temp.autozone="0"),""==e.create.temp.trgaddress&&(e.create.temp.trgaddress="0"),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):(Object(r["l"])(t,e.$notify),"0"==e.create.temp.allowratio&&(e.create.temp.allowratio=""),"0"==e.create.temp.uprice&&(e.create.temp.uprice=""),"0"==e.create.temp.unitweight&&(e.create.temp.unitweight=""),"0"==e.create.temp.autozone&&(e.create.temp.autozone=""),"0"==e.create.temp.trgaddress&&(e.create.temp.trgaddress=""))}))}}))},handleFeedBank:function(){console.log("点击了饲料库"),this.feedBank.dialogStatus="feedBank",this.feedBank.dialogFormVisible=!0,this.getFeedBankList()},getFeedBankList:function(){var e=this;this.feedBank.listLoading=!0,Object(r["d"])(this.feedBank.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.feedBank.list=t.data.list,e.feedBank.pageNum=t.data.pageNum,e.feedBank.pageSize=t.data.pageSize,e.feedBank.total=t.data.total):e.feedBank.list=[],setTimeout((function(){e.feedBank.listLoading=!1}),100)}))},handleFeedBankSearch:function(){console.log("点击了饲料库搜索"),this.getFeedBankList(),this.feedBank.getdataListParm.offset=1},handleFeedBankRefresh:function(){console.log("点击了饲料库重置"),this.feedBank.getdataListParm.parammaps.fname="",this.feedBank.getdataListParm.parammaps.statue="",this.getFeedBankList()},handleRelation:function(e){console.log("点击了关联"),this.relation.dialogStatus="relation",this.relation.dialogFormVisible=!0,this.relation.temp=Object.assign({},e),this.relation.getdataListParm.parammaps.fid=this.relation.temp.id,this.getRelationList()},getRelationList:function(){var e=this;this.relation.listLoading=!0,Object(r["d"])(this.relation.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.relation.list=t.data.list,e.relation.pageNum=t.data.pageNum,e.relation.pageSize=t.data.pageSize,e.relation.total=t.data.total):e.relation.list=[],setTimeout((function(){e.relation.listLoading=!1}),100)}))},handleRelationSearch:function(){console.log("点击了关联搜索"),this.relation.getdataListParm.offset=1,this.getRelationList()},disassociateData:function(e){var t=this;console.log("点击了取消关联"),c["MessageBox"].confirm("是否确认取消关联?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),t.requestParam.name="updateFeedrelation",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.relation.temp.pastureid,t.requestParam.parammaps.fid=t.relation.temp.id,t.requestParam.parammaps.id=e.id,Object(r["g"])(t.requestParam).then((function(e){console.log("取消关联保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getRelationList(),t.getList()):Object(r["l"])(e,t.$notify)}))})).catch((function(){t.$message({type:"info",message:"已取消"})}))},relationData:function(e){var t=this;console.log("点击了关联保存"),c["MessageBox"].confirm("是否确认关联?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),t.requestParam.name="insertFeednur",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=t.relation.temp.pastureid,t.requestParam.parammaps.fid=t.relation.temp.id,t.requestParam.parammaps.fname=t.relation.temp.fname,t.requestParam.parammaps.feedcode=t.relation.temp.feedcode,t.requestParam.parammaps.price=e.price,t.requestParam.parammaps.remark=e.remark,t.requestParam.parammaps.dry=e.dry,t.requestParam.parammaps.starch=e.starch,t.requestParam.parammaps.cp=e.cp,t.requestParam.parammaps.ca=e.ca,t.requestParam.parammaps.p=e.p,t.requestParam.parammaps.n=e.n,t.requestParam.parammaps.fat=e.fat,t.requestParam.parammaps.adf=e.adf,t.requestParam.parammaps.ndf=e.ndf,t.requestParam.parammaps.ndip=e.ndip,t.requestParam.parammaps.ash=e.ash,t.requestParam.parammaps.fpercent=e.fpercent,t.requestParam.parammaps.iscu=e.iscu,t.requestParam.parammaps.feednurid=e.id,Object(r["g"])(t.requestParam).then((function(e){console.log("关联保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getRelationList(),t.getList()):Object(r["l"])(e,t.$notify)}))})).catch((function(){t.$message({type:"info",message:"已取消"})}))},handleNutritive:function(e){console.log("点击了营养价值",e),this.nutritive.dialogStatus="nutritive",this.nutritive.dialogFormVisible=!0,this.nutritive.temp=Object.assign({},e)},nutritiveData:function(){var e=this;console.log("点击了营养价值保存"),this.isokDisable=!0,setTimeout((function(){e.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 t=/^\d+(\.\d{1,2})?$/;return""===this.nutritive.temp.dry||t.test(parseFloat(this.nutritive.temp.dry))?(console.log(this.nutritive.temp.starch),(""===this.nutritive.temp.starch||t.test(parseFloat(this.nutritive.temp.starch)))&&(""===this.nutritive.temp.cp||t.test(parseFloat(this.nutritive.temp.cp)))&&(""===this.nutritive.temp.ca||t.test(parseFloat(this.nutritive.temp.ca)))&&(""===this.nutritive.temp.p||t.test(parseFloat(this.nutritive.temp.p)))&&(""===this.nutritive.temp.n||t.test(parseFloat(this.nutritive.temp.n)))&&(""===this.nutritive.temp.fat||t.test(parseFloat(this.nutritive.temp.fat)))&&(""===this.nutritive.temp.adf||t.test(parseFloat(this.nutritive.temp.adf)))&&(""===this.nutritive.temp.ndf||t.test(parseFloat(this.nutritive.temp.ndf)))&&(""===this.nutritive.temp.ndip||t.test(parseFloat(this.nutritive.temp.ndip)))&&(""===this.nutritive.temp.ash||t.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["g"])(this.requestParam).then((function(t){console.log("关联保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.getList(),e.nutritive.dialogFormVisible=!1):Object(r["l"])(t,e.$notify)}))):(this.$message({type:"error",message:"请输入自然数,最多保留俩位小数",duration:2e3}),!1)):(this.$message({type:"error",message:"请输入自然数,最多保留俩位小数",duration:2e3}),!1)},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),c["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deleteFeed",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(t.requestParam).then((function(){t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),t.getList()}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择饲料表信息",duration:2e3}):c["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deleteFeed",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},m=d,p=(a("788c"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"b286d62c",null);t["default"]=u.exports},bf89:function(e,t,a){"use strict";var i=a("e10f"),s=a.n(i);s.a},bff9:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-基础数据",use:"icon-基础数据-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-基础数据"><defs><style type="text/css"></style></defs><path d="M754.456774 260.954839v508.696774h50.869678v-508.696774h-50.869678z m-508.696774 508.696774v-508.696774h-50.869677v508.696774h50.869677z" p-id="13016" fill="#ffffff" /><path d="M754.456774 761.063226c1.32129 18.498065-19.819355 45.584516-66.725161 66.725161-46.245161 21.140645-112.970323 35.014194-187.623226 35.014194-73.992258 0-141.378065-13.873548-187.623226-35.014194-47.566452-21.140645-68.046452-48.227097-66.725161-66.725161h-50.869677c8.588387 101.739355 146.663226 149.966452 305.218064 152.609032 158.554839-2.642581 296.629677-50.869677 305.218065-152.609032h-50.869678z" p-id="13017" fill="#ffffff" /><path d="M754.456774 591.277419c1.32129 18.498065-19.819355 45.584516-66.725161 66.725162-46.245161 21.140645-112.970323 35.014194-187.623226 35.014193-73.992258 0-141.378065-13.873548-187.623226-35.014193-47.566452-21.140645-68.046452-48.227097-66.725161-66.725162h-50.869677c8.588387 101.739355 146.663226 149.966452 305.218064 152.609033 158.554839-2.642581 296.629677-50.869677 305.218065-152.609033h-50.869678z" p-id="13018" fill="#ffffff" /><path d="M754.456774 422.152258c1.32129 18.498065-19.819355 45.584516-66.725161 66.725161-46.245161 21.140645-112.970323 35.014194-187.623226 35.014194-73.992258 0-141.378065-13.873548-187.623226-35.014194-47.566452-21.140645-68.046452-48.227097-66.725161-66.725161h-50.869677C203.47871 523.891613 341.553548 572.11871 500.108387 574.76129c158.554839-2.642581 296.629677-50.869677 305.218065-152.609032h-50.869678z" p-id="13019" fill="#ffffff" /><path d="M754.456774 235.189677c1.32129 18.498065-19.819355 45.584516-66.725161 66.725162-46.245161 21.140645-112.970323 35.014194-187.623226 35.014193-73.992258 0-141.378065-13.873548-187.623226-35.014193-47.566452-21.140645-68.046452-48.227097-66.725161-66.725162h-50.869677C203.47871 336.929032 341.553548 385.156129 500.108387 387.79871c158.554839-2.642581 296.629677-50.869677 305.218065-152.609033h-50.869678z" p-id="13020" fill="#ffffff" /><path d="M245.76 252.366452c-1.32129-18.498065 19.819355-45.584516 66.725161-66.725162 46.245161-21.140645 112.970323-35.014194 187.623226-35.014193 73.992258 0 141.378065 13.873548 187.623226 35.014193 47.566452 21.140645 68.046452 48.227097 66.725161 66.725162h50.869678c-8.588387-101.739355-146.663226-149.966452-305.218065-152.609033-158.554839 2.642581-296.629677 50.869677-305.218064 152.609033h50.869677z" p-id="13021" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},c01c:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},c1b5:function(e,t,a){},c1d1:function(e,t,a){},c1f7:function(e,t,a){"use strict";var i,s,r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?a("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),a("sidebar",{staticClass:"sidebar-container"}),a("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[a("div",{class:{"fixed-header":e.fixedHeader}},[a("navbar"),a("tags-view")],1),a("app-main")],1)],1)},l=[],n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"navbar"},[a("div",{staticClass:"left-menu"},[a("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}})],1),a("div",{staticClass:"right-menu"},[a("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[a("div",{staticClass:"avatar-wrapper"},[a("span",{staticStyle:{"font-size":"12px"}},[e._v("欢迎您,"+e._s(e.employename))]),a("i",{staticClass:"el-icon-caret-bottom"})]),a("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("router-link",{attrs:{to:"/"}},[a("el-dropdown-item",[e._v(" 主页 ")])],1),a("el-dropdown-item",{attrs:{divided:""}},[a("span",{staticStyle:{display:"block"},on:{click:e.logout}},[e._v("注销")])]),a("router-link",{attrs:{to:"/changpwd/Changpwd"}},[a("el-dropdown-item",[e._v(" 修改密码 ")])],1)],1)],1)],1)])},o=[],c=(a("96cf"),a("1da1")),d=a("be94"),m=a("2f62"),p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[a("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[a("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},u=[],h={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},g=h,f=(a("1009"),a("2877")),b=Object(f["a"])(g,p,u,!1,null,"7a082f33",null),v=b.exports,w={components:{Hamburger:v},data:function(){return{sumAmount:"",meslist:""}},computed:Object(d["a"])({},Object(m["b"])(["sidebar","avatar","employename","employeid","pastureid","departmentid","sumamount"])),created:function(){},methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$store.dispatch("tagsView/delAllViews").then((function(t){t.visitedViews;e.$router.push("/login}")}));case 3:case"end":return t.stop()}}),t)})))()}}},y=w,L=(a("12f1"),a("b8a0"),Object(f["a"])(y,n,o,!1,null,"6bd26a64",null)),x=L.exports,S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"has-logo":e.showLogo}},[e.showLogo?a("logo",{attrs:{collapse:e.isCollapse}}):e._e(),a("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[a("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,(function(e){return a("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},k=[],_=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[i("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?i("router-link",{key:"collapse",staticClass:"sidebar-logo-link",staticStyle:{background:"#fff"},attrs:{to:"/"}},[i("img",{staticClass:"sidebar-logo",attrs:{src:a("b189")}})]):i("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[i("img",{attrs:{src:a("6c5b")}})])],1)],1)},P=[],C={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{}}},T=C,D=(a("648f"),Object(f["a"])(T,_,P,!1,null,"69c0f62a",null)),$=D.exports,N=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.item.hidden?e._e():a("div",{staticClass:"menu-wrapper",staticStyle:{"padding-left":"0px!important"}},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?a("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[a("template",{slot:"title"},[e.item.meta?a("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return["Changpwd"!=t.path&&"ChartPanel"!=t.path&&"Addboard"!=t.path?a("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}}):e._e()]}))],2):[e.onlyOneChild.meta?a("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[a("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},staticStyle:{"padding-left":"0px!important"},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[a("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},I=[],O=(a("4de4"),a("b0c0"),a("df7c")),j=a.n(O),F=a("61f7"),E={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var a=t.props,i=a.icon,s=a.title,r=[];return i&&r.push(e("svg-icon",{attrs:{"icon-class":i}})),s&&r.push(e("span",{slot:"title"},[s])),r}},q=E,R=Object(f["a"])(q,i,s,!1,null,null,null),M=R.exports,B=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("component",e._b({},"component",e.linkProps(e.to),!1),[e._t("default")],2)},z=[],V={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return Object(F["a"])(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},A=V,U=Object(f["a"])(A,B,z,!1,null,null,null),H=U.exports,W={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var a=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&a(t)}}}}},K={name:"SidebarItem",components:{Item:M,AppLink:H},mixins:[W],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,i=t.filter((function(t){return!t.hidden&&("Changpwd"!==t.name?(e.onlyOneChild=t,!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(e){return Object(F["a"])(e)?e:Object(F["a"])(this.basePath)?this.basePath:j.a.resolve(this.basePath,e)}}},G=K,J=(a("b9b2"),Object(f["a"])(G,N,I,!1,null,null,null)),Y=J.exports,Q=a("cf1e"),X=a.n(Q),Z={components:{SidebarItem:Y,Logo:$},computed:Object(d["a"])(Object(d["a"])({},Object(m["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,a=e.path;return t.activeMenu?t.activeMenu:a},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return X.a},isCollapse:function(){return!this.sidebar.opened}})},ee=Z,te=Object(f["a"])(ee,S,k,!1,null,null,null),ae=te.exports,ie=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"app-main"},[a("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[a("keep-alive",{attrs:{include:e.cachedViews}},[a("router-view",{key:e.key})],1)],1)],1)},se=[],re={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},le=re,ne=(a("0ea2"),a("028b"),Object(f["a"])(le,ie,se,!1,null,"c044908e",null)),oe=ne.exports,ce=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[a("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper"},e._l(e.visitedViews,(function(t){return a("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath,id:t.id},tag:"span"},nativeOn:{mouseup:function(a){return"button"in a&&1!==a.button?null:e.closeSelectedTag(t)},contextmenu:function(a){return a.preventDefault(),e.openMenu(t,a)}}},[e._v(" "+e._s(t.title)+" "),t.meta.affix?e._e():a("span",{staticClass:"el-icon-close",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),a("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[e.selectedTag.meta&&e.selectedTag.meta.affix?e._e():a("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("关闭")]),a("li",{on:{click:e.closeOthersTags}},[e._v("关闭其他")]),a("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("关闭所有")])])],1)},de=[],me=(a("a4d3"),a("e01a"),a("d28b"),a("99af"),a("4160"),a("fb6a"),a("45fc"),a("d3b7"),a("ac1f"),a("3ca3"),a("5319"),a("159b"),a("ddb0"),a("2909")),pe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)},ue=[],he=(a("c740"),4),ge={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,a=this.scrollWrapper;a.scrollLeft=a.scrollLeft+t/4},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,a=t.offsetWidth,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===e)i.scrollLeft=0;else if(l===e)i.scrollLeft=i.scrollWidth-a;else{var n=s.findIndex((function(t){return t===e})),o=s[n-1],c=s[n+1],d=c.$el.offsetLeft+c.$el.offsetWidth+he,m=o.$el.offsetLeft-he;d>i.scrollLeft+a?i.scrollLeft=d-a:m<i.scrollLeft&&(i.scrollLeft=m)}}}},fe=ge,be=(a("d975"),Object(f["a"])(fe,pe,ue,!1,null,"31255e61",null)),ve=be.exports,we={components:{ScrollPane:ve},data:function(){return{visible:!1,top:0,left:0,selectedTag:{},affixTags:[]}},computed:{visitedViews:function(){return this.$store.state.tagsView.visitedViews},routes:function(){return this.$store.state.permission.routes}},watch:{$route:function(){this.addTags(),this.moveToCurrentTag()},visible:function(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},mounted:function(){this.initTags(),this.addTags()},methods:{isActive:function(e){return e.path===this.$route.path},filterAffixTags:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var s=j.a.resolve(a,e.path);i.push({fullPath:s,path:s,name:e.name,id:e.id,meta:Object(d["a"])({},e.meta)})}if(e.children){var r=t.filterAffixTags(e.children,e.path);r.length>=1&&(i=[].concat(Object(me["a"])(i),Object(me["a"])(r)))}})),i},initTags:function(){var e=this.affixTags=this.filterAffixTags(this.routes),t=!0,a=!1,i=void 0;try{for(var s,r=e[Symbol.iterator]();!(t=(s=r.next()).done);t=!0){var l=s.value;l.name&&this.$store.dispatch("tagsView/addVisitedView",l)}}catch(n){a=!0,i=n}finally{try{t||null==r.return||r.return()}finally{if(a)throw i}}},addTags:function(){var e=this.$route.name;return e&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var a=!0,i=!1,s=void 0;try{for(var r,l=t[Symbol.iterator]();!(a=(r=l.next()).done);a=!0){var n=r.value;if(n.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(n),n.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(o){i=!0,s=o}finally{try{a||null==l.return||l.return()}finally{if(i)throw s}}}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(a){var i=a.visitedViews;t.isActive(e)&&t.toLastView(i,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(a){var i=a.visitedViews;t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(i,e)}))},toLastView:function(e,t){var a=e.slice(-1)[0];a?this.$router.push(a):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var a=105,i=this.$el.getBoundingClientRect().left,s=this.$el.offsetWidth,r=s-a,l=t.clientX-i+15;this.left=l>r?r:l,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1}}},ye=we,Le=(a("07b1"),a("cfaa"),Object(f["a"])(ye,ce,de,!1,null,"8ec8dda0",null)),xe=Le.exports,Se=a("4360"),ke=document,_e=ke.body,Pe=992,Ce={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Se["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(Se["a"].dispatch("app/toggleDevice","mobile"),Se["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=_e.getBoundingClientRect();return e.width-1<Pe},$_resizeHandler:function(){if(!document.hidden){var e=this.$_isMobile();Se["a"].dispatch("app/toggleDevice",e?"mobile":"desktop"),e&&Se["a"].dispatch("app/closeSideBar",{withoutAnimation:!0})}}}},Te={name:"Layout",components:{Navbar:x,Sidebar:ae,AppMain:oe,TagsView:xe},mixins:[Ce],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})}}},De=Te,$e=(a("0c62"),Object(f["a"])(De,r,l,!1,null,"b1c0c66a",null));t["a"]=$e.exports},c366:function(e,t,a){"use strict";var i=a("7d8a"),s=a.n(i);s.a},c5f5:function(e,t,a){"use strict";var i=a("9a85"),s=a.n(i);s.a},c638:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i=a("1c1e");function s(e){return Object(i["a"])({url:"/chart/delete",method:"POST",data:e})}},c653:function(e,t,a){var i={"./app.js":"d9cd","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function s(e){var t=r(e);return a(t)}function r(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=r,e.exports=s,s.id="c653"},c684:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},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":e.pickerOptions},model:{value:e.tab.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab.table.getdataListParm.parammaps.inputDatetime"}}),a("el-input",{staticClass:"filter-item",staticStyle:{float:"left",width:"245px","margin-bottom":"10px"},attrs:{placeholder:"饲料名称"},model:{value:e.tab.table.getdataListParm.parammaps.feedname,callback:function(t){e.$set(e.tab.table.getdataListParm.parammaps,"feedname",t)},expression:"tab.table.getdataListParm.parammaps.feedname"}}),a("el-button",{staticClass:"successBorder",staticStyle:{float:"left","margin-left":"10px","margin-bottom":"10px"},on:{click:function(t){return e.handleSearch("first")}}},[e._v("查询")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px","margin-bottom":"10px"},on:{click:e.handleExport}},[e._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab.table.listLoading,expression:"tab.table.listLoading"}],key:e.tab.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"期初","min-width":"130px",align:"center"}},[a("el-table-column",{attrs:{prop:"startsum",align:"center",label:"期初库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{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:{prop:"laidsum",align:"center",label:"入库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"usesumXT",align:"center",label:"系统出库重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"usesumRG",align:"center",label:"人工用料重量(kg)","min-width":"120"}}),a("el-table-column",{attrs:{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:{prop:"stopsum",align:"center",label:"期末库存(kg)","min-width":"120"}}),a("el-table-column",{attrs:{prop:"stopprice",align:"center",label:"期末金额(元)","min-width":"120"}})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tab.table.total>=0,expression:"tab.table.total>=0"}],attrs:{total:e.tab.table.total,page:e.tab.table.getdataListParm.offset,limit:e.tab.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tab.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tab.table.getdataListParm,"pagecount",t)},pagination:e.getTabList}})],1)]),a("el-tab-pane",{attrs:{label:"用料分析",name:"second"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{clearable:!1,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},model:{value:e.tab2.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab2.table.getdataListParm.parammaps.inputDatetime"}}),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:e.changeRadio2},model:{value:e.tab2.radio,callback:function(t){e.$set(e.tab2,"radio",t)},expression:"tab2.radio"}},[e._v("牲畜类别")]),a("el-radio",{attrs:{label:"2"},on:{change:e.changeRadio2},model:{value:e.tab2.radio,callback:function(t){e.$set(e.tab2,"radio",t)},expression:"tab2.radio"}},[e._v("栏舍名称")]),a("el-radio",{attrs:{label:"3"},on:{change:e.changeRadio2},model:{value:e.tab2.radio,callback:function(t){e.$set(e.tab2,"radio",t)},expression:"tab2.radio"}},[e._v("日期")]),a("el-radio",{attrs:{label:"4"},on:{change:e.changeRadio2},model:{value:e.tab2.radio,callback:function(t){e.$set(e.tab2,"radio",t)},expression:"tab2.radio"}},[e._v("TMR设备编号")]),a("el-radio",{attrs:{label:"5"},on:{change:e.changeRadio2},model:{value:e.tab2.radio,callback:function(t){e.$set(e.tab2,"radio",t)},expression:"tab2.radio"}},[e._v("班次")]),a("el-radio",{attrs:{label:"6"},on:{change:e.changeRadio2},model:{value:e.tab2.radio,callback:function(t){e.$set(e.tab2,"radio",t)},expression:"tab2.radio"}},[e._v("车次")]),e.tab2.isRadio1?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"牲畜类别"},model:{value:e.tab2.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"fname",t)},expression:"tab2.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab2.isRadio2?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"栏舍名称"},model:{value:e.tab2.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"fname",t)},expression:"tab2.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab2.isRadio3?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"日期"},model:{value:e.tab2.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"fname",t)},expression:"tab2.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab2.isRadio4?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"TMR设备编号"},model:{value:e.tab2.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"fname",t)},expression:"tab2.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab2.isRadio5?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"班次"},model:{value:e.tab2.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"fname",t)},expression:"tab2.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab2.isRadio6?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"车次"},model:{value:e.tab2.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab2.table.getdataListParm.parammaps,"fname",t)},expression:"tab2.table.getdataListParm.parammaps.fname"}}):e._e(),a("el-button",{staticClass:"successBorder",on:{click:function(t){return e.handleSearch("second")}}},[e._v("查询")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab2.table.listLoading,expression:"tab2.table.listLoading"}],key:e.tab2.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab2.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},e._l(e.tab2.table.tableConfig,(function(t,i){return a("el-table-column",{attrs:{align:"center",label:t.label,prop:t.prop}},e._l(t.children,(function(i){return t.children||t.children.length>0?a("el-table-column",{attrs:{align:"center",label:i.label,prop:i.prop}},e._l(i.children,(function(t){return i.children||i.children.length>0?a("el-table-column",{attrs:{label:t.label,prop:t.prop}}):e._e()})),1):e._e()})),1)})),1)],1),a("el-tab-pane",{attrs:{label:"价格分析",name:"third"}},[a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},model:{value:e.tab3.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"tab3.table.getdataListParm.parammaps.inputDatetime"}}),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("统计类型:")]),a("el-radio",{attrs:{label:"1"},on:{change:e.changeRadio3},model:{value:e.tab3.radio,callback:function(t){e.$set(e.tab3,"radio",t)},expression:"tab3.radio"}},[e._v("牲畜类别")]),a("el-radio",{attrs:{label:"2"},on:{change:e.changeRadio3},model:{value:e.tab3.radio,callback:function(t){e.$set(e.tab3,"radio",t)},expression:"tab3.radio"}},[e._v("栏舍名称")]),a("el-radio",{attrs:{label:"3"},on:{change:e.changeRadio3},model:{value:e.tab3.radio,callback:function(t){e.$set(e.tab3,"radio",t)},expression:"tab3.radio"}},[e._v("日期")]),a("el-radio",{attrs:{label:"4"},on:{change:e.changeRadio3},model:{value:e.tab3.radio,callback:function(t){e.$set(e.tab3,"radio",t)},expression:"tab3.radio"}},[e._v("TMR设备编号")]),e.tab3.isRadio1?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"牲畜类别"},model:{value:e.tab3.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"fname",t)},expression:"tab3.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab3.isRadio2?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"栏舍名称"},model:{value:e.tab3.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"fname",t)},expression:"tab3.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab3.isRadio3?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"日期"},model:{value:e.tab3.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"fname",t)},expression:"tab3.table.getdataListParm.parammaps.fname"}}):e._e(),e.tab3.isRadio4?a("el-input",{staticClass:"filter-item",staticStyle:{width:"245px"},attrs:{placeholder:"TMR设备编号"},model:{value:e.tab3.table.getdataListParm.parammaps.fname,callback:function(t){e.$set(e.tab3.table.getdataListParm.parammaps,"fname",t)},expression:"tab3.table.getdataListParm.parammaps.fname"}}):e._e(),a("el-button",{staticClass:"successBorder",on:{click:function(t){return e.handleSearch("third")}}},[e._v("查询")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tab3.table.listLoading,expression:"tab3.table.listLoading"}],key:e.tab3.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tab3.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},e._l(e.tab3.table.tableConfig,(function(t,i){return a("el-table-column",{attrs:{align:"center",label:t.label,prop:t.prop}},e._l(t.children,(function(i){return t.children||t.children.length>0?a("el-table-column",{attrs:{align:"center",label:i.label,prop:i.prop}},e._l(i.children,(function(t){return i.children||i.children.length>0?a("el-table-column",{attrs:{label:t.label,prop:t.prop}}):e._e()})),1):e._e()})),1)})),1)],1)],1)],1)},s=[],r=(a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d={name:"InventoryManagement",components:{Pagination:c["a"]},data:function(){var e=this;return{pickerMinDate:"",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()}},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:n.a.get("pastureid"),startTime:Object(o["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["e"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],feedname:""}},tableKey:1,list:[],total:0,listLoading:!0}},tab2:{chartDate:[],table:{getdataListParm:{name:"getMaterialAnalysisSC",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),startTime:Object(o["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["e"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:""}},tableKey:1,list:[],tableConfig:[],total:0,listLoading:!0},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:n.a.get("pastureid"),startTime:Object(o["e"])(new Date,"{y}-{m}-{d}"),stopTime:Object(o["e"])(new Date,"{y}-{m}-{d}"),inputDatetime:[new Date,new Date],fname:""}},tableKey:1,list:[],tableConfig:[],total:0,listLoading:!0},radio:"1",isRadio1:!0,isRadio2:!1,isRadio3:!1,isRadio4:!1},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getTabList(),this.getTimeFn()},methods:{getTimeFn:function(){var e=this,t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.tab.chartDate[0]=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab.chartDate[1]=Object(o["e"])(t,"{y}-{m}-{d}"),e.tab.table.getdataListParm.parammaps.inputDatetime[0]=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab.table.getdataListParm.parammaps.inputDatetime[1]=Object(o["e"])(t,"{y}-{m}-{d}"),e.tab.table.getdataListParm.parammaps.startTime=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab.table.getdataListParm.parammaps.stopTime=Object(o["e"])(t,"{y}-{m}-{d}"),e.tab2.chartDate[0]=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab2.chartDate[1]=Object(o["e"])(t,"{y}-{m}-{d}"),e.tab2.table.getdataListParm.parammaps.inputDatetime[0]=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab2.table.getdataListParm.parammaps.inputDatetime[1]=Object(o["e"])(t,"{y}-{m}-{d}"),e.tab2.table.getdataListParm.parammaps.startTime=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab2.table.getdataListParm.parammaps.stopTime=Object(o["e"])(t,"{y}-{m}-{d}"),e.tab3.chartDate[0]=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab3.chartDate[1]=Object(o["e"])(t,"{y}-{m}-{d}"),e.tab3.table.getdataListParm.parammaps.inputDatetime[0]=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab3.table.getdataListParm.parammaps.inputDatetime[1]=Object(o["e"])(t,"{y}-{m}-{d}"),e.tab3.table.getdataListParm.parammaps.startTime=Object(o["e"])(a,"{y}-{m}-{d}"),e.tab3.table.getdataListParm.parammaps.stopTime=Object(o["e"])(t,"{y}-{m}-{d}")},handleTabClick:function(){"first"==this.activeName?this.getTabList():"second"==this.activeName?this.getTab2List():"third"==this.activeName&&this.getTab3List()},getTabList:function(){var e=this;this.tab.table.listLoading=!0,Object(r["d"])(this.tab.table.getdataListParm).then((function(t){console.log("库存统计table数据",t.data.list),null!==t.data.list?(e.tab.table.list=t.data.list,e.tab.table.total=t.data.total):e.tab.table.list=[],setTimeout((function(){e.tab.table.listLoading=!1}),100)}))},handleSearch:function(e){"first"==e?(""!==this.tab.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab.table.getdataListParm.parammaps.inputDatetime?(this.tab.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.tab.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.tab.table.getdataListParm.parammaps.inputDatetime="",this.tab.table.getdataListParm.parammaps.startTime="",this.tab.table.getdataListParm.parammaps.stopTime=""),this.getTabList()):"second"==e?(""!==this.tab2.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab2.table.getdataListParm.parammaps.inputDatetime?(this.tab2.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.tab2.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab2.table.getdataListParm.parammaps.stopTime=Object(o["e"])(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"==e&&(""!==this.tab3.table.getdataListParm.parammaps.inputDatetime&&null!==this.tab3.table.getdataListParm.parammaps.inputDatetime?(this.tab3.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.tab3.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.tab3.table.getdataListParm.parammaps.stopTime=Object(o["e"])(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(){},getTab2List:function(){var e=this;this.tab2.table.listLoading=!0,Object(r["f"])(this.tab2.table.getdataListParm).then((function(t){console.log("库存统计-用料分析",t.data.list),null!==t.data.list?(e.tab2.table.list=t.data.list.data1,e.tab2.table.tableConfig=t.data.list.data2,e.tab2.table.total=t.data.total):e.tab2.table.list=[],setTimeout((function(){e.tab2.table.listLoading=!1}),100)}))},changeRadio2:function(){console.log(this.tab2.radio),"1"==this.tab2.radio?(this.tab2.isRadio1=!0,this.tab2.isRadio2=!1,this.tab2.isRadio3=!1,this.tab2.isRadio4=!1,this.tab2.isRadio5=!1,this.tab2.isRadio6=!1,this.tab2.table.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 e=this;this.tab3.table.listLoading=!0,Object(r["f"])(this.tab3.table.getdataListParm).then((function(t){console.log("库存统计-价格分析",t.data.list),null!==t.data.list?(e.tab3.table.list=t.data.list.data1,e.tab3.table.tableConfig=t.data.list.data2,e.tab3.table.total=t.data.total):e.tab3.table.list=[],setTimeout((function(){e.tab3.table.listLoading=!1}),100)}))},changeRadio3:function(){console.log(this.tab3.radio),"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())}}},m=d,p=(a("98af"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"862f163c",null);t["default"]=u.exports},c6a2:function(e,t,a){"use strict";var i=a("6ad2"),s=a.n(i);s.a},c81b:function(e,t,a){},c8d2:function(e,t,a){},c8e8:function(e,t,a){},c989:function(e,t,a){"use strict";var i=a("3392"),s=a.n(i);s.a},c9ab:function(e,t,a){},c9ed:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},ca57:function(e,t,a){"use strict";var i=a("ee81"),s=a.n(i);s.a},ca7a:function(e,t,a){"use strict";var i=a("f09e"),s=a.n(i);s.a},caed:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},caf8:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-粪便筛",use:"icon-粪便筛-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-粪便筛"><defs><style type="text/css"></style></defs><path d="M675.328 117.717333a21.333333 21.333333 0 0 1-16.341333 39.402667A382.762667 382.762667 0 0 0 512 128C299.925333 128 128 299.925333 128 512s171.925333 384 384 384 384-171.925333 384-384c0-51.114667-9.984-100.8-29.12-146.986667a21.333333 21.333333 0 0 1 39.402667-16.341333A425.429333 425.429333 0 0 1 938.666667 512c0 235.648-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512 276.352 85.333333 512 85.333333c56.746667 0 112 11.093333 163.328 32.384zM682.666667 384H362.666667l106.666666 142.229333v220.309334a21.333333 21.333333 0 1 1-42.666666 0.064v-206.165334L328.533333 409.6c-24.682667-32.896-7.104-68.266667 34.026667-68.266667h320.213333c41.130667 0 58.794667 35.264 34.026667 68.266667L618.666667 540.437333V640a21.333333 21.333333 0 1 1-42.666667-0.064v-113.706667L682.666667 384z" fill="#ffffff" p-id="25308" /></symbol>'});l.a.add(n);t["default"]=n},cafe:function(e,t,a){},cb9d:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._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);t["default"]=o.exports},cba3:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-首页",use:"icon-首页-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-首页"><defs><style type="text/css"></style></defs><path d="M960.856566 463.515152L586.294949 88.824242c-20.428283-20.428283-47.450505-31.547475-76.282828-31.547474s-55.854545 11.248485-76.282828 31.547474L63.046465 459.636364c-9.050505 9.050505-9.050505 23.789899 0 32.969697 9.050505 9.050505 23.789899 9.050505 32.969697 0l38.141414-38.141415v369.519192c0 38.141414 14.610101 73.955556 41.115151 100.848485 26.634343 27.022222 62.319192 42.020202 100.460606 42.020202h469.333334c79.127273 0 143.515152-64.129293 143.515151-142.868687V456.921212l39.434344 39.434344c4.525253 4.525253 10.472727 6.852525 16.420202 6.852525s11.894949-2.327273 16.420202-6.852525c9.179798-9.050505 9.179798-23.789899 0-32.840404zM621.20404 920.177778h-218.50505v-250.828283c0-9.309091 7.49899-16.808081 16.808081-16.808081h184.888889c9.309091 0 16.808081 7.49899 16.80808 16.808081v250.828283z m220.832324-96.323233c0 53.139394-43.442424 96.323232-96.969697 96.323233h-77.317172v-250.828283c0-34.909091-28.444444-63.353535-63.353535-63.353535h-184.888889c-34.909091 0-63.353535 28.444444-63.353536 63.353535v250.828283h-80.549495c-52.363636 0-95.030303-43.183838-95.030303-96.323233v-415.030303H179.668687l287.030303-287.030303c11.636364-11.636364 27.022222-17.971717 43.313131-17.971717s31.806061 6.335354 43.313132 17.971717l288.581818 288.581819v413.478787z" fill="#ffffff" p-id="5216" /></symbol>'});l.a.add(n);t["default"]=n},cbee:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-配方模板",use:"icon-配方模板-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-配方模板"><defs><style type="text/css"></style></defs><path d="M800 368V208c0-52.8-43.2-96-96-96h-128V80H320v32h-128c-52.8 0-96 43.2-96 96v640c0 52.8 43.2 96 96 96h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H192c-17.6 0-32-14.4-32-32V208c0-17.6 14.4-32 32-32h128v32h256v-32h128c17.6 0 32 14.4 32 32v160c0 17.6 14.4 32 32 32s32-14.4 32-32z" p-id="21825" fill="#ffffff" /><path d="M256 352h384c17.6 0 32-14.4 32-32s-14.4-32-32-32H256c-17.6 0-32 14.4-32 32s14.4 32 32 32zM480 432H256c-17.6 0-32 14.4-32 32s14.4 32 32 32h224c17.6 0 32-14.4 32-32s-14.4-32-32-32zM480 576H256c-17.6 0-32 14.4-32 32s14.4 32 32 32h224c17.6 0 32-14.4 32-32s-14.4-32-32-32zM480 720H256c-17.6 0-32 14.4-32 32s14.4 32 32 32h224c17.6 0 32-14.4 32-32s-14.4-32-32-32zM928 640h-128c-17.6 0-32 14.4-32 32v240c0 17.6 14.4 32 32 32h128c17.6 0 32-14.4 32-32V672c0-17.6-14.4-32-32-32z m-32 240h-64V704h64v176zM928 432h-128c-17.6 0-32 14.4-32 32v112c0 17.6 14.4 32 32 32h128c17.6 0 32-14.4 32-32v-112c0-17.6-14.4-32-32-32z m-32 112h-64v-48h64v48zM704 432h-128c-17.6 0-32 14.4-32 32v240c0 17.6 14.4 32 32 32h128c17.6 0 32-14.4 32-32V464c0-17.6-14.4-32-32-32z m-32 240h-64V496h64v176zM704 768h-128c-17.6 0-32 14.4-32 32v112c0 17.6 14.4 32 32 32h128c17.6 0 32-14.4 32-32v-112c0-17.6-14.4-32-32-32z m-32 112h-64v-48h64v48z" p-id="21826" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},cc1c:function(e,t,a){"use strict";var i=a("962c"),s=a.n(i);s.a},ccea:function(e,t,a){"use strict";var i=a("54e7"),s=a.n(i);s.a},cdee:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;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(t){return e.$router.push({name:"BoardEchartManagement",params:{tab:"second"}})}}},[a("i",{staticClass:"el-icon-back"}),a("span",[e._v("返回")])]),"create"==this.$route.params.id?a("span",[e._v("新增图表")]):e._e(),"view"==this.$route.params.isEdit?a("span",[e._v("查看图表")]):e._e(),"edit"==this.$route.params.isEdit&&"create"!=this.$route.params.id?a("span",[e._v("编辑图表")]):e._e()]),a("span",[e._e(),"edit"==this.$route.params.isEdit?a("el-button",{staticStyle:{float:"right",margin:"0 10px 0 0"},attrs:{size:"mini",type:"primary"},on:{click:e.handleLinkDB}},[e._v("添加到仪表盘")]):e._e(),"edit"==this.$route.params.isEdit?a("el-button",{staticStyle:{float:"right",margin:"0 10px 0 0"},attrs:{size:"mini",type:"primary",icon:"el-icon-save"},on:{click:e.handleSave}},[e._v("保存")]):e._e(),e._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":e.loading,"data-src":e.dataSrc,isEdit:this.$route.params.isEdit||this.$store.state.user.dashchartidisedit},on:{change:e.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:e.handleDimensionChange},model:{value:e.sharedState.dimensions,callback:function(t){e.$set(e.sharedState,"dimensions",t)},expression:"sharedState.dimensions"}},e._l(e.sharedState.dimensions,(function(t){return a("el-tag",{key:t.Column,staticClass:"draggable-item",attrs:{size:"small",closable:""},on:{close:function(a){return e.handleCloseDimensionTag(t)}}},[e._v(" "+e._s(t.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:e.handleColChange},model:{value:e.sharedState.caculCols,callback:function(t){e.$set(e.sharedState,"caculCols",t)},expression:"sharedState.caculCols"}},e._l(e.sharedState.caculCols,(function(t){return a("el-tag",{key:t.Column,staticClass:"selected-field",attrs:{size:"small",closable:""},on:{close:function(a){return e.handleCloseColTag(t)}}},[a("el-select",{staticClass:"draggable-item",staticStyle:{background:"rgba(0,0,0,0)"},attrs:{size:"mini",closable:""},model:{value:t.calculFunc,callback:function(a){e.$set(t,"calculFunc",a)},expression:"col.calculFunc"}},e._l(t.availableFunc,(function(e,i){return a("el-option",{key:i,attrs:{label:t.Comment+"("+e.name+")",value:e.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:e.handleColChange2},model:{value:e.sharedState.caculCols2,callback:function(t){e.$set(e.sharedState,"caculCols2",t)},expression:"sharedState.caculCols2"}},e._l(e.sharedState.caculCols2,(function(t){return a("el-tag",{key:t.Column,staticClass:"selected-field",attrs:{size:"small",closable:""},on:{close:function(a){return e.handleCloseColTag2(t)}}},[a("el-select",{staticClass:"draggable-item",staticStyle:{background:"rgba(0,0,0,0)"},attrs:{size:"mini",closable:""},model:{value:t.calculFunc,callback:function(a){e.$set(t,"calculFunc",a)},expression:"col.calculFunc"}},e._l(t.availableFunc,(function(e,i){return a("el-option",{key:i,attrs:{label:t.Comment+"("+e.name+")",value:e.func}})})),1)],1)})),1)],1),a("orderPanel",{model:{value:e.orderByStrs,callback:function(t){e.orderByStrs=t},expression:"orderByStrs"}}),a("filterPanel",{attrs:{filters:e.currentFilters,disabled:!e.allSelected||0===e.allSelected.length},on:{"update:filters":function(t){e.currentFilters=t},change:e.handleAddFilter}}),a("el-form-item",[a("div",{staticClass:"limit-input"},[a("span",{directives:[{name:"show",rawName:"v-show",value:!e.editLimit,expression:"!editLimit"}]},[e._v(" "+e._s(e.$t("chart.limit",[e.limit]))+" "),a("el-button",{attrs:{type:"text"},on:{click:function(t){e.editLimit=!0}}},[e._v(e._s(e.$t("common.edit")))])],1),a("span",{directives:[{name:"show",rawName:"v-show",value:e.editLimit,expression:"editLimit"}]},[a("el-input-number",{staticStyle:{width:"100px"},attrs:{disabled:e.loading,size:"mini",max:6e4},on:{blur:function(t){e.editLimit=!1}},model:{value:e.limit,callback:function(t){e.limit=t},expression:"limit"}}),a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.editLimit=!1}}},[e._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:e.$t("chart.namePlaceholder")},model:{value:e.chartName,callback:function(t){e.chartName=t},expression:"chartName"}})],1),a("el-form-item",{attrs:{label:"图表描述:"}},[a("el-input",{attrs:{size:"mini",placeholder:e.$t("chart.descPlaceholder")},model:{value:e.chartDesc,callback:function(t){e.chartDesc=t},expression:"chartDesc"}})],1)],1)],1),e.sonRefresh?a("visualize-panel",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{id:"vizPanel",data:e.result,"chart-type":e.chartType,schema:e.allSelected},on:{"update:chartType":function(t){e.chartType=t},"update:chart-type":function(t){e.chartType=t}}}):e._e()],1)],1),a("el-dialog",{attrs:{title:e.$t("chart.myChart"),visible:e.showMyCharts},on:{"update:visible":function(t){e.showMyCharts=t}}},[a("el-table",{attrs:{data:e.myChartList}},[a("el-table-column",{attrs:{label:e.$t("chart.chartName"),width:"200",prop:"chart_name"}}),a("el-table-column",{attrs:{label:e.$t("chart.chartDesc"),prop:"desc"}}),a("el-table-column",{attrs:{label:e.$t("common.operation"),width:"200",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(a){return e.switchChart(t.row)}}},[e._v(" "+e._s(e.$t("common.edit"))+" ")]),a("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(a){return e.deleteChart(t.row)}}},[e._v(" "+e._s(e.$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(t){e.showMyCharts=!1}}},[e._v(e._s(e.$t("common.close")))])],1)],1),a("el-dialog",{staticStyle:{"text-align":"center"},attrs:{title:"仪表盘列表",visible:e.showDashboards,width:"390px"},on:{"update:visible":function(t){e.showDashboards=t}}},[a("p",{staticStyle:{"margin-right":"110px"}},[e._v("请选择仪表盘")]),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-select",{attrs:{size:"small"},model:{value:e.selectedDb,callback:function(t){e.selectedDb=t},expression:"selectedDb"}},e._l(e.dashboardList,(function(e,t){return a("el-option",{key:e.objectId,attrs:{label:e.name,value:e.dashboard_id}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.showDashboards=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.linkDb}},[e._v("添加到仪表盘")])],1)]),e._e()],1)},s=[],r=(a("99af"),a("7db0"),a("d81d"),a("13d5"),a("d3b7"),a("ac1f"),a("5319"),a("1276"),a("310e")),l=a.n(r),n=a("c24c"),o=a.n(n),c=(a("01d7"),a("2934")),d=a("ef81"),m=a("88fe"),p=a("4ab3"),u=a("e4fd"),h=a("a78e"),g=a.n(h),f=a("c638"),b=a("5fd4"),v=a("f77d"),w=a("ed08"),y=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"}}],S=x,k=a("3537"),_=new o.a,P={inject:["reload"],name:"ChartPanel",components:{visualizePanel:p["default"],dataPanel:u["default"],draggable:l.a,filterPanel:d["default"],orderPanel:m["default"]},data:function(){return{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(y["b"])({dataSrc:this.dataSrc.table,selectedCalcul:this.sharedState.caculCols,selectedCalcul2:this.sharedState.caculCols2,selectedDimension:this.sharedState.dimensions,orderByStrs:this.orderByStrs,filterStr:this.filterStr,limit:this.limit})}},watch:{sqlSentence:function(e){e?this.fetchData(e):this.result=[]},"$route.params.id":{immediate:!0,handler:function(){var e=this;if(console.log("this.$route.params.id=====================",this.$route.params.id),"create"!==this.$route.params.id)if(console.log("我是编辑图表哦~~~"),console.log("this.$route.params.id",this.$route.params.id),console.log("localStorage==========",localStorage.getItem("ChartPanelIsEditId")),console.log("this.$store.state.user.dashchartid==========",this.$store.state.user.dashchartid),this.$route.params.id){console.log("我是编辑图表第一次跳转~~~");var t={name:"getChartDetail",parammaps:{pastureid:g.a.get("pastureid"),id:this.$route.params.id}};Object(c["d"])(t).then((function(t){console.log("图表数据",t.data.list);var a=t.data.list[0];e.chartName=a.chart_name,e.chartDesc=a.desc;var i=JSON.parse(a.content)||{};e.dataSrc.table=i.dataSrc,e.dataSrc.source_id=a.source_id,e.chartType=i.chartType,e.limit=i.limit||200,e.currentFilters=i.filters,e.orderByStrs=i.orderByStrs,k["a"].setCaculColsAction(i.selectedCalcul),k["a"].setCaculColsAction2(i.selectedCalcul2),k["a"].setDimensionsAction(i.selectedDimension),e.$refs.dataPanel.initWithDataSrc(e.dataSrc)}))}else{console.log("我是编辑图表切换跳转~~~");t={name:"getChartDetail",parammaps:{pastureid:g.a.get("pastureid"),id:localStorage.getItem("ChartPanelIsEditId")}};Object(c["d"])(t).then((function(t){console.log("图表数据",t.data.list);var a=t.data.list[0];e.chartName=a.chart_name,e.chartDesc=a.desc;var i=JSON.parse(a.content)||{};e.dataSrc.table=i.dataSrc,e.dataSrc.source_id=a.source_id,e.chartType=i.chartType,e.limit=i.limit||200,e.currentFilters=i.filters,e.orderByStrs=i.orderByStrs,k["a"].setCaculColsAction(i.selectedCalcul),k["a"].setCaculColsAction2(i.selectedCalcul2),k["a"].setDimensionsAction(i.selectedDimension),e.$refs.dataPanel.initWithDataSrc(e.dataSrc)}))}else console.log("我是新增图标哦~~~"),this.chartName=void 0,this.chartDesc=void 0,k["a"].setCaculColsAction([]),k["a"].setCaculColsAction2([]),k["a"].setDimensionsAction([]),this.$nextTick((function(){e.$refs.dataPanel.initWithDataSrc()}))}}},created:function(){},methods:{fetchData:function(e){var t=this;this.loading&&this.execInstance&&this.execInstance.cancel(),this.loading=!0,this.execInstance=Object(v["a"])(),this.sharedState.caculCols2.map((function(e){return e.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:g.a.get("pastureid")};Object(c["a"])(i).then((function(e){console.log("ExeSql发的数据======",i),console.log("图的数据",e.data.list),null!==e.data?(console.log("维度+数值获得的数据",Array.isArray(e.data)),Array.isArray(e.data)?(t.loading=!1,t.result=e.data):(t.loading=!1,t.result=[])):(t.loading=!1,t.result=[])}))},handleDataSrcChange:function(e){console.log("dataSrc======================",e),this.dataSrc=e,k["a"].setCaculColsAction([]),k["a"].setCaculColsAction2([]),k["a"].setDimensionsAction([]),this.filterStr=void 0,this.orderByStrs=[]},handleColChange:function(e){e.added&&k["a"].addCaculColAction(e.added.element)},handleColChange2:function(e){e.added&&k["a"].addCaculColAction2(e.added.element)},handleDimensionChange:function(e){var t=this;console.log("this.sharedState.dimensions",this.sharedState.dimensions),e.added&&k["a"].addDimensionAction(e.added.element),e.moved&&(this.sonRefresh=!1,this.$nextTick((function(){t.sonRefresh=!0})))},handleCloseColTag:function(e){k["a"].deleteCaculColAction(e)},handleCloseColTag2:function(e){k["a"].deleteCaculColAction2(e)},handleCloseDimensionTag:function(e){k["a"].deleteDimensionAction(e)},handleAddFilter:function(e){this.filterStr=e},handleSave:function(){var e=this;if(this.chartName){var t="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:t,cname:this.chartName,source_id:this.dataSrc.source_id,desc:this.chartDesc,display:this.chartDesc,pastureid:g.a.get("pastureid"),empid:g.a.get("employeid"),emp:g.a.get("employename"),content:a}},s={name:"updateChartV2",parammaps:{id:t,cname:this.chartName,source_id:this.dataSrc.source_id,desc:this.chartDesc,display:this.chartDesc,pastureid:g.a.get("pastureid"),empid:g.a.get("employeid"),emp:g.a.get("employename"),content:a}};this.isSaving=!0,t?Object(c["g"])(s).then((function(t){console.log("编辑保存发送参数",i),"ok"==t.msg?e.$message({type:"success",message:e.$t("common.saveSuccess")}):e.$message({type:"error",message:"保存失败,请不要输入已有的图表名称!"})})):Object(c["g"])(i).then((function(t){console.log("新增保存发送参数",i),"ok"==t.msg?(e.$message({type:"success",message:e.$t("common.saveSuccess")}),e.LastInsertId=t.data.LastInsertId):e.$message({type:"error",message:"保存失败,请不要输入已有的图表名称!"})}))}else this.$message({type:"warning",message:this.$t("chart.chartNameWarning")})},handleLinkDB:function(){var e=this;this.showDashboards=!0;var t={name:"getdashboards",parammaps:{pastureid:g.a.get("pastureid"),empid:g.a.get("employeid"),emp:g.a.get("employename")}};Object(c["k"])(t).then((function(t){console.log("看板列表数据:",t),e.dashboardList=t.data.list}))},getDbByChart:function(e){var t=this;Object(b["a"])(e).then((function(e){t.linkedDbIds=e.data||[]}))},isDbDisbaled:function(e){return!!this.linkedDbIds.find((function(t){return t===e.objectId}))},linkDb:function(){var e=this;this.showDashboards=!1,console.log(this.$route.params.id),console.log("仪表盘列表ID:",this.selectedDb);var t=localStorage.getItem("ChartPanelIsEditId");t="create"==t?this.LastInsertId:localStorage.getItem("ChartPanelIsEditId");var a={name:"insertdashboard_chart",parammaps:{did:this.selectedDb,cid:t,pastureid:g.a.get("pastureid")}};Object(c["g"])(a).then((function(t){console.log("看板保存发送参数",a),e.$message({type:"success",message:e.$t("common.saveSuccess")})}))},viewAllChart:function(){this.showMyCharts=!0,this.myChartList=[{name:"kook",desc:"",content:'{"layout": [{"id": "035573f4-bf71-4472-814a-f1747b6bd8e0", "x": 0, "y": 7, "w": 5, "h": 6, "i": "035573f4-bf71-4472-814a-f1747b6bd8e0", "moved": false, "yOffSet": 13, "xOffSet": 5, "bottomLine": [[0, 13], [5, 13]], "topLine": [[0, 7], [5, 7]]}, {"id": "02c012be-db57-431b-b9aa-40d1640a2592", "x": 2, "y": 29, "w": 7, "h": 6, "i": "02c012be-db57-431b-b9aa-40d1640a2592", "yOffSet": 35, "xOffSet": 9, "bottomLine": [[2, 35], [9, 35]], "topLine": [[2, 29], [9, 29]], "moved": false}, {"id": "087df61d-b02e-49a5-a954-b2d9124df685", "x": 6, "y": 0, "w": 7, "h": 7, "i": "087df61d-b02e-49a5-a954-b2d9124df685", "moved": false, "yOffSet": 7, "xOffSet": 13, "bottomLine": [[6, 7], [13, 7]], "topLine": [[6, 0], [13, 0]]}, {"id": "045ad6b0-8f7e-47db-92a7-8c4a31b7683d", "x": 5, "y": 16, "w": 10, "h": 6, "i": "045ad6b0-8f7e-47db-92a7-8c4a31b7683d", "moved": false, "yOffSet": 22, "xOffSet": 15, "bottomLine": [[5, 22], [15, 22]], "topLine": [[5, 16], [15, 16]]}, {"id": "182d02ef-ced5-4ded-a648-630c94f4a790", "x": 9, "y": 22, "w": 9, "h": 9, "i": "182d02ef-ced5-4ded-a648-630c94f4a790", "moved": false, "yOffSet": 31, "xOffSet": 18, "bottomLine": [[9, 31], [18, 31]], "topLine": [[9, 22], [18, 22]]}, {"id": "0755ae6e-6869-4e09-8630-62dd3118a2fc", "x": 0, "y": 0, "w": 6, "h": 7, "i": "0755ae6e-6869-4e09-8630-62dd3118a2fc", "moved": false, "yOffSet": 7, "xOffSet": 6, "bottomLine": [[0, 7], [6, 7]], "topLine": [[0, 0], [6, 0]]}, {"id": "3e4408f1-67c2-45c7-8315-136a6eec6980", "x": 5, "y": 22, "w": 4, "h": 7, "i": "3e4408f1-67c2-45c7-8315-136a6eec6980", "moved": false, "yOffSet": 29, "xOffSet": 9, "bottomLine": [[5, 29], [9, 29]], "topLine": [[5, 22], [9, 22]]}, {"id": "00af7fdb-b486-4855-ac7c-85014d283f2c", "x": 5, "y": 7, "w": 5, "h": 9, "i": "00af7fdb-b486-4855-ac7c-85014d283f2c", "moved": false, "yOffSet": 16, "xOffSet": 10, "bottomLine": [[5, 16], [10, 16]], "topLine": [[5, 7], [10, 7]]}, {"id": "3e39e265-684b-4d62-be3c-4613fd8730cd", "x": 14, "y": 7, "w": 8, "h": 9, "i": "3e39e265-684b-4d62-be3c-4613fd8730cd", "moved": false}]}',is_private:!0,status:1,creator:1,created_at:"2020-05-13T06:08:39.438Z",updated_at:"2020-09-14T07:48:58.477Z",dashboard_id:"dd02cfe9-8ee9-48fa-83b3-98b604d87b57"}]},switchChart:function(e){var t=this;this.$confirm(this.$t("chart.beforeLeaveConfirm"),this.$t("common.confirm")).then((function(){t.$router.replace("/chartpanel/".concat(e.chart_id)),t.showMyCharts=!1}))},deleteChart:function(e){var t=this;this.$confirm(this.$t("chart.deleteConfirm",e.chart_name),this.$t("common.confirm")).then((function(){Object(f["a"])({chart_id:e.chart_id}).then((function(){localStorage.getItem("ChartPanelIsEditId")===e.chart_id?(t.$router.push("/chartpanel/create"),t.showMyCharts=!1):t.viewAllChart(),t.$message({type:"success",message:t.$t("common.deleteSuccess")})}))}))},handleHelp:function(e){"guide"===e&&(_.defineSteps(S),_.start())},handleDownload:function(){var e=this;Promise.all([a.e("chunk-4de06b78"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(t){var a=e.allSelected.map((function(e){return e.Column})),i=a,s=e.formatJson(i,e.result);t.export_json_to_excel({header:a,data:s,filename:"DataExport"+Object(w["e"])(Date.now(),"{m}{d}{h}{i}{s}"),autoWidth:!0})}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){var a=e.split(".");return a.length<=1?t[e]:a.reduce((function(e,t){return e[t]?e[t]:"--"}),t)}))}))}}},C=P,T=(a("ed1f"),a("2877")),D=Object(T["a"])(C,i,s,!1,null,"e8c86f96",null);t["default"]=D.exports},ced4:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",{staticClass:"todo",class:{completed:e.todo.done,editing:e.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:e.todo.done},on:{change:function(t){return e.toggleTodo(e.todo)}}}),a("label",{domProps:{textContent:e._s(e.todo.text)},on:{dblclick:function(t){e.editing=!0}}}),a("button",{staticClass:"destroy",on:{click:function(t){return e.deleteTodo(e.todo)}}})]),a("input",{directives:[{name:"show",rawName:"v-show",value:e.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:e.editing,expression:"editing"}],staticClass:"edit",domProps:{value:e.todo.text},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doneEdit(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancelEdit(t)}],blur:e.doneEdit}})])},s=[],r=(a("498a"),{name:"Todo",directives:{focus:function(e,t,a){var i=t.value,s=a.context;i&&s.$nextTick((function(){e.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(e){this.$emit("deleteTodo",e)},editTodo:function(e){var t=e.todo,a=e.value;this.$emit("editTodo",{todo:t,value:a})},toggleTodo:function(e){this.$emit("toggleTodo",e)},doneEdit:function(e){var t=e.target.value.trim(),a=this.todo;t?this.editing&&(this.editTodo({todo:a,value:t}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(e){e.target.value=this.todo.text,this.editing=!1}}}),l=r,n=a("2877"),o=Object(n["a"])(l,i,s,!1,null,null,null);t["default"]=o.exports},cf1e:function(e,t,a){e.exports={menuText:"#333",menuActiveText:"#fff",menuActiveBg:"#009C69",subMenuActiveText:"#f4f4f5",menuBg:"#fff",menuHover:"#fff",subMenuBg:"#ededed",subMenuHover:"#009C69",sideBarWidth:"116px"}},cfaa:function(e,t,a){"use strict";var i=a("e1eb"),s=a.n(i);s.a},d023:function(e,t,a){},d04d:function(e,t,a){"use strict";var i=a("4ec3"),s=a.n(i);s.a},d05e:function(e,t,a){},d0b6:function(e,t,a){},d1f1:function(e,t,a){"use strict";var i=a("95d5"),s=a.n(i);s.a},d22d:function(e,t,a){"use strict";var i=a("2c9c"),s=a.n(i);s.a},d25d:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-准确性分析",use:"icon-准确性分析-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-准确性分析"><defs><style type="text/css"></style></defs><path d="M735.658667 170.666667H288.298667A117.76 117.76 0 0 0 170.666667 288.298667v447.402666a117.76 117.76 0 0 0 117.632 117.632H405.333333a21.333333 21.333333 0 0 0 0-42.666666H288.298667A75.050667 75.050667 0 0 1 213.333333 735.701333V288.298667c0-41.344 33.621333-74.965333 74.965334-74.965334h447.36c41.386667 0 75.008 33.621333 75.008 74.965334v289.493333a21.333333 21.333333 0 1 0 42.666666 0V288.298667A117.76 117.76 0 0 0 735.658667 170.666667" p-id="16768" fill="#ffffff" /><path d="M516.266667 271.616l-133.461334 128.853333L332.8 348.629333a21.333333 21.333333 0 0 0-30.72 29.653334L366.933333 445.44a21.205333 21.205333 0 0 0 30.165334 0.512l148.821333-143.616a21.333333 21.333333 0 1 0-29.653333-30.677333M704 385.792a21.333333 21.333333 0 0 0 0-42.666667h-126.250667a21.333333 21.333333 0 0 0 0 42.666667H704zM321.749333 723.541333h170.666667a21.333333 21.333333 0 0 0 0-42.666666h-170.666667a21.333333 21.333333 0 0 0 0 42.666666M300.416 535.125333a21.333333 21.333333 0 0 0 21.333333 21.333334H704a21.333333 21.333333 0 0 0 0-42.666667H321.749333a21.333333 21.333333 0 0 0-21.333333 21.333333M844.885333 658.474667c-1.706667-1.408-3.541333-2.176-5.418666-2.986667a20.821333 20.821333 0 0 0-10.282667-3.029333h-65.109333a21.333333 21.333333 0 0 0 0 42.666666h21.589333l-70.613333 83.029334-100.821334-80.469334a21.333333 21.333333 0 0 0-29.013333 2.218667l-108.501333 117.888a21.418667 21.418667 0 0 0 15.701333 35.797333c5.76 0 11.52-2.304 15.701333-6.869333l95.061334-103.296 101.418666 80.981333c9.045333 7.168 22.101333 5.973333 29.525334-2.858666L810.666667 731.605333v10.112a21.333333 21.333333 0 1 0 42.666666 0v-65.066666a20.949333 20.949333 0 0 0-2.773333-9.984 21.034667 21.034667 0 0 0-5.674667-8.192" p-id="16769" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},d346:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},d3b8:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{ref:"template",staticClass:"template"},[a("p",{staticClass:"recipeTemplate"}),a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",on:{click:e.handleCreate}},[e._v("新生成")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"80px"},on:{click:e.handleHistoryRecord}},[e._v("历史记录")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:e.handleMaterialPlan}},[e._v("撒料计划")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:e.handlePremixedPlan}},[e._v("预混计划")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:e.handleShedFormula}},[e._v("栏舍配方")]),a("el-button",{staticClass:"export",staticStyle:{float:"right","margin-right":"10px"},on:{click:e.handleRecipeemplate}},[e._v("配方模板")])],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticStyle:{width:"150px"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.changeDate},model:{value:e.table.getdataListParm.parammaps.mydate,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"mydate",t)},expression:"table.getdataListParm.parammaps.mydate"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"计划类型",clearable:""},on:{change:e.changePlanType},model:{value:e.table.getdataListParm.parammaps.lpplantype,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"lpplantype",t)},expression:"table.getdataListParm.parammaps.lpplantype"}},e._l(e.planTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.lable,value:e.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次",clearable:""},on:{change:e.changeFrequency},model:{value:e.table.getdataListParm.parammaps.times,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"times",t)},expression:"table.getdataListParm.parammaps.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"打印类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.printingTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"计划维度",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.planningDimensionList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"导出类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.enable,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"enable",t)},expression:"table.getdataListParm.parammaps.enable"}},e._l(e.exportTypeList,(function(e,t){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-button",{staticClass:"export",on:{click:e.handleExport}},[e._v("导出")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"98%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"row-click":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.projname))])]}}])}),a("el-table-column",{attrs:{label:"计划类型",prop:"weight","min-width":"130px",align:"center",formatter:e.lpplantype}}),a("el-table-column",{attrs:{label:"TMR编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tmrtname))])]}}])}),a("el-table-column",{attrs:{label:"驾驶员","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.driver))])]}}])}),a("el-table-column",{attrs:{label:"已执行","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.havebutton))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"理论量","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lweight))])]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.plantime))])]}}])}),a("el-table-column",{attrs:{label:"发料位","min-width":"180px",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barnames))])]}}])})],1)],1)]),a("div",{staticClass:"content"},[a("div",{staticClass:"table2"},[a("p",{staticClass:"contentOperation"}),a("div",{staticClass:"content-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table2.listLoading,expression:"table2.listLoading"}],key:e.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table2.list,fit:"","highlight-current-row":"",height:"450","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"操作序号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称",prop:"fname","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),a("el-table-column",{attrs:{label:"设计重量(KG)",prop:"weight","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.weight))])]}}])})],1)],1)]),a("div",{staticClass:"table3"},[a("p",{staticClass:"stallRetails"}),a("div",{staticClass:"content-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table3.listLoading,expression:"table3.listLoading"}],key:e.table3.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table3.list,height:"450",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:" 操作序号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"栏舍编号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname))])]}}])}),3==e.table3.getdataListParm.parammaps.lpplantype?a("el-table-column",{attrs:{label:"转投栏舍","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.useinbar))])]}}],null,!1,540468947)}):a("el-table-column",{attrs:{label:"设计重量(KG)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.weight))])]}}])})],1)],1)])]),a("el-dialog",{attrs:{title:e.textMap[e.newGeneration.dialogStatus],"destroy-on-close":!0,visible:e.newGeneration.dialogFormVisible,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){return e.$set(e.newGeneration,"dialogFormVisible",t)}}},[a("div",{staticClass:"newGeneration"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:e.newGeneration.rules,model:e.newGeneration.temp,"label-position":"right","label-width":"155px"}},[a("el-row",[a("el-col",{attrs:{span:16}},[a("el-form-item",{attrs:{label:"时间范围:",prop:"inputDatetime"}},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"100%"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:e.newGeneration.temp.inputDatetime,callback:function(t){e.$set(e.newGeneration.temp,"inputDatetime",t)},expression:"newGeneration.temp.inputDatetime"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.newGeneration.dialogFormVisible=!1,e.getList()}}},[e._v("取消")]),a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.newGenerationData()}}},[e._v("确认")])],1)],1)])],1)},s=[],r=(a("b680"),a("2934")),l=(a("5c96"),a("ed08")),n=a("a78e"),o=a.n(n),c={name:"DailyExecutionPlan",data:function(){return{requestParams:[],planTypeList:[{lable:"撒料计划",value:"2"},{lable:"预混计划",value:"4"},{lable:"剩料计划",value:"3"}],printingTypeList:[{lable:"所有",value:"0"},{lable:"精料",value:"1"},{lable:"铲车",value:"2"}],frequencyList:[],planningDimensionList:[{lable:"发料顺序",value:"0"},{lable:"TMR",value:"1"}],exportTypeList:[{lable:"投料简打",value:"0"},{lable:"投料简打",value:"1"}],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),inforname:"times"}}},table:{getdataListParm:{name:"getDownloadedplanList",page:1,offset:1,pagecount:"",returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),barid:"",mydate:Object(l["e"])(new Date,"{y}-{m}-{d}"),times:"",lpplantype:""}},tableKey:0,list:[],total:0,listLoading:!1},table2:{getdataListParm:{name:"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},newGeneration:{dialogFormVisible:!1,dialogStatus:"",getdataListParm:{name:"checkLLPIsDistribution",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid")}},temp:{},rules:{inputDatetime:[{type:"array",required:!0,message:"必填",trigger:"blur"}]}},textMap:{newGeneration:"新生成"},isokDisable:!1,requestParam:{},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getIsDisplay()},mounted:function(){this.table.getdataListParm.parammaps.mydate=Object(l["e"])(new Date,"{y}-{m}-{d}")},methods:{getIsDisplay:function(){var e=this;Object(r["d"])(this.maxTime.getMaxTimesParm).then((function(t){console.log(t.data.list[0].inforvalue),1==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"}]:2==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]:3==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]:4==t.data.list[0].inforvalue&&(e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},getDownList:function(){Object(r["e"])(this.requestParams).then((function(e){}))},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 e=new Date(this.table.getdataListParm.parammaps.mydate.setDate(this.table.getdataListParm.parammaps.mydate.getDate()-1));this.table.getdataListParm.parammaps.mydate=Object(l["e"])(e,"{y}-{m}-{d}"),this.getList()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.mydate&&null!==this.table.getdataListParm.parammaps.mydate){this.table.getdataListParm.parammaps.mydate=new Date(this.table.getdataListParm.parammaps.mydate);var e=new Date(this.table.getdataListParm.parammaps.mydate.setDate(this.table.getdataListParm.parammaps.mydate.getDate()+1));this.table.getdataListParm.parammaps.mydate=Object(l["e"])(e,"{y}-{m}-{d}"),this.getList()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total,e.table2.getdataListParm.parammaps.id=t.data.list[0].id,e.table3.getdataListParm.parammaps.id=t.data.list[0].id,e.table3.getdataListParm.parammaps.lpplantype=t.data.list[0].lpplantype,e.getList2(),e.getList3()):(e.table.list=[],e.table2.getdataListParm.parammaps.id="",e.table3.getdataListParm.parammaps.id="",e.getList2(),e.getList3(),e.table2.list=[],e.table3.list=[]),setTimeout((function(){e.table.listLoading=!1}),100)}))},lpplantype:function(e){return 2==e.lpplantype?"撒料":4==e.lpplantype?"预混":3==e.lpplantype?"剩料":void 0},changeDate:function(e){console.log("选择了日期",e),this.getList(),this.getList2(),this.getList3()},changePlanType:function(e){console.log("选择了计划类型",e),this.getList(),this.getList2(),this.getList3()},changeFrequency:function(e){console.log("选择了班次",e),this.getList(),this.getList2(),this.getList3()},tableRowClick:function(e,t,a){console.log(e,t,a),this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table2.getdataListParm.parammaps.id=e.id,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,this.table3.getdataListParm.parammaps.id=e.id,this.table3.getdataListParm.parammaps.lpplantype=e.lpplantype,this.getList2(),this.getList3()},getList2:function(){var e=this;this.table2.listLoading=!0,this.table2.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,Object(r["d"])(this.table2.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){e.table2.list=t.data.list;for(var a=[],i=0,s=e.table2.list[0].sort,r=0,l=0;l<e.table2.list.length;l++)s!==parseInt(e.table2.list[l].sort)&&(s=e.table2.list[l].sort,a.push({sort:"小计",weight:i.toFixed(2)}),i=0),i+=parseFloat(e.table2.list[l].weight),r+=parseFloat(e.table2.list[l].weight),a.push(e.table2.list[l]);a.push({sort:"小计",weight:i}),a.push({sort:"总计",weight:r.toFixed(2)}),e.table2.list=a,console.log(e.table2.list),e.table2.pageNum=t.data.pageNum,e.table2.pageSize=t.data.pageSize,e.table2.total=t.data.total}else e.table2.list=[];setTimeout((function(){e.table2.listLoading=!1}),100)}))},getList3:function(){var e=this;this.table3.listLoading=!0,this.table3.getdataListParm.parammaps.date=this.table.getdataListParm.parammaps.mydate,Object(r["d"])(this.table3.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table3.list=t.data.list,e.table3.pageNum=t.data.pageNum,e.table3.pageSize=t.data.pageSize,e.table3.total=t.data.total):e.table3.list=[],setTimeout((function(){e.table3.listLoading=!1}),100)}))},handleCreate:function(){var e=this;console.log("点击了新生成"),this.newGeneration.temp={},this.newGeneration.dialogStatus="newGeneration",this.newGeneration.dialogFormVisible=!0,Object(r["d"])(this.newGeneration.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list&&"存在未分配"==t.data.list[0].vmsg&&e.$message({type:"warning",message:"撒料计划中存在未分配完栏舍,建议及时进行分配",duration:2e3})}))},newGenerationData:function(){var e=this;console.log("点击了新生成保存",this.newGeneration.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),5e3),this.$refs["temp"].validate((function(t){t&&(e.newGeneration.temp.startTime=Object(l["e"])(e.newGeneration.temp.inputDatetime[0],"{y}-{m}-{d}"),e.newGeneration.temp.stopTime=Object(l["e"])(e.newGeneration.temp.inputDatetime[1],"{y}-{m}-{d}"),e.requestParam={},e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"checkDLPIsStart",type:"e",parammaps:{pastureid:o.a.get("pastureid"),startTime:e.newGeneration.temp.startTime}},e.requestParam.data[1]={name:"createdownloadedplan",type:"e",parammaps:{pastureid:o.a.get("pastureid"),startTime:e.newGeneration.temp.startTime,stopTime:e.newGeneration.temp.stopTime}},Object(r["b"])(e.requestParam).then((function(t){console.log("新生成保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}),e.newGeneration.dialogFormVisible=!1,e.getList())})))}))},handleRecipeemplate:function(){console.log("点击了配方模板,页面待画")},handleShedFormula:function(){console.log("点击了栏舍配方,页面待画")},handlePremixedPlan:function(){console.log("点击了预混计划,页面待画")},handleMaterialPlan:function(){console.log("点击了撒料计划,页面待画")},handleHistoryRecord:function(){console.log("点击了历史记录,页面待画")},handleExport:function(){console.log("点击了导出")}}},d=c,m=(a("4619"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"09d110bf",null);t["default"]=p.exports},d412:function(e,t,a){},d4c2:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-驾驶员",use:"icon-驾驶员-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-驾驶员"><defs><style type="text/css"></style></defs><path d="M928.53 890.13C902.06 736.47 793.49 615.3 651.69 566.68 722.14 521 768.95 441.8 768.95 351.74c0-141.23-114.84-256.13-256-256.13s-256 114.9-256 256.13c0 90.07 46.82 169.27 117.27 214.94-141.76 48.63-250.3 169.8-276.75 323.46-3 17.42 8.69 33.98 26.09 36.99 1.84 0.31 3.67 0.47 5.47 0.47 15.3 0 28.83-11.01 31.5-26.59 29.03-168.57 174.88-291.16 347.71-293.37 1.58 0.03 3.12 0.24 4.71 0.24 1.59 0 3.13-0.21 4.71-0.24 172.88 2.21 318.75 124.81 347.8 293.38 3 17.42 19.42 29.16 36.97 26.11 17.43-3.01 29.1-19.57 26.1-37zM320.95 351.74c0-105.92 86.13-192.1 192-192.1s192 86.18 192 192.1c0 104.33-83.6 189.33-187.29 191.86-1.58-0.02-3.12-0.21-4.71-0.21-1.59 0-3.13 0.19-4.71 0.21-103.68-2.53-187.29-87.53-187.29-191.86z" p-id="37391" fill="#ffffff" /><path d="M659.75 703.6L490.33 873.02c-12.45 12.45-12.45 32.81 0 45.25s32.81 12.45 45.25 0L705 748.86c12.45-12.45 12.45-32.81 0-45.25s-32.81-12.45-45.25-0.01z" p-id="37392" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},d4fc:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-剩料计划",use:"icon-剩料计划-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-剩料计划"><defs><style type="text/css"></style></defs><path d="M791.852 55.402h-559.7c-91.439 0-117.831 27.809-117.831 117.831v677.533c0 90.023 26.395 117.831 117.831 117.831h559.7c91.439 0 117.831-27.809 117.831-117.831v-677.533c0-90.023-26.395-117.831-117.831-117.831zM864.11 864.11c0 34.201-32.139 61.243-61.243 61.243h-581.735c-44.983 0-61.243-25.038-61.243-61.243v-704.222c0-43.156 18.234-61.243 61.243-61.243h581.735c31.077 0 61.243 32.020 61.243 61.243v704.222zM715.966 674.106h-302.798c-9.307 0-16.82 4.891-16.82 11.018v22.034c0 6.069 7.513 11.018 16.82 11.018h302.798c9.307 0 16.82-4.949 16.82-11.018v-22.034c0-6.097-7.513-11.018-16.82-11.018zM312.214 467.636h-33.641c-9.307 0-16.82 4.831-16.82 10.782v21.591c0 5.95 7.513 10.782 16.82 10.782h33.641c9.307 0 16.82-4.831 16.82-10.782v-21.591c0-5.95-7.513-10.782-16.82-10.782zM312.214 674.106h-33.641c-9.307 0-16.82 4.891-16.82 11.018v22.034c0 6.069 7.513 11.018 16.82 11.018h33.641c9.307 0 16.82-4.949 16.82-11.018v-22.034c0-6.097-7.513-11.018-16.82-11.018zM312.214 261.785h-33.641c-9.307 0-16.82 5.125-16.82 11.489v22.949c0 6.334 7.513 11.489 16.82 11.489h33.641c9.307 0 16.82-5.125 16.82-11.489v-22.949c0-6.364-7.513-11.489-16.82-11.489zM715.966 467.636h-302.798c-9.307 0-16.82 4.831-16.82 10.782v21.591c0 5.95 7.513 10.782 16.82 10.782h302.798c9.307 0 16.82-4.831 16.82-10.782v-21.591c0-5.95-7.513-10.782-16.82-10.782zM715.966 261.785h-302.798c-9.307 0-16.82 5.125-16.82 11.489v22.949c0 6.334 7.513 11.489 16.82 11.489h302.798c9.307 0 16.82-5.125 16.82-11.489v-22.949c0-6.364-7.513-11.489-16.82-11.489z" p-id="40522" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},d527:function(e,t,a){"use strict";var i=a("3581"),s=a.n(i);s.a},d5f0:function(e,t,a){"use strict";var i=a("1fff"),s=a.n(i);s.a},d681:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},d6ab:function(e,t,a){"use strict";var i=a("07da"),s=a.n(i);s.a},d7ec:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},d90e:function(e,t,a){"use strict";var i=a("de1c"),s=a.n(i);s.a},d91b:function(e,t,a){"use strict";var i=a("3173"),s=a.n(i);s.a},d975:function(e,t,a){"use strict";var i=a("5f05"),s=a.n(i);s.a},d9cd:function(e,t,a){"use strict";a.r(t);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(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?s.a.set("sidebarStatus",1):s.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){s.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},n={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var a=e.commit,i=t.withoutAnimation;a("CLOSE_SIDEBAR",i)},toggleDevice:function(e,t){var a=e.commit;a("TOGGLE_DEVICE",t)}};t["default"]={namespaced:!0,state:r,mutations:l,actions:n}},da07:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-栏舍生产",use:"icon-栏舍生产-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-栏舍生产"><defs><style type="text/css"></style></defs><path d="M270.304 483.392L512 604.224l241.696-120.832a32 32 0 1 1 28.608 57.216l-256 128a32 32 0 0 1-28.608 0l-256-128a32 32 0 0 1 28.608-57.216z m0 128L512 732.224l241.696-120.832a32 32 0 0 1 28.608 57.216l-256 128a32 32 0 0 1-28.608 0l-256-128a32 32 0 0 1 28.608-57.216zM327.584 384L512 476.224 696.448 384 512 291.776 327.552 384z m198.72-156.608l256 128a32 32 0 0 1 0 57.216l-256 128a32 32 0 0 1-28.608 0l-256-128a32 32 0 0 1 0-57.216l256-128a32 32 0 0 1 28.608 0z" p-id="11372" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},da0b:function(e,t,a){"use strict";var i=a("181a"),s=a.n(i);s.a},da14:function(e,t,a){},dac4:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-首页-选中",use:"icon-首页-选中-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-首页-选中"><defs><style type="text/css"></style></defs><path d="M960.856566 463.515152L586.294949 88.824242c-20.428283-20.428283-47.450505-31.547475-76.282828-31.547474s-55.854545 11.248485-76.282828 31.547474L63.046465 459.636364c-9.050505 9.050505-9.050505 23.789899 0 32.969697 9.050505 9.050505 23.789899 9.050505 32.969697 0l38.141414-38.141415v369.519192c0 38.141414 14.610101 73.955556 41.115151 100.848485 26.634343 27.022222 62.319192 42.020202 100.460606 42.020202h469.333334c79.127273 0 143.515152-64.129293 143.515151-142.868687V456.921212l39.434344 39.434344c4.525253 4.525253 10.472727 6.852525 16.420202 6.852525s11.894949-2.327273 16.420202-6.852525c9.179798-9.050505 9.179798-23.789899 0-32.840404zM621.20404 920.177778h-218.50505v-250.828283c0-9.309091 7.49899-16.808081 16.808081-16.808081h184.888889c9.309091 0 16.808081 7.49899 16.80808 16.808081v250.828283z m220.832324-96.323233c0 53.139394-43.442424 96.323232-96.969697 96.323233h-77.317172v-250.828283c0-34.909091-28.444444-63.353535-63.353535-63.353535h-184.888889c-34.909091 0-63.353535 28.444444-63.353536 63.353535v250.828283h-80.549495c-52.363636 0-95.030303-43.183838-95.030303-96.323233v-415.030303H179.668687l287.030303-287.030303c11.636364-11.636364 27.022222-17.971717 43.313131-17.971717s31.806061 6.335354 43.313132 17.971717l288.581818 288.581819v413.478787z" fill="#009966" p-id="5216" /></symbol>'});l.a.add(n);t["default"]=n},dafd:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"备货单号"},model:{value:e.table.getdataListParm.parammaps.stockupCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"stockupCode",t)},expression:"table.getdataListParm.parammaps.stockupCode"}}),a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.handleCustomerSelect,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"备货人",clearable:""},model:{value:e.table.getdataListParm.parammaps.employeeId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"employeeId",t)},expression:"table.getdataListParm.parammaps.employeeId"}},e._l(e.employeeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"备货状态",clearable:""},model:{value:e.table.getdataListParm.parammaps.statusName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"statusName",t)},expression:"table.getdataListParm.parammaps.statusName"}},e._l(e.statusNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"下单开始日期","end-placeholder":"下单结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"备货单号","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockupCode))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"下单日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sdate))])]}}])}),a("el-table-column",{attrs:{label:"备货原因","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.reasonName))])]}}])}),a("el-table-column",{attrs:{label:"订单来源","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sourceName))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"备货状态","min-width":"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statusName))])]}}])}),a("el-table-column",{attrs:{label:"备货人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.employeeName))])]}}])}),a("el-table-column",{attrs:{label:"备货日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.successDate))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),1==i.isModify&&e.isRoleEdit&&i.createrId==e.employeid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),1==i.isDel&&e.isRoleEdit&&i.createrId==e.employeid?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),1==i.isModify&&e.isRoleEdit?a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleCompete(i)}}},[e._v("完成备货")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},["create"==e.create.dialogStatus?a("el-autocomplete",{staticStyle:{width:"100%","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer,clear:e.clearCustomerSelectTemp,blur:e.blurCustomerSelectTemp},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}],null,!1,2238609474),model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}}):a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"下单日期:",prop:"sdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.sdate,callback:function(t){e.$set(e.create.temp,"sdate",t)},expression:"create.temp.sdate"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备货原因:",prop:"reasonId"}},[a("el-select",{ref:"reasonId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择备货原因","allow-create":"",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.reasonId,callback:function(t){e.$set(e.create.temp,"reasonId",t)},expression:"create.temp.reasonId"}},e._l(e.reasonNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"订单来源:",prop:"sourceId"}},[a("el-select",{ref:"sourceId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择订单原因","allow-create":"",disabled:"see"==e.create.dialogStatus,clearable:""},model:{value:e.create.temp.sourceId,callback:function(t){e.$set(e.create.temp,"sourceId",t)},expression:"create.temp.sourceId"}},e._l(e.sourceNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1)],1),"see"==e.create.dialogStatus?a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备货状态:",prop:"statusName"}},[a("el-input",{ref:"statusName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.statusName,callback:function(t){e.$set(e.create.temp,"statusName",t)},expression:"create.temp.statusName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"录入日期:",prop:"created"}},[a("el-input",{ref:"created",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.created,callback:function(t){e.$set(e.create.temp,"created",t)},expression:"create.temp.created"}})],1)],1)],1):e._e(),"see"==e.create.dialogStatus?a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备货人:",prop:"employeeName"}},[a("el-input",{ref:"employeeName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.employeeName,callback:function(t){e.$set(e.create.temp,"employeeName",t)},expression:"create.temp.employeeName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备货日期:",prop:"successDate"}},[a("el-input",{ref:"successDate",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.successDate,callback:function(t){e.$set(e.create.temp,"successDate",t)},expression:"create.temp.successDate"}})],1)],1)],1):e._e(),a("el-row",[a("el-form-item",{attrs:{label:"关联接收快递:",prop:"postalId"}},[a("el-select",{ref:"postalId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择接收快递",disabled:"see"==e.create.dialogStatus,clearable:""},on:{change:e.changePostalName},model:{value:e.create.temp.postalId,callback:function(t){e.$set(e.create.temp,"postalId",t)},expression:"create.temp.postalId"}},e._l(e.create.postalNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),"create"==e.create.dialogStatus||"update"==e.create.dialogStatus?a("el-row",[a("el-form-item",{attrs:{label:"添加备货物品:",prop:"visiterId"}},[a("el-select",{ref:"visiterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择备货物品",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceProduct},model:{value:e.create.temp.visiterId,callback:function(t){e.$set(e.create.temp,"visiterId",t)},expression:"create.temp.visiterId"}},e._l(e.receProductNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:"货品名称:"+e.pname+" 型号:"+e.model+" 规格:"+e.Specifications,value:e.id}})})),1)],1)],1):e._e(),a("el-row",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.contact.listLoading,expression:"contact.listLoading"}],key:e.contact.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.contact.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+1))])]}}])}),a("el-table-column",{attrs:{label:"货品名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pname))])]}}])}),a("el-table-column",{attrs:{label:"型号","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.model))])]}}])}),a("el-table-column",{attrs:{label:"规格","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.Specifications))])]}}])}),a("el-table-column",{attrs:{label:"数量","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.nums))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.nums,callback:function(a){e.$set(t.row,"nums",a)},expression:"scope.row.nums"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"280px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["see"==e.create.dialogStatus?a("span",[e._v(e._s(t.row.remark))]):e._e(),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4}},model:{value:t.row.remark,callback:function(a){e.$set(t.row,"remark",a)},expression:"scope.row.remark"}}):e._e()]}}])}),"update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-table-column",{attrs:{label:"操作",align:"center",width:"110","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return["update"==e.create.dialogStatus||"create"==e.create.dialogStatus?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete2(i)}}},[e._v("删除")]):e._e()]}}],null,!1,3754767777)}):e._e()],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:"完成备货",visible:e.compete.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.compete,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"competetemp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.compete.rules,model:e.compete.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"备货人:",prop:"sourceId"}},[a("el-select",{ref:"employeeId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{placeholder:"请选择备货人",disabled:"see"==e.compete.dialogStatus,clearable:""},model:{value:e.compete.temp.employeeId,callback:function(t){e.$set(e.compete.temp,"employeeId",t)},expression:"compete.temp.employeeId"}},e._l(e.employeeNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"备货日期:",prop:"successDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.compete.dialogStatus},model:{value:e.compete.temp.successDate,callback:function(t){e.$set(e.compete.temp,"successDate",t)},expression:"compete.temp.successDate"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.compete.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),a("el-button",{staticClass:"success",on:{click:function(t){return e.competeData()}}},[e._v("确认")])],1)],1)])],1)},s=[],r=(a("7db0"),a("c740"),a("d81d"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"StockNotice",components:{Pagination:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],requestParams:[{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getEmployeesSelect",offset:0,pagecount:0,parammaps:{}},{name:"getDictListSelect2",offset:0,pagecount:0,parammaps:{pid:"58"}},{name:"getDictListSelect3",offset:0,pagecount:0,parammaps:{pid:"59"}},{name:"getProductsEnable",offset:0,pagecount:0,parammaps:{enable:"1"}}],customerNameList:[],groupNameList:[],employeeNameList:[],statusNameList:[{name:"待备货",id:"待备货"},{name:"已完成",id:"已完成"}],reasonNameList:[],sourceNameList:[],receProductNameList:[],table:{getdataListParm:{name:"getStockup",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{stockupCode:"",customerId:"",groupId:"",employeeId:"",statusName:"",inputDatetime:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",sdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),reasonId:"",sourceId:"",remark:"",id:"",modifyName:"add",receiverChoose:"true",statusName:"",created:"",employeeName:"",successDate:""},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],sdate:[{required:!0,message:"必填",trigger:"blur"}],reasonId:[{required:!0,message:"必填",trigger:"blur"}],visiterId:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm1:{name:"getPostalsByCustomerId",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},postalNameList:[],getdataListParm2:{name:"getgroupNameById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getPostalGoodsById",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{postalId:""}},getdataListParm4:{name:"getStockGoodsBySid",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{stockupId:""}}},textMap:{create:"新增",see:"查看",update:"编辑"},contact:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",contactName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getContacts",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},tableKey:0,list:[],total:0,listLoading:!1},compete:{dialogFormVisible:!1,dialogStatus:"",temp:{employeeId:"",successDate:Object(o["e"])(new Date,"{y}-{m}-{d}"),id:""},rules:{employeeId:[{required:!0,message:"必填",trigger:"blur"}],successDate:[{required:!0,message:"必填",trigger:"blur"}]}},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList()},methods:{getButtons:function(){var e="stockNotice",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),e.employeeNameList=t.data.getEmployeesSelect.list,console.log("备货人下拉框",e.employeeNameList),e.reasonNameList=t.data.getDictListSelect2.list,console.log("备货原因下拉框",e.reasonNameList),e.sourceNameList=t.data.getDictListSelect3.list,console.log("订单来源下拉框",e.sourceNameList),t.data.getProductsEnable.list.map((function(e){return e.productsId=e.id})),t.data.getProductsEnable.list.map((function(e){return e.customerId=""})),t.data.getProductsEnable.list.map((function(e){return e.nums=""})),t.data.getProductsEnable.list.map((function(e){return e.remark=""})),e.receProductNameList=t.data.getProductsEnable.list,console.log("收件货品下拉框",e.receProductNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.stockupCode="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.employeeId="",this.table.getdataListParm.parammaps.statusName="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",sdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),reasonId:"",sourceId:"",remark:"",id:"",modifyName:"add",receiverChoose:"true",statusName:"",created:"",employeeName:"",successDate:""},this.contact.list=[]},clearCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName="",document.activeElement.blur()},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(r["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},handleCustomerSelect:function(e){console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name},clearCustomerSelect:function(e){this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",document.activeElement.blur()},changeCustomer:function(e){console.log(e),this.create.temp.customerId=e.id,this.create.temp.customerName=e.name,this.create.getdataListParm1.parammaps.customerId=e.id,this.getPostalNameList(),this.create.getdataListParm2.parammaps.id=e.id,this.getGroupNameId()},getPostalNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm1).then((function(t){null!==t.data.list?(e.create.postalNameList=t.data.list,console.log("关联接收数据",t.data.list)):e.create.postalNameList=[]}))},getGroupNameId:function(){var e=this;Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},changePostalName:function(e){console.log("关联接收快递ID ",e),this.create.getdataListParm3.parammaps.postalId=e,this.contact.list=[],this.getReceProduct()},changeReceProduct:function(e){console.log("备货品ID ",e);var t=this.receProductNameList.findIndex((function(t){return t.id==e}));console.log("备货品index ",t);var a=this.contact.list.findIndex((function(t){return t.id==e}));console.log("备货品是否存在列表 ",a);var i=Object.assign({},this.receProductNameList[t]);i.nums=1,i.remark="","-1"==a&&this.contact.list.unshift(i)},handleRowDelete2:function(e){console.log("小表格中的删除",e);var t=this.contact.list.findIndex((function(t){return t.id==e.id}));this.contact.list.splice(t,1)},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=e.create.temp.customerId;e.contact.list.map((function(e){return e.customerId=a})),e.contact.list.map((function(e){return e.postalId=""})),e.create.temp.createrId=n.a.get("employeid"),console.log("点击了新增保存",e.create.temp),console.log("点击了新增保存",e.contact.list);var i={common:{returnmap:"0"},data:[{name:"insertStockup",type:"e",parammaps:e.create.temp},{name:"insertStockupGoods",resultmaps:{list:e.contact.list},children:[{name:"insertStockupGoods",type:"e",parammaps:{stockupId:"@insertStockupGoods.stockupId",productsId:"@insertStockupGoods.productsId",nums:"@insertStockupGoods.nums",remark:"@insertStockupGoods.remark",createrId:"@insertStockupGoods.createrId",customerId:"@insertStockupGoods.customerId"}}]}]},s=e.contact.list.find((function(e){return""==e.nums}));console.log(s),s?e.$message({type:"error",message:"货品数量不可为空",duration:2e3}):Object(r["b"])(i).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleSee:function(e){this.resetTemp(),this.create.temp=Object.assign({},e),console.log("点击了查看",e),this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getPostalNameList(),this.create.getdataListParm4.parammaps.stockupId=e.id,this.getReceProduct2(),this.create.dialogStatus="update",this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){this.resetTemp(),console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.getdataListParm1.parammaps.customerId=e.customerId,this.getPostalNameList(),this.create.getdataListParm4.parammaps.stockupId=e.id,this.getReceProduct2(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},getReceProduct:function(){var e=this;Object(r["d"])(this.create.getdataListParm3).then((function(t){console.log("查看和编辑中的小表格",t.data.list),null!==t.data.list&&(e.contact.list=t.data.list)}))},getReceProduct2:function(){var e=this;Object(r["d"])(this.create.getdataListParm4).then((function(t){console.log("查看和编辑中的小表格",t.data.list),null!==t.data.list&&(e.contact.list=t.data.list)}))},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="update";var a=e.create.temp.customerId,i=e.create.temp.id;e.contact.list.map((function(e){return e.customerId=a})),e.contact.list.map((function(e){return e.postalId=i})),e.contact.list.map((function(e){return e.stockupId=i}));var s={common:{returnmap:"0"},data:[{name:"updateStockup",type:"e",parammaps:e.create.temp},{name:"delStockupGoods",type:"e",parammaps:{stockupId:e.create.temp.id}},{name:"insertStockupGoods",resultmaps:{list:e.contact.list},children:[{name:"insertStockupGoods",type:"e",parammaps:{stockupId:"@insertStockupGoods.stockupId",productsId:"@insertStockupGoods.productsId",nums:"@insertStockupGoods.nums",remark:"@insertStockupGoods.remark",customerId:"@insertStockupGoods.customerId"}}]}]};Object(r["b"])(s).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delStockup",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},resetCompete:function(){this.compete.temp={employeeId:"",successDate:Object(o["e"])(new Date,"{y}-{m}-{d}"),id:""}},handleCompete:function(e){console.log("点击了完成备货",e),this.resetCompete(),this.compete.temp=Object.assign({},e),this.compete.temp.id=e.id,this.compete.dialogFormVisible=!0},competeData:function(){var e=this;this.$refs["competetemp"].validate((function(t){t&&(e.requestParam.name="updateStockupSuccess",e.requestParam.parammaps=e.compete.temp,console.log("备货保存发送参数",e.requestParam),Object(r["g"])(e.requestParam).then((function(t){console.log("备货保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.compete.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})})))}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("ed95"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"d19adb5e",null);t["default"]=h.exports},db0c:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[a("el-button",{staticClass:"success",staticStyle:{float:"left"},on:{click:e.handleCreate}},[e._v("新增车次")]),a("el-button",{staticClass:"danger",staticStyle:{float:"left"},on:{click:e.handleDelete}},[e._v("减少车次")]),a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleHistoryRecords}},[e._v("历史记录")])],1),a("div",{staticClass:"search"}),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{id:"table","element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id"},on:{"selection-change":e.handleSelect}},[a("el-table-column",{attrs:{type:"selection","min-width":"50"}}),a("el-table-column",{attrs:{label:"车次","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.sort))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number"},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort","string"===typeof a?a.trim():a)},expression:"scope.row.sort"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ftname))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeformulaName(a,t.row)}},model:{value:t.row.ftid,callback:function(a){e.$set(t.row,"ftid",a)},expression:"scope.row.ftid"}},e._l(e.formulaNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.tmrcode))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeTMRNumber(a,t.row)}},model:{value:t.row.tmrid,callback:function(a){e.$set(t.row,"tmrid",a)},expression:"scope.row.tmrid"}},e._l(e.TMRNumberList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.tname,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.times))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeTimes(a,t.row)}},model:{value:t.row.times,callback:function(a){e.$set(t.row,"times",a)},expression:"scope.row.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"撒料计划车次跟随","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.lppcode))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"80%",padding:"10px 0"},attrs:{filterable:"",placeholder:""},on:{change:function(a){e.changeCarFollow(a,t.row)}},model:{value:t.row.lppid,callback:function(a){e.$set(t.row,"lppid",a)},expression:"scope.row.lppid"}},e._l(e.carFollowList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.lppcode,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"生效","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ptime))]):e._e(),t.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:t.row.ptime,callback:function(a){e.$set(t.row,"ptime",a)},expression:"scope.row.ptime"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"单车操作重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.maxweight))])]}}])}),a("el-table-column",{attrs:{label:"混料重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.operateweight))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"80%",padding:"10px 0"},attrs:{type:"number"},model:{value:t.row.operateweight,callback:function(a){e.$set(t.row,"operateweight",a)},expression:"scope.row.operateweight"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"320","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createData(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.createCancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniSuccess",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.updateData(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"minCancel",on:{click:function(t){return e.updateCancel(i)}}},[e._v("取消")]):e._e()]}}])})],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.history.dialogStatus],"destroy-on-close":!0,visible:e.history.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.history,"dialogFormVisible",t)}}},[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:e.changeDate},model:{value:e.history.getdataListParm.parammaps.date,callback:function(t){e.$set(e.history.getdataListParm.parammaps,"date",t)},expression:"history.getdataListParm.parammaps.date"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleApplication}},[e._v("应用")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.history.listLoading,expression:"history.listLoading"}],key:e.history.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.history.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"车次","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"配方名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ftname))])]}}])}),a("el-table-column",{attrs:{label:"TMR编号",prop:"weight","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tmrcode))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"发料计划车次跟随","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.lppcode))])]}}])}),a("el-table-column",{attrs:{label:"生效","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"180px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.ptime))])]}}])}),a("el-table-column",{attrs:{label:"单车操作重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.maxweight))])]}}])}),a("el-table-column",{attrs:{label:"混料重量","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operateweight))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.history.total>0,expression:"history.total>0"}],attrs:{total:e.history.total,page:e.history.getdataListParm.offset,limit:e.history.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.history.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.history.getdataListParm,"pagecount",t)},pagination:e.getHistoryList}})],1)]),a("div",{staticClass:"dialog-footer",staticStyle:{bottom:"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.history.dialogFormVisible=!1}}},[e._v("关闭")])],1)])],1)},s=[],r=(a("7db0"),a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("aa47"),n=a("333d"),o=a("a78e"),c=a.n(o),d=a("5c96"),m={name:"PremixedPlan",components:{Pagination:n["a"]},data:function(){return{requestParams:[{name:"getTMRYHList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}},{name:"getFTYHList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid")}}],formulaNameList:[],TMRNumberList:[],maxTime:{getMaxTimesParm:{name:"getSysoptEnable",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),inforname:"times"}}},frequencyList:[],getCarFollowParm:{name:"getLPPCodeList",offset:0,pagecount:0,parammaps:{pastureid:c.a.get("pastureid"),times:""}},carFollowList:[],table:{getdataListParm:{name:"getPremixplanList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},tableKey:0,list:[],total:0,listLoading:!0},history:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},tableKey:0,list:[],total:0,listLoading:!0,getdataDateParm:{name:"getPPMaxDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid")}},getdataListParm:{name:"getPremixplanListDate",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:c.a.get("pastureid"),date:""}}},textMap:{history:"历史记录"},selectList:[],isokDisable:!1,requestParam:{},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},dropState:!1}},created:function(){this.getList(),this.getDownList(),this.getIsDisplay()},methods:{getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.TMRNumberList=t.data.getTMRYHList.list,e.formulaNameList=t.data.getFTYHList.list}))},getIsDisplay:function(){var e=this;Object(r["d"])(this.maxTime.getMaxTimesParm).then((function(t){1==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"}]:2==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"}]:3==t.data.list[0].inforvalue?e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"}]:4==t.data.list[0].inforvalue&&(e.frequencyList=[{id:"1",name:"第一班"},{id:"2",name:"第二班"},{id:"3",name:"第三班"},{id:"4",name:"第四班"}])}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"groupEdit",!1),e.$set(t.data.list[a],"groupNoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.rowDrop(),e.table.total=t.data.total}else e.table.list=[];setTimeout((function(){e.table.listLoading=!1}),100)}))},changeformulaName:function(e,t){t.ftname=this.formulaNameList.find((function(t){return t.id==e})).tname},changeTMRNumber:function(e,t){t.tmrcode=this.TMRNumberList.find((function(t){return t.id==e})).tname,t.maxweight=this.TMRNumberList.find((function(t){return t.id==e})).maxstirfeed},changeCarFollow:function(e,t){t.lppcode=this.carFollowList.find((function(t){return t.id==e})).lppcode},changeTimes:function(e,t){console.log(e,t),this.getCarFollowParm.parammaps.times=e,this.getCarFollowList(t)},getCarFollowList:function(e){var t=this;Object(r["d"])(this.getCarFollowParm).then((function(a){console.log("撒料计划车次跟随列表数据",a.data.list),null!==a.data.list&&(t.carFollowList=a.data.list,e.lppid=t.carFollowList[0].id,e.lppcode=t.carFollowList[0].lppcode)}))},handleEnableChange:function(){console.log("点击了生效")},rowDrop:function(){console.log(document.querySelector("#table .el-table__body-wrapper tbody"));var e=document.querySelector("#table .el-table__body-wrapper tbody"),t=this,a=l["default"].create(e,{disabled:t.dropState,onChoose:function(e){e.newIndex,e.oldIndex;1==t.dropState&&a.destroy()},onEnd:function(e){var a=e.newIndex,i=e.oldIndex,s=t.table.list.splice(i,1)[0];t.table.list.splice(a,0,s),console.log("索引",a),console.log("拖动数据",s),console.log("上",t.table.list[a-1]),console.log("下",t.table.list[a+1])}})},handleCreate:function(){this.dropState=!0,console.log("点击了新增车次");for(var e=0;e<this.table.list.length;e++)if(!0===this.table.list[e].Edit)return console.log(123),this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;var t=0;t=this.table.list.length>0?parseInt(this.table.list[this.table.list.length-1].sort)+1:0,this.table.list.unshift({myId:(new Date).valueOf(),Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1,enable:1,sort:t,ftid:"",ftname:"",tmrcode:"",tmrid:"",times:"",lppcode:"",lppid:"",ptime:"",maxweight:"",operateweight:""})},createData:function(e){var t=this;if(console.log("点击了新增保存",e),""==e.sort&&""==e.ftid&&""==e.tmrid&&""==e.times&&""==e.operateweight)return this.$message({type:"error",message:"车次/配方名称/TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==e.ftid&&""==e.tmrid&&""==e.times&&""==e.operateweight)return this.$message({type:"error",message:"配方名称/TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==e.tmrid&&""==e.times&&""==e.operateweight)return this.$message({type:"error",message:"TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==e.times&&""==e.operateweight)return this.$message({type:"error",message:"班次/混料重量不能为空",duration:2e3}),!1;if(""==e.sort)return this.$message({type:"error",message:"车次不能为空",duration:2e3}),!1;if(""==e.ftid)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==e.tmrid)return this.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==e.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==e.operateweight)return this.$message({type:"error",message:"混料重量不能为空",duration:2e3}),!1;for(var a=0;a<this.table.list.length;a++)if(""!==e.sort&&e.sort==this.table.list[a].sort&&e.myId!==this.table.list[a].myId)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==e.sort&&!i.test(parseFloat(e.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="insertPremixplan",this.requestParam.parammaps=e,this.requestParam.parammaps.pastureid=c.a.get("pastureid"),Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.dropState=!1):Object(r["l"])(e,t.$notify)}))},createCancel:function(e){console.log("点击了新增取消"),this.dropState=!1;for(var t=0;t<this.table.list.length;t++){if(e.myId===this.table.list[t].myId)var a=this.table.list.indexOf(this.table.list[t]);if(a>-1)return void this.table.list.splice(a,1)}},handleUpdate:function(e){for(var t=0;t<this.table.list.length;t++)if(1==this.table.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0,e.lppid=String(e.lppid),this.getCarFollowParm.parammaps.times=e.times,this.getCarFollowList(e),this.dropState=!0},updateData:function(e){var t=this;if(console.log("点击了编辑保存",e),""==e.ftid&&""==e.tmrid&&""==e.times&&""==e.operateweight)return this.$message({type:"error",message:"配方名称/TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==e.tmrid&&""==e.times&&""==e.operateweight)return this.$message({type:"error",message:"TMR编号/班次/混料重量不能为空",duration:2e3}),!1;if(""==e.times&&""==e.operateweight)return this.$message({type:"error",message:"班次/混料重量不能为空",duration:2e3}),!1;if(""==e.ftid)return this.$message({type:"error",message:"配方名称不能为空",duration:2e3}),!1;if(""==e.tmrid)return this.$message({type:"error",message:"TMR编号不能为空",duration:2e3}),!1;if(""==e.times)return this.$message({type:"error",message:"班次不能为空",duration:2e3}),!1;if(""==e.operateweight)return this.$message({type:"error",message:"混料重量不能为空",duration:2e3}),!1;for(var a=0;a<this.table.list.length;a++)if(e.sort==this.table.list[a].sort&&e.id!==this.table.list[a].id)return this.$message({type:"error",message:"车次不可重复",duration:2e3}),!1;var i=/^\d+$/;if(""!==e.sort&&!i.test(parseFloat(e.sort)))return this.$message({type:"error",message:"车次请输入整数",duration:2e3}),!1;this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3),this.requestParam.name="updatePremixplan",this.requestParam.parammaps=e,Object(r["g"])(this.requestParam).then((function(e){console.log("新增保存发送参数",t.requestParam),"fail"!==e.msg?(t.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),t.getList(),t.dropState=!1):Object(r["l"])(e,t.$notify)}))},updateCancel:function(e){console.log("点击了编辑取消"),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1,this.getList(),this.dropState=!1},handleSelect:function(e){console.log("勾选数据",e),this.selectList=e},handleHistoryRecords:function(){console.log("点击了历史记录"),this.history.dialogStatus="history",this.history.dialogFormVisible=!0,this.getDateList()},getDateList:function(){var e=this;Object(r["d"])(this.history.getdataDateParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.history.getdataListParm.parammaps.date=t.data.list[0].maxdate,e.getHistoryList()):e.history.getdataListParm.parammaps.date=""}))},changeDate:function(){this.getHistoryList()},handleApplication:function(){var e=this;console.log("点击了应用"),d["MessageBox"].confirm("是否确认将"+this.history.getdataListParm.parammaps.date+"的数据应用到当前?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="applyFPdate",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=c.a.get("pastureid"),e.requestParam.parammaps.date=e.history.getdataListParm.parammaps.date,Object(r["g"])(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.getHistoryIsDisplay(),e.getList())}))})).catch((function(){e.$message({type:"info",message:"已取消应用"})}))},getHistoryList:function(){var e=this;this.history.listLoading=!0,Object(r["d"])(this.history.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(console.log("table数据",t.data.list),e.history.list=t.data.list,e.history.pageNum=t.data.pageNum,e.history.pageSize=t.data.pageSize,e.history.total=t.data.total):e.history.list=[],setTimeout((function(){e.history.listLoading=!1}),100)}))},handleRowDelete:function(e){var t=this;console.log(e,"点击了行删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam={},t.requestParam.name="deletePremixplan",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleDelete:function(){var e=this;0==this.selectList.length?this.$message({type:"error",message:"请选择车次信息",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deletePremixplan",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))}}},p=m,u=(a("19176"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"360789ca",null);t["default"]=h.exports},db76:function(e,t,a){"use strict";a.r(t);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="M532.973684 468.976114c-11.722996-11.57257-30.762631-11.57257-42.50507 0L270.054599 686.287465a29.317723 29.317723 0 0 0 0 41.903366c11.717879 11.57257 30.757514 11.57257 42.499953 0l199.157899-196.346877 199.13334 196.346877c11.747555 11.577686 30.762631 11.577686 42.505069 0 5.889127-5.773494 8.815783-13.356193 8.815783-20.944008s-2.926656-15.175631-8.800433-20.959358L532.973684 468.976114z m-220.419132 34.95307l199.157899-196.346877 199.13334 196.346877c11.747555 11.57257 30.762631 11.57257 42.510186 0a29.235858 29.235858 0 0 0 8.810666-20.949124c0-7.587815-2.926656-15.175631-8.800433-20.964475L532.973684 244.709351c-11.722996-11.57257-30.762631-11.57257-42.50507 0L270.054599 462.015585a29.328979 29.328979 0 0 0 0 41.913599c11.717879 11.56643 30.757514 11.56643 42.499953 0z" fill="#409EFF" p-id="46001" /><path d="M775.234263 104.95847c38.266535 0 74.243935 14.901385 101.302197 41.960671 27.059286 27.058262 41.960671 63.035662 41.960671 101.302197v527.056927c0 38.266535-14.901385 74.242911-41.960671 101.302197-27.058262 27.058262-63.035662 41.960671-101.302197 41.960671H248.177336c-38.266535 0-74.242911-14.901385-101.302197-41.960671-27.059286-27.059286-41.960671-63.035662-41.960671-101.302197V248.221338c0-38.266535 14.901385-74.243935 41.960671-101.302197 27.059286-27.059286 63.035662-41.960671 101.302197-41.960671h527.056927m0-40.932248H248.177336c-101.727892 0-184.195116 82.467223-184.195116 184.195116v527.056927c0 101.727892 82.467223 184.195116 184.195116 184.195116h527.056927c101.727892 0 184.195116-82.467223 184.195116-184.195116V248.221338c0-101.727892-82.467223-184.195116-184.195116-184.195116z" fill="#409EFF" p-id="46002" /></symbol>'});l.a.add(n);t["default"]=n},dbb3:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 2"}})],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!1,null,null,null);t["default"]=n.exports},dbc7:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},dc21:function(e,t,a){},dc6a:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"container",staticStyle:{position:"relactive"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.editBtn,expression:"editBtn"}],staticStyle:{position:"absolute",top:"170px",right:"100px","z-index":"1"}},[a("el-button",{attrs:{type:"primary",size:"mini",loading:e.control_btn_l},on:{click:function(t){return e.control_edit()}}},[e._v(" "+e._s(e.control_btn)+" ")])],1),a("el-card",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"dashboard-list",attrs:{"body-style":"padding: 0px;",shadow:"never"}},[a("ul",[a("draggable",{staticClass:"draggable-wrapper",attrs:{group:{name:"dashboard",pull:!0}},on:{change:e.handleOrderChange},model:{value:e.dashboardList,callback:function(t){e.dashboardList=t},expression:"dashboardList"}},e._l(e.dashboardList,(function(t,i){return a("li",{key:t.dashboard_id,class:{"dashboard-list-item":!0,"high-light-dashboard":e.currentDashboard.dashboard_id===t.dashboard_id}},[a("span",{on:{click:function(a){return e.switchDb(t)}}},[a("i",{staticClass:"el-icon-document"}),a("span",[e._v(e._s(t.name))])]),a("el-dropdown",{attrs:{szie:"mini",trigger:"click"},on:{command:e.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:t}}},[e._v(" "+e._s(e.$t("common.edit"))+" ")]),a("el-dropdown-item",{attrs:{command:{type:"delete",target:t}}},[e._v(" "+e._s(e.$t("common.delete"))+" ")])],1)],1)],1)})),0)],1)]),a("dashboardItem",{attrs:{dashboard:e.currentDashboard,mode:e.isEdit,title:e.isTitle},on:{fatherMethod:e.getList}}),a("el-dialog",{attrs:{title:e.$t("dashboard.addOrEditDashboard"),width:"750px",visible:e.editDialogVisible},on:{"update:visible":function(t){e.editDialogVisible=t}}},[a("el-form",{attrs:{"label-width":"160px"}},[a("el-form-item",{attrs:{label:e.$t("dashboard.dashboardName")}},[a("el-input",{staticStyle:{width:"450px"},attrs:{size:"small",placeholder:e.$t("dashboard.dashboardNamePlaceholder")},model:{value:e.dbObj.name,callback:function(t){e.$set(e.dbObj,"name",t)},expression:"dbObj.name"}})],1),a("el-form-item",{attrs:{label:e.$t("dashboard.dashboardDesc")}},[a("el-input",{staticStyle:{width:"450px"},attrs:{type:"textarea",rows:5,size:"small",placeholder:e.$t("dashboard.dashboardDescPlaceholder")},model:{value:e.dbObj.desc,callback:function(t){e.$set(e.dbObj,"desc",t)},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(t){e.editDialogVisible=!1}}},[e._v(" "+e._s(e.$t("common.cancel")))]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSubmit}},[e._v(" "+e._s(e.$t("common.confirm")))])],1)],1)],1)},s=[],r=(a("99af"),a("7db0"),a("d81d"),a("b0c0"),a("ac1f"),a("1276"),a("310e")),l=a.n(r),n=a("4300"),o=a("2934"),c=a("a78e"),d=a.n(c),m=a("5fd4"),p={name:"Addboard",components:{dashboardItem:n["default"],draggable:l.a},data:function(){return{isEdit:"view",dashboardList:[],currentDashboard:void 0,editDialogVisible:!1,dbObj:{},loading:!1,isCollapse:!1,did:void 0,isTitle:"2",editBtn:!1,control_btn:"编辑",control_btn_l:!1,get_role_data:{name:"getChartRole",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:d.a.get("pastureid"),empid:d.a.get("employeid"),type:"1",id:localStorage.getItem("AddboardIsEditId")}}}},created:function(){this.did=window.location.href.split("~")[1],this.haha=window.location.href.split("~")[2],console.log("this.did",this.did),console.log("this.haha",this.haha),3==this.haha?(console.log("this.haha333333333"),this.isTitle="3",this.editBtn=!1):(this.isTitle="2",this.get_Role()),this.getList()},methods:{get_Role:function(){var e=this;Object(o["d"])(this.get_role_data).then((function(t){console.log("权限数据",t.data),"editOk"==t.data.list[0].statue?e.editBtn=!0:e.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 e=this;this.loading=!0,this.did?this.did=this.did:this.did=localStorage.getItem("AddboardIsEditId");var t={name:"getdashboardsV2",parammaps:{pastureid:d.a.get("pastureid"),empid:d.a.get("employeid"),did:this.did}};console.log("进入大页面================="),Object(o["k"])(t).then((function(t){e.loading=!1,e.dashboardList=[],console.log("看板列表数据:",t),console.log("看板列表优化数据list:",t.data.list),console.log("看板列表优化数据dashboards:",t.data.dashboards),e.dashboardList=e.dashboardList.concat(t.data.dashboards);var a=e.dashboardList.find((function(e){return e.dashboard_id===localStorage.getItem("AddboardIsEditId")}));e.currentDashboard=a||e.dashboardList[0],console.log("this.currentDashboard",e.currentDashboard),console.log("this.dashboardList",e.dashboardList),e.currentDashboard}))},switchDb:function(e){e.dashboard_id!==this.currentDashboard.dashboard_id?(this.currentDashboard=e,this.$router.push("/dashboard?id=".concat(this.currentDashboard.dashboard_id))):this.getList()},addDashboard:function(){this.dbObj={},this.editDialogVisible=!0},editDashboard:function(e){this.dbObj=Object.assign({},e),this.editDialogVisible=!0},handleCommand:function(e){"edit"===e.type?this.editDashboard(e.target):this.deleteDashboard(e.target)},handleSubmit:function(){var e=this;if(this.dbObj.dashboard_id)Object(m["e"])(this.dbObj).then((function(t){e.getList(),e.editDialogVisible=!1}));else{console.log("this.dbObj",this.dbObj);var t={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["g"])(t).then((function(a){console.log("新增保存发送参数",t),e.$message({type:"success",message:e.$t("common.saveSuccess")}),e.getList(),e.editDialogVisible=!1}))}},handleOrderChange:function(e){var t={order:this.dashboardList.map((function(e){return e.dashboard_id}))};Object(m["b"])(t)},deleteDashboard:function(e){var t=this;this.$confirm(this.$t("dashboard.deleteConfirm",e.name),this.$t("common.confirm")).then((function(){Object(m["c"])({dashboard_id:e.dashboard_id}).then((function(){t.getList(),t.$message({type:"success",message:t.$t("common.deleteSuccess")})}))}))}}},u=p,h=(a("c6a2"),a("2877")),g=Object(h["a"])(u,i,s,!1,null,"057595b5",null);t["default"]=g.exports},dcf8:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},de1c:function(e,t,a){},deb1:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},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:e.table.getdataListParm.parammaps.assetCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"assetCode",t)},expression:"table.getdataListParm.parammaps.assetCode"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"集团ID","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"集团名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"联系人","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"联系方式","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>0,expression:"table.total>0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.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:e.table.getdataListParm.parammaps.assetCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"assetCode",t)},expression:"table.getdataListParm.parammaps.assetCode"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table2.listLoading,expression:"table2.listLoading"}],key:e.table2.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table2.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table2.pageNum-1)*e.table2.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"集团ID","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"牧场ID","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"牧场名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])}),a("el-table-column",{attrs:{label:"牧场名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.brandName))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table2.total>0,expression:"table2.total>0"}],attrs:{total:e.table2.total,page:e.table2.getdataListParm.offset,limit:e.table2.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table2.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table2.getdataListParm,"pagecount",t)},pagination:e.getList2}})],1)])],1)],1)},s=[],r=(a("b0c0"),a("ade3")),l=a("2934"),n=a("333d"),o={name:"GroupInformation",components:{Pagination:n["a"]},data:function(){return{activeName:"first",table:{getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{enable:""}},tableKey:0,list:[],total:0,listLoading:!0},table2:{getdataListParm:{name:"getAssetList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{enable:""}},tableKey:0,list:[],total:0,listLoading:!0},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.activeName="first"},methods:Object(r["a"])({handleTabClick:function(e){console.log(e),"first"===e.name?this.getList():"second"===e.name&&this.getList2()},getList:function(){var e=this;this.table.listLoading=!0,Object(l["d"])(this.table.getdataListParm).then((function(t){console.log("集团信息table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了集团信息查询"),this.getList()},getList2:function(){var e=this;this.table2.listLoading=!0,Object(l["d"])(this.table2.getdataListParm).then((function(t){console.log("牧场管理table数据",t.data.list),null!==t.data.list?(e.table2.list=t.data.list,e.table2.pageNum=t.data.pageNum,e.table2.pageSize=t.data.pageSize,e.table2.total=t.data.total):e.table2.list=[],setTimeout((function(){e.table2.listLoading=!1}),100)}))}},"handleSearch",(function(){console.log("点击了牧场管理查询"),this.getList()}))},c=o,d=(a("da0b"),a("2877")),m=Object(d["a"])(c,i,s,!1,null,"1f091840",null);t["default"]=m.exports},df2e:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},df54:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},df71:function(e,t,a){},e062:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container common-list-page"},[a("el-form",{ref:"temp",attrs:{model:e.temp,rules:e.rules,"status-icon":"","label-width":"100px"}},[a("el-form-item",{attrs:{label:"旧密码:",prop:"oldpassword"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.oldpassword,callback:function(t){e.$set(e.temp,"oldpassword",t)},expression:"temp.oldpassword"}})],1),a("el-form-item",{attrs:{label:"新密码:",prop:"password"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.password,callback:function(t){e.$set(e.temp,"password",t)},expression:"temp.password"}})],1),a("el-form-item",{attrs:{label:"确认密码:",prop:"password1"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.password1,callback:function(t){e.$set(e.temp,"password1",t)},expression:"temp.password1"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.toAmend(t)}}},[e._v("确认修改")])],1)],1)],1)},s=[],r=(a("d3b7"),a("25f0"),a("96cf"),a("1da1")),l=a("2934"),n=a("a78e"),o=a.n(n),c={data:function(){var e=this,t=function(e,t,a){t?t.toString().length<6||t.toString().length>18?a(new Error("密码长度为6-18位")):a():a(new Error("请输入旧密码"))},a=function(e,t,a){console.log(t),t?t.toString().length<6||t.toString().length>18?a(new Error("密码长度为6-18位")):a():a(new Error("请输入新密码"))},i=function(t,a,i){""===a?i(new Error("请再次输入密码")):a!==e.temp.password?i(new Error("两次输入密码不一致!")):i()};return{resetForm:{},temp:{},rules:{oldpassword:[{required:!0,validator:t,trigger:"blur"}],password:[{required:!0,validator:a,trigger:"blur"}],password1:[{required:!0,validator:i,trigger:"blur"}]}}},methods:{toAmend:function(){var e=this;console.log(111),this.$refs["temp"].validate((function(t){t&&(e.resetForm.common={returnmap:"0"},e.resetForm.data=[],e.resetForm.data[0]={name:"checkPassword",type:"v",parammaps:{id:o.a.get("employeid"),password:e.temp.oldpassword}},e.resetForm.data[1]={name:"updatePwd",type:"e",parammaps:{password:e.temp.password,username:o.a.get("name")}},Object(l["b"])(e.resetForm).then((function(t){console.log("保存发送参数",e.resetForm),"fail"===t.msg?e.$notify({title:"保存失败",message:t.data,type:"warning",duration:2e3}):(setTimeout((function(){e.logout()}),1e3),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3}))})))}))},logout:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login");case 3:case"end":return t.stop()}}),t)})))()}}},d=c,m=(a("78e9"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"68fbcd18",null);t["default"]=p.exports},e10e:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"danger",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"warning",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCopy}},[e._v("复制")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"import",staticStyle:{float:"right"},on:{click:e.handleImport}},[e._v("导入")]):e._e(),a("el-dropdown",{staticStyle:{float:"right","margin-right":"10px"}},[a("el-button",{staticClass:"export"},[e._v("导出")]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(1)}}},[e._v("导出模板")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.handleExport(2)}}},[e._v("导出数据")])],1)],1)],1),a("div",{staticClass:"search"},[a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"el-icon-arrow-left elIconArrowLeft",on:{click:e.handleBefore}}),a("el-button",{staticClass:"el-icon-arrow-right elIconArrowRight",on:{click:e.handleNext}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"栏舍名称",clearable:""},model:{value:e.table.getdataListParm.parammaps.barid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"barid",t)},expression:"table.getdataListParm.parammaps.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{filterable:"",placeholder:"班次",clearable:""},model:{value:e.table.getdataListParm.parammaps.times,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"times",t)},expression:"table.getdataListParm.parammaps.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle},on:{"selection-change":e.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:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"栏舍名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.barname))])]}}])}),a("el-table-column",{attrs:{label:"班次","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.times))])]}}])}),a("el-table-column",{attrs:{label:"第一层",align:"center"}},[a("el-table-column",{attrs:{prop:"onerate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"oneweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第二层",align:"center"}},[a("el-table-column",{attrs:{prop:"tworate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"twoweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第三层",align:"center"}},[a("el-table-column",{attrs:{prop:"threerate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"threeweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"第四层",align:"center"}},[a("el-table-column",{attrs:{prop:"fourrate",label:"比例(%)","min-width":"90px",align:"center"}}),a("el-table-column",{attrs:{prop:"fourweight",label:"重量(g)","min-width":"90px",align:"center"}})],1),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"操作人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.emp))])]}}])}),a("el-table-column",{attrs:{label:"操作日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operatetime))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.isRoleEdit?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"100%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.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"}},[e._v("栏舍信息")])])],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"栏舍名称:",prop:"barid"}},[a("el-select",{ref:"barid",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.create.dialogStatus,filterable:"",placeholder:"栏舍名称"},on:{change:e.changeBar},model:{value:e.create.temp.barid,callback:function(t){e.$set(e.create.temp,"barid",t)},expression:"create.temp.barid"}},e._l(e.houseNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.bname,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"班次:",prop:"times"}},[a("el-select",{ref:"times",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:"update"==e.create.dialogStatus,filterable:"",placeholder:"班次"},model:{value:e.create.temp.times,callback:function(t){e.$set(e.create.temp,"times",t)},expression:"create.temp.times"}},e._l(e.frequencyList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[e._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:e.blurWeight},model:{value:e.create.temp.oneweight,callback:function(t){e.$set(e.create.temp,"oneweight",t)},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:e.blurWeight},model:{value:e.create.temp.twoweight,callback:function(t){e.$set(e.create.temp,"twoweight",t)},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:e.blurWeight},model:{value:e.create.temp.threeweight,callback:function(t){e.$set(e.create.temp,"threeweight",t)},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:e.blurWeight},model:{value:e.create.temp.fourweight,callback:function(t){e.$set(e.create.temp,"fourweight",t)},expression:"create.temp.fourweight"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第一层比例 (%):"}},[a("span",[e._v(e._s(e.create.temp.onerate))]),a("span",[e._v(e._s(e.create.temp.onerange))])])],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第二层比例 (%):"}},[a("span",[e._v(e._s(e.create.temp.tworate))]),a("span",[e._v(e._s(e.create.temp.tworange))])])],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第三层比例 (%):"}},[a("span",[e._v(e._s(e.create.temp.threerate))]),a("span",[e._v(e._s(e.create.temp.threerange))])])],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"第四层比例 (%):"}},[a("span",[e._v(e._s(e.create.temp.fourrate))]),a("span",[e._v(e._s(e.create.temp.fourrange))])])],1)],1),a("el-row",[a("el-col",{attrs:{span:24}},[a("h3",{staticStyle:{width:"150px","text-align":"right"}},[e._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:e.blurEmp},model:{value:e.create.temp.emp,callback:function(t){e.$set(e.create.temp,"emp",t)},expression:"create.temp.emp"}},e._l(e.create.noteTakerList,(function(e,t){return a("el-option",{key:e.myId,attrs:{label:e.emp,value:e.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"==e.create.dialogStatus,type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.changeOperatetime},model:{value:e.create.temp.operatetime,callback:function(t){e.$set(e.create.temp,"operatetime",t)},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:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},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(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.createDataAgain()}}},[e._v("确认新增")]):e._e(),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("b0c0"),a("b680"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"PennsylvaniaSieve",components:{Pagination:c["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getBarListEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid")}},{name:"getSysoptEnable",offset:0,pagecount:0,parammaps:{pastureid:n.a.get("pastureid"),inforname:"times"}}],houseNameList:[],frequencyList:[],table:{getdataListParm:{name:"getPennsieveList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",times:"",startTime:"",stopTime:"",inputDatetime:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",oneweight:"",twoweight:"",threeweight:"",fourweight:"",onerate:"",tworate:"",threerate:"",fourrate:"",tworange:"",threerange:"",fourrange:"",remark:"",ccid:"",ccname:""},rules:{barid:[{type:"string",required:!0,message:"必填",trigger:"blur"}],times:[{type:"string",required:!0,message:"必填",trigger:"blur"}],oneweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],twoweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],threeweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}],fourweight:[{type:"string",required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getPennsieveEmpHis",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid")}},getdataListParm2:{name:"getPennsieveRange",page:1,offset:1,pagecount:1,returntype:"Map",parammaps:{pastureid:n.a.get("pastureid"),barid:"",date:""}},noteTakerList:[]},textMap:{create:"新增",update:"编辑"},requestParam:{},isokDisable:!1,selectList:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="PennsylvaniaSieve",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){if(e.houseNameList=t.data.getBarListEnable.list,null!==t.data.getSysoptEnable.list)for(var a=1;a<=t.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="第四班"),e.frequencyList.push(i)}else e.frequencyList=[]}))},handleBefore:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()-1)),t=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(e,t),this.$forceUpdate()}},handleNext:function(){if(""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime){var e=new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate()+1)),t=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(e,t),this.$forceUpdate()}},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.startTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.stopTime=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.barid="",this.table.getdataListParm.parammaps.times="",this.table.getdataListParm.parammaps.startTime="",this.table.getdataListParm.parammaps.stopTime="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={pastureid:n.a.get("pastureid"),operatetime:Object(o["e"])(new Date,"{y}-{m}-{d}"),emp:n.a.get("employename"),barid:"",barname:"",times:"",oneweight:"",twoweight:"",threeweight:"",fourweight:"",onerate:"",tworate:"",threerate:"",fourrate:"",tworange:"",threerange:"",fourrange:"",remark:"",ccid:"",ccname:""}},blurEmp:function(e){this.create.temp.emp=e.target.value},changeBar:function(e){this.create.temp.barname=this.houseNameList.find((function(t){return t.id===e})).bname,this.getRange()},changeOperatetime:function(){this.getRange()},getRange:function(){var e=this;this.create.getdataListParm2.parammaps.date=this.create.temp.operatetime,this.create.getdataListParm2.parammaps.barid=this.create.temp.barid,Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list?(e.create.temp.onerange=t.data.list[0].oneRange,e.create.temp.tworange=t.data.list[0].twoRange,e.create.temp.threerange=t.data.list[0].threeRange,e.create.temp.fourrange=t.data.list[0].fourRange,e.create.temp.ccid=t.data.list[0].ccid,e.create.temp.ccname=t.data.list[0].ccname):(e.create.temp.onerange="",e.create.temp.tworange="",e.create.temp.threerange="",e.create.temp.fourrange="",e.create.temp.ccid="",e.create.temp.ccname="")}))},getNoteTakerList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){if(null!==t.data.list){for(var a=0;a<t.data.list.length;a++)t.data.list[a].myId=a;e.create.noteTakerList=t.data.list,console.log("记录人数据",t.data.list),console.log(e.create.noteTakerList)}else e.create.noteTakerList=[]}))},blurWeight:function(){if(this.create.temp.oneweight&&this.create.temp.twoweight&&this.create.temp.threeweight&&this.create.temp.fourweight){var e=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)/e*100).toFixed(2),this.create.temp.tworate=(parseFloat(this.create.temp.twoweight)/e*100).toFixed(2),this.create.temp.threerate=(parseFloat(this.create.temp.threeweight)/e*100).toFixed(2),this.create.temp.fourrate=(100-this.create.temp.onerate-this.create.temp.tworate-this.create.temp.threerate).toFixed(2),this.create.temp.onerate=String(this.create.temp.onerate),this.create.temp.tworate=String(this.create.temp.tworate),this.create.temp.threerate=String(this.create.temp.threerate),this.create.temp.fourrate=String(this.create.temp.fourrate)}},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.getNoteTakerList(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.oneweight))||!a.test(parseFloat(e.create.temp.twoweight))||!a.test(parseFloat(e.create.temp.threeweight))||!a.test(parseFloat(e.create.temp.fourweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="insertPennsieve",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},createDataAgain:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.oneweight))||!a.test(parseFloat(e.create.temp.twoweight))||!a.test(parseFloat(e.create.temp.threeweight))||!a.test(parseFloat(e.create.temp.fourweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="insertPennsieve",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.resetTemp(),e.getList(),e.getNoteTakerList()):Object(r["l"])(t,e.$notify)}))}}))},handleUpdate:function(e){console.log("点击了编辑",e),e.barid=String(e.barid),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.getNoteTakerList(),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a=/^\d+(\.\d{1,2})?$/;if(!a.test(parseFloat(e.create.temp.oneweight))||!a.test(parseFloat(e.create.temp.twoweight))||!a.test(parseFloat(e.create.temp.threeweight))||!a.test(parseFloat(e.create.temp.fourweight)))return e.$message({type:"error",message:"重量不可小于0,最多保留俩位小数",duration:2e3}),!1;e.requestParam.name="updatePennsieve",e.requestParam.parammaps=e.create.temp,""==e.create.temp.emp&&(e.create.temp.emp=n.a.get("employename")),Object(r["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):Object(r["l"])(t,e.$notify)}))}}))},handleRowDelete:function(e){var t=this;console.log("点击了行内删除"),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.selectList=[],t.requestParam.name="deletePennsieve",t.requestParam.parammaps={},t.requestParam.parammaps.pastureid=e.pastureid,t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleSelectionChange:function(e){console.log("勾选数据",e),this.selectList=e},handleDelete:function(){var e=this;console.log("点击了删除"),0==this.selectList.length?this.$message({type:"error",message:"请选择宾州筛",duration:2e3}):d["MessageBox"].confirm("当前选中"+this.selectList.length+"条信息,是否删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){console.log(e.selectList),e.requestParam.common={returnmap:"0"},e.requestParam.data=[],e.requestParam.data[0]={name:"insertSpotList",resultmaps:{list:e.selectList}},e.requestParam.data[0].children=[],e.requestParam.data[0].children[0]={name:"deletePennsieve",type:"e",parammaps:{id:"@insertSpotList.id",pastureid:"@insertSpotList.pastureid"}},Object(r["b"])(e.requestParam).then((function(t){console.log("删除保存发送参数",e.requestParam),"fail"===t.msg?e.$notify({title:"删除失败",message:t.data,type:"warning",duration:2e3}):(e.$notify({title:"",message:"删除成功",type:"success",duration:2e3}),e.getList())}))}))},handleCopy:function(){var e=this;console.log("点击了复制"),0==this.selectList.length?this.$message({type:"error",message:"请选择宾州筛",duration:2e3}):1==this.selectList.length?d["MessageBox"].confirm("是否确认复制此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){e.requestParam.name="copyPennsieve",e.requestParam.parammaps={},e.requestParam.parammaps.pastureid=e.selectList[0].pastureid,e.requestParam.parammaps.id=e.selectList[0].id,Object(r["g"])(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:"已取消删除"})})):this.$message({type:"error",message:"请选择一条宾州筛",duration:2e3})},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("7c94"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"7a4e92cc",null);t["default"]=h.exports},e10f:function(e,t,a){},e178:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-粪便评分",use:"icon-粪便评分-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-粪便评分"><defs><style type="text/css"></style></defs><path d="M991.132668 303.109843a41.631954 41.631954 0 0 0-9.495008-29.945792L728.194009 13.146933A45.28388 45.28388 0 0 0 696.787447 0H75.960057a43.82311 43.82311 0 0 0-43.82311 43.82311v936.35378a43.82311 43.82311 0 0 0 43.82311 43.82311h526.607703a43.82311 43.82311 0 1 0 0-87.64622H119.783167V87.64622h503.235378v295.805991h281.198288v87.64622a43.82311 43.82311 0 0 0 87.64622 0c0-75.229672-0.730385-167.988588-0.730385-167.988588z m-280.467903-7.303852V121.243937l168.718973 174.562054z" fill="#ffffff" p-id="34218" /><path d="M582.116976 438.231098h-292.154066a43.82311 43.82311 0 0 0 0 87.64622h292.154066a43.82311 43.82311 0 0 0 0-87.64622zM582.116976 657.346648h-292.154066a43.82311 43.82311 0 0 0 0 87.646219h292.154066a43.82311 43.82311 0 1 0 0-87.646219zM935.623395 625.2097a44.553495 44.553495 0 0 0-59.161198 19.7204l-146.077033 292.154065a45.28388 45.28388 0 0 0 19.720399 59.161199 48.205421 48.205421 0 0 0 19.7204 4.382311 44.553495 44.553495 0 0 0 39.440799-24.102711l146.077033-292.154065a45.28388 45.28388 0 0 0-19.7204-59.161199z" fill="#ffffff" p-id="34219" /></symbol>'});l.a.add(n);t["default"]=n},e1b4:function(e,t,a){"use strict";var i=a("c9ab"),s=a.n(i);s.a},e1ca:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"miniAdd",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("新增事件")]):e._e()],1),a("div",{staticClass:"search"},[a("tree-select",{staticStyle:{display:"inline-block"},attrs:{height:260,width:200,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:!1,"checked-keys":e.defaultCheckedKeys,"collapse-tags":""},on:{popoverHide:e.popoverHide},model:{value:e.eventClassId,callback:function(t){e.eventClassId=t},expression:"eventClassId"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"事件名称",clearable:""},model:{value:e.tableObj.getdataListParm.parammaps.eventName,callback:function(t){e.$set(e.tableObj.getdataListParm.parammaps,"eventName",t)},expression:"tableObj.getdataListParm.parammaps.eventName"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableObj.listLoading,expression:"tableObj.listLoading"}],key:e.tableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.tableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableObj.pageNum-1)*e.tableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"事件分类","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eventClass))])]}}])}),a("el-table-column",{attrs:{label:"事件名称","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eventName))])]}}])}),a("el-table-column",{attrs:{label:"事件备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.eventRemark))])]}}])}),a("el-table-column",{attrs:{label:"分配角色","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assignRole))])]}}])}),a("el-table-column",{attrs:{label:"是否显示至菜单","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleShowMenuChange(t.$index,t.row)}},model:{value:t.row.showMenu,callback:function(a){e.$set(t.row,"showMenu",a)},expression:"scope.row.showMenu"}})]}}])}),a("el-table-column",{attrs:{label:"是否启用","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{disabled:1==t.row.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniSee",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),a("el-button",{staticClass:"miniEdit",attrs:{icon:"el-icon-edit-outline"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]),a("el-button",{staticClass:"miniDelete",attrs:{icon:"el-icon-delete"},on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]),a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.handleRowRole(i)}}},[e._v("角色管理")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableObj.total>=0,expression:"tableObj.total>=0"}],attrs:{total:e.tableObj.total,page:e.tableObj.getdataListParm.offset,limit:e.tableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.tableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.tableObj.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"事件名称:",prop:"eventName"}},[a("el-input",{ref:"eventName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入事件名称",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.eventName,callback:function(t){e.$set(e.create.temp,"eventName",t)},expression:"create.temp.eventName"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"事件分类:",prop:"eventClassId"}},[a("tree-select",{attrs:{height:200,width:300,size:"small",data:e.parentClass,"default-props":e.defaultProps,"node-key":e.nodeKey,disabled:!1,"checked-keys":e.defaultCheckedKeys,"collapse-tags":""},on:{popoverHide:e.popoverHide},model:{value:e.eventClassId,callback:function(t){e.eventClassId=t},expression:"eventClassId"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"事件备注:",prop:"eventRemark"}},[a("el-input",{ref:"eventRemark",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:1.3,maxRows:4},placeholder:"请输入事件备注",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.calFormula,callback:function(t){e.$set(e.create.temp,"calFormula",t)},expression:"create.temp.calFormula"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"分配角色:",prop:"assignRoleId"}},[a("el-select",{ref:"assignRoleId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择字段格式",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.fieldTypeId,callback:function(t){e.$set(e.create.temp,"fieldTypeId",t)},expression:"create.temp.fieldTypeId"}},e._l(e.assignRoleList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"是否启用",prop:"fieldLength"}},[a("el-switch",{attrs:{disabled:1==e.create.temp.NoEdit,"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(t){return e.handleEnableChange()}},model:{value:e.create.temp.enable,callback:function(t){e.$set(e.create.temp,"enable",t)},expression:"create.temp.enable"}})],1),a("el-col",{attrs:{span:12}})],1)],1),a("el-row",[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"字段管理",name:"first"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_fieldTable}},[e._v("添加字段")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.fieldTableObj.listLoading,expression:"fieldTableObj.listLoading"}],key:e.fieldTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.fieldTableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.fieldTableObj.pageNum-1)*e.fieldTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"字段名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fieldName))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"字段名称",clearable:""},model:{value:t.row.fieldNameId,callback:function(a){e.$set(t.row,"fieldNameId",a)},expression:"scope.row.fieldNameId"}},e._l(e.fieldTableObj.fieldNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"是否必填","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.isRequire))]):e._e(),t.row.Edit?a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.row.isRequireId,callback:function(a){e.$set(t.row,"isRequireId",a)},expression:"scope.row.isRequireId"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"数据来源","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.source))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"数据来源",clearable:""},model:{value:t.row.sourceId,callback:function(a){e.$set(t.row,"sourceId",a)},expression:"scope.row.sourceId"}},e._l(e.fieldTableObj.sourceList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"列表可见","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.listShow))]):e._e(),t.row.Edit?a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.row.listShowId,callback:function(a){e.$set(t.row,"listShowId",a)},expression:"scope.row.listShowId"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"详情页可见","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.detailListShow))]):e._e(),t.row.Edit?a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.row.detailListShowId,callback:function(a){e.$set(t.row,"detailListShowId",a)},expression:"scope.row.detailListShowId"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"显示分布","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.displayDist))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"显示分布",clearable:""},model:{value:t.row.displayDistId,callback:function(a){e.$set(t.row,"displayDistId",a)},expression:"scope.row.displayDistId"}},e._l(e.fieldTableObj.displayDistList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"字段类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fieldType))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.fieldType,callback:function(a){e.$set(t.row,"fieldType",a)},expression:"scope.row.fieldType"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"组件类型","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.compType))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.compType,callback:function(a){e.$set(t.row,"compType",a)},expression:"scope.row.compType"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"字段长度","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.fieldLength))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.fieldLength,callback:function(a){e.$set(t.row,"fieldLength",a)},expression:"scope.row.fieldLength"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"最小取值范围","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.minRange))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.minRange,callback:function(a){e.$set(t.row,"minRange",a)},expression:"scope.row.minRange"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"最大取值范围","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.maxRange))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.maxRange,callback:function(a){e.$set(t.row,"maxRange",a)},expression:"scope.row.maxRange"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"计算公式","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.calFormula))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.calFormula,callback:function(a){e.$set(t.row,"calFormula",a)},expression:"scope.row.calFormula"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_fieldTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{attrs:{type:"miniDelete"},on:{click:function(t){return e.create_fieldTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldTable(i)}}},[e._v("设置")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_fieldTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_fieldTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.fieldTableObj.total>=0,expression:"fieldTableObj.total>=0"}],attrs:{total:e.fieldTableObj.total,page:e.fieldTableObj.getdataListParm.offset,limit:e.fieldTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.fieldTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.fieldTableObj.getdataListParm,"pagecount",t)},pagination:e.get_fieldTable_list}})],1)]),a("el-tab-pane",{attrs:{label:"事件影响",name:"second"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_eventTable}},[e._v("添加事件影响")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.eventTableObj.listLoading,expression:"eventTableObj.listLoading"}],key:e.eventTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.eventTableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.eventTableObj.pageNum-1)*e.eventTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"事件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.eventName))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.eventName,callback:function(a){e.$set(t.row,"eventName",a)},expression:"scope.row.eventName"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"影响字段","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.influencefield))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"影响字段",clearable:""},model:{value:t.row.influencefieldId,callback:function(a){e.$set(t.row,"influencefieldId",a)},expression:"scope.row.influencefieldId"}},e._l(e.eventTableObj.influencefieldList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"影响方式","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.influencMode))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"影响方式",clearable:""},model:{value:t.row.influencModeId,callback:function(a){e.$set(t.row,"influencModeId",a)},expression:"scope.row.influencModeId"}},e._l(e.eventTableObj.influencModeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"变更值/状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.changeValue))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.changeValue,callback:function(a){e.$set(t.row,"changeValue",a)},expression:"scope.row.changeValue"}}):e._e(),t.row.Edit&&t.row.isStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"变更状态",clearable:""},model:{value:t.row.changeStatusId,callback:function(a){e.$set(t.row,"changeStatusId",a)},expression:"scope.row.changeStatusId"}},e._l(e.eventTableObj.changeStatusList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_eventTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{attrs:{type:"miniDelete"},on:{click:function(t){return e.create_eventTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_eventTable(i)}}},[e._v("设置")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_eventTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_eventTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_eventTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.eventTableObj.total>=0,expression:"eventTableObj.total>=0"}],attrs:{total:e.eventTableObj.total,page:e.eventTableObj.getdataListParm.offset,limit:e.eventTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.eventTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.eventTableObj.getdataListParm,"pagecount",t)},pagination:e.get_eventTable_list}})],1)]),a("el-tab-pane",{attrs:{label:"字段影响",name:"third"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_fieldInfluTable}},[e._v("添加字段影响")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.fieldInfluTableObj.listLoading,expression:"fieldInfluTableObj.listLoading"}],key:e.fieldInfluTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.fieldInfluTableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.fieldInfluTableObj.pageNum-1)*e.fieldInfluTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"影响字段","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.influencefield))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"影响字段",clearable:""},model:{value:t.row.influencefieldId,callback:function(a){e.$set(t.row,"influencefieldId",a)},expression:"scope.row.influencefieldId"}},e._l(e.eventTableObj.influencefieldList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"影响方式","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.influencMode))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"影响方式",clearable:""},model:{value:t.row.influencModeId,callback:function(a){e.$set(t.row,"influencModeId",a)},expression:"scope.row.influencModeId"}},e._l(e.eventTableObj.influencModeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"变更值/状态","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.changeValue))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.changeValue,callback:function(a){e.$set(t.row,"changeValue",a)},expression:"scope.row.changeValue"}}):e._e(),t.row.Edit&&t.row.isStatus?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"变更状态",clearable:""},model:{value:t.row.changeStatusId,callback:function(a){e.$set(t.row,"changeStatusId",a)},expression:"scope.row.changeStatusId"}},e._l(e.eventTableObj.changeStatusList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"字段 + 条件 + 值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.ifFieldArr,(function(t,i){return a("p",{key:i},[e._v(" "+e._s(t.ifField)+e._s(t.ifCondition)+e._s(t.ifValue)+" ")])}))}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_fieldInfluTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{attrs:{type:"miniDelete"},on:{click:function(t){return e.create_fieldInfluTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldInfluTable(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.set_fieldInfluTable_condition(i)}}},[e._v("设置条件组")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_fieldInfluTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldInfluTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_fieldInfluTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.fieldInfluTableObj.total>=0,expression:"fieldInfluTableObj.total>=0"}],attrs:{total:e.fieldInfluTableObj.total,page:e.fieldInfluTableObj.getdataListParm.offset,limit:e.fieldInfluTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.fieldInfluTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.fieldInfluTableObj.getdataListParm,"pagecount",t)},pagination:e.get_fieldInfluTable_list}})],1)]),a("el-tab-pane",{attrs:{label:"指标影响",name:"fouth"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_targetInfluTable}},[e._v("添加指标")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.targetInfluTableObj.listLoading,expression:"targetInfluTableObj.listLoading"}],key:e.targetInfluTableObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.targetInfluTableObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.targetInfluTableObj.pageNum-1)*e.targetInfluTableObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"指标名称","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.targetName))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.changeValue,callback:function(a){e.$set(t.row,"changeValue",a)},expression:"scope.row.changeValue"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"指标分类","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.targetClass))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"指标分类",clearable:""},model:{value:t.row.targetClassId,callback:function(a){e.$set(t.row,"targetClassId",a)},expression:"scope.row.targetClassId"}},e._l(e.eventTableObj.targetClassList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"指标颗粒度","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.targetParticleSize))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.targetParticleSize,callback:function(a){e.$set(t.row,"targetParticleSize",a)},expression:"scope.row.targetParticleSize"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_targetInfluTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{attrs:{type:"miniDelete"},on:{click:function(t){return e.create_targetInfluTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_targetInfluTable(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.set_targetInfluTable_condition(i)}}},[e._v("影响设置")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_targetInfluTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_targetInfluTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_targetInfluTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.targetInfluTableObj.total>=0,expression:"targetInfluTableObj.total>=0"}],attrs:{total:e.targetInfluTableObj.total,page:e.targetInfluTableObj.getdataListParm.offset,limit:e.targetInfluTableObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.targetInfluTableObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.targetInfluTableObj.getdataListParm,"pagecount",t)},pagination:e.get_targetInfluTable_list}})],1)])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"miniAdd",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:"角色管理",visible:e.create2.dialogFormVisible,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){return e.$set(e.create2,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp2",staticStyle:{width:"90%",margin:"0 auto 50px"},attrs:{rules:e.create2.rules,model:e.create2.temp,"label-position":"right","label-width":"150px"}},[a("el-row",[a("el-form-item",{attrs:{label:"角色列表:",prop:"typeIds"}},[a("el-checkbox-group",{model:{value:e.create2.temp.typeIdsArr,callback:function(t){e.$set(e.create2.temp,"typeIdsArr",t)},expression:"create2.temp.typeIdsArr"}},e._l(e.create2.roleNameList,(function(t){return a("el-checkbox",{key:t.id,attrs:{label:t.id},on:{change:e.changeChecked}},[e._v(e._s(t.name))])})),1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create2.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create2.dialogStatus?a("el-button",{staticClass:"miniAdd",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:"设置条件组",visible:e.fieldSetConditionObj.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.fieldSetConditionObj,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp2",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.fieldSetConditionObj.rules,model:e.fieldSetConditionObj.temp,"label-position":"right","label-width":"150px"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_fieldSetConditionTable}},[e._v("添加条件组")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.fieldSetConditionObj.listLoading,expression:"fieldSetConditionObj.listLoading"}],key:e.fieldSetConditionObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.fieldSetConditionObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.fieldSetConditionObj.pageNum-1)*e.fieldSetConditionObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"字段","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifField))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"字段",clearable:""},model:{value:t.row.ifFieldId,callback:function(a){e.$set(t.row,"ifFieldId",a)},expression:"scope.row.ifFieldId"}},e._l(e.fieldSetConditionObj.ifFieldList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifCondition))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"条件",clearable:""},model:{value:t.row.ifConditionId,callback:function(a){e.$set(t.row,"ifConditionId",a)},expression:"scope.row.ifConditionId"}},e._l(e.fieldSetConditionObj.ifConditionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifValue))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.ifValue,callback:function(a){e.$set(t.row,"ifValue",a)},expression:"scope.row.ifValue"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_fieldSetConditionTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.create_fieldSetConditionTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldSetConditionTable(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_fieldSetConditionTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldSetConditionTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_fieldSetConditionTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.fieldSetConditionObj.total>=0,expression:"fieldSetConditionObj.total>=0"}],attrs:{total:e.fieldSetConditionObj.total,page:e.fieldSetConditionObj.getdataListParm.offset,limit:e.fieldSetConditionObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.fieldSetConditionObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.fieldSetConditionObj.getdataListParm,"pagecount",t)},pagination:e.get_fieldSetConditionTable_list}})],1)]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.fieldSetConditionObj.dialogFormVisible=!1,e.get_fieldSetConditionTable_list()}}},[e._v("关闭")]),"create"===e.fieldSetConditionObj.dialogStatus||"update"===e.fieldSetConditionObj.dialogStatus?a("el-button",{staticClass:"miniAdd",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.fieldSetConditionObj.dialogStatus?e.create_fieldSetConditionTable_sure():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)]),a("el-dialog",{attrs:{title:"影响设置",visible:e.targetSetConditionObj.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.targetSetConditionObj,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp3",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.targetSetConditionObj.rules,model:e.fieldSetConditionObj.temp,"label-position":"right","label-width":"150px"}},[a("div",{staticClass:"table"},[a("el-button",{staticClass:"miniAdd",on:{click:e.create_fieldSetConditionTable}},[e._v("添加条件组")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.fieldSetConditionObj.listLoading,expression:"fieldSetConditionObj.listLoading"}],key:e.fieldSetConditionObj.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.fieldSetConditionObj.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.fieldSetConditionObj.pageNum-1)*e.fieldSetConditionObj.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"字段","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifField))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"字段",clearable:""},model:{value:t.row.ifFieldId,callback:function(a){e.$set(t.row,"ifFieldId",a)},expression:"scope.row.ifFieldId"}},e._l(e.fieldSetConditionObj.ifFieldList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"条件","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifCondition))]):e._e(),t.row.Edit?a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"条件",clearable:""},model:{value:t.row.ifConditionId,callback:function(a){e.$set(t.row,"ifConditionId",a)},expression:"scope.row.ifConditionId"}},e._l(e.fieldSetConditionObj.ifConditionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e()]}}])}),a("el-table-column",{attrs:{label:"值","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NoEdit?a("span",[e._v(e._s(t.row.ifValue))]):e._e(),t.row.Edit?a("el-input",{staticStyle:{width:"95%",padding:"10px 0"},model:{value:t.row.ifValue,callback:function(a){e.$set(t.row,"ifValue",a)},expression:"scope.row.ifValue"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.isCreate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.create_fieldSetConditionTable_save(i)}}},[e._v("保存")]):e._e(),i.isCreate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.create_fieldSetConditionTable_cancel(i)}}},[e._v("取消")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldSetConditionTable(i)}}},[e._v("编辑")]):e._e(),i.isUpdate?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.delete_fieldSetConditionTable(i)}}},[e._v("删除")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniEdit",on:{click:function(t){return e.edit_fieldSetConditionTable_save(i)}}},[e._v("保存")]):e._e(),i.isUpdateSave?a("el-button",{staticClass:"miniDelete",on:{click:function(t){return e.edit_fieldSetConditionTable_cancel(i)}}},[e._v("取消")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.fieldSetConditionObj.total>=0,expression:"fieldSetConditionObj.total>=0"}],attrs:{total:e.fieldSetConditionObj.total,page:e.fieldSetConditionObj.getdataListParm.offset,limit:e.fieldSetConditionObj.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.fieldSetConditionObj.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.fieldSetConditionObj.getdataListParm,"pagecount",t)},pagination:e.get_fieldSetConditionTable_list}})],1)]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.targetSetConditionObj.dialogFormVisible=!1,e.get_fieldSetConditionTable_list()}}},[e._v("关闭")]),"create"===e.targetSetConditionObj.dialogStatus||"update"===e.targetSetConditionObj.dialogStatus?a("el-button",{staticClass:"miniAdd",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.targetSetConditionObj.dialogStatus?e.create_fieldSetConditionTable_sure():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("c975"),a("a434"),a("b0c0"),a("2934")),l=a("a78e"),n=a.n(l),o=(a("ed08"),a("333d")),c=a("3de8"),d=a("5c96"),m={name:"EventManagement",components:{Pagination:o["a"],TreeSelect:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],url_add_table:"modifyTelvisit",url_edit_table:"modifyTelvisit",url_del_table:"modifyTelvisit",requestParams:[],assignRoleList:[{id:"角色1",name:"角色1"},{id:"角色2",name:"角色2"},{id:"角色3",name:"角色3"}],parentClass:[{NewName:"一级",checkNumber:"01",enable:1,eventClassId:1,haschildren:6,id:1,pid:-1,sort:0,typeCode:"01",typeName:"一级(01)",children:[{NewName:"电料",checkNumber:"01.01",enable:1,eventClassId:4,haschildren:4,id:4,pid:1,sort:null,typeCode:"01.01",typeName:"装载机(01.01)",children:[{NewName:"小型装载机",checkNumber:"01.01.01",enable:1,eventClassId:24,haschildren:0,id:24,pid:4,sort:null,typeCode:"01.01.01",typeName:"小型装载机(01.01.01)"},{NewName:"30装载机",checkNumber:"01.01.02",enable:1,eventClassId:25,haschildren:0,id:25,pid:4,sort:null,typeCode:"01.01.02",typeName:"30装载机(01.01.02)"}]},{NewName:"工具",checkNumber:"01.02",enable:1,eventClassId:5,haschildren:3,id:5,pid:1,sort:null,typeCode:"01.02",typeName:"叉车(01.02)",children:[{NewName:"电动叉车",checkNumber:"01.02.01",enable:1,eventClassId:28,haschildren:0,id:28,pid:5,sort:0,typeCode:"01.02.01",typeName:"电动叉车(01.02.01)"},{NewName:"柴油叉车",checkNumber:"01.02.02",enable:1,eventClassId:29,haschildren:0,id:29,pid:5,sort:null,typeCode:"01.02.02",typeName:"柴油叉车(01.02.02)"}]},{NewName:"水暖",checkNumber:"01.03",enable:1,eventClassId:6,haschildren:6,id:6,pid:1,sort:null,typeCode:"01.03",typeName:"饲喂车(01.03)",children:[{NewName:"17立方饲喂车",checkNumber:"01.03.01",enable:1,eventClassId:32,haschildren:0,id:32,pid:6,sort:null,typeCode:"01.03.01",typeName:"17立方饲喂车(01.03.01)"},{NewName:"18立方饲喂车",checkNumber:"01.03.02",enable:1,eventClassId:33,haschildren:0,id:33,pid:6,sort:null,typeCode:"01.03.02",typeName:"18立方饲喂车(01.03.02)"}]}]},{NewName:"二级",checkNumber:"02",enable:1,eventClassId:1,haschildren:6,id:2,pid:-1,sort:2,typeCode:"02",typeName:"二级(02)",children:[{NewName:"搅拌机",checkNumber:"02.01",enable:1,eventClassId:10,haschildren:3,id:10,pid:2,sort:null,typeCode:"02.01",typeName:"搅拌机(02.01)",children:[{NewName:"卧式搅拌机",checkNumber:"02.01.01",enable:1,eventClassId:47,haschildren:0,id:47,pid:10,sort:null,typeCode:"02.01.01",typeName:"卧式搅拌机(02.01.01)"},{NewName:"立式搅拌机",checkNumber:"02.01.02",enable:1,eventClassId:48,haschildren:0,id:48,pid:10,sort:0,typeCode:"02.01.02",typeName:"立式搅拌机(02.01.02)"}]},{NewName:"脱渣机",checkNumber:"02.02",enable:1,eventClassId:11,haschildren:4,id:11,pid:2,sort:null,typeCode:"02.02",typeName:"脱渣机(02.02)",children:[{NewName:"五辊脱渣机",checkNumber:"02.02.01",enable:1,eventClassId:51,haschildren:0,id:51,pid:11,sort:null,typeCode:"02.02.01",typeName:"五辊脱渣机(02.02.01)"},{NewName:"螺旋分离机",checkNumber:"02.02.02",enable:1,eventClassId:52,haschildren:0,id:52,pid:11,sort:null,typeCode:"02.02.02",typeName:"螺旋分离机(02.02.02)"},{NewName:"二次挤压机",checkNumber:"02.02.03",enable:1,eventClassId:53,haschildren:0,id:53,pid:11,sort:0,typeCode:"02.02.03",typeName:"二次挤压机(02.02.03)"},{NewName:"镜面分离机",checkNumber:"02.02.04",enable:1,eventClassId:1896,haschildren:0,id:1896,pid:11,sort:0,typeCode:"02.02.04",typeName:"镜面分离机(02.02.04)"}]}]}],defaultProps:{children:"children",label:"typeName"},nodeKey:"id",defaultCheckedKeys:[],eventClassId:1,tableObj:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{eventClassId:"",eventName:""}},tableKey:0,pageNum:1,pageSize:10,total:0,list:[{eventClass:"牛群/繁殖",eventClassId:1,eventRemark:"备注001",eventName:"配种",assignRole:"角色01、角色2、角色3",enable:1,id:1,isModify:"0"},{eventClass:"牛群/繁殖",eventClassId:1,eventRemark:"备注001",eventName:"配种",assignRole:"角色01、角色2、角色3",enable:1,id:1,isModify:"0"},{eventClass:"牛群/繁殖",eventClassId:1,eventRemark:"备注001",eventName:"配种",assignRole:"角色01、角色2、角色3",enable:1,id:1,isModify:"0"}],listLoading:!1,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{eventClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1},rules:{fieldClass:[{required:!0,message:"必填",trigger:"blur"}],fieldName:[{required:!0,message:"必填",trigger:"blur"}],fieldType:[{required:!0,message:"必填",trigger:"blur"}],compType:[{required:!0,message:"必填",trigger:"blur"}]}},create2:{dialogFormVisible:!1,dialogStatus:"",temp:{eventClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1},rules:{fieldClass:[{required:!0,message:"必填",trigger:"blur"}],fieldName:[{required:!0,message:"必填",trigger:"blur"}],fieldType:[{required:!0,message:"必填",trigger:"blur"}],compType:[{required:!0,message:"必填",trigger:"blur"}]},roleNameList:[{id:"角色1",name:"角色1"},{id:"角色2",name:"角色2"}]},textMap:{create:"新增",see:"查看",update:"编辑"},activeName:"first",fieldTableObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",fieldTableObjName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{fieldName:"字段名称",fieldNameId:"牛号1",isRequireId:1,isRequire:"是",sourceId:"录入1",source:"录入",listShowId:1,listShow:"是",detailListShowId:1,detailListShow:"是",displayDistId:1,fieldType:1,compType:1,fieldLength:1,minRange:1,maxRange:1,calFormula:1,Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1},{fieldName:"字段名称",fieldNameId:"牛号1",isRequireId:1,isRequire:"是",sourceId:"录入1",source:"录入",listShowId:1,listShow:"是",detailListShowId:1,detailListShow:"是",displayDistId:1,fieldType:1,compType:1,fieldLength:1,minRange:1,maxRange:1,calFormula:1,Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,fieldNameList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],sourceList:[{id:"录入1",name:"录入"},{id:"自动生成1",name:"自动生成"}],displayDistList:[{id:"1行1",name:"1行"},{id:"1/2行1",name:"1/2行"},{id:"1/4行1",name:"1/4行"}]},eventTableObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",fieldTableObjName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{eventName:"事件名称",influencefield:"牛号",influencefieldId:"牛号1",influencMode:"增加",influencModeId:"增加1",changeValue:"录入",changeStatus:"变更1",changeStatusId:"变更1",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,influencefieldList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],influencModeList:[{id:"增加1",name:"增加"},{id:"减少1",name:"减少"},{id:"变更1",name:"变更"}],changeStatusList:[{id:"变更1",name:"变更1"},{id:"变更2",name:"变更2"}]},fieldInfluTableObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",fieldTableObjName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{influencefield:"牛号",influencefieldId:"牛号1",influencMode:"增加",influencModeId:"增加1",changeStatus:"变更1",changeStatusId:"变更1",ifField:"字段",ifCondition:">",ifValue:"1",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1,ifFieldArr:[{ifField:"字段",ifCondition:">",ifValue:"1"},{ifField:"字段2",ifCondition:"=",ifValue:"3"}]}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,influencefieldList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],influencModeList:[{id:"增加1",name:"增加"},{id:"减少1",name:"减少"},{id:"变更1",name:"变更"}],changeStatusList:[{id:"变更1",name:"变更1"},{id:"变更2",name:"变更2"}]},fieldSetConditionObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",fieldTableObjName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{ifFieldId:"牛号1",ifField:"牛号",ifConditionId:"1",ifCondition:"大于",ifValue:"值1",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,ifFieldList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],ifConditionList:[{id:"1",name:"大于"},{id:"2",name:"等于"},{id:"3",name:"小于"}]},targetInfluTableObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",fieldTableObjName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{influencefield:"牛号",influencefieldId:"牛号1",influencMode:"增加",influencModeId:"增加1",changeStatus:"变更1",changeStatusId:"变更1",ifField:'字段+"\n"+zi',ifCondition:">",ifValue:"1",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,influencefieldList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],influencModeList:[{id:"增加1",name:"增加"},{id:"减少1",name:"减少"},{id:"变更1",name:"变更"}],changeStatusList:[{id:"变更1",name:"变更1"},{id:"变更2",name:"变更2"}]},targetSetConditionObj:{dialogFormVisible:!1,dialogStatus:"",temp:{id:"",fieldTableObjName:"",telephone:"",address:"",remark:""},rules:{},getdataListParm:{name:"getfieldTableObjs",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{customerId:""}},list:[{ifFieldId:"牛号1",ifField:"牛号",ifConditionId:"1",ifCondition:"大于",ifValue:"值1",Edit:!1,NoEdit:!0,isCreate:!1,isUpdate:!0,isUpdateSave:!1}],listLoading:!1,tableKey:0,pageNum:1,pageSize:10,total:0,ifFieldList:[{id:"牛号1",name:"牛号"},{id:"产犊日期2",name:"产犊日期"},{id:"产犊方式1",name:"产犊方式"}],ifConditionList:[{id:"1",name:"大于"},{id:"2",name:"等于"},{id:"3",name:"小于"}]},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){},methods:{getButtons:function(){var e="telephoneFollow",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){Object(r["e"])(this.requestParams).then((function(e){}))},getList:function(){var e=this;this.tableObj.listLoading=!0,console.log("查询表格:",this.tableObj.getdataListParm),Object(r["d"])(this.tableObj.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(e.tableObj.list=t.data.list,e.tableObj.pageNum=t.data.pageNum,e.tableObj.pageSize=t.data.pageSize,e.tableObj.total=t.data.total):e.tableObj.list=[],setTimeout((function(){e.tableObj.listLoading=!1}),100)}))},handleSearch:function(){console.log("查询表格参数:",this.tableObj.getdataListParm),this.tableObj.getdataListParm.offset=1},handleRefresh:function(){console.log("重置"),this.tableObj.getdataListParm.parammaps.customerName="",this.tableObj.getdataListParm.parammaps.telVisitCode="",this.tableObj.getdataListParm.parammaps.customerId="",this.tableObj.getdataListParm.parammaps.groupId="",this.tableObj.getdataListParm.parammaps.visiterId="",this.tableObj.getdataListParm.parammaps.receiverName="",this.tableObj.getdataListParm.parammaps.typeIds="",this.tableObj.getdataListParm.parammaps.statusId="",this.tableObj.getdataListParm.parammaps.beginDate="",this.tableObj.getdataListParm.parammaps.endDate="",this.tableObj.getdataListParm.parammaps.inputDatetime="",this.tableObj.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={eventClassId:"",fieldName:"",fieldType:"",compType:"",fieldLength:"",minRange:"",maxRange:"",calFormula:"",id:"",modifyName:"add",enable:1}},handleEnableChange:function(){console.log("点击了是否启用")},handleShowMenuChange:function(){console.log("点击了是否启用")},popoverHide:function(e,t){console.log("树形多级选择",e,t),this.create.temp.eventClassId=t.id,this.tableObj.getdataListParm.parammaps.eventClassId=t.id},handleCreate:function(){console.log("新增=====>"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("新增保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="add",e.create.temp.id="",e.create.temp.createrId=n.a.get("employeid");var a={common:{returnmap:"0"},data:[{name:"insertfieldTableObjsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,fieldTableObjName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:e.url_add_table,resultmaps:{list:[e.create.temp]},children:[{name:"insertTelvisit",type:"e",parammaps:{customerId:"@insertTelvisit.customerId",groupId:"@insertTelvisit.groupId",tdate:"@insertTelvisit.tdate",visiterId:"@insertTelvisit.visiterId",receiverId:"@insertTelvisit.receiverId",receiverId2:"@insertfieldTableObjsNew.LastInsertId",receiverTel:"@insertTelvisit.receiverTel",typeIds:"@insertTelvisit.typeIds",statusName:"@insertTelvisit.statusName",remark:"@insertTelvisit.remark",content:"@insertTelvisit.content",nextId:"@insertTelvisit.nextId",createrId:"@insertTelvisit.createrId",receiverChoose:"@insertTelvisit.receiverChoose"}}]}]};console.log("新增保存发送参数 ",a)}}))},handleRowRole:function(e){this.create2.dialogFormVisible=!0},changeChecked:function(e){this.create2.temp.typeIds=e,console.log("多选选中",this.create2.temp.typeIdsArr)},handleSee:function(e){console.log("查看=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("编辑=====>",e),this.create.temp=Object.assign({},e),this.create.temp.id=e.id,this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;console.log("编辑保存参数:",this.create.temp),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3);var a={common:{returnmap:"0"},data:[{name:"insertfieldTableObjsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,fieldTableObjName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateTelvisit",resultmaps:{list:[e.create.temp]},children:[{name:"updateTelvisit",type:"e",parammaps:{tdate:"@updateTelvisit.tdate",visiterId:"@updateTelvisit.visiterId",receiverId:"@updateTelvisit.receiverId",receiverId2:"@insertfieldTableObjsNew.LastInsertId",receiverTel:"@updateTelvisit.receiverTel",typeIds:"@updateTelvisit.typeIds",statusName:"@updateTelvisit.statusName",remark:"@updateTelvisit.remark",content:"@updateTelvisit.content",nextId:"@insertTelvisit.nextId",receiverChoose:"@insertTelvisit.receiverChoose",id:"@insertTelvisit.id"}}]}]};console.log("编辑保存发送参数 ",a),0==e.create.temp.typeIdsArr.length?e.$notify({title:"失败",message:"回访类型必选!"+response.data,type:"error",duration:2e3}):Object(r["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;console.log("删除=====>",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){var a={name:t.url_del_table,parammaps:{id:e.id}};Object(r["g"])(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.getList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},handleClick:function(e,t){console.log(e,t)},get_fieldTable_list:function(){var e=this;this.fieldTableObj.listLoading=!0,Object(r["d"])(this.fieldTableObj.getdataListParm).then((function(t){if(console.log("table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.fieldTableObj.list=t.data.list,e.fieldTableObj.pageNum=t.data.pageNum,e.fieldTableObj.pageSize=t.data.pageSize,e.fieldTableObj.total=t.data.total}else e.fieldTableObj.list=[];setTimeout((function(){e.fieldTableObj.listLoading=!1}),100)}))},create_fieldTable:function(){console.log("字段管理 - 新增");for(var e=0;e<this.fieldTableObj.list.length;e++)if(console.log(this.fieldTableObj.list[e].Edit),console.log(this.fieldTableObj.list[e].NoEdit),1==this.fieldTableObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldTableObj.list.unshift({fieldName:"字段名称",fieldNameId:"牛号1",isRequireId:1,isRequire:"是",sourceId:"录入1",source:"录入",listShowId:1,listShow:"是",detailListShowId:1,detailListShow:"是",displayDistId:1,fieldType:1,compType:1,fieldLength:1,minRange:1,maxRange:1,calFormula:1,Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_fieldTable_save:function(e){console.log("字段管理 - 新增保存",e)},create_fieldTable_cancel:function(e){console.log("字段管理 - 新增取消",e);for(var t=0;t<this.fieldTableObj.list.length;t++){if(e.myId===this.fieldTableObj.list[t].myId)var a=this.fieldTableObj.list.indexOf(this.fieldTableObj.list[t]);if(a>-1)return void this.fieldTableObj.list.splice(a,1)}},edit_fieldTable:function(e){console.log("字段管理 - 编辑",e);for(var t=0;t<this.fieldTableObj.list.length;t++)if(1==this.fieldTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},edit_fieldTable_save:function(e){var t=this;console.log("字段管理 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_fieldTable_cancel:function(e){console.log("字段管理 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_fieldTable:function(e){var t=this;console.log("字段管理 - 删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},get_eventTable_list:function(){var e=this;this.eventTableObj.listLoading=!0,Object(r["d"])(this.eventTableObj.getdataListParm).then((function(t){if(console.log("字段管理table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.eventTableObj.list=t.data.list,e.eventTableObj.pageNum=t.data.pageNum,e.eventTableObj.pageSize=t.data.pageSize,e.eventTableObj.total=t.data.total}else e.eventTableObj.list=[];setTimeout((function(){e.eventTableObj.listLoading=!1}),100)}))},create_eventTable:function(){console.log("事件管理 - 新增");for(var e=0;e<this.eventTableObj.list.length;e++)if(console.log(this.eventTableObj.list[e].Edit),console.log(this.eventTableObj.list[e].NoEdit),1==this.eventTableObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.eventTableObj.list.unshift({eventName:"事件名称",influencefield:"牛号",influencefieldId:"牛号1",influencMode:"增加",influencModeId:"增加1",changeValue:"录入",changeStatus:"变更1",changeStatusId:"变更1",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_eventTable_save:function(e){console.log("事件管理 - 新增保存",e)},create_eventTable_cancel:function(e){console.log("事件管理 - 新增取消",e);for(var t=0;t<this.eventTableObj.list.length;t++){if(e.myId===this.eventTableObj.list[t].myId)var a=this.eventTableObj.list.indexOf(this.eventTableObj.list[t]);if(a>-1)return void this.eventTableObj.list.splice(a,1)}},edit_eventTable:function(e){console.log("事件管理 - 编辑",e);for(var t=0;t<this.eventTableObj.list.length;t++)if(1==this.eventTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},edit_eventTable_save:function(e){var t=this;console.log("字段管理 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_eventTable_cancel:function(e){console.log("字段管理 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_eventTable:function(e){var t=this;console.log("事件管理 - 删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},get_fieldInfluTable_list:function(){var e=this;this.fieldInfluTableObj.listLoading=!0,Object(r["d"])(this.fieldInfluTableObj.getdataListParm).then((function(t){if(console.log("字段影响table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.fieldInfluTableObj.list=t.data.list,e.fieldInfluTableObj.pageNum=t.data.pageNum,e.fieldInfluTableObj.pageSize=t.data.pageSize,e.fieldInfluTableObj.total=t.data.total}else e.fieldInfluTableObj.list=[];setTimeout((function(){e.fieldInfluTableObj.listLoading=!1}),100)}))},create_fieldInfluTable:function(){console.log("字段影响 - 新增");for(var e=0;e<this.fieldInfluTableObj.list.length;e++)if(console.log(this.fieldInfluTableObj.list[e].Edit),console.log(this.fieldInfluTableObj.list[e].NoEdit),1==this.fieldInfluTableObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldInfluTableObj.list.unshift({influencefield:"牛号",influencefieldId:"牛号1",influencMode:"增加",influencModeId:"增加1",changeStatus:"变更1",changeStatusId:"变更1",ifField:'字段+"\n"+zi',ifCondition:">",ifValue:"1",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_fieldInfluTable_save:function(e){console.log("字段影响 - 新增保存",e)},create_fieldInfluTable_cancel:function(e){console.log("事件管理 - 新增取消",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++){if(e.myId===this.fieldInfluTableObj.list[t].myId)var a=this.fieldInfluTableObj.list.indexOf(this.eventTableObj.list[t]);if(a>-1)return void this.fieldInfluTableObj.list.splice(a,1)}},edit_fieldInfluTable:function(e){console.log("字段影响 - 编辑",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++)if(1==this.fieldInfluTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},set_fieldInfluTable_condition:function(e){console.log("事件管理 - 设置条件组",e);for(var t=0;t<this.fieldInfluTableObj.list.length;t++)if(1==this.fieldInfluTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldSetConditionObj.dialogFormVisible=!0},edit_fieldInfluTable_save:function(e){var t=this;console.log("字段管理 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_fieldInfluTable_cancel:function(e){console.log("字段管理 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_fieldInfluTable:function(e){var t=this;console.log("事件管理 - 删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},get_fieldSetConditionTable_list:function(){var e=this;this.fieldSetConditionObj.listLoading=!0,Object(r["d"])(this.fieldSetConditionObj.getdataListParm).then((function(t){if(console.log("字段管理table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.fieldSetConditionObj.list=t.data.list,e.fieldSetConditionObj.pageNum=t.data.pageNum,e.fieldSetConditionObj.pageSize=t.data.pageSize,e.fieldSetConditionObj.total=t.data.total}else e.fieldSetConditionObj.list=[];setTimeout((function(){e.fieldSetConditionObj.listLoading=!1}),100)}))},create_fieldSetConditionTable:function(){console.log("设置条件组 - 新增");for(var e=0;e<this.fieldSetConditionObj.list.length;e++)if(console.log(this.fieldSetConditionObj.list[e].Edit),console.log(this.fieldSetConditionObj.list[e].NoEdit),1==this.fieldSetConditionObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.fieldSetConditionObj.list.unshift({ifFieldId:"牛号1",ifField:"牛号",ifConditionId:"1",ifCondition:"大于",ifValue:"值1",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_fieldSetConditionTable_save:function(e){console.log("设置条件组 - 新增保存",e)},create_fieldSetConditionTable_cancel:function(e){console.log("设置条件组 - 新增取消",e);for(var t=0;t<this.fieldSetConditionObj.list.length;t++){if(e.myId===this.fieldSetConditionObj.list[t].myId)var a=this.fieldSetConditionObj.list.indexOf(this.fieldSetConditionObj.list[t]);if(a>-1)return void this.fieldSetConditionObj.list.splice(a,1)}},edit_fieldSetConditionTable:function(e){console.log("设置条件组 - 编辑",e);for(var t=0;t<this.fieldSetConditionObj.list.length;t++)if(1==this.fieldSetConditionObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},edit_fieldSetConditionTable_save:function(e){var t=this;console.log("设置条件组 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_fieldSetConditionTable_cancel:function(e){console.log("设置条件组 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_fieldSetConditionTable:function(e){var t=this;console.log("事件管理 - 删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},create_fieldSetConditionTable_sure:function(){console.log("新增保存参数:",this.create.temp)},get_targetInfluTable_list:function(){var e=this;this.targetInfluTableObj.listLoading=!0,Object(r["d"])(this.targetInfluTableObj.getdataListParm).then((function(t){if(console.log("指标影响table数据",t.data.list),null!==t.data.list){for(var a=0;a<t.data.list.length;a++)e.$set(t.data.list[a],"Edit",!1),e.$set(t.data.list[a],"NoEdit",!0),e.$set(t.data.list[a],"isCreate",!1),e.$set(t.data.list[a],"isUpdate",!0),e.$set(t.data.list[a],"isUpdateSave",!1);e.targetInfluTableObj.list=t.data.list,e.targetInfluTableObj.pageNum=t.data.pageNum,e.targetInfluTableObj.pageSize=t.data.pageSize,e.targetInfluTableObj.total=t.data.total}else e.targetInfluTableObj.list=[];setTimeout((function(){e.targetInfluTableObj.listLoading=!1}),100)}))},create_targetInfluTable:function(){console.log("指标影响 - 新增");for(var e=0;e<this.targetInfluTableObj.list.length;e++)if(console.log(this.targetInfluTableObj.list[e].Edit),console.log(this.targetInfluTableObj.list[e].NoEdit),1==this.eventTableObj.list[e].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;this.targetInfluTableObj.list.unshift({eventName:"事件名称",influencefield:"牛号",influencefieldId:"牛号1",influencMode:"增加",influencModeId:"增加1",changeValue:"录入",changeStatus:"变更1",changeStatusId:"变更1",Edit:!0,NoEdit:!1,isCreate:!0,isUpdate:!1,isUpdateSave:!1})},create_targetInfluTable_save:function(e){console.log("指标影响 - 新增保存",e)},create_targetInfluTable_cancel:function(e){console.log("指标影响 - 新增取消",e);for(var t=0;t<this.targetInfluTableObj.list.length;t++){if(e.myId===this.targetInfluTableObj.list[t].myId)var a=this.targetInfluTableObj.list.indexOf(this.eventTableObj.list[t]);if(a>-1)return void this.targetInfluTableObj.list.splice(a,1)}},edit_targetInfluTable:function(e){console.log("指标影响 - 编辑",e);for(var t=0;t<this.targetInfluTableObj.list.length;t++)if(1==this.targetInfluTableObj.list[t].Edit)return this.$message({type:"error",message:"当前内容未保存,请点击取消或保存继续进行操作",duration:2e3}),!1;e.Edit=!0,e.NoEdit=!1,e.isCreate=!1,e.isUpdate=!1,e.isUpdateSave=!0},edit_targetInfluTable_save:function(e){var t=this;console.log("指标影响 - 编辑保存",e),this.isokDisable=!0,setTimeout((function(){t.isokDisable=!1}),1e3)},edit_targetInfluTable_cancel:function(e){console.log("指标影响 - 编辑取消",e),e.Edit=!1,e.NoEdit=!0,e.isCreate=!1,e.isUpdate=!0,e.isUpdateSave=!1},delete_targetInfluTable:function(e){var t=this;console.log("指标影响 - 删除",e),d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delfieldTableObjs"})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},set_targetInfluTable_condition:function(e){},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("e430"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"22aa1a90",null);t["default"]=h.exports},e1eb:function(e,t,a){},e28b:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;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:e.table.getdataListParm.parammaps.feedid,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"feedid",t)},expression:"table.getdataListParm.parammaps.feedid"}},e._l(e.feedNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.fname,value:e.id}})})),1),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"饲料名称","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.feedname))])]}}])}),a("el-table-column",{attrs:{label:"批号","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pcpde))])]}}])}),a("el-table-column",{attrs:{label:"当前库存重量(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.stockweight))])]}}])}),a("el-table-column",{attrs:{label:"金额(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sumprice))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",attrs:{disabled:e.isokDisable},on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.see.dialogStatus],visible:e.see.dialogFormVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){return e.$set(e.see,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-see"},[a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.see.activeName,callback:function(t){e.$set(e.see,"activeName",t)},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:e.see.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.see.getdataListParm.parammaps,"inputDatetime",t)},expression:"see.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch1}},[e._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.see.listLoading,expression:"see.listLoading"}],key:e.see.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.see.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.see.pageNum-1)*e.see.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"入库日期","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.laiddate))])]}}])}),a("el-table-column",{attrs:{label:"操作重量(kg)","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.operateweight))])]}}])}),a("el-table-column",{attrs:{label:"金额(元)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(" "+e._s(t.row.sumprice))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.see.total>=0,expression:"see.total>=0"}],staticStyle:{"margin-bottom":"50px"},attrs:{total:e.see.total,page:e.see.getdataListParm.offset,limit:e.see.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.see.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.see.getdataListParm,"pagecount",t)},pagination:e.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:e.see.getdataListParm2.parammaps.usetype,callback:function(t){e.$set(e.see.getdataListParm2.parammaps,"usetype",t)},expression:"see.getdataListParm2.parammaps.usetype"}},e._l(e.deliveryTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.see.getdataListParm2.parammaps.inputDatetime,callback:function(t){e.$set(e.see.getdataListParm2.parammaps,"inputDatetime",t)},expression:"see.getdataListParm2.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch2}},[e._v("查询")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.see.listLoading2,expression:"see.listLoading2"}],key:e.see.tableKey2,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.see.list2,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.see.pageNum2-1)*e.see.pageSize2+1))])]}}])}),a("el-table-column",{attrs:{label:"出库日期","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.usedate))])]}}])}),a("el-table-column",{attrs:{label:"出库类型","min-width":"130px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.usetype))])]}}])}),a("el-table-column",{attrs:{label:"牲畜类别","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(" "+e._s(t.row.cowclass))])]}}])}),a("el-table-column",{attrs:{label:"操作重量(kg)","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(" "+e._s(t.row.operateweight))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.see.total2>=0,expression:"see.total2>=0"}],staticStyle:{"margin-bottom":"50px"},attrs:{total:e.see.total2,page:e.see.getdataListParm2.offset,limit:e.see.getdataListParm2.pagecount},on:{"update:page":function(t){return e.$set(e.see.getdataListParm2,"offset",t)},"update:limit":function(t){return e.$set(e.see.getdataListParm2,"pagecount",t)},pagination:e.getSeeList2}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.see.dialogFormVisible=!1}}},[e._v("关闭")])],1)],1)])],1)},s=[],r=(a("b0c0"),a("2934")),l=a("333d"),n=a("a78e"),o=a.n(n),c=a("ed08"),d={name:"Statistics",components:{Pagination:l["a"]},data:function(){return{isRoleEdit:[],requestParams:[{name:"getFeedListEnable",offset:0,pagecount:0,parammaps:{pastureid:o.a.get("pastureid")}},{name:"getDictByNameUse",offset:0,pagecount:0,params:["人工用量操作类型"]}],feedNameList:[],deliveryTypeList:[],table:{getdataListParm:{name:"getFeedstorageList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:o.a.get("pastureid"),feedid:""}},tableKey:0,list:[],total:0,listLoading:!0},textMap:{see:"库存"},see:{dialogFormVisible:!1,dialogStatus:"",temp:{},rules:{},getdataListParm:{name:"getFsLaidList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",feedid:"",inputDatetime:"",startTime:"",stopTime:""}},tableKey:0,list:[],total:0,listLoading:!0,activeName:"first",getdataListParm2:{name:"getFsUseList",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{pastureid:"",feedid:"",inputDatetime:"",startTime:"",stopTime:"",usetype:""}},tableKey2:0,list2:[],total2:0,listLoading2:!0},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getButtons(),this.getDownList(),this.getList()},methods:{getButtons:function(){var e="Statistics",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.feedNameList=t.data.getFeedListEnable.list,e.deliveryTypeList=t.data.getDictByNameUse.list}))},getList:function(){var e=this;this.table.listLoading=!0,Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.offset=1,this.table.getdataListParm.parammaps.feedid=""},handleSee:function(e){this.see.dialogStatus="see",this.see.dialogFormVisible=!0,this.see.list=[],this.see.getdataListParm.offset=1,this.see.getdataListParm2.offset=1,this.see.getdataListParm.parammaps.pastureid=e.pastureid,this.see.getdataListParm.parammaps.feedid=e.feedid,this.see.getdataListParm2.parammaps.pastureid=e.pastureid,this.see.getdataListParm2.parammaps.feedid=e.feedid,this.see.activeName="first",this.getSeeList(),this.getSeeList2()},getSeeList:function(){var e=this;this.see.listLoading=!0,Object(r["d"])(this.see.getdataListParm).then((function(t){console.log("table数据",t.data.list),null!==t.data.list?(e.see.list=t.data.list,e.see.pageNum=t.data.pageNum,e.see.pageSize=t.data.pageSize,e.see.total=t.data.total):e.see.list=[],setTimeout((function(){e.see.listLoading=!1}),100)}))},getSeeList2:function(){var e=this;this.see.listLoading2=!0,Object(r["d"])(this.see.getdataListParm2).then((function(t){console.log("table数据2",t.data.list),null!==t.data.list?(e.see.list2=t.data.list,e.see.pageNum2=t.data.pageNum,e.see.pageSize2=t.data.pageSize,e.see.total2=t.data.total):e.see.list2=[],setTimeout((function(){e.see.listLoading2=!1}),100)}))},handleTabClick:function(e){"first"===e.name?this.getSeeList():"second"===e.name&&this.getSeeList2()},handleSearch1:function(){console.log("点击了库存入库记录查询"),""!==this.see.getdataListParm.parammaps.inputDatetime&&null!==this.see.getdataListParm.parammaps.inputDatetime?(this.see.getdataListParm.parammaps.startTime=Object(c["e"])(this.see.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.see.getdataListParm.parammaps.stopTime=Object(c["e"])(this.see.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.see.getdataListParm.parammaps.inputDatetime="",this.see.getdataListParm.parammaps.startTime="",this.see.getdataListParm.parammaps.stopTime=""),this.getSeeList()},handleSearch2:function(){console.log("点击了库存出库记录查询"),""!==this.see.getdataListParm2.parammaps.inputDatetime&&null!==this.see.getdataListParm2.parammaps.inputDatetime?(this.see.getdataListParm2.parammaps.startTime=Object(c["e"])(this.see.getdataListParm2.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.see.getdataListParm2.parammaps.stopTime=Object(c["e"])(this.see.getdataListParm2.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.see.getdataListParm2.parammaps.inputDatetime="",this.see.getdataListParm2.parammaps.startTime="",this.see.getdataListParm2.parammaps.stopTime=""),this.getSeeList2()}}},m=d,p=(a("15b1"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,"fcdae9c8",null);t["default"]=u.exports},e42e:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},e430:function(e,t,a){"use strict";var i=a("3a18"),s=a.n(i);s.a},e4fd:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:{"overflow-y":"auto",height:e.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:e.$t("common.dataSource")+":"}},[a("el-select",{staticStyle:{width:"200px"},attrs:{size:"mini",filterable:"",placeholder:e.$t("dataSource.sourcePlaceholder"),clearable:""},on:{change:e.handleBaseChange},model:{value:e.selectedBase,callback:function(t){e.selectedBase=t},expression:"selectedBase"}},e._l(e.baseList,(function(e,t){return a("el-option",{key:e.source_id,attrs:{label:e.base_alias||e.database,value:e.source_id}})})),1)],1),a("el-form-item",{attrs:{label:"数据类型:"}},[a("el-radio-group",{on:{change:e.handleDataSrcChange},model:{value:e.selectedTable,callback:function(t){e.selectedTable=t},expression:"selectedTable"}},[a("el-radio-button",{attrs:{label:"trainnumber"}},[e._v("车次")]),a("el-radio-button",{attrs:{label:"barroport"}},[e._v("栏舍")])],1)],1),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{label:e.$t("dataSource.table")+":"}},[a("span",{staticStyle:{"font-size":"12px","margin-right":"5px"}},[e._v(e._s(e.selectedTableName))]),a("el-button",{attrs:{type:"text",size:"mini"},on:{click:e.editDataSrc}},[e._v(" "+e._s(e.$t("common.edit"))+" ")])],1),a("el-form-item",{attrs:{label:e.$t("dataSource.fields")+":"}},["edit"==e.isEdit?a("draggable",{directives:[{name:"loading",rawName:"v-loading",value:e.schemaLoading,expression:"schemaLoading"}],attrs:{group:{name:"col",pull:"clone",put:!1},move:e.handleMove},model:{value:e.tableSchema,callback:function(t){e.tableSchema=t},expression:"tableSchema"}},e._l(e.tableSchema,(function(t){return a("div",{key:t.Column,staticClass:"drag-list-item"},[a("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"12px",color:"#409EFF"}}),e._v(" "+e._s(t.Comment)+" ")])})),0):e._e(),e._l(e.tableSchema,(function(t){return"view"==e.isEdit?a("div",{key:t.Column,staticClass:"drag-list-item"},[a("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"12px",color:"#409EFF"}}),e._v(" "+e._s(t.Comment)+" ")]):e._e()}))],2)],1)],1)},s=[];a("99af"),a("7db0"),a("d81d"),a("1c1e");var r=a("2934"),l=a("310e"),n=a.n(l),o=(a("f77d"),a("3537")),c={components:{draggable:n.a},props:{resultLoading:{default:!1},dataSrc:{requred:!0},isEdit:""},watch:{isEdit:function(e){console.log("isEdit:",e),this.isEdit=e}},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 e=this,t=this.baseList.find((function(t){return t.source_id===e.selectedBase}));return t?t.base_alias||t.database:""},selectedTableName:function(){var e=this,t=this.tableList.find((function(t){return t.table===e.selectedTable}));return t?t.table_alias||t.table:""}},created:function(){console.log("this.dataSrc",this.dataSrc),console.log("height",document.documentElement.clientHeight);var e=document.documentElement.clientHeight-260;this.htSize=e},methods:{get_table_list:function(){var e=this,t={name:"getTABLESV2",page:1,offset:1};Object(r["d"])(t).then((function(t){console.log("tableList数据",t.data.list),null!==t.data.list?e.tableList=t.data.list:e.tableList=[]}))},initWithDataSrc:function(e){console.log("dataSrc:",e),e?(this.selectedTable=e.table,this.selectedBase=e.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(e){console.log("selectedTable:",this.selectedTable),this.dataSrcVisible=!1,this.fetchSchema(),o["a"].setAllColsAction([]),this.$emit("change",{table:this.selectedTable,source_id:this.selectedBase})},fetchSchema:function(){var e=this;console.log("selectedTable:",this.selectedTable),this.schemaLoading=!0;var t={name:"getColumnName",page:1,offset:1,returntype:"Map",parammaps:{table_name:this.selectedTable}};Object(r["d"])(t).then((function(t){console.log("字段数据:",t.data.list),null!==t.data.list?(e.schemaLoading=!1,e.tableSchema=t.data.list.map((function(e,t){return{Column:e.Field,Type:e.Type,id:t,Comment:e.Comment}})),o["a"].setAllColsAction(e.tableSchema)):e.tableSchema=[],console.log("tableSchema数据:",e.tableSchema)}))},handleMove:function(e,t){var a=this;if(this.allSelected.find((function(t){return t.Column===e.draggedContext.element.Column})))return this.existWarning||(this.existWarning=this.$message({type:"warning",message:this.$t("chart.fieldExisted"),onClose:function(e){a.existWarning=null}})),!1}}},d=c,m=(a("2905"),a("2877")),p=Object(m["a"])(d,i,s,!1,null,"17d36c52",null);t["default"]=p.exports},e5c3:function(e,t,a){"use strict";var i=a("a7bf"),s=a.n(i);s.a},e6bf:function(e,t,a){"use strict";var i=a("55c5"),s=a.n(i);s.a},e7b5:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 添加 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","header-row-style":e.headStyle,"row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"部门名称","header-align":"center",width:"300px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:e._f("menutypeFilter")(t.row.menutype),size:"small"}},[a("span",[e._v(e._s(t.row.dname))])])]}}])}),a("el-table-column",{attrs:{label:"备注",width:"300px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"顺序",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"上级部门",prop:"parentid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:200,size:"small",data:e.parent,"default-props":e.defaultProps,clearable:"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1),a("el-form-item",{attrs:{label:"部门名称",prop:"dname"}},[a("el-input",{ref:"dname",model:{value:e.deptform.dname,callback:function(t){e.$set(e.deptform,"dname",t)},expression:"deptform.dname"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{ref:"remark",model:{value:e.deptform.remark,callback:function(t){e.$set(e.deptform,"remark",t)},expression:"deptform.remark"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.deptform.sort,callback:function(t){e.$set(e.deptform,"sort",t)},expression:"deptform.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("a4d3"),a("e01a"),a("d28b"),a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("3de8")),l=a("6724"),n=a("61f7"),o=a("2934"),c=a("5c96"),d={name:"DepartmentManagement",components:{TreeSelect:r["a"]},directives:{waves:l["a"]},filters:{menutypeFilter:function(e){var t={menu:"",button:"warning"};return t[e]}},data:function(){return{disabled:!1,tableKey:0,list:[{deptname:"公司",id:1,parentid:-1,remark:""}],parent:[],parentmenu:[],parentButton:[],listLoading:!0,requestParam:{name:"createdept",parammaps:{}},deptform:{id:"",dname:"",remark:"",sort:"",parentid:"",enable:"1"},getListParm:{name:"getDepartments"},getRecuListParm:{name:"getDepartmentCascade"},getRecuListBParm:{name:"getMenuListBRecu",idname:"id",parammaps:{id:0}},rules:{dname:[{type:"string",required:!0,message:"部门名称必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px",fontSize:"16px"},headStyle:{padding:"0px",fontSize:"16px",fontWeight:"bold",color:"#333"},defaultProps:{children:"children",label:"title"},nodeKey:"id",defaultCheckedKeys:[]}},created:function(){this.getList(),this.getDownList()},methods:{popoverHide:function(e,t){this.deptform.parentid=e},getList:function(){var e=this;this.listLoading=!0,Object(o["d"])(this.getListParm).then((function(t){if(null!==t.data.list){console.log(e.list,"-----------------");for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.list=Object(o["t"])(t.data.list,"id","parentid","children")}setTimeout((function(){e.listLoading=!1}),500)}))},getDownList:function(){var e=this;Object(o["d"])(this.getRecuListParm).then((function(t){null!==t.data.list&&(e.parentmenu=Object(o["t"])(t.data.list,"id","parentid","children"))}))},refreshDownList:function(){var e=!0,t=!1,a=void 0;try{for(var i,s=this.parentmenu[Symbol.iterator]();!(e=(i=s.next()).done);e=!0){var r=i.value;this.parent=[],this.parent.push({id:r.id,title:r.title,parentid:r.parentid})}}catch(l){t=!0,a=l}finally{try{e||null==s.return||s.return()}finally{if(t)throw a}}},resetRequestParam:function(){this.deptform.id="",this.deptform.parentid="0",this.deptform.dname="",this.deptform.remark="",this.deptform.sort="0",this.deptform.enable=1},handleCreate:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.parent=this.parentmenu,this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertDepartments",""===e.deptform.parentid&&(e.deptform.parentid="0"),e.requestParam.parammaps={id:"",dname:e.deptform.dname,remark:e.deptform.remark,sort:e.deptform.sort,parentId:e.deptform.parentid,enable:e.deptform.enable},Object(o["g"])(e.requestParam).then((function(t){console.log("新增保存发送参数",e.requestParam),"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.dialogFormVisible=!1,e.getList(),e.getDownList()):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleUpdate:function(e){var t=this;this.parent=this.parentmenu,console.log("row=====>",e),this.defaultCheckedKeys=[e.parentid],console.log(this.defaultCheckedKeys),this.deptform.parentid=e.parentid,this.deptform.dname=e.dname,this.deptform.remark=e.remark,this.deptform.sort=e.sort,this.deptform.id=e.id,this.deptform.enable=e.enable,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateDepartments",e.requestParam.parammaps={id:e.deptform.id,dname:e.deptform.dname,remark:e.deptform.remark,sort:e.deptform.sort,parentId:e.deptform.parentid,enable:e.deptform.enable},console.log(e.requestParam),Object(o["g"])(e.requestParam).then((function(t){console.log("编辑保存发送参数",e.requestParam),"fail"!==t.msg?(e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):e.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateDepartments",this.requestParam.parammaps={id:t.id,dname:t.dname,remark:t.remark,sort:t.sort,parentId:t.parentid,enable:t.enable},Object(o["g"])(this.requestParam).then((function(e){console.log("编辑保存发送参数",a.requestParam),"fail"!==e.msg?(a.getList(),a.dialogFormVisible=!1,a.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3})):a.$notify({title:"失败",message:"保存失败",type:"error",duration:2e3})}))},handleDelete:function(e){var t=this;c["MessageBox"].confirm("确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delDepartments",t.requestParam.parammaps={id:e.id},Object(o["g"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},m=d,p=(a("7897"),a("2877")),u=Object(p["a"])(m,i,s,!1,null,null,null);t["default"]=u.exports},e871:function(e,t,a){},e917:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container common-list-page"},[a("el-form",{ref:"temp",attrs:{model:e.temp,rules:e.rules,"status-icon":"","label-width":"100px"}},[a("el-form-item",{attrs:{label:"旧密码:",prop:"oldpassword"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.oldpassword,callback:function(t){e.$set(e.temp,"oldpassword",t)},expression:"temp.oldpassword"}})],1),a("el-form-item",{attrs:{label:"新密码:",prop:"password"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.password,callback:function(t){e.$set(e.temp,"password",t)},expression:"temp.password"}})],1),a("el-form-item",{attrs:{label:"确认密码:",prop:"password1"}},[a("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.temp.password1,callback:function(t){e.$set(e.temp,"password1",t)},expression:"temp.password1"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.toAmend(t)}}},[e._v("确认修改")])],1)],1)],1)},s=[],r=(a("b0c0"),a("d3b7"),a("25f0"),a("96cf"),a("1da1")),l=a("2934"),n={name:"Changpwd",data:function(){var e=this,t=function(e,t,a){t?t.toString().length<6||t.toString().length>18?a(new Error("密码长度为6-18位")):a():a(new Error("请输入旧密码"))},a=function(e,t,a){console.log(t),t?t.toString().length<6||t.toString().length>18?a(new Error("密码长度为6-18位")):a():a(new Error("请输入新密码"))},i=function(t,a,i){""===a?i(new Error("请再次输入密码")):a!==e.temp.password?i(new Error("两次输入密码不一致!")):i()};return{resetForm:{name:"updatePwd",returntype:"Map",parammaps:{password:"",username:this.$store.state.user.name}},temp:{},rules:{oldpassword:[{required:!0,validator:t,trigger:"blur"}],password:[{required:!0,validator:a,trigger:"blur"}],password1:[{required:!0,validator:i,trigger:"blur"}]}}},methods:{toAmend:function(){var e=this;console.log(111),this.$refs["temp"].validate((function(t){t&&(e.resetForm.parammaps.password=e.temp.password,e.resetForm.parammaps.username=e.$store.state.user.name,Object(l["g"])(e.resetForm).then((function(t){"fail"===t.msg?e.$notify({title:"失败",message:"修改失败",type:"danger",duration:2e3}):(setTimeout((function(){}),1e3),e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})),console.log(t)})))}))},logout:function(){return Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}}},o=n,c=(a("e6bf"),a("2877")),d=Object(c["a"])(o,i,s,!1,null,"4717d425",null);t["default"]=d.exports},e9bc:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1"}},[a("router-view")],1)],1)},s=[],r=a("2877"),l={},n=Object(r["a"])(l,i,s,!1,null,null,null);t["default"]=n.exports},ea01:function(e,t,a){"use strict";var i=a("9cd8"),s=a.n(i);s.a},eb1b:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},ed08:function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return l})),a.d(t,"d",(function(){return n})),a.d(t,"f",(function(){return c}));a("4160"),a("a630"),a("c975"),a("a15b"),a("baa5"),a("d81d"),a("fb6a"),a("b64b"),a("d3b7"),a("4d63"),a("ac1f"),a("25f0"),a("6062"),a("3ca3"),a("466d"),a("5319"),a("1276"),a("159b"),a("ddb0");var i=a("53ca");function s(e,t){if(0===arguments.length)return null;var a,s=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(e)?a=e:("string"===typeof e&&/^[0-9]+$/.test(e)&&(e=parseInt(e)),"number"===typeof e&&10===e.toString().length&&(e*=1e3),a=new Date(e));var r={y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate(),h:a.getHours(),i:a.getMinutes(),s:a.getSeconds(),a:a.getDay()},l=s.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var a=r[t];return"a"===t?["日","一","二","三","四","五","六"][a]:(e.length>0&&a<10&&(a="0"+a),a||0)}));return l}function r(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var a=new Date(e),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天前":t?s(e,t):a.getMonth()+1+"月"+a.getDate()+"日"+a.getHours()+"时"+a.getMinutes()+"分"}function l(e,t,a){var i,s,r,l,n,o=function o(){var c=+new Date-l;c<t&&c>0?i=setTimeout(o,t-c):(i=null,a||(n=e.apply(r,s),i||(r=s=null)))};return function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];r=this,l=+new Date;var m=a&&!i;return i||(i=setTimeout(o,t)),m&&(n=e.apply(r,c),r=c=null),n}}function n(e,t,i,s){Promise.all([a.e("chunk-4de06b78"),a.e("chunk-2d0cc0b6")]).then(a.bind(null,"4bf8")).then((function(a){var r=[],l=[],n=[];for(var c in e)r.push(e[c].tHeader),l.push(o(e[c].filterVal,e[c].tableDatas)),n.push(e[c].sheetName);a.export_json_to_excel2({header:r,data:l,sheetname:n,filename:t,autoWidth:i,bookType:s})}))}function o(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?s(t[e]):t[e]}))}))}function c(e){return new Promise((function(t){var a=new FileReader;a.readAsBinaryString(e),a.onload=function(e){t(e.target.result)}}))}},ed1c:function(e,t,a){},ed1f:function(e,t,a){"use strict";var i=a("8f59"),s=a.n(i);s.a},ed95:function(e,t,a){"use strict";var i=a("0bb7"),s=a.n(i);s.a},eddc:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","header-row-style":"padding: 0px;font-size:16px;font-weight:bold;color:#333;","row-style":e.rowStyle,"cell-style":"padding: 0px;font-size:16px;","row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"菜单名称","header-align":"center",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:e._f("menutypeFilter")(t.row.menutype),size:"small"}},[a("span",[e._v(e._s(t.row.name))])])]}}])}),a("el-table-column",{attrs:{label:"标题",width:"140px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.title))])]}}])}),a("el-table-column",{attrs:{label:"路径",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.path))])]}}])}),a("el-table-column",{attrs:{label:"组件","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.component))])]}}])}),a("el-table-column",{attrs:{label:"图标",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.icon))])]}}])}),a("el-table-column",{attrs:{label:"重定向",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.redirect))])]}}])}),a("el-table-column",{attrs:{label:"顺序",width:"100px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"上级菜单",prop:"parentid"}},[a("tree-select",{attrs:{disabled:e.disabled,height:280,width:200,size:"small",data:e.parent,"default-props":e.defaultProps,clearable:"","node-key":e.nodeKey,"checked-keys":e.defaultCheckedKeys},on:{popoverHide:e.popoverHide}})],1),a("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[a("el-input",{ref:"name",model:{value:e.deptform.name,callback:function(t){e.$set(e.deptform,"name",t)},expression:"deptform.name"}})],1),a("el-form-item",{attrs:{label:"类型",prop:"menutype"}},[a("el-radio-group",{ref:"menutype",on:{change:e.menutypechange},model:{value:e.deptform.menutype,callback:function(t){e.$set(e.deptform,"menutype",t)},expression:"deptform.menutype"}},[a("el-radio",{attrs:{label:"menu"}},[e._v("菜单")]),a("el-radio",{attrs:{label:"button"}},[e._v("按钮")])],1)],1),a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{ref:"title",model:{value:e.deptform.title,callback:function(t){e.$set(e.deptform,"title",t)},expression:"deptform.title"}})],1),a("el-form-item",{attrs:{label:"路径",prop:"path"}},[a("el-input",{ref:"path",model:{value:e.deptform.path,callback:function(t){e.$set(e.deptform,"path",t)},expression:"deptform.path"}})],1),"menu"===e.deptform.menutype?a("el-form-item",{attrs:{label:"组件",prop:"component"}},[a("el-input",{ref:"component",model:{value:e.deptform.component,callback:function(t){e.$set(e.deptform,"component",t)},expression:"deptform.component"}})],1):e._e(),"menu"===e.deptform.menutype?a("el-form-item",{attrs:{label:"图标",prop:"icon"}},[a("el-input",{ref:"icon",model:{value:e.deptform.icon,callback:function(t){e.$set(e.deptform,"icon",t)},expression:"deptform.icon"}})],1):e._e(),"menu"===e.deptform.menutype?a("el-form-item",{attrs:{label:"重定向",prop:"redirect"}},[a("el-input",{ref:"redirect",model:{value:e.deptform.redirect,callback:function(t){e.$set(e.deptform,"redirect",t)},expression:"deptform.redirect"}})],1):e._e(),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.deptform.sort,callback:function(t){e.$set(e.deptform,"sort",t)},expression:"deptform.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.createData_again()}}},[e._v(" 确认新增 ")]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("a4d3"),a("e01a"),a("d28b"),a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("3de8")),l=a("6724"),n=a("61f7"),o=a("2934"),c=a("5c96"),d={name:"Menu",components:{TreeSelect:r["a"]},directives:{waves:l["a"]},filters:{menutypeFilter:function(e){var t={menu:"",button:"warning"};return t[e]}},data:function(){return{disabled:!1,tableKey:0,list:[{deptname:"公司",id:1,parentid:-1,remark:""}],parent:[],parentmenu:[],parentButton:[],listLoading:!0,requestParam:{name:"createdept",params:[]},deptform:{id:"",name:"",title:"",path:"",component:"",icon:"",redirect:"",sort:"",parnetid:"",menutype:"",enable:""},getListParm:{name:"getMenuAndButtonRecu"},getRecuListParm:{name:"getMenuListRecu"},getRecuListBParm:{name:"getMenuListBRecu",idname:"id",parammaps:{id:-2}},rules:{name:[{type:"string",required:!0,message:"菜单名称必填",trigger:"change"}],title:[{type:"string",required:!0,message:"菜单标题必填",trigger:"change"}],path:[{type:"string",required:!0,message:"路径必填",trigger:"change"}],component:[{type:"string",required:!0,message:"组件必填",trigger:"change"}],sort:[{validator:n["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"编辑",create:"新增"},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"},defaultProps:{children:"children",label:"title"},nodeKey:"id",defaultCheckedKeys:[]}},created:function(){this.getList()},methods:{popoverHide:function(e,t){this.deptform.parentid=e},menutypechange:function(){"menu"===this.deptform.menutype?this.parent=this.parentmenu:this.parent=this.parentButton},getList:function(){var e=this;this.listLoading=!0,Object(o["d"])(this.getListParm).then((function(t){if(null!==t.data.list){console.log(e.list,"-----------------");for(var a=0;a<t.data.list.length;a++)t.data.list[a].enable=parseInt(t.data.list[a].enable);e.list=Object(o["t"])(t.data.list,"id","parentid","children")}e.getDownList(),setTimeout((function(){e.listLoading=!1}),500)}))},getDownList:function(){var e=this;Object(o["d"])(this.getRecuListParm).then((function(t){null!==t.data.list&&(e.parentmenu=Object(o["t"])(t.data.list,"id","parentid","children"))}))},refreshDownList:function(){var e=!0,t=!1,a=void 0;try{for(var i,s=this.parentmenu[Symbol.iterator]();!(e=(i=s.next()).done);e=!0){var r=i.value;this.parent=[],("noredirect"===r.redirect&&"menu"===this.deptform.menutype||"button"===this.deptform.menutype)&&this.parent.push({id:r.id,title:r.title,parentid:r.parentid})}}catch(l){t=!0,a=l}finally{try{e||null==s.return||s.return()}finally{if(t)throw a}}},resetRequestParam:function(){this.deptform.id="",this.deptform.parentid="-1",this.deptform.name="",this.deptform.title="",this.deptform.path="",this.deptform.component="Layout",this.deptform.icon="",this.deptform.redirect="",this.deptform.sort="0",this.deptform.menutype="",this.deptform.enable="1"},handleCreate:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.parent=this.parentmenu,this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs.name.focus()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createMenu",e.requestParam.params=[],""===e.deptform.parentid&&(e.deptform.parentid="-1"),e.requestParam.params[0]=e.deptform.parentid,e.requestParam.params[1]=e.deptform.name,e.requestParam.params[2]=e.deptform.title,e.requestParam.params[3]=e.deptform.path,e.requestParam.params[4]=e.deptform.component,e.requestParam.params[5]=e.deptform.icon,e.requestParam.params[6]=e.deptform.redirect,e.requestParam.params[7]=e.deptform.sort,e.requestParam.params[8]=e.deptform.menutype,e.requestParam.params[9]=e.deptform.enable,Object(o["g"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createMenu",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.parentid,e.requestParam.params[1]=e.deptform.name,e.requestParam.params[2]=e.deptform.title,e.requestParam.params[3]=e.deptform.path,e.requestParam.params[4]=e.deptform.component,e.requestParam.params[5]=e.deptform.icon,e.requestParam.params[6]=e.deptform.redirect,e.requestParam.params[7]=e.deptform.sort,e.requestParam.params[8]=e.deptform.menutype,e.requestParam.params[9]=e.deptform.enable,Object(o["g"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["name"].focus()})),e.getList(),e.requestParam={name:"createMenu",params:[]},e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(e){var t=this;this.defaultCheckedKeys=[e.parentid],this.deptform.parentid=e.parentid,this.deptform.name=e.name,this.deptform.title=e.title,this.deptform.path=e.path,this.deptform.component=e.component,this.deptform.icon=e.icon,this.deptform.redirect=e.redirect,this.deptform.sort=e.sort,this.deptform.id=e.id,this.deptform.menutype=e.menutype,this.deptform.enable=e.enable,this.dialogStatus="update",this.menutypechange(),this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["name"].focus()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateMenu",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.parentid,e.requestParam.params[1]=e.deptform.name,e.requestParam.params[2]=e.deptform.title,e.requestParam.params[3]=e.deptform.path,e.requestParam.params[4]=e.deptform.component,e.requestParam.params[5]=e.deptform.icon,e.requestParam.params[6]=e.deptform.redirect,e.requestParam.params[7]=e.deptform.sort,e.requestParam.params[8]=e.deptform.menutype,e.requestParam.params[9]=e.deptform.enable,e.requestParam.params[10]=e.deptform.id,console.log(e.requestParam),Object(o["g"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateMenu",this.requestParam.params=[],this.requestParam.params[0]=t.parentid,this.requestParam.params[1]=t.name,this.requestParam.params[2]=t.title,this.requestParam.params[3]=t.path,this.requestParam.params[4]=t.component,this.requestParam.params[5]=t.icon,this.requestParam.params[6]=t.redirect,this.requestParam.params[7]=t.sort,this.requestParam.params[8]=t.menutype,this.requestParam.params[9]=t.enable,this.requestParam.params[10]=t.id,Object(o["g"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(e){var t=this;c["MessageBox"].confirm("菜单名称:"+e.name,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteMenu",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(o["g"])(t.requestParam).then((function(){t.getList(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))}}},m=d,p=a("2877"),u=Object(p["a"])(m,i,s,!1,null,null,null);t["default"]=u.exports},edf9:function(e,t,a){"use strict";var i=a("1fb3"),s=a.n(i);s.a},ee3b:function(e,t,a){},ee81:function(e,t,a){},ef26:function(e,t,a){},ef81:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form-item",{attrs:{label:e.$t("chart.filters")}},[e._l(e.currentFilters,(function(t,i){return a("el-tag",{key:i,attrs:{closable:""},on:{close:function(t){return e.handleClosefilter(i)}}},[e._v(" "+e._s(t.value.chi_value)+" "+e._s(t.filterOperator)+" "+e._s(t.value.value1)+" ")])})),a("el-button",{staticStyle:{width:"150px"},attrs:{disabled:e.disabled,type:"primary",size:"mini"},on:{click:function(t){e.visible=!0}}},[e._v(" 添加筛选条件 ")]),a("el-dialog",{attrs:{visible:e.visible,width:"500px",title:"添加筛选条件","before-close":e.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:e.comment_change},model:{value:e.filteCol,callback:function(t){e.filteCol=t},expression:"filteCol"}},e._l(e.sharedState.allCols,(function(e,t){return a("el-option",{key:e.Column,attrs:{label:e.Comment,value:e.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:e.filterOperator,callback:function(t){e.filterOperator=t},expression:"filterOperator"}},e._l(e.filterOperatorOpts,(function(e,t){return a("el-option",{key:e.name,attrs:{label:e.name+" ("+e.operator+")",value:e.operator}})})),1)],1),-1===e.currentOperatorParamNum?a("el-form-item",{staticClass:"el-form-item",attrs:{label:e.$t("chart.comparedValue")}},[e._l(e.arrValue,(function(t,i){return a("el-tag",{key:i,attrs:{closable:""},on:{close:e.handleRemove}},[e._v(" "+e._s(t)+" ")])})),a("el-input",{staticStyle:{width:"220px"},attrs:{size:"mini",type:"text"},model:{value:e.value3,callback:function(t){e.value3=t},expression:"value3"}}),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v(" Add ")])],2):a("el-form-item",{staticClass:"el-form-item",attrs:{label:e.$t("chart.comparedValue")}},[a("el-input",{staticStyle:{width:"220px"},attrs:{size:"mini",type:"text"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}),a("span",{directives:[{name:"show",rawName:"v-show",value:2===e.currentOperatorParamNum,expression:"currentOperatorParamNum===2"}]},[e._v("~")]),a("el-input",{directives:[{name:"show",rawName:"v-show",value:2===e.currentOperatorParamNum,expression:"currentOperatorParamNum===2"}],staticStyle:{width:"220px"},attrs:{type:"text"},model:{value:e.value2,callback:function(t){e.value2=t},expression:"value2"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.visible=!1}}},[e._v("取消")]),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleConfirm}},[e._v("确认")])],1)],1)],2)},s=[],r=(a("7db0"),a("c740"),a("4160"),a("c975"),a("a15b"),a("d81d"),a("a434"),a("b0c0"),a("ac1f"),a("1276"),a("159b"),a("aa35")),l=a("a5e0"),n=a("3537"),o={props:{disabled:{default:!1},filters:{type:Array}},data:function(){return{visible:!1,filterOperatorOpts:Object(r["b"])(),filterStrs:[],filteCol:void 0,filterOperator:void 0,value1:void 0,value2:void 0,value3:void 0,arrValue:[],currentFilters:[],sharedState:n["a"].state,eng_value:"",chi_value:""}},computed:{currentOperatorParamNum:function(){var e=this,t=Object(r["b"])().find((function(t){return t.operator===e.filterOperator}));return t?t.paramNum:1},lang:function(){return this.$store.state.app.lang}},watch:{filters:{deep:!0,handler:function(e){this.currentFilters=e}},lang:function(e){this.filterOperatorOpts=Object(r["b"])()}},methods:{comment_change:function(e){console.log(e);var t=e,a="";this.sharedState.allCols.forEach((function(e){e.Column==t&&(a=e.Comment)})),this.chi_value=a,console.log("英文参数",t,"中文参数",a)},handleClose:function(){this.visible=!1},handleClosefilter:function(e){this.currentFilters.splice(e,1),this.handleSubmit()},handleEditFilter:function(e){this.visible=!0,this.filteCol=e.filteCol,this.filterOperator=e.filterOperator,this.value1=e.value.value1,this.value2=e.value.value2,this.arrValue=e.value.arrValue},handleAdd:function(){this.arrValue.push(this.value3),this.value3=void 0},handleRemove:function(e){this.arrValue.splice(this.arrValue.indexOf(e),1)},handleConfirm:function(){var e=this;if(this.filteCol&&this.filterOperator){var t={filteCol:this.filteCol,colType:this.sharedState.allCols.find((function(t){return t.Column===e.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(t){return t.filteCol===e.filteCol&&t.filterOperator===e.filterOperator}));a>=0?this.currentFilters.splice(a,1,t):this.currentFilters.push(t),this.handleSubmit()}else this.$message({type:"warning",message:this.$t("chart.filterCantBeEmpty")})},handleSubmit:function(){var e=this.currentFilters.map(l["a"]);this.$emit("change",e.join(" and ")),this.$emit("update: filters",this.currentFilters),this.visible=!1},generateFilterSentence:function(e){return Object(l["a"])(e)},operatorParamNum:function(e){var t=Object(r["b"])().find((function(t){return t.operator===e}));return t?t.paramNum:1},needQuotation:function(e){var t=this.sharedState.allCols.find((function(t){return t.Column===e})).Type;return t.indexOf("(")>=0?r["a"].find((function(e){return e.name===t.split("(")[0].toLowerCase()})).needQuotation:r["a"].find((function(e){return e.name===t.toLowerCase()})).needQuotation},addQuotation:function(e){return{value1:"'".concat(e.value1,"'"),value2:"'".concat(e.value2,"'"),chi_value:"'".concat(e.chi_value,"'"),arrValue:e.arrValue.map((function(e){return"'".concat(e,"'")}))}}}},c=o,d=(a("4c9e"),a("2877")),m=Object(d["a"])(c,i,s,!1,null,"1b49e068",null);t["default"]=m.exports},eff6:function(e,t,a){"use strict";var i=a("1ea7"),s=a.n(i);s.a},f09e:function(e,t,a){},f122:function(e,t,a){"use strict";var i=a("1e9f"),s=a.n(i);s.a},f12c:function(e,t,a){"use strict";var i=a("7974"),s=a.n(i);s.a},f1831:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"用户名"},model:{value:e.getdataListParm.parammaps.empCode,callback:function(t){e.$set(e.getdataListParm.parammaps,"empCode",t)},expression:"getdataListParm.parammaps.empCode"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"140px"},attrs:{placeholder:"姓名"},model:{value:e.getdataListParm.parammaps.empname,callback:function(t){e.$set(e.getdataListParm.parammaps,"empname",t)},expression:"getdataListParm.parammaps.empname"}}),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"用户名称","header-align":"center",width:"120px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.username))])]}}])}),a("el-table-column",{attrs:{label:"姓名","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.empname))])]}}])}),a("el-table-column",{attrs:{label:"部门","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.deptname))])]}}])}),a("el-table-column",{attrs:{label:"角色","min-width":"120px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.roleName))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sort))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"80px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){return e.handleRole(i)}}},[e._v(" 角色 ")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"80%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(i.empname))]),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(i.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"sort"}},[a("el-input",{ref:"sort",model:{value:e.dataform.sort,callback:function(t){e.$set(e.dataform,"sort",t)},expression:"dataform.sort"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisibleAdd,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisibleAdd=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.dataform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"职工名",prop:"empid"}},[a("el-autocomplete",{ref:"empid",staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"value-key":"empid","fetch-suggestions":e.formNameSearch,placeholder:"请输入内容"},on:{select:e.handleformNameSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("div",{staticClass:"name",staticStyle:{display:"inline"}},[e._v("姓名: "+e._s(i.empname))]),a("span",{staticClass:"addr"},[e._v(" 职位:"+e._s(i.position))])]}}]),model:{value:e.dataform.empname,callback:function(t){e.$set(e.dataform,"empname",t)},expression:"dataform.empname"}})],1),a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{ref:"username",model:{value:e.dataform.username,callback:function(t){e.$set(e.dataform,"username",t)},expression:"dataform.username"}})],1),a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{filterable:"",multiple:"",placeholder:"请选择"},model:{value:e.dataform.selectedRole,callback:function(t){e.$set(e.dataform,"selectedRole",t)},expression:"dataform.selectedRole"}},e._l(e.rolelist,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.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:e.dataform.enable,callback:function(t){e.$set(e.dataform,"enable",t)},expression:"dataform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.createData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisibleAdd=!1}}},[e._v(" 关闭 ")])],1)],1),a("el-dialog",{attrs:{title:e.textMap["role"],visible:e.dialogRoleVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogRoleVisible=t}}},[a("el-form",{staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色",prop:"rolename"}},[a("el-select",{staticStyle:{width:"500px"},attrs:{filterable:"",multiple:"",placeholder:"请选择"},model:{value:e.selectedRole,callback:function(t){e.selectedRole=t},expression:"selectedRole"}},e._l(e.rolelist,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateRole()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogRoleVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])},s=[],r=(a("b0c0"),a("d3b7"),a("4d63"),a("ac1f"),a("25f0"),a("ddb0"),a("6724")),l=a("61f7"),n=a("2934"),o=a("333d"),c=a("5c96"),d=a("a78e"),m=a.n(d),p={name:"User",components:{Pagination:o["a"]},directives:{waves:r["a"]},data:function(){return{tableKey:0,list:[{sqlname:"",id:0,sqlstr:""}],total:0,listLoading:!0,requestParam:{name:"createapisql",offset:0,pagecount:0,params:[]},requestParams:[{name:"getRoleall",offset:0,pagecount:0,parammaps:{pastureid:m.a.get("pastureid")}},{name:"getEmpall",offset:0,pagecount:0,params:[]}],requestFilterParams:{returntype:"Map",parammaps:{}},UpdateDataRelationParam:{name:"",dataname:"",datavalue:"",valuename:"",values:[]},dataform:{empname:"",position:"",username:"",fullname:"",empid:"",id:"",sort:"",enable:1,selectedRole:""},temp1:{empname:"",empid:"",position:""},rolelist:[],emplist:[],getdataListParm:{name:"getuserallL",offset:1,pagecount:10,returntype:"Map",parammaps:{pastureId:m.a.get("pastureid"),empCode:"",empname:""}},rules:{empid:[{required:!0,message:"用户名必填",trigger:"blur"}],username:[{type:"string",required:!0,message:"用户名必填",trigger:"change"}],empname:[{type:"string",required:!0,message:"职工名必填",trigger:"change"}],sort:[{validator:l["b"],trigger:"blur"}]},dialogFormVisible:!1,dialogRoleVisible:!1,selectedRole:"",dialogStatus:"",textMap:{update:"编辑",create:"新增",role:"选择角色"},dialogFormVisibleAdd:!1,postDataPramas:{},rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{deptenter:function(){var e=this;this.$nextTick((function(){e.$refs["remark"].focus()}))},getList:function(){var e=this;this.listLoading=!0,Object(n["e"])(this.requestParams).then((function(t){e.rolelist=t.data.getRoleall.list,e.emplist=t.data.getEmpall.list,Object(n["d"])(e.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.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 e=this,t=[],a=0;a<this.dataform.selectedRole.length;a++){var i={};this.$set(i,"role_id",this.dataform.selectedRole[a]),t.push(i)}this.dataform.selectedRole=t,console.log(this.dataform),this.$refs["dataForm"].validate((function(t){if(t){if(e.dataform.selectedRole.length<=0)return e.$message({type:"warning",message:"请检查角色是否未填写",duration:2e3}),!1;e.postDataPramas.common={returnmap:"0"},e.postDataPramas.data=[],e.postDataPramas.data[0]={name:"createUser",type:"e",parammaps:{username:e.dataform.username,empid:e.dataform.empid,sort:"0",enable:e.dataform.enable}},e.postDataPramas.data[1]={name:"insertSpotList",resultmaps:{list:e.dataform.selectedRole}},e.postDataPramas.data[1].children=[],e.postDataPramas.data[1].children[0]={name:"insertUserRole",type:"e",parammaps:{user_id:"@createUser.LastInsertId",role_id:"@insertSpotList.role_id"}},Object(n["b"])(e.postDataPramas).then((function(t){if(console.log("新增保存发送参数",e.postDataPramas),"fail"===t.msg){var a=new RegExp("username");a.test(t.data)?e.$notify({title:"",message:"该用户名称已存在",type:"warning",duration:2e3}):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}else e.dialogFormVisibleAdd=!1,e.getList(),e.$notify({title:"",message:"保存成功",type:"success",duration:2e3})}))}}))},createData_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="createUser",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.username,e.requestParam.params[1]=e.dataform.empid,e.requestParam.params[2]=e.dataform.sort,e.requestParam.params[3]=e.dataform.enable,Object(n["g"])(e.requestParam).then((function(t){if("fail"!==t.msg)e.getList(),e.resetRequestParam(),e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3});else{var a=new RegExp("username");a.test(t.data)?e.$notify({title:"",message:"该用户名称已存在",type:"warning",duration:2e3}):e.$notify({title:"失败",message:t.data,type:"warning",duration:2e3})}})))}))},handleRole:function(e){var t=this;this.requestParam.name="getRoleByUser",this.requestParam.params=[],this.requestParam.params[0]=e.id,this.requestParam.pagecount=0,this.requestParam.returntype="list",this.dataform.id=e.id,this.dialogRoleVisible=!0,Object(n["d"])(this.requestParam).then((function(e){t.selectedRole=e.data.lists.role_id}))},updateRole:function(){var e=this;this.UpdateDataRelationParam.name="user_role",this.UpdateDataRelationParam.dataname="user_id",this.UpdateDataRelationParam.datavalue=this.dataform.id,this.UpdateDataRelationParam.valuename="role_id",this.UpdateDataRelationParam.values=this.selectedRole,Object(n["h"])(this.UpdateDataRelationParam).then((function(){e.dialogRoleVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3}),e.getList()}))},handleUpdate:function(e){var t=this;this.dataform.id=e.id,this.dataform.username=e.username,this.dataform.empid=e.empid,this.dataform.sort=e.sort,this.dataform.enable=e.enable,this.dataform.empname=e.empname,this.dataform.position=e.position,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateUser",e.requestParam.params=[],e.requestParam.params[0]=e.dataform.username,e.requestParam.params[1]=e.dataform.empid,e.requestParam.params[2]=e.dataform.sort,e.requestParam.params[3]=e.dataform.enable,e.requestParam.params[4]=e.dataform.id,Object(n["g"])(e.requestParam).then((function(){e.$nextTick((function(){e.getList(),e.resetRequestParam()})),e.dialogFormVisible=!1})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateUser",this.requestParam.params=[],this.requestParam.params[0]=t.username,this.requestParam.params[1]=t.empid,this.requestParam.params[2]=t.sort,this.requestParam.params[3]=t.enable,this.requestParam.params[4]=t.id,Object(n["g"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(e){var t=this;c["MessageBox"].confirm("确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteUser",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(n["g"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))}))},formNameSearch:function(e,t){this.requestFilterParams.name="userSolr",this.requestFilterParams.parammaps["pastureId"]=this.$store.state.user.pastureid,this.requestFilterParams.parammaps["empname"]=e,Object(n["d"])(this.requestFilterParams).then((function(e){t(e.data.list)}))},handleformNameSelect:function(e){this.dataform.username=e.empCode,this.dataform.empid=e.id,this.$set(this.dataform,"empname",e.empname),this.$set(this.dataform,"position",e.position)}}},u=p,h=a("2877"),g=Object(h["a"])(u,i,s,!1,null,null,null);t["default"]=g.exports},f21d:function(e,t,a){},f39b:function(e,t,a){},f51c:function(e,t,a){},f764:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-铲车管理",use:"icon-铲车管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-铲车管理"><defs><style type="text/css"></style></defs><path d="M590.060308 320.708923c7.640615 0 14.099692 5.671385 15.596307 13.193846l0.315077 3.347693v137.767384h0.118154l127.803077 133.001846 76.918154-80.029538v-32.019692c0-43.401846 32.334769-79.044923 73.294769-82.195693l5.907692-0.236307h54.86277c5.907692 0 11.224615 3.347692 13.902769 8.585846l1.142154 2.756923 63.330461 202.161231a16.659692 16.659692 0 0 1-12.051692 21.267692l-3.072 0.275692h-118.232615c-6.892308 0-13.627077-0.945231-20.007385-2.678154l-6.301538-1.96923-96.571077 99.643076c-17.092923 17.723077-44.859077 18.904615-63.330462 3.544616l-3.780923-3.544616-93.814154-97.792v131.465847c0 7.955692-5.513846 14.651077-12.721231 16.187077l-3.150769 0.354461H541.577846c-7.837538 57.028923-54.941538 101.021538-111.852308 101.021539-54.626462 0-100.391385-40.566154-110.749538-94.247385l-1.142154-6.774154h-29.656615c-7.758769 57.028923-54.902154 101.021538-111.812923 101.021539-54.626462 0-100.352-40.566154-110.749539-94.247385l-1.102769-6.774154H15.872a16.029538 16.029538 0 0 1-15.517538-13.193846L0.039385 777.255385v-35.761231c0-9.058462 7.089231-16.502154 15.832615-16.502154 7.640615 0 14.060308 5.671385 15.556923 13.193846l0.315077 3.308308v19.298461h32.649846c7.798154-57.107692 54.980923-101.100308 111.852308-101.100307 54.626462 0 100.352 40.566154 110.749538 94.286769l1.10277 6.774154h29.656615c7.798154-57.028923 54.941538-101.060923 111.852308-101.060923 54.626462 0 100.352 40.566154 110.749538 94.286769l1.102769 6.774154h32.807385V337.250462c0-9.137231 7.089231-16.541538 15.793231-16.541539z m-160.33477 371.908923c-44.819692 0-81.289846 37.888-81.289846 84.519385 0 46.670769 36.470154 84.598154 81.289846 84.598154s81.289846-37.927385 81.289847-84.598154c0-46.631385-36.470154-84.519385-81.289847-84.519385z m-253.36123 0c-44.859077 0-81.289846 37.888-81.289846 84.519385 0 46.670769 36.430769 84.598154 81.289846 84.598154s81.289846-37.927385 81.289846-84.598154c0-46.631385-36.430769-84.519385-81.289846-84.519385z m0 52.696616c16.935385 0 30.601846 14.257231 30.601846 31.822769a31.153231 31.153231 0 0 1-30.601846 31.822769c-16.935385 0-30.601846-14.257231-30.601846-31.822769 0-17.565538 13.705846-31.822769 30.601846-31.822769z m253.36123 0c16.935385 0 30.601846 14.257231 30.601847 31.822769 0 17.565538-13.666462 31.822769-30.601847 31.822769-16.935385 0-30.601846-14.257231-30.601846-31.822769 0-17.565538 13.705846-31.822769 30.601846-31.822769z m176.364308-223.744v78.690461c0.315077 0.118154 6.616615 6.695385 16.305231 16.502154 31.980308 32.886154 100.036923 103.463385 100.036923 103.463385 5.277538 5.513846 13.784615 6.222769 19.928615 2.087384l2.441847-2.087384 26.112-27.136-110.946462-115.475693-53.878154-56.044307z m205.193846 52.696615l-30.326154 31.625846-24.576 25.521231 37.297231 38.833231 24.536616-25.6 0.078769 0.118153 17.526154-18.432a82.707692 82.707692 0 0 1-24.576-52.066461zM558.592 157.538462c24.536615 0 44.780308 19.495385 47.222154 44.386461l0.236308 5.041231V249.304615c0 9.058462-7.168 16.541538-15.872 16.541539a16.147692 16.147692 0 0 1-15.596308-13.233231l-0.315077-3.308308V206.966154a16.384 16.384 0 0 0-12.603077-16.147692l-3.190154-0.354462H366.513231c-24.576 0-44.819692 19.456-47.261539 44.347077L319.054769 239.852308v264.822154a16.423385 16.423385 0 0 1-12.681846 16.147692l-3.150769 0.393846H79.320615c-24.576 0-44.819692 19.416615-47.261538 44.268308l-0.236308 5.04123v82.944c0 9.097846-7.168 16.462769-15.832615 16.46277a15.950769 15.950769 0 0 1-15.596308-13.036308l-0.315077-3.268923V570.683077c0-43.401846 32.374154-79.044923 73.334154-82.195692l5.907692-0.236308H139.460923v-94.523077h-9.570461a16.068923 16.068923 0 0 1-15.517539-13.154462l-0.315077-3.308307V320.118154c0-7.955692 5.435077-14.651077 12.642462-16.147692l3.190154-0.393847h92.908307c7.68 0 14.099692 5.710769 15.556923 13.193847l0.315077 3.347692V377.304615a16.384 16.384 0 0 1-12.681846 16.147693L222.798769 393.846154h-9.531077v94.523077H287.153231V239.970462c0-43.401846 32.334769-79.084308 73.294769-82.235077L366.395077 157.538462h192.196923zM62.464 593.683692h88.615385c8.743385 0 15.872 7.404308 15.872 16.46277a16.423385 16.423385 0 0 1-12.681847 16.226461l-3.150769 0.315077H62.424615a16.265846 16.265846 0 0 1-15.911384-16.541538c0-7.916308 5.513846-14.572308 12.721231-16.147693l3.150769-0.315077h88.654769z m472.891077 0c8.782769 0 15.911385 7.404308 15.911385 16.46277a16.384 16.384 0 0 1-12.681847 16.187076l-3.229538 0.354462H218.663385a16.187077 16.187077 0 0 1-15.872-16.541538c0-7.955692 5.474462-14.572308 12.681846-16.147693l3.150769-0.315077h316.731077zM933.454769 446.542769h-43.441231c-24.576 0-44.780308 19.456-47.222153 44.347077l-0.236308 5.080616v70.301538c0 25.6 18.668308 46.631385 42.614154 49.152l4.844307 0.275692h96.413539L933.454769 446.542769z m-533.267692 89.915077c8.743385 0 15.872 7.483077 15.872 16.541539 0 9.058462-7.128615 16.541538-15.872 16.541538H353.713231a16.265846 16.265846 0 0 1-15.832616-16.541538c0-9.058462 7.128615-16.541538 15.872-16.541539z m139.303385-329.373538c7.68 0 14.060308 5.671385 15.556923 13.193846l0.315077 3.308308v281.088a16.423385 16.423385 0 0 1-12.642462 16.187076l-3.229538 0.354462H353.752615a16.147692 16.147692 0 0 1-15.556923-13.233231l-0.354461-3.308307V256.472615c0-25.560615 18.747077-46.592 42.692923-49.112615l4.844308-0.275692h154.112z m-357.848616 186.683077h-10.594461v94.523077h10.594461v-94.523077z m342.134154-153.796923H385.457231a16.068923 16.068923 0 0 0-15.517539 13.193846l-0.354461 3.308307v231.817847h154.072615l0.118154-248.32zM206.926769 336.738462H145.801846v24.182153h61.124923V336.738462z" fill="#ffffff" p-id="45070" /></symbol>'});l.a.add(n);t["default"]=n},f77d:function(e,t,a){"use strict";var i=a("1c1e"),s=a("bc3a"),r=a.n(s);t["a"]=function(){var e=r.a.CancelToken.source();return{cancel:function(){e.cancel("cancel")},fetch:function(t){return Object(i["a"])({url:"/authdata/exesql",cancelToken:e.token,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST",data:t})}}}},f782:function(e,t,a){"use strict";a.r(t);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);t["default"]=n},f7a0:function(e,t,a){},f834:function(e,t,a){"use strict";var i=a("a26c"),s=a.n(i);s.a},f842:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:5}},[a("el-col",{attrs:{span:5}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",staticStyle:{"text-align":"right"},attrs:{slot:"header"},slot:"header"},[a("el-row",{staticStyle:{"margin-top":"5px","margin-left":"5px"},attrs:{gutter:2}},[a("el-col",{staticStyle:{"text-align":"left","vertical-align":"middle","font-size":"20px"},attrs:{span:12}},[a("span",[e._v("代码管理")])]),a("el-col",{attrs:{span:6}},[a("el-col",{attrs:{span:6}},[e._v("/ "),a("el-button",{attrs:{type:"warning",icon:"el-icon-edit",size:"mini"},on:{click:e.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:e.parent,props:e.defaultProps,"default-expand-all":""},on:{"node-click":e.handleNodeClick}})],1)])],1),a("el-col",{attrs:{span:19}},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" 新增 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"elTable",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle,"row-key":"id","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"名称","header-align":"center",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.label))])]}}])}),a("el-table-column",{attrs:{label:"值","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.value))])]}}])}),a("el-table-column",{attrs:{label:"顺序","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.orderby))])]}}])}),a("el-table-column",{attrs:{label:"启用","min-width":"150px","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.handleEnableChange(t.$index,t.row)}},model:{value:t.row.enable,callback:function(a){e.$set(t.row,"enable",a)},expression:"scope.row.enable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","header-align":"center",align:"center",width:"260","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(i)}}},[e._v(" 编辑 ")]),"已删"!=i.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(i)}}},[e._v(" 删除 ")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>=0,expression:"total>=0"}],attrs:{total:e.total,page:e.getdataListParm.offset,limit:e.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParm,"pagecount",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{directives:[{name:"enterToNext",rawName:"v-enterToNext",value:!0,expression:"true"}],ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.deptform,"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"名称",prop:"label"}},[a("el-input",{ref:"label",model:{value:e.deptform.label,callback:function(t){e.$set(e.deptform,"label",t)},expression:"deptform.label"}})],1),a("el-form-item",{attrs:{label:"值",prop:"value"}},[a("el-input",{ref:"value",model:{value:e.deptform.value,callback:function(t){e.$set(e.deptform,"value",t)},expression:"deptform.value"}})],1),a("el-form-item",{attrs:{label:"顺序",prop:"orderby"}},[a("el-input",{ref:"orderby",model:{value:e.deptform.orderby,callback:function(t){e.$set(e.deptform,"orderby",t)},expression:"deptform.orderby"}})],1),a("el-form-item",{attrs:{label:"启用",prop:"enable"}},[a("el-switch",{ref:"enable",attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.deptform.enable,callback:function(t){e.$set(e.deptform,"enable",t)},expression:"deptform.enable"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["create"===e.dialogStatus?a("el-button",{ref:"createb",attrs:{type:"success"},on:{click:function(t){return e.createData_again()}}},[e._v(" 确认新增 ")]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" 确认 ")]),a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" 关闭 ")])],1)],1)],1)])],1)},s=[],r=(a("b0c0"),a("6724")),l=a("6041"),n=a("2934"),o=a("61f7"),c=a("333d"),d=a("5c96"),m={name:"ProductDict",components:{Pagination:c["a"]},directives:{waves:r["a"],enterToNext:l["a"]},data:function(){return{defaultProps:{children:"children",label:"name"},dictid:0,list:[],total:0,listLoading:!0,requestParam:{name:"",params:[]},deptform:{label:"",value:"",orderby:"",enable:"",pid:""},getdataListParm:{name:"getDictList",offset:1,pagecount:10,params:[]},getRecuListParm:{name:"getDictclass",idname:"id",params:[-1]},rules:{label:[{type:"string",required:!0,message:"名称必填",trigger:"change"}],value:[{type:"string",required:!0,message:"只必填",trigger:"change"}],orderby:[{validator:o["b"],trigger:"blur"}]},dialogFormVisible:!1,parentDeptVisible:!0,dialogStatus:"",textMap:{update:"编辑",create:"新增"},parent:[],rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList()},methods:{handleNodeClick:function(e){var t=this;0===e.children.length&&(this.listLoading=!0,this.dictid=e.id,this.getdataListParm.params=[e.id,e.id],Object(n["d"])(this.getdataListParm).then((function(e){t.list=e.data.list,t.total=e.data.total,setTimeout((function(){t.listLoading=!1}),100)})))},getDownList:function(){var e=this;Object(n["o"])(this.getRecuListParm).then((function(t){e.parent=t.data}))},getList:function(){var e=this;this.listLoading=!0,this.getDownList(),Object(n["d"])(this.getdataListParm).then((function(t){e.list=t.data.list,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),100)}))},resetRequestParam:function(){this.deptform.id="",this.deptform.pid="",this.deptform.label="",this.deptform.value="",this.deptform.orderby="0",this.deptform.enable="1"},handleCreate:function(){var e=this;this.resetRequestParam(),this.dialogStatus="create",this.deptform.orderby="0",this.deptform.enable=1,this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate(),e.$refs["label"].focus()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,Object(n["g"])(e.requestParam).then((function(){e.getList(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},createData_again:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="insertDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,Object(n["g"])(e.requestParam).then((function(){e.$nextTick((function(){e.$refs["label"].focus()})),e.getList(),e.resetRequestParam(),e.deptform.orderby="0",e.deptform.enable=1,e.$notify({title:"成功",message:"新增成功",type:"success",duration:2e3})})))}))},handleUpdate:function(e){var t=this;this.deptform.id=e.id,this.deptform.label=e.label,this.deptform.value=e.value,this.deptform.orderby=e.orderby,this.deptform.enable=e.enable,this.deptform.pid=e.pid,this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate(),t.$refs["label"].focus()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.requestParam.name="updateDictList",e.requestParam.params=[],e.requestParam.params[0]=e.deptform.label,e.requestParam.params[1]=e.deptform.value,e.requestParam.params[2]=e.deptform.orderby,e.requestParam.params[3]=e.deptform.enable,e.requestParam.params[4]=e.dictid,e.requestParam.params[5]=e.deptform.id,Object(n["g"])(e.requestParam).then((function(){e.getList(),e.resetRequestParam(),e.dialogFormVisible=!1,e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})))}))},handleEnableChange:function(e,t){var a=this;this.requestParam.name="updateDictList",this.requestParam.params=[],this.requestParam.params[0]=t.label,this.requestParam.params[1]=t.value,this.requestParam.params[2]=t.orderby,this.requestParam.params[3]=t.enable,this.requestParam.params[4]=this.dictid,this.requestParam.params[5]=t.id,Object(n["g"])(this.requestParam).then((function(){a.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})}))},handleDelete:function(e){var t=this;d["MessageBox"].confirm("名称:"+e.label,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="deleteDictList",t.requestParam.params=[],t.requestParam.params[0]=e.id,Object(n["g"])(t.requestParam).then((function(){t.getList(),t.resetRequestParam(),t.dialogFormVisible=!1,t.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},p=m,u=a("2877"),h=Object(u["a"])(p,i,s,!1,null,null,null);t["default"]=h.exports},f92c:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-供应商管理",use:"icon-供应商管理-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-供应商管理"><defs><style type="text/css"></style></defs><path d="M209.833 608v301.906c0 16.567 9.244 27.236 16.458 27.236h570.515c7.186 0 16.458-10.669 16.458-27.236v-301.906h54.858v301.906c0 45.34-32.036 82.092-71.315 82.092h-570.515c-39.387 0-71.315-36.835-71.315-82.092v-301.906h54.855zM154.978 608h54.855v301.906c0 16.567 9.244 27.236 16.458 27.236h570.515c7.186 0 16.458-10.669 16.458-27.236v-301.906h54.858v301.906c0 45.34-32.036 82.092-71.315 82.092h-570.515c-39.387 0-71.315-36.835-71.315-82.092v-301.906z" fill="#ffffff" p-id="69789" /><path d="M154.978 608c0 0.002 0 0.004 0 0.005 0 15.148 12.277 27.43 27.43 27.43 15.148 0 27.427-12.282 27.427-27.43 0-0.002 0-0.004 0-0.006 0-0.001 0-0.003 0-0.005 0-15.148-12.277-27.43-27.427-27.43-15.148 0-27.43 12.282-27.43 27.43s0 0.004 0 0.006z" fill="#ffffff" p-id="69790" /><path d="M813.265 608c0 0 0 0 0 0 0 15.148 12.277 27.43 27.43 27.43 15.148 0 27.43-12.282 27.43-27.43 0 0 0 0 0 0 0 0 0 0 0 0 0-15.148-12.282-27.427-27.43-27.427-15.148 0-27.43 12.282-27.43 27.427s0 0 0 0z" fill="#ffffff" p-id="69791" /><path d="M907.647 339.31l-94.794-235.885c-2.963-7.351-16.541-16.567-24.327-16.567h-559.324c-7.737 0-21.34 9.216-24.303 16.595l-103.186 256.676c-1.040 2.202-1.687 4.775-1.781 7.487l1.89 6.305-0.63 8.174c-0.164 1.956-0.259 4.228-0.259 6.525 0 45.445 36.841 82.285 82.285 82.285 26.851 0 50.698-12.861 65.718-32.761l44.009-58.631 43.858 58.423c15.127 20.071 38.923 32.915 65.719 32.915 0.048 0 0.097 0 0.144 0 26.243 0 50.351-12.315 65.847-32.915l43.858-58.423 43.858 58.423c15.129 20.071 38.923 32.915 65.719 32.915 0.048 0 0.097 0 0.144 0 26.243 0 50.351-12.315 65.85-32.915l43.858-58.423 43.858 58.423c14.939 22.42 40.117 36.991 68.697 36.991 45.445 0 82.285-36.841 82.285-82.285 0-18.384-6.028-35.363-16.218-49.061l-2.778-4.279zM292.945 470.857s-24.714 25.975-41.143 36.481c-19.673 11.554-43.326 18.379-68.578 18.379-75.742 0-137.142-61.401-137.142-137.142 0-3.765 0.151-7.494 0.449-11.181-2.528-10.733-1.291-23.76 4.303-37.696l103.132-256.676c11.355-28.195 45.147-51.017 75.264-51.017h559.324c30.226 0 63.908 22.875 75.236 51.017l92.791 230.866c13.887 21.087 22.155 46.948 22.155 74.739 0 75.742-61.401 137.142-137.142 137.142-25.266 0-48.938-6.833-69.267-18.752-16.908-10.951-40.495-36.129-40.495-36.129s-24.63 25.344-41.143 36.481c-20.158 11.657-43.612 18.35-68.572 18.35-24.961 0-48.412-6.693-68.572-18.377-18.187-12.069-41.143-36.481-41.143-36.481s-24.028 24.987-41.143 36.481c-20.158 11.685-43.612 18.377-68.572 18.377-24.961 0-48.412-6.693-68.572-18.377-17.499-10.807-41.143-36.481-41.143-36.481z" fill="#ffffff" p-id="69792" /><path d="M154.978 169.143h740.572v54.858h-740.572z" fill="#ffffff" p-id="69793" /></symbol>'});l.a.add(n);t["default"]=n},fa42:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"operation"},[e.isRoleEdit?a("el-button",{staticClass:"success",staticStyle:{float:"left","margin-right":"10px"},on:{click:e.handleCreate}},[e._v("添加")]):e._e()],1),a("div",{staticClass:"search"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"回访单号",clearable:""},model:{value:e.table.getdataListParm.parammaps.telVisitCode,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"telVisitCode",t)},expression:"table.getdataListParm.parammaps.telVisitCode"}}),a("el-autocomplete",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer0,clear:e.clearCustomerSelect,blur:e.blurCustomerSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}]),model:{value:e.table.getdataListParm.parammaps.customerName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"customerName",t)},expression:"table.getdataListParm.parammaps.customerName"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"集团",clearable:""},model:{value:e.table.getdataListParm.parammaps.groupId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"groupId",t)},expression:"table.getdataListParm.parammaps.groupId"}},e._l(e.groupNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"回访人",clearable:""},model:{value:e.table.getdataListParm.parammaps.visiterId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"visiterId",t)},expression:"table.getdataListParm.parammaps.visiterId"}},e._l(e.visiterNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"被回访人",clearable:"",filterable:""},model:{value:e.table.getdataListParm.parammaps.receiverName,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"receiverName",t)},expression:"table.getdataListParm.parammaps.receiverName"}},e._l(e.receiverNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"回访类型",clearable:""},model:{value:e.table.getdataListParm.parammaps.typeIds,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"typeIds",t)},expression:"table.getdataListParm.parammaps.typeIds"}},e._l(e.typeNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"120px"},attrs:{placeholder:"回访状态",clearable:""},model:{value:e.table.getdataListParm.parammaps.statusId,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"statusId",t)},expression:"table.getdataListParm.parammaps.statusId"}},e._l(e.statusNameList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.name}})})),1),a("el-date-picker",{staticClass:"inputDatetime filter-item",staticStyle:{width:"250px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.table.getdataListParm.parammaps.inputDatetime,callback:function(t){e.$set(e.table.getdataListParm.parammaps,"inputDatetime",t)},expression:"table.getdataListParm.parammaps.inputDatetime"}}),a("el-button",{staticClass:"successBorder",on:{click:e.handleSearch}},[e._v("查询")]),a("el-button",{staticClass:"successBorder",on:{click:e.handleRefresh}},[e._v("重置")])],1),a("div",{staticClass:"table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.table.listLoading,expression:"table.listLoading"}],key:e.table.tableKey,staticClass:"elTable table-fixed",staticStyle:{width:"100%"},attrs:{"element-loading-text":"给我一点时间",data:e.table.list,border:"",fit:"","highlight-current-row":"","row-style":e.rowStyle,"cell-style":e.cellStyle}},[a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.table.pageNum-1)*e.table.pageSize+1))])]}}])}),a("el-table-column",{attrs:{label:"回访单号","min-width":"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.telVisitCode))])]}}])}),a("el-table-column",{attrs:{label:"客户名称","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customerName))])]}}])}),a("el-table-column",{attrs:{label:"集团","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.groupName))])]}}])}),a("el-table-column",{attrs:{label:"回访日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.tdate))])]}}])}),a("el-table-column",{attrs:{label:"回访人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.visiterName))])]}}])}),a("el-table-column",{attrs:{label:"被回访人","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverName))])]}}])}),a("el-table-column",{attrs:{label:"被回访人电话","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.receiverTel))])]}}])}),a("el-table-column",{attrs:{label:"回访类型","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.typeNames))])]}}])}),a("el-table-column",{attrs:{label:"回访状态","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.statusName))])]}}])}),a("el-table-column",{attrs:{label:"备注","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.remark))])]}}])}),a("el-table-column",{attrs:{label:"录入日期","min-width":"90px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.created))])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{staticClass:"miniPrimary",on:{click:function(t){return e.handleSee(i)}}},[e._v("查看")]),e.isRoleEdit&&"1"==i.isModify&&i.createrId==e.employeid?a("el-button",{staticClass:"miniSuccess",on:{click:function(t){return e.handleUpdate(i)}}},[e._v("编辑")]):e._e(),e.isRoleEdit&&"1"==i.isDel&&i.createrId==e.employeid?a("el-button",{staticClass:"miniDanger",on:{click:function(t){return e.handleRowDelete(i)}}},[e._v("删除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.table.total>=0,expression:"table.total>=0"}],attrs:{total:e.table.total,page:e.table.getdataListParm.offset,limit:e.table.getdataListParm.pagecount},on:{"update:page":function(t){return e.$set(e.table.getdataListParm,"offset",t)},"update:limit":function(t){return e.$set(e.table.getdataListParm,"pagecount",t)},pagination:e.getList}})],1),a("el-dialog",{attrs:{title:e.textMap[e.create.dialogStatus],visible:e.create.dialogFormVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){return e.$set(e.create,"dialogFormVisible",t)}}},[a("div",{staticClass:"app-add"},[a("el-form",{ref:"temp",staticStyle:{width:"80%",margin:"0 auto 50px"},attrs:{rules:e.create.rules,model:e.create.temp,"label-position":"right","label-width":"150px"}},[a("el-form-item",{attrs:{label:"客户名称:",prop:"customerName"}},["create"==e.create.dialogStatus?a("el-autocomplete",{staticStyle:{width:"100%","margin-right":"10px"},attrs:{"fetch-suggestions":e.queryCustomerSearch,placeholder:"客户名称",clearable:""},on:{select:e.changeCustomer,clear:e.clearCustomerSelectTemp,blur:e.blurCustomerSelectTemp},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[a("span",{staticClass:"name"},[e._v(e._s(i.name))])]}}],null,!1,2238609474),model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}}):a("el-input",{ref:"customerName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.customerName,callback:function(t){e.$set(e.create.temp,"customerName",t)},expression:"create.temp.customerName"}})],1),a("el-form-item",{attrs:{label:"集团:",prop:"groupName"}},[a("el-input",{ref:"groupName",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.create.temp.groupName,callback:function(t){e.$set(e.create.temp,"groupName",t)},expression:"create.temp.groupName"}})],1),a("el-form-item",{attrs:{label:"回访日期:",prop:"tdate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1,disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.tdate,callback:function(t){e.$set(e.create.temp,"tdate",t)},expression:"create.temp.tdate"}})],1),a("el-form-item",{attrs:{label:"回访人:",prop:"visiterId"}},[a("el-select",{ref:"visiterId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择回访人",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.visiterId,callback:function(t){e.$set(e.create.temp,"visiterId",t)},expression:"create.temp.visiterId"}},e._l(e.visiterNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"被回访人:",prop:"receiverId"}},[a("el-select",{ref:"receiverId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择被回访人","allow-create":"",disabled:"see"==e.create.dialogStatus},on:{change:e.changeReceiver},model:{value:e.create.temp.receiverId,callback:function(t){e.$set(e.create.temp,"receiverId",t)},expression:"create.temp.receiverId"}},e._l(e.create.receiverNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"被回访人电话:",prop:"receiverTel"}},[a("el-input",{ref:"receiverTel",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{maxlength:"11",placeholder:"请输入电话",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.receiverTel,callback:function(t){e.$set(e.create.temp,"receiverTel",t)},expression:"create.temp.receiverTel"}})],1),a("el-form-item",{attrs:{label:"回访类型:",prop:"typeIds"}},[a("el-checkbox-group",{model:{value:e.create.temp.typeIdsArr,callback:function(t){e.$set(e.create.temp,"typeIdsArr",t)},expression:"create.temp.typeIdsArr"}},e._l(e.typeNameList,(function(t){return a("el-checkbox",{key:t.id,attrs:{label:t.id},on:{change:e.changeChecked}},[e._v(e._s(t.name))])})),1)],1),a("el-form-item",{attrs:{label:"回访状态:",prop:"statusName"}},[a("el-radio",{attrs:{label:"良好"},model:{value:e.create.temp.statusName,callback:function(t){e.$set(e.create.temp,"statusName",t)},expression:"create.temp.statusName"}},[e._v("良好")]),a("el-radio",{attrs:{label:"不佳"},model:{value:e.create.temp.statusName,callback:function(t){e.$set(e.create.temp,"statusName",t)},expression:"create.temp.statusName"}},[e._v("不佳")])],1),a("el-form-item",{attrs:{label:"回访情况:",prop:"content"}},[a("el-input",{ref:"content",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入情况说明",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.content,callback:function(t){e.$set(e.create.temp,"content",t)},expression:"create.temp.content"}})],1),a("el-form-item",{attrs:{label:"下一步计划:",prop:"nextId"}},[a("el-select",{ref:"nextId",staticClass:"filter-item",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择下一步计划",disabled:"see"==e.create.dialogStatus,clearable:"",filterable:""},model:{value:e.create.temp.nextId,callback:function(t){e.$set(e.create.temp,"nextId",t)},expression:"create.temp.nextId"}},e._l(e.nextNameList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),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:"请输入备注,最多255个字",maxlength:"255",disabled:"see"==e.create.dialogStatus},model:{value:e.create.temp.remark,callback:function(t){e.$set(e.create.temp,"remark",t)},expression:"create.temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"cancelClose",on:{click:function(t){e.create.dialogFormVisible=!1,e.getList()}}},[e._v("关闭")]),"create"===e.create.dialogStatus||"update"===e.create.dialogStatus?a("el-button",{staticClass:"success",attrs:{disabled:e.isokDisable},on:{click:function(t){"create"===e.create.dialogStatus?e.createData():e.updateData()}}},[e._v("确认")]):e._e()],1)],1)])],1)},s=[],r=(a("7db0"),a("a15b"),a("d81d"),a("b0c0"),a("a9e3"),a("ac1f"),a("1276"),a("2934")),l=a("a78e"),n=a.n(l),o=a("ed08"),c=a("333d"),d=a("5c96"),m={name:"TelephoneFollow",components:{Pagination:c["a"]},data:function(){return{employeid:n.a.get("employeid"),isRoleEdit:[],requestParams:[{name:"getDictListSelect1",offset:0,pagecount:0,parammaps:{pid:"54"}},{name:"getEmployeesSelect",offset:0,pagecount:0,parammaps:{}},{name:"getDictListSelect2",offset:0,pagecount:0,parammaps:{pid:"56"}},{name:"getDictListSelect4",offset:0,pagecount:0,parammaps:{pid:"55"}}],customerNameList:[],groupNameList:[],visiterNameList:[],receiverNameList:[],typeNameList:[],statusNameList:[{id:"良好",name:"良好"},{id:"不佳",name:"不佳"}],nextNameList:[],table:{getdataListParm:{name:"getTelvisit",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{telVisitCode:"",customerId:"",groupId:"",visiterId:"",receiverName:"",typeIds:"",statusId:"",inputDatetime:"",beginDate:"",endDate:""}},tableKey:0,list:[],total:0,listLoading:!0,temp:{}},create:{dialogFormVisible:!1,dialogStatus:"",temp:{customerId:"",groupId:"",groupName:"",tdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),visiterId:"",receiverId:"",receiverName:"",receiverTel:"",typeIds:"",typeIdsArr:[],statusName:"良好",remark:"",content:"",nextId:"",modifyName:"add",receiverChoose:"true"},rules:{customerName:[{required:!0,message:"必填",trigger:"blur"}],tdate:[{required:!0,message:"必填",trigger:"blur"}],visiterId:[{required:!0,message:"必填",trigger:"blur"}],receiverId:[{required:!0,message:"必填",trigger:"blur"}],receiverTel:[{required:!0,message:"必填",trigger:"blur"}],typeIds:[{required:!0,message:"必填",trigger:"blur"}],statusName:[{required:!0,message:"必填",trigger:"blur"}],content:[{required:!0,message:"必填",trigger:"blur"}]},getdataListParm:{name:"getContacts",returntype:"Map",parammaps:{customerId:""}},getdataListParm2:{name:"getgroupNameById",returntype:"Map",parammaps:{id:""}},getdataListParm3:{name:"getTelById",returntype:"Map",parammaps:{id:""}},receiverNameList:[]},textMap:{create:"新增",see:"查看",update:"编辑"},requestParam:{},isokDisable:!1,rowStyle:{maxHeight:"25px",height:"25px"},cellStyle:{padding:"0px"}}},created:function(){this.getList(),this.getDownList(),this.getButtons()},methods:{getButtons:function(){var e="telephoneFollow",t=Object(r["j"])(JSON.parse(sessionStorage.getItem("buttons")),e);this.isRoleEdit=t,console.log("isRoleEdit",t)},getDownList:function(){var e=this;Object(r["e"])(this.requestParams).then((function(t){e.groupNameList=t.data.getDictListSelect1.list,console.log("集团下拉框",e.groupNameList),e.visiterNameList=t.data.getEmployeesSelect.list,console.log("被回访人下拉框",e.receiverNameList),e.typeNameList=t.data.getDictListSelect2.list,console.log("回访类型",e.typeNameList),e.nextNameList=t.data.getDictListSelect4.list,console.log("下一步下拉框",e.nextNameList)}))},queryCustomerSearch:function(e,t){var a=this;console.log("模糊查询输入值",e),Object(r["d"])({name:"getCustomerNameFuzzy",page:1,offset:1,pagecount:10,returntype:"Map",parammaps:{inputvalue:e}}).then((function(e){a.customerNameList=e.data.list,console.log("客户名称下拉框",e),t(e.data.list)}))},clearCustomerSelect:function(e){document.activeElement.blur(),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName=""},blurCustomerSelect:function(e){console.log("客户失去焦点"),this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.customerName="",this.customerNameList=[]},blurCustomerSelectTemp:function(e){this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},changeCustomer0:function(e){var t=this;console.log("客户名称模糊查询选中值",e),this.table.getdataListParm.parammaps.customerId=e.id,this.table.getdataListParm.parammaps.customerName=e.name;var a={name:"getContacts",returntype:"Map",parammaps:{customerId:e.id}};Object(r["d"])(a).then((function(e){t.receiverNameList=e.data.list,console.log("被回访人下拉框",t.receiverNameList)}))},getList:function(){var e=this;this.table.listLoading=!0,console.log("this.table.getdataListParm======>",this.table.getdataListParm),Object(r["d"])(this.table.getdataListParm).then((function(t){console.log("table数据======>",t.data.list),null!==t.data.list?(t.data.list.map((function(e,t){return e.typeIdsArr=e.typeIds.split(",")})),e.table.list=t.data.list,e.table.pageNum=t.data.pageNum,e.table.pageSize=t.data.pageSize,e.table.total=t.data.total):e.table.list=[],setTimeout((function(){e.table.listLoading=!1}),100)}))},handleSearch:function(){console.log("点击了查询"),""!==this.table.getdataListParm.parammaps.inputDatetime&&null!==this.table.getdataListParm.parammaps.inputDatetime?(this.table.getdataListParm.parammaps.beginDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[0],"{y}-{m}-{d}"),this.table.getdataListParm.parammaps.endDate=Object(o["e"])(this.table.getdataListParm.parammaps.inputDatetime[1],"{y}-{m}-{d}")):(this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate=""),this.table.getdataListParm.offset=1,this.getList()},handleRefresh:function(){console.log("点击了重置"),this.table.getdataListParm.parammaps.customerName="",this.table.getdataListParm.parammaps.telVisitCode="",this.table.getdataListParm.parammaps.customerId="",this.table.getdataListParm.parammaps.groupId="",this.table.getdataListParm.parammaps.visiterId="",this.table.getdataListParm.parammaps.receiverName="",this.table.getdataListParm.parammaps.typeIds="",this.table.getdataListParm.parammaps.statusId="",this.table.getdataListParm.parammaps.beginDate="",this.table.getdataListParm.parammaps.endDate="",this.table.getdataListParm.parammaps.inputDatetime="",this.table.getdataListParm.offset=1,this.getList()},resetTemp:function(){this.create.temp={customerId:"",groupId:"",groupName:"",tdate:Object(o["e"])(new Date,"{y}-{m}-{d}"),visiterId:"",receiverId:"",receiverName:"",receiverTel:"",typeIds:"",typeIdsArr:[],statusName:"良好",remark:"",content:"",nextId:"",modifyName:"add",receiverChoose:"true"}},changeCustomer:function(e){console.log(e),this.create.temp.customerId=e.id,this.create.temp.customerName=e.name,this.create.getdataListParm.parammaps.customerId=e.id,this.getReceiverNameList(),this.create.getdataListParm2.parammaps.id=e.id,this.getGroupNameId()},clearCustomerSelectTemp:function(e){document.activeElement.blur(),this.create.temp.customerId="",this.create.temp.customerName="",this.create.temp.groupName=""},changeChecked:function(e){this.create.temp.typeIds=e,console.log("多选选中",this.create.temp.typeIdsArr)},getGroupNameId:function(){var e=this;Object(r["d"])(this.create.getdataListParm2).then((function(t){null!==t.data.list&&(e.create.temp.groupName=t.data.list[0].groupName,e.create.temp.groupId=t.data.list[0].groupId,console.log("集团名称",t.data.list))}))},getReceiverNameList:function(){var e=this;Object(r["d"])(this.create.getdataListParm).then((function(t){null!==t.data.list?(e.create.receiverNameList=t.data.list,console.log("回访人数据",t.data.list)):e.create.receiverNameList=[]}))},changeReceiver:function(e){this.create.getdataListParm3.parammaps.id=e,this.create.temp.receiverName=this.create.receiverNameList.find((function(t){return t.id===e})).name,this.getTelephoneName()},getTelephoneName:function(){var e=this;Object(r["d"])(this.create.getdataListParm3).then((function(t){null!==t.data.list&&(e.create.temp.receiverTel=t.data.list[0].telephone,console.log("回访人电话",t.data.list))}))},handleCreate:function(){console.log("点击了新增"),this.resetTemp(),this.create.dialogStatus="create",this.create.dialogFormVisible=!0},createData:function(){var e=this;console.log("点击了新增保存"),this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.requestParam.name="modifyTelvisit",e.create.temp.modifyName="add",e.create.temp.id="",e.create.temp.typeIds=e.create.temp.typeIdsArr.join(","),e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.createrId=n.a.get("employeid"),e.create.temp.receiverId2="";var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"insertTelvisit",resultmaps:{list:[e.create.temp]},children:[{name:"insertTelvisit",type:"e",parammaps:{customerId:"@insertTelvisit.customerId",groupId:"@insertTelvisit.groupId",tdate:"@insertTelvisit.tdate",visiterId:"@insertTelvisit.visiterId",receiverId:"@insertTelvisit.receiverId",receiverId2:"@insertContactsNew.LastInsertId",receiverTel:"@insertTelvisit.receiverTel",typeIds:"@insertTelvisit.typeIds",statusName:"@insertTelvisit.statusName",remark:"@insertTelvisit.remark",content:"@insertTelvisit.content",nextId:"@insertTelvisit.nextId",createrId:"@insertTelvisit.createrId",receiverChoose:"@insertTelvisit.receiverChoose"}}]}]};console.log("新增保存发送参数 ",a),0==e.create.temp.typeIdsArr.length?e.$notify({title:"失败",message:"回访类型必选!"+response.data,type:"error",duration:2e3}):Object(r["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleSee:function(e){console.log("点击了查看",e),this.create.temp=Object.assign({},e),this.create.getdataListParm.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.temp.id=e.id,this.create.temp.typeIdsArr=e.typeIdsArr.map(Number),this.create.dialogStatus="see",this.create.dialogFormVisible=!0},handleUpdate:function(e){console.log("点击了编辑",e),this.create.temp=Object.assign({},e),this.create.getdataListParm.parammaps.customerId=e.customerId,this.getReceiverNameList(),this.create.temp.id=e.id,this.create.temp.typeIdsArr=e.typeIdsArr.map(Number),this.create.dialogStatus="update",this.create.dialogFormVisible=!0},updateData:function(){var e=this;this.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),this.$refs["temp"].validate((function(t){if(t){e.isokDisable=!0,setTimeout((function(){e.isokDisable=!1}),1e3),e.create.temp.modifyName="update",e.requestParam.name="modifyTelvisit",e.create.temp.typeIds=e.create.temp.typeIdsArr.join(","),e.create.receiverNameList.find((function(t){return t.id==e.create.temp.receiverId}))?(console.log("receiverNameList下拉直接选的!"),e.create.temp.receiverChoose="true"):(e.create.temp.receiverName=e.create.temp.receiverId,e.create.temp.receiverChoose="false",console.log("receiverNameList下拉自己填的!")),e.create.temp.receiverId2="";var a={common:{returnmap:"0"},data:[{name:"insertContactsNew",type:"e",parammaps:{customerId:e.create.temp.customerId,contactName:e.create.temp.receiverName,telephone:e.create.temp.receiverTel,address:"",remark:e.create.temp.remark,receiverChoose:e.create.temp.receiverChoose}},{name:"updateTelvisit",resultmaps:{list:[e.create.temp]},children:[{name:"updateTelvisit",type:"e",parammaps:{tdate:"@updateTelvisit.tdate",visiterId:"@updateTelvisit.visiterId",receiverId:"@updateTelvisit.receiverId",receiverId2:"@insertContactsNew.LastInsertId",receiverTel:"@updateTelvisit.receiverTel",typeIds:"@updateTelvisit.typeIds",statusName:"@updateTelvisit.statusName",remark:"@updateTelvisit.remark",content:"@updateTelvisit.content",nextId:"@insertTelvisit.nextId",receiverChoose:"@insertTelvisit.receiverChoose",id:"@insertTelvisit.id"}}]}]};console.log("编辑保存发送参数 ",a),0==e.create.temp.typeIdsArr.length?e.$notify({title:"失败",message:"回访类型必选!"+response.data,type:"error",duration:2e3}):Object(r["b"])(a).then((function(t){"fail"!==t.msg?(e.$notify({title:"成功",message:"保存成功",type:"success",duration:2e3}),e.create.dialogFormVisible=!1,e.getList()):e.$notify({title:"失败",message:"保存失败"+t.data,type:"error",duration:2e3})}))}}))},handleRowDelete:function(e){var t=this;d["MessageBox"].confirm("是否确认删除此信息?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then((function(){t.requestParam.name="delTelvisit",t.requestParam.parammaps={},t.requestParam.parammaps.id=e.id,Object(r["g"])(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:"已取消删除"})}))},handleExport:function(e){1==e?console.log("点击了导出模板"):console.log("点击了导出数据")},handleImport:function(){console.log("点击了导入")}}},p=m,u=(a("f122"),a("2877")),h=Object(u["a"])(p,i,s,!1,null,"da010722",null);t["default"]=h.exports},fb4f:function(e,t,a){},fc08:function(e,t,a){"use strict";a.r(t);var i=a("e017"),s=a.n(i),r=a("21a1"),l=a.n(r),n=new s.a({id:"icon-人工用量",use:"icon-人工用量-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-人工用量"><defs><style type="text/css"></style></defs><path d="M199.155852 367.689267v521.514701c0 25.352411-51.197032 25.255197-51.197032 0V400.22938l-48.468898 34.675754c-20.690228 14.765285-50.300616-28.079522-29.804817-42.745546l398.690328-283.056728c26.614148-19.911492 43.157939-20.144806 71.617108 1.128707l395.306254 281.928021c20.494777 14.569834-5.730515 57.413618-26.420742 42.745546l-48.178279-34.28792v86.779435c0 26.480094-53.453423 26.384927-53.453423 0V364.595812L508.250606 151.954831c-3.497661-2.622734-6.79987-2.622734-10.199293-0.195452L199.155852 367.689267z" p-id="89019" fill="#ffffff" /><path d="M276.163737 472.497311h70.421886c6.994298 0 12.724813 5.730515 12.724813 12.723789v70.520123c0 6.992251-5.731538 12.723789-12.724813 12.72379H276.163737c-6.992251 0-12.723789-5.731538-12.723789-12.72379v-70.520123c-0.097214-6.895037 5.729491-12.723789 12.723789-12.723789z m167.206186 0h70.421886c6.993275 0 12.723789 5.730515 12.723789 12.723789v70.520123c0 6.992251-5.730515 12.723789-12.723789 12.72379h-70.421886c-6.994298 0-12.724813-5.731538-12.724812-12.72379v-70.520123c-0.097214-6.895037 5.729491-12.723789 12.724812-12.723789zM276.163737 642.384559h70.421886c6.994298 0 12.724813 5.731538 12.724813 12.72379v70.325695c0 7.187703-5.731538 12.919241-12.724813 12.91924H276.163737c-6.992251 0-12.723789-5.731538-12.723789-12.91924v-70.325695c-0.097214-6.992251 5.729491-12.723789 12.723789-12.72379z m0 169.692821h70.421886c6.994298 0 12.724813 5.731538 12.724813 12.91924v70.325695c0 7.187703-5.731538 12.919241-12.724813 12.919241H276.163737c-6.992251 0-12.723789-5.731538-12.723789-12.919241v-70.325695c-0.097214-7.187703 5.729491-12.919241 12.723789-12.91924z m169.596629-169.692821h70.421886c6.993275 0 12.723789 5.731538 12.72379 12.72379v70.325695c0 7.187703-5.730515 12.919241-12.72379 12.91924h-70.421886c-6.994298 0-12.724813-5.731538-12.724812-12.91924v-70.325695c-0.097214-6.992251 5.730515-12.723789 12.724812-12.72379z m0 169.692821h70.421886c6.993275 0 12.723789 5.731538 12.72379 12.91924v70.325695c0 7.187703-5.730515 12.919241-12.72379 12.919241h-70.421886c-6.994298 0-12.724813-5.731538-12.724812-12.919241v-70.325695c-0.097214-7.187703 5.730515-12.919241 12.724812-12.91924z" p-id="89020" fill="#ffffff" /><path d="M561.732681 873.556593c0 13.06762 13.06762 21.779026 21.779026 21.779025 8.711406 0 13.06762-4.356214 17.423835-13.06762 43.559075-69.694315 99.18907-107.375519 181.951005-103.020328v82.761935c0 13.06762 8.711406 21.779026 21.779026 21.779026 8.711406 0 13.06762-4.356214 17.423834-8.711405l120.94149-134.00911c8.711406-8.711406 17.423835-17.423835 17.423835-30.491455s-4.356214-21.779026-13.06762-30.491455l-120.94149-131.699508c-4.356214-4.356214-8.711406-8.711406-17.423835-8.711405-13.06762 0-26.13524 13.06762-26.13524 26.13524v69.694315c-222.150566 13.068643-216.798674 198.849884-221.153866 238.052745z m36.045961-44.384883c12.549827-66.934458 55.497988-162.218592 206.098985-162.218592h12.549827v-76.144214l102.538351 111.837134c4.183276 4.183276 4.183276 8.366551 4.183276 8.366551l-8.366552 8.366552-99.558483 114.065895v-91.010806h-36.447097c-71.116711 0-134.981251 32.352849-180.998307 86.73748z" p-id="89021" fill="#ffffff" /></symbol>'});l.a.add(n);t["default"]=n},fc57:function(e,t,a){},fd2f:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container common-list-page"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:e.sumAmountDCL,name:"first"}},[a("el-table",{attrs:{data:e.listDCL,"row-style":e.rowStyle,"cell-style":e.cellStyle,"show-header":!1},on:{"cell-click":e.cellClickDCL}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),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:e.totalDCL>0,expression:"totalDCL>0"}],attrs:{total:e.totalDCL,page:e.getdataListParmDCL.offset,limit:e.getdataListParmDCL.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmDCL,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmDCL,"pagecount",t)},pagination:e.getListDCL}})],1),a("el-tab-pane",{attrs:{label:e.sumAmountAll,name:"second"}},[a("el-table",{attrs:{data:e.listAll,"row-style":e.rowStyle,"cell-style":e.cellStyle,"show-header":!1}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),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:e.totalAll>0,expression:"totalAll>0"}],attrs:{total:e.totalAll,page:e.getdataListParmAll.offset,limit:e.getdataListParmAll.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmAll,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmAll,"pagecount",t)},pagination:e.getListALL}})],1),a("el-tab-pane",{attrs:{label:e.sumAmountYCL,name:"third"}},[a("el-table",{attrs:{data:e.listYCL,"row-style":e.rowStyle,"cell-style":e.cellStyle,"show-header":!1}},[a("el-table-column",{attrs:{prop:"remark","min-width":"180"}}),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:e.totalYCL>0,expression:"totalYCL>0"}],attrs:{total:e.totalYCL,page:e.getdataListParmYCL.offset,limit:e.getdataListParmYCL.pagecount},on:{"update:page":function(t){return e.$set(e.getdataListParmYCL,"offset",t)},"update:limit":function(t){return e.$set(e.getdataListParmYCL,"pagecount",t)},pagination:e.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 e=this;Object(r["d"])(this.getNoMesCountParm).then((function(t){console.log("待处理数据",t.data.list),e.sumAmountDCL="待处理("+t.data.list[0].sumAmount+")"}))},getAllMesCount:function(){var e=this;Object(r["d"])(this.getAllMesCountParm).then((function(t){console.log("全部数据",t.data.list),e.sumAmountAll="全部数据("+t.data.list[0].sumAmount+")"}))},getMesCount:function(){var e=this;Object(r["d"])(this.getMesCountParm).then((function(t){console.log("已处理",t.data.list),e.sumAmountYCL="已处理("+t.data.list[0].sumAmount+")"}))},handleClick:function(e){"second"===e.name?this.getListALL():"third"===e.name?this.getListYCL():this.getListDCL()},getListDCL:function(){var e=this;this.listLoadingDCL=!0,Object(r["d"])(this.getdataListParmDCL).then((function(t){console.log("待处理table数据",t.data.list),e.listDCL=t.data.list,e.pageNumDCL=t.data.pageNum,e.pageSizeDCL=t.data.pageSize,e.totalDCL=t.data.total,setTimeout((function(){e.listLoadingDCL=!1}),100)}))},getListALL:function(){var e=this;this.listLoadingAll=!0,Object(r["d"])(this.getdataListParmAll).then((function(t){console.log("全部table数据",t.data.list),e.listAll=t.data.list,e.pageNumAll=t.data.pageNum,ths.ageSizAll=t.data.pageSize,t.data.total&&(e.totalAll=t.data.total),setTimeout((function(){e.listLoadingAll=!1}),100)}))},getListYCL:function(){var e=this;this.listLoadingYCL=!0,Object(r["d"])(this.getdataListParmYCL).then((function(t){console.log("已处理table数据",t.data.list),e.listYCL=t.data.list,e.paNumYCL=t.data.pageNum,e.pageSizeYCL=t.data.pageSize,e.totalYCL=t.data.total,setTimeout((function(){e.listLoadingYCL=!1}),100)}))},cellClickDCL:function(e){console.log(e.remark);var t=/\【(.+?)\】/g,a=e.remark.match(t)[0],i=a.substring(1,a.length-1);"合同审核"===i?this.$router.push("/customs/Contract"):"申购审核"===i?this.$router.push("/customs/Subscribe"):"采购配单"===i?this.$router.push("/customs/Purchase"):"领用审核"===i?this.$router.push("/customs/Receive"):"退货审核"===i?this.$router.push("/customs/Returngoods"):"设备审核"===i?this.$router.push({path:"/asset/Basics",query:{tabName:"second"}}):"设备保养"===i||"保养审核"===i?this.$router.push("/maintenance/Maintain"):"维修接单"===i||"维修派单"===i||"维修审核"===i?this.$router.push("/maintenance/Repair"):"备件审核"===i?this.$router.push({path:"/customs/Basic",query:{tabName:"second"}}):"配单审核"===i&&this.$router.push({path:"/customs/Purchase",query:{activeName:"fouth"}})}}}),o=n,c=a("2877"),d=Object(c["a"])(o,i,s,!1,null,"6df9c104",null);t["default"]=d.exports},fe3f:function(e,t,a){},feca:function(e,t,a){var i={"./404.vue":"8cdb","./basicData/defaultParameter/index.vue":"54de","./basicData/departmentManagement/index.vue":"e7b5","./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/otherProjects/index.vue":"370a","./basicData/productClass/index.vue":"9b83","./basicData/productList/index.vue":"320f","./basicData/staffManagement/index.vue":"7789","./basicData/standardParameters/index.vue":"1521","./basicData/supplier/index.vue":"3a04","./businessManagement/complaintRecord/index.vue":"008d","./businessManagement/deliveryRecord/components/littleTable.vue":"22e8","./businessManagement/deliveryRecord/index.vue":"4d87","./businessManagement/expressReception/index.vue":"5b68","./businessManagement/remoteService/index.vue":"774c","./businessManagement/siteService/index - 副本.vue":"85ea","./businessManagement/siteService/index.vue":"9b64","./businessManagement/stockNotice/index.vue":"dafd","./businessManagement/telephoneFollow/index.vue":"fa42","./businessManagement/visitRecord/index.vue":"8f3e","./changpwd/changpwd/index - 副本.vue":"e917","./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","./customerInformation/customerInformation/index.vue":"1bf3","./dashboard/admin/components/BarChart.vue":"5f84","./dashboard/admin/components/BoxCard.vue":"8269","./dashboard/admin/components/LineChart.vue":"36ef","./dashboard/admin/components/PanelGroup.vue":"6768","./dashboard/admin/components/PieChart.vue":"2044","./dashboard/admin/components/RaddarChart.vue":"7b75","./dashboard/admin/components/TodoList/Todo.vue":"ced4","./dashboard/admin/components/TodoList/index.vue":"2544","./dashboard/admin/components/TransactionTable.vue":"2f3f","./dashboard/admin/index.vue":"3f2c","./dashboard/editor/index.vue":"5851","./dashboard/index.vue":"9406","./formulationPlan/dailyExecutionPlan/index.vue":"d3b8","./formulationPlan/dhedFormula/index.vue":"256c","./formulationPlan/materialIssuancePlan/index.vue":"1745","./formulationPlan/premixedPlan/index.vue":"db0c","./formulationPlan/recipeTemplate/index.vue":"047c","./formulationPlan/surplusMaterialPlan/index.vue":"980b","./inventoryManagement/feedContract/index.vue":"4f68","./inventoryManagement/inventoryList/index.vue":"1a53","./inventoryManagement/laborConsumption/index.vue":"601f","./inventoryManagement/statistics/index.vue":"e28b","./inventoryManagement/systemConsumption/index.vue":"bdf4","./inventoryManagement/warehousing/index.vue":"400d","./inventoryManagement/warning/index.vue":"620a","./login/index.vue":"9ed6","./nested/menu1/index.vue":"e9bc","./nested/menu1/menu1-1/index.vue":"91b3","./nested/menu1/menu1-2/index.vue":"55cd","./nested/menu1/menu1-2/menu1-2-1/index.vue":"65825","./nested/menu1/menu1-2/menu1-2-2/index.vue":"b6fb","./nested/menu1/menu1-3/index.vue":"8d8b","./nested/menu2/index.vue":"dbb3","./news/news.vue":"fd2f","./price/areaSet/index.vue":"4098","./price/priceAverage/index.vue":"bcff","./price/priceBase/index.vue":"0204","./price/productArea/index.vue":"6a54","./price/productDict/index.vue":"0a8e","./price/productDict/index1.vue":"f842","./price/productInfo/index.vue":"92b6","./price/setPrice/index.vue":"9c15","./processManagement/backTargetEffect/index.vue":"2a8e","./processManagement/eventManagement/index.vue":"e1ca","./processManagement/fieldManagement/index.vue":"bd6c","./processManagement/flowpathManagement/index.vue":"92d3","./processManagement/globalTemplate/index.vue":"2a61","./shedProduction/dungScores/index.vue":"1698","./shedProduction/dutyRecord/index.vue":"7342","./shedProduction/fecalScreen/index.vue":"badd","./shedProduction/formulaDryMatter/index.vue":"5a9a","./shedProduction/materialRemainingRecord/index.vue":"3415","./shedProduction/pennsylvaniaSieve/index.vue":"e10e","./shedProduction/performance/index.vue":"5326","./shedProduction/physicalConditionScore/index.vue":"6a67","./statisticalAnalysis/efficiencyAnalysis/index.vue":"b30b","./statisticalAnalysis/efficiencyStatistics/index.vue":"afc7","./statisticalAnalysis/errorAnalysis/index.vue":"1e09","./statisticalAnalysis/feedingEfficiency/index.vue":"7f67","./statisticalAnalysis/inventoryManagement/index.vue":"c684","./statisticalAnalysis/materialAnalysis/index.vue":"9380","./statisticalAnalysis/priceAnalysis/index.vue":"cb9d","./statisticalAnalysis/processAnalysis/index.vue":"9875","./statisticalAnalysis/realTimeMonitoring/index.vue":"05f7","./statisticalChart/formulaStatistics/index.vue":"6200","./statisticalChart/shedStatistics/index.vue":"9c18","./systemManagement/boardEchartManagement/index.vue":"7f0e","./systemManagement/groupInformation/index.vue":"deb1","./systemManagement/labelManagement/index.vue":"89b8","./systemManagement/notificationManagement/index.vue":"142c","./systemManagement/operation/index.vue":"0f994","./systemManagement/operationManagement/index.vue":"4548","./systemManagement/ranchInformation/index.vue":"a983","./systemManagement/role/index.vue":"31f0","./systemManagement/user/index.vue":"67b0","./systemManagement/user1/index.vue":"bc3b","./table/index.vue":"90fe","./tree/index.vue":"69dd"};function s(e){var t=r(e);return a(t)}function r(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=r,e.exports=s,s.id="feca"},fefc:function(e,t,a){}},[[1,"runtime","chunk-elementUI","chunk-libs"]]]);