text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-530d"],{"30d9":function(t,e,n){},3884:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return o});var a=n("66df"),i=function(t){return a["a"].request({url:"/api/Work/index",params:t,method:"get"})},r=function(t){return a["a"].request({url:"/api/Work/getWorkOptionList",params:t,method:"get"})},o=function(t){return a["a"].request({url:"/api/Work/show",params:t,method:"get"})}},4974:function(t,e,n){"use strict";var a=n("bbb3"),i=n.n(a);i.a},"7e1e":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"h",function(){return s}),n.d(e,"f",function(){return c}),n.d(e,"j",function(){return l}),n.d(e,"i",function(){return u}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return h}),n.d(e,"g",function(){return p}),n.d(e,"m",function(){return f}),n.d(e,"k",function(){return m}),n.d(e,"l",function(){return g});var a=n("66df"),i=function(t){return a["a"].request({url:"/api/StoreLease/index",params:t,method:"get"})},r=function(){return a["a"].request({url:"/api/Index/getKitchenList",method:"get"})},o=function(t){var e={group_id:"7",kichen_id:t};return a["a"].request({url:"/api/Index/getEmployeeList",data:e,method:"post"})},s=function(t){var e={kitchen_id:t,lease_type:6};return a["a"].request({url:"/api/StoreLease/queryList",data:e,method:"post"})},c=function(t){var e={kitchen_id:t,lease_type:2};return a["a"].request({url:"/api/StoreLease/queryList",data:e,method:"post"})},l=function(t){var e={work_type:t};return a["a"].request({url:"/api/Index/getWorkCategory",params:e,method:"post"})},u=function(t){return a["a"].request({url:"/api/Index/getStoreNo",params:t,method:"get"})},d=function(){var t={group_id:"8"};return a["a"].request({url:"/api/Index/getEmployeeList",data:t,method:"post"})},h=function(){var t={group_id:"7"};return a["a"].request({url:"/api/Index/getEmployeeList",data:t,method:"post"})},p=function(t){return a["a"].request({url:"/api/StoreLease/show",data:t,method:"post"})},f=function(t){return t.lease_type="1",a["a"].request({url:"/api/StoreLease/edit",data:t,method:"post"})},m=function(t){return t.lease_type="2",a["a"].request({url:"/api/StoreLease/edit",data:t,method:"post"})},g=function(t){return a["a"].request({url:"/api/Employee/updatePassword",data:t,method:"post"})}},"94a4":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",[n("Card",{attrs:{shadow:""}},[n("Row",{attrs:{gutter:20}},[n("i-col",{attrs:{xs:5,md:5,lg:5}},[n("Select",{on:{"on-change":t.getNewKitchen},model:{value:t.curentKitchen,callback:function(e){t.curentKitchen=e},expression:"curentKitchen"}},t._l(t.kitchenList,function(e){return n("Option",{key:e.id,staticStyle:{width:"100%"},attrs:{value:e.id}},[t._v(t._s(e.kitchen_name))])}))],1),n("i-col",{attrs:{xs:5,md:5,lg:5}},[n("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期"},on:{"on-change":t.getNewDate},model:{value:t.curentTime,callback:function(e){t.curentTime=e},expression:"curentTime"}})],1)],1)],1),n("div",{staticStyle:{"margin-top":"10px","margin-bottom":"10px","font-size":"18px","padding-left":"20px","border-bottom":"1px solid #d7dde4","line-height":"2em",color:"#657180"}})],1),n("Card",[n("tables",{ref:"tables",attrs:{columns:t.columns},on:{"data-view":t.handleView},model:{value:t.orderList,callback:function(e){t.orderList=e},expression:"orderList"}}),n("Page",{staticStyle:{"margin-top":"10px"},attrs:{total:t.page.total,"page-size":t.page.list_rows},on:{"on-change":t.getNewPage}})],1)],1)},i=[],r=n("c93e"),o=n("fa69"),s=n("2f62"),c=n("7e1e"),l=n("3884"),u={name:"l-shop-inspect-list",components:{Tables:o["a"]},data:function(){return{page:{current_page:1,last_page:"",list_rows:0,total:0},columns:[{title:"所属厨房",key:"kitchen_name"},{title:"店铺名称",key:"store_name"},{title:"店铺房号",key:"store_no"},{title:"日检分数",key:"score"},{title:"状态",key:"check"},{title:"操作",key:"handle",button:[function(t,e,n){return t("Button",{style:{},props:{type:"primary",size:"small"},on:{click:function(){n.$emit("data-view",e)}}},"查看报告")}]}],orderList:[],curentTime:"",curentTime2:"",curentKitchen:"",kitchenList:[]}},methods:Object(r["a"])({},Object(s["d"])(["setStorePaper"]),{getNewDate:function(t){var e=this;this.curentTime=t,this.curentTime2=t;var n={work_date:this.curentTime2,kitchen_id:this.curentKitchen};Object(l["a"])(n).then(function(t){var n=t.data;0==n.code?(e.orderList=n.data.list||[],e.page=n.data.page):e.$Message.warning(n.msg)})},getNewKitchen:function(){var t=this,e={work_date:this.curentTime2,kitchen_id:this.curentKitchen};Object(l["a"])(e).then(function(e){var n=e.data;0==n.code?(t.orderList=n.data.list||[],t.page=n.data.page):t.$Message.warning(n.msg)})},handleView:function(t){var e=t.row,n=1;1*e.store_id==0&&(n=2),this.setStorePaper(e);var a={name:"kitchen_total_inspect",query:{type:n}};this.$router.push(a)},getCurentTime:function(){var t=new Date,e="-",n=t.getMonth()+1,a=t.getDate();n>=1&&n<=9&&(n="0"+n),a>=0&&a<=9&&(a="0"+a);var i=t.getFullYear()+e+n+e+a;return i},getNewPage:function(t){var e=this,n={work_date:this.curentTime2,kitchen_id:this.curentKitchen,page:t};Object(l["a"])(n).then(function(t){var n=t.data;0==n.code?(e.orderList=n.data.list||[],e.page=n.data.page):e.$Message.warning(n.msg)})}}),created:function(){var t=this;this.curentTime=this.getCurentTime(),this.curentTime2=this.getCurentTime(),Object(c["c"])().then(function(e){var n=e.data;t.kitchenList=n.data||[],t.curentKitchen=t.kitchenList[0].id;var a={work_date:t.curentTime2,kitchen_id:t.curentKitchen};Object(l["a"])(a).then(function(e){var n=e.data;0==n.code?(t.orderList=n.data.list||[],t.page=n.data.page):t.$Message.warning(n.msg)})})},computed:{}},d=u,h=(n("c385"),n("2877")),p=Object(h["a"])(d,a,i,!1,null,null,null);p.options.__file="main.vue";e["default"]=p.exports},"9fa8":function(t,e,n){},bbb3:function(t,e,n){},c385:function(t,e,n){"use strict";var a=n("9fa8"),i=n.n(a);i.a},fa69:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.searchable&&"top"===t.searchPlace?n("div",{staticClass:"search-con search-con-top"},[n("Select",{staticClass:"search-col",model:{value:t.searchKey,callback:function(e){t.searchKey=e},expression:"searchKey"}},t._l(t.columns,function(e){return"handle"!==e.key?n("Option",{key:"search-col-"+e.key,attrs:{value:e.key}},[t._v(t._s(e.title))]):t._e()})),n("Input",{staticClass:"search-input",attrs:{clearable:"",placeholder:"输入关键字搜索"},on:{"on-change":t.handleClear},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),n("Button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:t.handleSearch}},[n("Icon",{attrs:{type:"search"}}),t._v("  查找")],1)],1):t._e(),n("Table",{ref:"tablesMain",attrs:{data:t.insideTableData,columns:t.insideColumns,stripe:t.stripe,border:t.border,"show-header":t.showHeader,width:t.width,height:t.height,loading:t.loading,"disabled-hover":t.disabledHover,"highlight-row":t.highlightRow,"row-class-name":t.rowClassName,size:t.size,"no-data-text":t.noDataText,"no-filtered-data-text":t.noFilteredDataText},on:{"on-current-change":t.onCurrentChange,"on-select":t.onSelect,"on-select-cancel":t.onSelectCancel,"on-select-all":t.onSelectAll,"on-selection-change":t.onSelectionChange,"on-sort-change":t.onSortChange,"on-filter-change":t.onFilterChange,"on-row-click":t.onRowClick,"on-row-dblclick":t.onRowDblclick,"on-expand":t.onExpand}},[t._t("header",null,{slot:"header"}),t._t("footer",null,{slot:"footer"}),t._t("loading",null,{slot:"loading"})],2),t.searchable&&"bottom"===t.searchPlace?n("div",{staticClass:"search-con search-con-top"},[n("Select",{staticClass:"search-col",model:{value:t.searchKey,callback:function(e){t.searchKey=e},expression:"searchKey"}},t._l(t.columns,function(e){return"handle"!==e.key?n("Option",{key:"search-col-"+e.key,attrs:{value:e.key}},[t._v(t._s(e.title))]):t._e()})),n("Input",{staticClass:"search-input",attrs:{placeholder:"输入关键字搜索"},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),n("Button",{staticClass:"search-btn",attrs:{type:"primary"}},[n("Icon",{attrs:{type:"search"}}),t._v("  搜索")],1)],1):t._e(),n("a",{staticStyle:{display:"none",width:"0px",height:"0px"},attrs:{id:"hrefToExportTable"}})],1)},i=[],r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tables-edit-outer"},[t.isEditting?n("div",{staticClass:"tables-editting-con"},[n("Input",{staticClass:"tables-edit-input",attrs:{value:t.value},on:{input:t.handleInput}}),n("Button",{staticStyle:{padding:"6px 4px"},attrs:{type:"text"},on:{click:t.saveEdit}},[n("Icon",{attrs:{type:"md-checkmark"}})],1),n("Button",{staticStyle:{padding:"6px 4px"},attrs:{type:"text"},on:{click:t.canceltEdit}},[n("Icon",{attrs:{type:"md-close"}})],1)],1):n("div",{staticClass:"tables-edit-con"},[n("span",{staticClass:"value-con"},[t._v(t._s(t.value))]),t.editable?n("Button",{staticClass:"tables-edit-btn",staticStyle:{padding:"2px 4px"},attrs:{type:"text"},on:{click:t.startEdit}},[n("Icon",{attrs:{type:"md-create"}})],1):t._e()],1)])},o=[],s={name:"TablesEdit",props:{value:[String,Number],edittingCellId:String,params:Object,editable:Boolean},computed:{isEditting:function(){return this.edittingCellId==="editting-".concat(this.params.index,"-").concat(this.params.column.key)}},methods:{handleInput:function(t){this.$emit("input",t)},startEdit:function(){this.$emit("on-start-edit",this.params)},saveEdit:function(){this.$emit("on-save-edit",this.params)},canceltEdit:function(){this.$emit("on-cancel-edit",this.params)}}},c=s,l=(n("4974"),n("2877")),u=Object(l["a"])(c,r,o,!1,null,null,null);u.options.__file="edit.vue";var d=u.exports,h={delete:function(t,e,n){return t("Poptip",{props:{confirm:!0,title:"你确定要删除吗?"},on:{"on-ok":function(){n.$emit("on-delete",e),n.$emit("input",e.tableData.filter(function(t,n){return n!==e.row.initRowIndex}))}}},[t("Button",{props:{type:"text",ghost:!0}},[t("Icon",{props:{type:"md-trash",size:18,color:"#000000"}})])])}},p=h,f=(n("30d9"),{name:"Tables",props:{value:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},size:String,width:{type:[Number,String]},height:{type:[Number,String]},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},highlightRow:{type:Boolean,default:!1},rowClassName:{type:Function,default:function(){return""}},context:{type:Object},noDataText:{type:String},noFilteredDataText:{type:String},disabledHover:{type:Boolean},loading:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlace:{type:String,default:"top"}},data:function(){return{insideColumns:[],insideTableData:[],edittingCellId:"",edittingText:"",searchValue:"",searchKey:""}},methods:{suportEdit:function(t,e){var n=this;return t.render=function(t,e){return t(d,{props:{params:e,value:n.insideTableData[e.index][e.column.key],edittingCellId:n.edittingCellId,editable:n.editable},on:{input:function(t){n.edittingText=t},"on-start-edit":function(t){n.edittingCellId="editting-".concat(t.index,"-").concat(t.column.key),n.$emit("on-start-edit",t)},"on-cancel-edit":function(t){n.edittingCellId="",n.$emit("on-cancel-edit",t)},"on-save-edit":function(t){n.value[t.row.initRowIndex][t.column.key]=n.edittingText,n.$emit("input",n.value),n.$emit("on-save-edit",Object.assign(t,{value:n.edittingText})),n.edittingCellId=""}}})},t},surportHandle:function(t){var e=this,n=t.options||[],a=[];n.forEach(function(t){p[t]&&a.push(p[t])});var i=t.button?[].concat(a,t.button):a;return t.render=function(t,n){return n.tableData=e.value,t("div",i.map(function(a){return a(t,n,e)}))},t},handleColumns:function(t){var e=this;this.insideColumns=t.map(function(t,n){var a=t;return a.editable&&(a=e.suportEdit(a,n)),"handle"===a.key&&(a=e.surportHandle(a)),a})},setDefaultSearchKey:function(){this.searchKey="handle"!==this.columns[0].key?this.columns[0].key:this.columns.length>1?this.columns[1].key:""},handleClear:function(t){""===t.target.value&&(this.insideTableData=this.value)},handleSearch:function(){var t=this;this.insideTableData=this.value.filter(function(e){return e[t.searchKey].toString().indexOf(t.searchValue)>-1})},handleTableData:function(){this.insideTableData=this.value.map(function(t,e){var n=t;return n.initRowIndex=e,n})},exportCsv:function(t){this.$refs.tablesMain.exportCsv(t)},clearCurrentRow:function(){this.$refs.talbesMain.clearCurrentRow()},onCurrentChange:function(t,e){this.$emit("on-current-change",t,e)},onSelect:function(t,e){this.$emit("on-select",t,e)},onSelectCancel:function(t,e){this.$emit("on-select-cancel",t,e)},onSelectAll:function(t){this.$emit("on-select-all",t)},onSelectionChange:function(t){this.$emit("on-selection-change",t)},onSortChange:function(t,e,n){this.$emit("on-sort-change",t,e,n)},onFilterChange:function(t){this.$emit("on-filter-change",t)},onRowClick:function(t,e){this.$emit("on-row-click",t,e)},onRowDblclick:function(t,e){this.$emit("on-row-dblclick",t,e)},onExpand:function(t,e){this.$emit("on-expand",t,e)}},watch:{columns:function(t){this.handleColumns(t),this.setDefaultSearchKey()},value:function(t){this.handleTableData(),this.searchable&&this.handleSearch()}},mounted:function(){this.handleColumns(this.columns),this.setDefaultSearchKey(),this.handleTableData()}}),m=f,g=Object(l["a"])(m,a,i,!1,null,null,null);g.options.__file="tables.vue";var v=g.exports;e["a"]=v}}]);