(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["server"],{"068d":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-button",{directives:[{name:"action",rawName:"v-action:add",arg:"add"}],attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")])],1),e.isLoading?e._e():t("a-table",{attrs:{rowKey:"category_id",columns:e.columns,dataSource:e.categoryList,defaultExpandAllRows:!0,expandIconColumnIndex:1,pagination:!1,loading:e.isLoading},scopedSlots:e._u([{key:"status",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:a?"green":""}},[e._v(e._s(a?"显示":"隐藏"))])],1)}},{key:"action",fn:function(a,r){return t("span",{},[[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])]],2)}}],null,!1,721492270)}),t("AddForm",{ref:"AddForm",on:{handleSubmit:e.handleRefresh}}),t("EditForm",{ref:"EditForm",on:{handleSubmit:e.handleRefresh}})],1)},i=[],n=a("c7eb"),o=a("1da1"),s=(a("d3b7"),a("41ed")),l=a("2af9"),c=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"新增服务分类",width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"分类名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"分类图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}]})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入至少1个数字' }] }]"}],attrs:{min:0}})],1)],1)],1)],1)},u=[],d={components:{SelectImage:l["h"]},props:{},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this)}},methods:{add:function(){this.visible=!0},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,s["a"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},m=d,f=a("2877"),p=Object(f["a"])(m,c,u,!1,null,null,null),h=p.exports,v=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"编辑服务分类",width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"分类名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"分类图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}],attrs:{defaultList:e.record.image?[e.record.image]:[]}})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入至少1个数字' }] }]"}],attrs:{min:0}})],1)],1)],1)],1)},g=[],b=a("2ef0"),y=a.n(b),C={components:{SelectImage:l["h"]},props:{},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),record:{}}},methods:{edit:function(e){this.visible=!0,this.record=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.form.setFieldsValue;this.$nextTick((function(){t(y.a.pick(e,["name","image_id","status","sort"]))}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,s["h"]({categoryId:this.record["category_id"],form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},_=C,w=Object(f["a"])(_,v,g,!1,null,null,null),x=w.exports,L={name:"Index",components:{STable:l["d"],AddForm:h,EditForm:x},data:function(){return{categoryList:[],queryParam:{},isLoading:!0,columns:[{title:"分类ID",dataIndex:"category_id"},{title:"分类名称",dataIndex:"name"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"排序",dataIndex:"sort"},{title:"添加时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],menuList:[]}},created:function(){this.getcategoryList()},methods:{getcategoryList:function(){var e=this;this.isLoading=!0,s["d"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleAdd:function(){var e=this;return Object(o["a"])(Object(n["a"])().mark((function t(){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs.AddForm.add();case 1:case"end":return t.stop()}}),t)})))()},handleEdit:function(e){var t=this;return Object(o["a"])(Object(n["a"])().mark((function a(){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.$refs.EditForm.edit(e);case 1:case"end":return a.stop()}}),a)})))()},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return s["e"]({categoryId:e["category_id"]}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(){return a.destroy()}))}})},handleRefresh:function(){this.getcategoryList()}}},S=L,q=Object(f["a"])(S,r,i,!1,null,null,null);t["default"]=q.exports},"0f3f":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{layout:"inline"}},[t("a-form-item",{attrs:{label:"回收名称"}},[t("a-input",{attrs:{placeholder:"请输入回收名称"},model:{value:e.queryParam.recovery_name,callback:function(t){e.$set(e.queryParam,"recovery_name",t)},expression:"queryParam.recovery_name"}})],1),t("a-form-item",{attrs:{label:"回收分类"}},[t("a-select",{model:{value:e.queryParam.category_id,callback:function(t){e.$set(e.queryParam,"category_id",t)},expression:"queryParam.category_id"}},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),e._l(e.categoryList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.category_id}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.handleSearch}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[t("div",{staticClass:"tab-list fl-l"},[t("a-radio-group",{attrs:{defaultValue:e.queryParam.status},on:{change:e.handleTabs}},[t("a-radio-button",{attrs:{value:"0"}},[e._v("全部")]),t("a-radio-button",{attrs:{value:"1"}},[e._v("出售中")]),t("a-radio-button",{attrs:{value:"2"}},[e._v("已下架")])],1)],1),e.$auth("/goods/create")?t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:function(t){return e.handleCreate()}}},[e._v("新增回收")]):e._e(),e.selectedRowKeys.length?t("div",{staticClass:"button-group"},[t("a-button-group",{staticClass:"ml-10"},[t("a-button",{directives:[{name:"action",rawName:"v-action:status",arg:"status"}],attrs:{icon:"arrow-up"},on:{click:function(t){return e.handleUpdateStatus(e.selectedRowKeys,!0)}}},[e._v("上架")]),t("a-button",{directives:[{name:"action",rawName:"v-action:status",arg:"status"}],attrs:{icon:"arrow-down"},on:{click:function(t){return e.handleUpdateStatus(e.selectedRowKeys,!1)}}},[e._v("下架")]),t("a-button",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete(e.selectedRowKeys)}}},[e._v("删除")])],1)],1):e._e()],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"recovery_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15},scopedSlots:e._u([{key:"recovery_image",fn:function(e,a){return t("span",{},[t("a",{attrs:{title:"点击查看原图",href:a.image.external_url,target:"_blank"}},[t("img",{attrs:{width:"50",height:"50",src:a.image.external_url,alt:"回收图片"}})])])}},{key:"recovery_name",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide"},[e._v(e._s(a))])])}},{key:"recovery_category",fn:function(a,r){return t("span",{},[t("p",{staticClass:"twoline-hide"},[e._v(e._s(r.recovery_category))])])}},{key:"comment_rate",fn:function(a,r){return t("span",{},[t("p",{staticClass:"twoline-hide"},[e._v(e._s(r.comment_rate)+"%")])])}},{key:"status",fn:function(a,r){return t("span",{},[t("a-tag",{staticClass:"cur-p",attrs:{color:1==a?"green":"red"},on:{click:function(t){return e.handleUpdateStatus([r.recovery_id],1!=a)}}},[e._v(e._s(1==a?"上架":"下架"))])],1)}},{key:"action",fn:function(a,r){return t("span",{staticClass:"actions"},[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete([r.recovery_id])}}},[e._v("删除")])])}}])}),t("add",{ref:"AddRef",on:{handleSubmit:e.handleRefresh}}),t("edit",{ref:"EditRef",on:{handleSubmit:e.handleRefresh}})],1)},i=[],n=a("c7eb"),o=a("1da1"),s=a("5530"),l=(a("d3b7"),a("daab")),c=a("2af9"),u=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"新增回收",width:920,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"回收名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["recovery_name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['recovery_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"回收分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["category_id",{initialValue:0,rules:[{required:!0,message:"请选择分类"}]}],expression:"['category_id', { initialValue: 0, rules: [{ required: true, message: '请选择分类' }] }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("选择分类")]),e._l(e.categoryList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.category_id}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"评论数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["comment_num",{initialValue:10,rules:[{required:!0,message:"请输入评论数量"}]}],expression:"['comment_num', { initialValue: 10, rules: [{ required: true, message: '请输入评论数量' }] }]"}],attrs:{min:10,step:10}})],1),t("a-form-item",{attrs:{label:"好评率",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["comment_rate",{initialValue:90,rules:[{required:!0,message:"请输入好评率"}]}],expression:"['comment_rate', { initialValue: 90, rules: [{ required: true, message: '请输入好评率' }] }]"}],attrs:{min:90,step:1,max:100}}),t("span",{staticClass:"ml-10"},[e._v("%")])],1),t("a-form-item",{attrs:{label:"销量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sold",{initialValue:100,rules:[{required:!0,message:"请输入销量价格"}]}],expression:"['sold', { initialValue: 100, rules: [{ required: true, message: '请输入销量价格' }] }]"}],attrs:{min:100}}),t("span",{staticClass:"ml-10"},[e._v("个")])],1),t("a-form-item",{attrs:{label:"回收图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id",{rules:[{required:!0,message:"请上传图片"}]}],expression:"['image_id', { rules: [{ required: true, message: '请上传图片' }] }]"}]})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("上架")]),t("a-radio",{attrs:{value:2}},[e._v("下架")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入至少1个数字' }] }]"}],attrs:{min:0}})],1),t("a-form-item",{attrs:{label:"详情",labelCol:e.labelCol,wrapperCol:{span:16}}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{rules:[{required:!0,message:"详情不能为空"}]}],expression:"['content', { rules: [{ required: true, message: '详情不能为空' }] }]"}]})],1)],1)],1)],1)},d=[],m={components:{SelectImage:c["h"],Ueditor:c["o"]},props:{},data:function(){return{categoryList:[],title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this)}},methods:{add:function(){this.getCategoryList(),this.visible=!0},getCategoryList:function(){var e=this;this.isLoading=!0,l["c"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,l["b"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},f=m,p=a("2877"),h=Object(p["a"])(f,u,d,!1,null,null,null),v=h.exports,g=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"编辑回收",width:920,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"回收名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["recovery_name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['recovery_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"回收分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["category_id",{initialValue:0,rules:[{required:!0,message:"请选择分类"}]}],expression:"['category_id', { initialValue: 0, rules: [{ required: true, message: '请选择分类' }] }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("选择分类")]),e._l(e.categoryList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.category_id}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"评论数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["comment_num",{initialValue:10,rules:[{required:!0,message:"请输入评论数量"}]}],expression:"['comment_num', { initialValue: 10, rules: [{ required: true, message: '请输入评论数量' }] }]"}],attrs:{min:10,step:10}})],1),t("a-form-item",{attrs:{label:"好评率",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["comment_rate",{initialValue:90,rules:[{required:!0,message:"请输入好评率"}]}],expression:"['comment_rate', { initialValue: 90, rules: [{ required: true, message: '请输入好评率' }] }]"}],attrs:{min:90,step:1,max:100}}),t("span",{staticClass:"ml-10"},[e._v("%")])],1),t("a-form-item",{attrs:{label:"销量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sold",{initialValue:10,rules:[{required:!0,message:"请输入销量价格"}]}],expression:"['sold', { initialValue: 10, rules: [{ required: true, message: '请输入销量价格' }] }]"}],attrs:{min:10}}),t("span",{staticClass:"ml-10"},[e._v("个")])],1),t("a-form-item",{attrs:{label:"图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}],attrs:{defaultList:e.record.image?[e.record.image]:[]}})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("上架")]),t("a-radio",{attrs:{value:2}},[e._v("下架")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入至少1个数字' }] }]"}],attrs:{min:0}})],1),t("a-form-item",{attrs:{label:"详情",labelCol:e.labelCol,wrapperCol:{span:16}}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{rules:[{required:!0,message:"详情不能为空"}]}],expression:"['content', { rules: [{ required: true, message: '详情不能为空' }] }]"}]})],1)],1)],1)],1)},b=[],y={components:{SelectImage:c["h"],Ueditor:c["o"]},props:{},data:function(){return{categoryList:[],title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),record:{}}},methods:{edit:function(e){this.getCategoryList(),this.visible=!0,this.record=e,this.setFieldsValue()},getCategoryList:function(){var e=this;this.isLoading=!0,l["c"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},setFieldsValue:function(){var e=this,t=this.form.setFieldsValue;this.$nextTick((function(){t(_.pick(e.record,["recovery_name","image_id","category_id","status","sold","comment_rate","sort","comment_num","content"]))}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,l["g"]({recoveryId:this.record["recovery_id"],form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},C=y,w=Object(p["a"])(C,g,b,!1,null,null,null),x=w.exports,L=[{title:"回收ID",dataIndex:"recovery_id"},{title:"回收图片",dataIndex:"recovery_image",scopedSlots:{customRender:"recovery_image"}},{title:"回收名称",dataIndex:"recovery_name",scopedSlots:{customRender:"recovery_name"}},{title:"回收分类",dataIndex:"recovery_category",scopedSlots:{customRender:"recovery_category"}},{title:"好评率",dataIndex:"comment_rate",scopedSlots:{customRender:"comment_rate"}},{title:"销量",dataIndex:"sold",scopedSlots:{customRender:"sold"}},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"排序",dataIndex:"sort"},{title:"添加时间",width:"180px",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"150px",scopedSlots:{customRender:"action"}}],S={name:"Index",components:{ContentHeader:c["a"],STable:c["d"],Add:v,Edit:x},data:function(){var e=this;return{searchForm:this.$form.createForm(this),categoryList:[],queryParam:{},isLoading:!1,columns:L,selectedRowKeys:[],loadData:function(t){return l["i"](Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){this.$route.query.status&&(this.queryParam.status=this.$route.query.status),this.getCategoryList()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleTabs:function(e){this.queryParam.status=e.target.value,this.handleRefresh(!0)},handleSearch:function(e){this.handleRefresh(!0)},handleReset:function(){this.searchForm.resetFields()},getCategoryList:function(){var e=this;this.isLoading=!0,l["c"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleUpdateStatus:function(e){var t=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isLoading=!0,l["j"]({recoveryIds:e,state:a}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){t.isLoading=!1}))},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return l["e"]({serverId:e}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){return a.destroy()}))}})},handleCreate:function(){this.$refs.AddRef.add()},handleEdit:function(e){var t=this;return Object(o["a"])(Object(n["a"])().mark((function a(){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.$refs.EditRef.edit(e);case 1:case"end":return a.stop()}}),a)})))()},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)}}},q=S,k=(a("506f"),Object(p["a"])(q,r,i,!1,null,"60ed0ecf",null));t["default"]=k.exports},"1d4bc":function(e,t,a){},"1da1":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("d3b7");function r(e,t,a,r,i,n,o){try{var s=e[n](o),l=s.value}catch(c){return void a(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,a=arguments;return new Promise((function(i,n){var o=e.apply(t,a);function s(e){r(o,i,n,s,l,"next",e)}function l(e){r(o,i,n,s,l,"throw",e)}s(void 0)}))}}},"468e":function(e,t,a){"use strict";a("6f83")},"4b33":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{layout:"inline"}},[t("a-form-item",{attrs:{label:"服务名称"}},[t("a-input",{attrs:{placeholder:"请输入服务名称"},model:{value:e.queryParam.server_name,callback:function(t){e.$set(e.queryParam,"server_name",t)},expression:"queryParam.server_name"}})],1),t("a-form-item",{attrs:{label:"服务分类"}},[t("a-select",{model:{value:e.queryParam.category_id,callback:function(t){e.$set(e.queryParam,"category_id",t)},expression:"queryParam.category_id"}},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),e._l(e.categoryList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.category_id}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.handleSearch}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[t("div",{staticClass:"tab-list fl-l"},[t("a-radio-group",{attrs:{defaultValue:e.queryParam.status},on:{change:e.handleTabs}},[t("a-radio-button",{attrs:{value:"0"}},[e._v("全部")]),t("a-radio-button",{attrs:{value:"1"}},[e._v("出售中")]),t("a-radio-button",{attrs:{value:"2"}},[e._v("已下架")])],1)],1),e.$auth("/goods/create")?t("a-button",{staticClass:"fl-l",attrs:{type:"primary",icon:"plus"},on:{click:function(t){return e.handleCreate()}}},[e._v("新增服务")]):e._e(),e.selectedRowKeys.length?t("div",{staticClass:"button-group"},[t("a-button-group",{staticClass:"ml-10"},[t("a-button",{directives:[{name:"action",rawName:"v-action:status",arg:"status"}],attrs:{icon:"arrow-up"},on:{click:function(t){return e.handleUpdateStatus(e.selectedRowKeys,!0)}}},[e._v("上架")]),t("a-button",{directives:[{name:"action",rawName:"v-action:status",arg:"status"}],attrs:{icon:"arrow-down"},on:{click:function(t){return e.handleUpdateStatus(e.selectedRowKeys,!1)}}},[e._v("下架")]),t("a-button",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete(e.selectedRowKeys)}}},[e._v("删除")])],1)],1):e._e()],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"server_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15},scopedSlots:e._u([{key:"server_image",fn:function(e,a){return t("span",{},[t("a",{attrs:{title:"点击查看原图",href:a.image.external_url,target:"_blank"}},[t("img",{attrs:{width:"50",height:"50",src:a.image.external_url,alt:"服务图片"}})])])}},{key:"server_name",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide"},[e._v(e._s(a))])])}},{key:"server_category",fn:function(a,r){return t("span",{},[t("p",{staticClass:"twoline-hide"},[e._v(e._s(r.category.name))])])}},{key:"status",fn:function(a,r){return t("span",{},[t("a-tag",{staticClass:"cur-p",attrs:{color:1==a?"green":"red"},on:{click:function(t){return e.handleUpdateStatus([r.server_id],1!=a)}}},[e._v(e._s(1==a?"上架":"下架"))])],1)}},{key:"action",fn:function(a,r){return t("span",{staticClass:"actions"},[t("a",{staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{on:{click:function(t){return e.handleDelete([r.server_id])}}},[e._v("删除")])])}}])}),t("add",{ref:"AddRef",on:{handleSubmit:e.handleRefresh}}),t("edit",{ref:"EditRef",on:{handleSubmit:e.handleRefresh}})],1)},i=[],n=a("c7eb"),o=a("1da1"),s=a("5530"),l=(a("d3b7"),a("41ed")),c=a("2af9"),u=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"新增服务",width:920,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"服务名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["server_name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['server_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"服务分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["category_id",{initialValue:0,rules:[{required:!0,message:"请选择分类"}]}],expression:"['category_id', { initialValue: 0, rules: [{ required: true, message: '请选择分类' }] }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("选择分类")]),e._l(e.categoryList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.category_id}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"服务价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["server_price",{initialValue:1,rules:[{required:!0,message:"请输入服务价格"}]}],expression:"['server_price', { initialValue: 1, rules: [{ required: true, message: '请输入服务价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"划线价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["line_price",{initialValue:1,rules:[{required:!0,message:"请输入划线价格"}]}],expression:"['line_price', { initialValue: 1, rules: [{ required: true, message: '请输入划线价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"评论数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["comment_num",{initialValue:10,rules:[{required:!0,message:"请输入评论数量"}]}],expression:"['comment_num', { initialValue: 10, rules: [{ required: true, message: '请输入评论数量' }] }]"}],attrs:{min:10,step:10}})],1),t("a-form-item",{attrs:{label:"好评率",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["comment_rate",{initialValue:90,rules:[{required:!0,message:"请输入好评率"}]}],expression:"['comment_rate', { initialValue: 90, rules: [{ required: true, message: '请输入好评率' }] }]"}],attrs:{min:90,step:1,max:100}}),t("span",{staticClass:"ml-10"},[e._v("%")])],1),t("a-form-item",{attrs:{label:"销量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sold",{initialValue:100,rules:[{required:!0,message:"请输入销量价格"}]}],expression:"['sold', { initialValue: 100, rules: [{ required: true, message: '请输入销量价格' }] }]"}],attrs:{min:100}}),t("span",{staticClass:"ml-10"},[e._v("个")])],1),t("a-form-item",{attrs:{label:"服务图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id",{rules:[{required:!0,message:"请上传图片"}]}],expression:"['image_id', { rules: [{ required: true, message: '请上传图片' }] }]"}]})],1),t("a-form-item",{attrs:{label:"服务状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("上架")]),t("a-radio",{attrs:{value:2}},[e._v("下架")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入至少1个数字' }] }]"}],attrs:{min:0}})],1),t("a-form-item",{attrs:{label:"服务详情",labelCol:e.labelCol,wrapperCol:{span:16}}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{rules:[{required:!0,message:"服务详情不能为空"}]}],expression:"['content', { rules: [{ required: true, message: '服务详情不能为空' }] }]"}]})],1)],1)],1)],1)},d=[],m={components:{SelectImage:c["h"],Ueditor:c["o"]},props:{},data:function(){return{categoryList:[],title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this)}},methods:{add:function(){this.getCategoryList(),this.visible=!0},getCategoryList:function(){var e=this;this.isLoading=!0,l["d"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,l["b"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},f=m,p=a("2877"),h=Object(p["a"])(f,u,d,!1,null,null,null),v=h.exports,g=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"编辑服务",width:920,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"服务名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["server_name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['server_name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"服务分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["category_id",{initialValue:0,rules:[{required:!0,message:"请选择分类"}]}],expression:"['category_id', { initialValue: 0, rules: [{ required: true, message: '请选择分类' }] }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("选择分类")]),e._l(e.categoryList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.category_id}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"服务价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["server_price",{initialValue:1,rules:[{required:!0,message:"请输入服务价格"}]}],expression:"['server_price', { initialValue: 1, rules: [{ required: true, message: '请输入服务价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"划线价格",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["line_price",{initialValue:1,rules:[{required:!0,message:"请输入划线价格"}]}],expression:"['line_price', { initialValue: 1, rules: [{ required: true, message: '请输入划线价格' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"评论数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["comment_num",{initialValue:10,rules:[{required:!0,message:"请输入评论数量"}]}],expression:"['comment_num', { initialValue: 10, rules: [{ required: true, message: '请输入评论数量' }] }]"}],attrs:{min:10,step:10}})],1),t("a-form-item",{attrs:{label:"好评率",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["comment_rate",{initialValue:90,rules:[{required:!0,message:"请输入好评率"}]}],expression:"['comment_rate', { initialValue: 90, rules: [{ required: true, message: '请输入好评率' }] }]"}],attrs:{min:90,step:1,max:100}}),t("span",{staticClass:"ml-10"},[e._v("%")])],1),t("a-form-item",{attrs:{label:"销量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sold",{initialValue:100,rules:[{required:!0,message:"请输入销量价格"}]}],expression:"['sold', { initialValue: 100, rules: [{ required: true, message: '请输入销量价格' }] }]"}],attrs:{min:100}}),t("span",{staticClass:"ml-10"},[e._v("个")])],1),t("a-form-item",{attrs:{label:"服务图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}],attrs:{defaultList:e.record.image?[e.record.image]:[]}})],1),t("a-form-item",{attrs:{label:"服务状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("上架")]),t("a-radio",{attrs:{value:2}},[e._v("下架")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入至少1个数字' }] }]"}],attrs:{min:0}})],1),t("a-form-item",{attrs:{label:"服务详情",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content",{rules:[{required:!0,message:"服务详情不能为空"}]}],expression:"['content', { rules: [{ required: true, message: '服务详情不能为空' }] }]"}]})],1)],1)],1)],1)},b=[],y={components:{SelectImage:c["h"],Ueditor:c["o"]},props:{},data:function(){return{categoryList:[],title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),record:{}}},methods:{edit:function(e){this.getCategoryList(),this.visible=!0,this.record=e,this.setFieldsValue()},getCategoryList:function(){var e=this;this.isLoading=!0,l["d"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},setFieldsValue:function(){var e=this,t=this.form.setFieldsValue;this.$nextTick((function(){t(_.pick(e.record,["server_name","image_id","category_id","status","server_price","line_price","sort","content","comment_rate","sold","comment_num"]))}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,l["i"]({serverId:this.record["server_id"],form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},C=y,w=Object(p["a"])(C,g,b,!1,null,null,null),x=w.exports,L=[{title:"服务ID",dataIndex:"server_id"},{title:"服务图片",dataIndex:"server_image",scopedSlots:{customRender:"server_image"}},{title:"服务名称",dataIndex:"server_name",scopedSlots:{customRender:"server_name"}},{title:"服务分类",dataIndex:"server_category",scopedSlots:{customRender:"server_category"}},{title:"服务价格",dataIndex:"server_price",scopedSlots:{customRender:"server_price"}},{title:"划线价格",dataIndex:"line_price",scopedSlots:{customRender:"line_price"}},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"排序",dataIndex:"sort"},{title:"添加时间",width:"180px",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"150px",scopedSlots:{customRender:"action"}}],S={name:"Index",components:{ContentHeader:c["a"],STable:c["d"],Add:v,Edit:x},data:function(){var e=this;return{searchForm:this.$form.createForm(this),categoryList:[],queryParam:{},isLoading:!1,columns:L,selectedRowKeys:[],loadData:function(t){return l["n"](Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){this.$route.query.status&&(this.queryParam.status=this.$route.query.status),this.getCategoryList()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleTabs:function(e){this.queryParam.status=e.target.value,this.handleRefresh(!0)},handleSearch:function(e){this.handleRefresh(!0)},handleReset:function(){this.searchForm.resetFields()},getCategoryList:function(){var e=this;this.isLoading=!0,l["d"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleUpdateStatus:function(e){var t=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isLoading=!0,l["o"]({serverIds:e,state:a}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){t.isLoading=!1}))},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return l["f"]({serverId:e}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){return a.destroy()}))}})},handleCreate:function(){this.$refs.AddRef.add()},handleEdit:function(e){var t=this;return Object(o["a"])(Object(n["a"])().mark((function a(){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.$refs.EditRef.edit(e);case 1:case"end":return a.stop()}}),a)})))()},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)}}},q=S,k=(a("d0c5"),Object(p["a"])(q,r,i,!1,null,"3d9ae90d",null));t["default"]=k.exports},"506f":function(e,t,a){"use strict";a("1d4bc")},"59ee":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"}),t("s-table",{ref:"table",attrs:{rowKey:"recovery_id",loading:e.isLoading,columns:e.columns,data:e.loadData,rowSelection:e.rowSelection,pageSize:15},scopedSlots:e._u([{key:"recovery_image",fn:function(e,a){return t("span",{},[t("a",{attrs:{title:"点击查看原图",href:a.image.external_url,target:"_blank"}},[t("img",{attrs:{width:"50",height:"50",src:a.image.external_url,alt:"回收图片"}})])])}},{key:"recovery_name",fn:function(a){return t("span",{},[t("p",{staticClass:"twoline-hide"},[e._v(e._s(a))])])}},{key:"status",fn:function(a,r){return t("span",{},[t("a-tag",{staticClass:"cur-p",attrs:{color:1==a?"green":"red"},on:{click:function(t){return e.handleUpdateStatus([r.recovery_id],1!=a)}}},[e._v(e._s(1==a?"上架":"下架"))])],1)}},{key:"action",fn:function(a,r){return t("span",{staticClass:"actions"},[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],attrs:{icon:"delete"},on:{click:function(t){return e.handleDelete([r.recovery_id])}}},[e._v("删除")])])}}])})],1)},i=[],n=a("c7eb"),o=a("1da1"),s=a("5530"),l=(a("d3b7"),a("daab")),c=a("2af9"),u=[{title:"订单号",dataIndex:"order_no"},{title:"回收ID",dataIndex:"recovery_id"},{title:"回收名称",dataIndex:"recovery_name",scopedSlots:{customRender:"recovery_name"}},{title:"回收类型",dataIndex:"recovery_type_text",scopedSlots:{customRender:"recovery_type_text"}},{title:"姓名",dataIndex:"username"},{title:"服务时间",width:"180px",dataIndex:"server_time"},{title:"手机号",width:"180px",dataIndex:"mobile"},{title:"期待价格",width:"180px",dataIndex:"expect_price"},{title:"添加时间",width:"180px",dataIndex:"create_time"},{title:"状态",dataIndex:"order_status_text",scopedSlots:{customRender:"order_status_text"}}],d={name:"Index",components:{ContentHeader:c["a"],STable:c["d"]},data:function(){var e=this;return{searchForm:this.$form.createForm(this),categoryList:[],queryParam:{},isLoading:!1,columns:u,selectedRowKeys:[],loadData:function(t){return l["h"](Object(s["a"])(Object(s["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){this.$route.query.status&&(this.queryParam.status=this.$route.query.status),this.getCategoryList()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleTabs:function(e){this.queryParam.status=e.target.value,this.handleRefresh(!0)},handleSearch:function(e){this.handleRefresh(!0)},handleReset:function(){this.searchForm.resetFields()},getCategoryList:function(){var e=this;this.isLoading=!0,l["c"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleUpdateStatus:function(e){var t=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.isLoading=!0,l["j"]({recoveryIds:e,state:a}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){t.isLoading=!1}))},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return l["e"]({serverId:e}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){return a.destroy()}))}})},handleCreate:function(){this.$refs.AddRef.add()},handleEdit:function(e){var t=this;return Object(o["a"])(Object(n["a"])().mark((function a(){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.$refs.EditRef.edit(e);case 1:case"end":return a.stop()}}),a)})))()},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectedRowKeys=[],this.$refs.table.refresh(e)}}},m=d,f=(a("468e"),a("2877")),p=Object(f["a"])(m,r,i,!1,null,"275f1ee4",null);t["default"]=p.exports},"69bc":function(e,t,a){},"6f83":function(e,t,a){},"75c2":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{layout:"inline"}},[t("a-form-item",{attrs:{label:"服务名称"}},[t("a-input",{attrs:{placeholder:"请输入服务名称","allow-clear":""},model:{value:e.queryParam.server_name,callback:function(t){e.$set(e.queryParam,"server_name",t)},expression:"queryParam.server_name"}})],1),t("a-form-item",{attrs:{label:"用户手机号"}},[t("a-input",{attrs:{placeholder:"请输入用户手机号","allow-clear":""},model:{value:e.queryParam.user_mobile,callback:function(t){e.$set(e.queryParam,"user_mobile",t)},expression:"queryParam.user_mobile"}})],1),t("a-form-item",{attrs:{label:"订单号"}},[t("a-input",{attrs:{placeholder:"请输入订单号","allow-clear":""},model:{value:e.queryParam.order_no,callback:function(t){e.$set(e.queryParam,"order_no",t)},expression:"queryParam.order_no"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.handleSearch}},[e._v("搜索")])],1)],1)],1),t("div",{staticClass:"row-item-tab clearfix"},[t("div",{staticClass:"tab-list fl-l"},[t("a-radio-group",{attrs:{defaultValue:e.queryParam.order_status},on:{change:e.handleTabs}},[t("a-radio-button",{attrs:{value:"0"}},[e._v("全部")]),e._l(e.orderStatusList,(function(a,r){return t("a-radio-button",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1)])],1),t("a-table",{attrs:{rowKey:function(e){return e.order_id},columns:e.columns,"data-source":e.list,scroll:{x:1300},bordered:"",pagination:!1},scopedSlots:e._u([{key:"action",fn:function(a){return t("span",{staticClass:"actions"},[20==a.order_status?t("a-button",{staticStyle:{"margin-right":"8px"},attrs:{type:"primary"},on:{click:function(t){return e.handleDispatch(a.order_id)}}},[e._v(" 派单 ")]):e._e(),10==a.order_status||20==a.order_status?t("a-button",{attrs:{type:"danger"},on:{click:function(t){return e.handleCancel(a.order_id)}}},[e._v("取消")]):e._e()],1)}}])}),t("a-pagination",{staticStyle:{float:"right"},attrs:{total:e.total,"show-less-items":"","page-size":e.queryParam.pageSize},on:{change:e.handlePageChange},model:{value:e.queryParam.page,callback:function(t){e.$set(e.queryParam,"page",t)},expression:"queryParam.page"}}),t("dispatch",{ref:"dispatchRef",on:{handleSubmit:e.handleRefresh}})],1)},i=[],n=(a("d3b7"),a("41ed")),o=a("2af9"),s=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"派单",width:400,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"服务人员",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["dealer_id",{initialValue:0,rules:[{required:!0,message:"请选择服务人员"}]}],expression:"['dealer_id', { initialValue: 0, rules: [{ required: true, message: '请选择服务人员' }] }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("选择服务人员")]),e._l(e.engineerList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.user_id}},[e._v(e._s(a.real_name)),a.mobile?t("span",[e._v("("+e._s(a.mobile)+") ")]):e._e()])}))],2)],1)],1)],1)],1)},l=[],c={components:{},props:{},data:function(){return{engineerList:[],title:"",labelCol:{span:7},order_id:"",wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this)}},methods:{add:function(e){this.getEngineerList(),this.order_id=e,this.visible=!0},getEngineerList:function(){var e=this;this.isLoading=!0,n["j"]().then((function(t){e.engineerList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||(a.order_id=t.order_id,t.onFormSubmit(a))}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,n["g"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},u=c,d=a("2877"),m=Object(d["a"])(u,s,l,!1,null,null,null),f=m.exports,p=[{title:"订单号",dataIndex:"order_no",width:"180px",ellipsis:!0},{title:"订单价格",dataIndex:"total_price"},{title:"优惠金额",dataIndex:"coupon_money"},{title:"支付金额",dataIndex:"pay_price"},{title:"订单状态",dataIndex:"order_status_text"},{title:"用户手机号",dataIndex:"user_mobile"},{title:"工程师手机号",dataIndex:"dealer_mobile"},{title:"服务名称",dataIndex:"server_name",ellipsis:!0},{title:"下单时间",width:"180px",dataIndex:"create_time",ellipsis:!0},{title:"操作",width:"150px",fixed:"right",scopedSlots:{customRender:"action"}}],h={name:"Index",components:{ContentHeader:o["a"],STable:o["d"],Dispatch:f},data:function(){return{searchForm:this.$form.createForm(this),categoryList:[],orderStatusList:[],queryParam:{order_status:"0",server_name:"",category_id:"",page:1,pageSize:15},total:0,isLoading:!1,columns:p,selectedRowKeys:[],list:[]}},created:function(){this.$route.query.order_status&&(this.queryParam.order_status=this.$route.query.order_status),this.getOrderStatusList(),this.fetchData()},computed:{rowSelection:function(){return{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}}},methods:{onSelectChange:function(e){this.selectedRowKeys=e},handleTabs:function(e){this.queryParam.page=1,this.queryParam.order_status=e.target.value,this.fetchData()},handleSearch:function(){this.queryParam.page=1,this.fetchData()},fetchData:function(){var e=this;this.isLoading=!0,n["l"](this.queryParam).then((function(t){e.list=t.data.list,e.total=t.data.total})).finally((function(){return e.isLoading=!1}))},handleReset:function(){this.searchForm.resetFields()},handlePageChange:function(e){this.queryParam.page=e,this.fetchData()},handleCancel:function(e){var t=this,a=this.$confirm({title:"您确定要取消该订单吗?",content:"",onOk:function(){return n["c"]({orderId:e}).then((function(e){t.$message.success(e.message,1.5),t.fetchData()})).finally((function(e){return a.destroy()}))}})},getOrderStatusList:function(){var e=this;this.isLoading=!0,n["m"]().then((function(t){e.orderStatusList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleDispatch:function(e){this.$refs.dispatchRef.add(e)},handleRefresh:function(){this.selectedRowKeys=[],this.fetchData()}}},v=h,g=(a("777c"),Object(d["a"])(v,r,i,!1,null,"11a6367c",null));t["default"]=g.exports},"777c":function(e,t,a){"use strict";a("69bc")},7847:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-button",{directives:[{name:"action",rawName:"v-action:add",arg:"add"}],attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")])],1),e.isLoading?e._e():t("a-table",{attrs:{rowKey:"category_id",columns:e.columns,dataSource:e.categoryList,defaultExpandAllRows:!0,expandIconColumnIndex:1,pagination:!1,loading:e.isLoading},scopedSlots:e._u([{key:"status",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:a?"green":""}},[e._v(e._s(a?"显示":"隐藏"))])],1)}},{key:"action",fn:function(a,r){return t("span",{},[[t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("编辑")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])]],2)}}],null,!1,721492270)}),t("AddForm",{ref:"AddForm",on:{handleSubmit:e.handleRefresh}}),t("EditForm",{ref:"EditForm",on:{handleSubmit:e.handleRefresh}})],1)},i=[],n=a("c7eb"),o=a("1da1"),s=(a("d3b7"),a("daab")),l=a("2af9"),c=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"新增服务分类",width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"分类名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"分类图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}]})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入至少1个数字' }] }]"}],attrs:{min:0}})],1)],1)],1)],1)},u=[],d={components:{SelectImage:l["h"]},props:{},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this)}},methods:{add:function(){this.visible=!0},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,s["a"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},m=d,f=a("2877"),p=Object(f["a"])(m,c,u,!1,null,null,null),h=p.exports,v=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"编辑服务分类",width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"分类名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,min:2,message:"请输入至少2个字符"}]}],expression:"['name', { rules: [{ required: true, min: 2, message: '请输入至少2个字符' }] }]"}]})],1),t("a-form-item",{attrs:{label:"分类图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}],attrs:{defaultList:e.record.image?[e.record.image]:[]}})],1),t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"用户端是否展示"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("显示")]),t("a-radio",{attrs:{value:0}},[e._v("隐藏")])],1)],1),t("a-form-item",{attrs:{label:"排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"数字越小越靠前"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["sort",{initialValue:100,rules:[{required:!0,message:"请输入至少1个数字"}]}],expression:"['sort', { initialValue: 100, rules: [{ required: true, message: '请输入至少1个数字' }] }]"}],attrs:{min:0}})],1)],1)],1)],1)},g=[],b=a("2ef0"),y=a.n(b),C={components:{SelectImage:l["h"]},props:{},data:function(){return{title:"",labelCol:{span:7},wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),record:{}}},methods:{edit:function(e){this.visible=!0,this.record=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.form.setFieldsValue;this.$nextTick((function(){t(y.a.pick(e,["name","image_id","status","sort"]))}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,s["f"]({categoryId:this.record["category_id"],form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},_=C,w=Object(f["a"])(_,v,g,!1,null,null,null),x=w.exports,L={name:"Index",components:{STable:l["d"],AddForm:h,EditForm:x},data:function(){return{categoryList:[],queryParam:{},isLoading:!0,columns:[{title:"分类ID",dataIndex:"category_id"},{title:"分类名称",dataIndex:"name"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"排序",dataIndex:"sort"},{title:"添加时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],menuList:[]}},created:function(){this.getcategoryList()},methods:{getcategoryList:function(){var e=this;this.isLoading=!0,s["c"]().then((function(t){e.categoryList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleAdd:function(){var e=this;return Object(o["a"])(Object(n["a"])().mark((function t(){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs.AddForm.add();case 1:case"end":return t.stop()}}),t)})))()},handleEdit:function(e){var t=this;return Object(o["a"])(Object(n["a"])().mark((function a(){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.$refs.EditForm.edit(e);case 1:case"end":return a.stop()}}),a)})))()},handleDelete:function(e){var t=this,a=this.$confirm({title:"您确定要删除该记录吗?",content:"删除后不可恢复",onOk:function(){return s["d"]({categoryId:e["category_id"]}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(){return a.destroy()}))}})},handleRefresh:function(){this.getcategoryList()}}},S=L,q=Object(f["a"])(S,r,i,!1,null,null,null);t["default"]=q.exports},b1e1:function(e,t,a){},c7eb:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),a("b636"),a("944a"),a("0c47"),a("23dc"),a("3410"),a("159b"),a("b0c0"),a("131a"),a("fb6a");var r=a("53ca");function i(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ i=function(){return e};var e={},t=Object.prototype,a=t.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(F){u=function(e,t,a){return e[t]=a}}function d(e,t,a,r){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new k(r||[]);return n(o,"_invoke",{value:x(e,a,s)}),o}function m(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(F){return{type:"throw",arg:F}}}e.wrap=d;var f={};function p(){}function h(){}function v(){}var g={};u(g,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(R([])));y&&y!==t&&a.call(y,s)&&(g=y);var C=v.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(n,o,s,l){var c=m(e[n],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(r["a"])(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return i("throw",e,s,l)}))}l(c.arg)}var o;n(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){i(e,a,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,a){var r="suspendedStart";return function(i,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw n;return I()}for(a.method=i,a.arg=n;;){var o=a.delegate;if(o){var s=L(o,a);if(s){if(s===f)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var l=m(e,t,a);if("normal"===l.type){if(r=a.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(r="completed",a.method="throw",a.arg=l.arg)}}}function L(e,t){var a=t.method,r=e.iterator[a];if(void 0===r)return t.delegate=null,"throw"===a&&e.iterator["return"]&&(t.method="return",t.arg=void 0,L(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var i=m(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var n=i.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var n=this.tryEntries[i],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=a.call(n,"catchLoc"),l=a.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),q(a),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var i=r.arg;q(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:R(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),f}},e}},d0c5:function(e,t,a){"use strict";a("b1e1")},daab:function(e,t,a){"use strict";a.d(t,"i",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"g",(function(){return s})),a.d(t,"e",(function(){return l})),a.d(t,"j",(function(){return c})),a.d(t,"c",(function(){return u})),a.d(t,"a",(function(){return d})),a.d(t,"f",(function(){return m})),a.d(t,"d",(function(){return f})),a.d(t,"h",(function(){return p}));var r=a("b775"),i={categoryList:"/recovery/categoryList",addCategory:"/recovery/addCategory",editCategory:"/recovery/editCategory",deleteCategory:"/recovery/deleteCategory",recoveryList:"/recovery/recoveryList",addRecovery:"/recovery/addRecovery",editRecovery:"/recovery/editRecovery",deleteRecovery:"/recovery/deleteRecovery",recoveryStatus:"/recovery/recoveryStatus",recoveryDetail:"/recovery/recoveryDetail",orderList:"/recovery/orderList",cancelOrder:"/recovery/cancelOrder",orderStatus:"/recovery/orderStatus"};function n(e){return Object(r["b"])({url:i.recoveryList,method:"post",data:e})}function o(e){return Object(r["b"])({url:i.addRecovery,method:"post",data:e})}function s(e){return Object(r["b"])({url:i.editRecovery,method:"post",data:e})}function l(e){return Object(r["b"])({url:i.deleteRecovery,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.recoveryStatus,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.categoryList,method:"post",params:e})}function d(e){return Object(r["b"])({url:i.addCategory,method:"post",data:e})}function m(e){return Object(r["b"])({url:i.editCategory,method:"post",data:e})}function f(e){return Object(r["b"])({url:i.deleteCategory,method:"post",data:e})}function p(e){return Object(r["b"])({url:i.orderList,method:"post",data:e})}}}]);