(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["i"]},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["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}))}}},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),_={components:{SelectImage:l["i"]},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["i"]({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"])(C,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["e"]().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["f"]({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},"0b2d":function(e,t,a){"use strict";var r=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-input-number",{attrs:{min:0},model:{value:e.real_price,callback:function(t){e.real_price=t},expression:"real_price"}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1)],1)],1)],1)},i=[],n=(a("d3b7"),a("daab")),o={components:{},props:{},data:function(){return{engineerList:[],title:"",labelCol:{span:7},order_id:"",wrapperCol:{span:13},real_price:0,visible:!1,confirmLoading:!1,form:this.$form.createForm(this)}},methods:{add:function(e){this.order_id=e.order_id,this.real_price=e.expect_price,this.visible=!0},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){e||(a.order_id=t.order_id,a.real_price=t.real_price,t.onFormSubmit(a))}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,n["e"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},s=o,l=a("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["a"]=c.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,pagination:e.pagination},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["i"],Ueditor:c["p"]},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:["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["i"],Ueditor:c["p"]},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,["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["i"]({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["m"](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["n"]({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["g"]({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("f827"),Object(p["a"])(q,r,i,!1,null,"11222ba2",null));t["default"]=k.exports},"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)}))}}},2177:function(e,t,a){},"25ce":function(e,t,a){},"2b5d3":function(e,t,a){"use strict";a("25ce")},"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,pagination:e.pagination},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:["cost_price",{initialValue:1,rules:[{required:!0,message:"请输入成本价"}]}],expression:"['cost_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["i"],Ueditor:c["p"]},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["e"]().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["c"]({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:["cost_price",{initialValue:1,rules:[{required:!0,message:"请输入成本价"}]}],expression:"['cost_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["i"],Ueditor:c["p"]},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["e"]().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","cost_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["j"]({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:"cost_price",scopedSlots:{customRender:"cost_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["o"](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["e"]().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["p"]({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["g"]({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("7307"),Object(p["a"])(q,r,i,!1,null,"cbf2ace4",null));t["default"]=k.exports},"59ee":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.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-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"},[e.$auth("/recovery/orderDetail")?t("router-link",{attrs:{to:{path:"/recovery/order/Detail",query:{orderId:a.order_id}},target:"_blank"}},[e._v("详情")]):e._e(),10==a.order_status?t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleAcceptance(a)}}},[e._v("验收")]):e._e()],1)}}])}),t("a-pagination",{staticStyle:{float:"right"},attrs:{"default-page-size":e.queryParam.pageSize,pageSizes:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:e.pageSizeOptions,layout:"total, sizes, prev, pager, next, jumper",showTotal:e.showTotal},on:{showSizeChange:e.handleSizeChange,change:e.handlePageChange},model:{value:e.queryParam.page,callback:function(t){e.$set(e.queryParam,"page",t)},expression:"queryParam.page"}}),t("acceptance",{ref:"acceptance",on:{handleSubmit:e.handleRefresh}})],1)},i=[],n=(a("d3b7"),a("daab")),o=a("2af9"),s=a("0b2d"),l=[{title:"订单号",dataIndex:"order_no",width:"180px",ellipsis:!0},{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"}},{title:"操作",width:"100px",fixed:"right",scopedSlots:{customRender:"action"}}],c={name:"Index",components:{ContentHeader:o["a"],STable:o["d"],Acceptance:s["a"]},data:function(){return{searchForm:this.$form.createForm(this),categoryList:[],orderStatusList:[],queryParam:{order_status:"0",recovery_name:"",category_id:"",order_no:"",page:1,pageSize:15},pageSizeOptions:["15","30","50"],showTotal:function(e){return"共 ".concat(e," 条记录")},total:0,isLoading:!1,columns:l,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["k"](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,t){this.queryParam.page=e,this.queryParam.pageSize=t,this.fetchData()},handleSizeChange:function(e,t){this.queryParam.page=e,this.queryParam.pageSize=t,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["l"]().then((function(t){e.orderStatusList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleAcceptance:function(e){this.$refs.acceptance.add(e)},handleRefresh:function(){this.selectedRowKeys=[],this.fetchData()}}},u=c,d=(a("9bce"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"48417328",null);t["default"]=m.exports},6538:function(e,t,a){},7307:function(e,t,a){"use strict";a("6538")},"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"},[e.$auth("/server/OrderDetail")?t("router-link",{attrs:{to:{path:"/server/OrderDetail",query:{orderId:a.order_id}},target:"_blank"}},[e._v("详情")]):e._e(),20==a.order_status?t("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleDispatch(a.order_id)}}},[e._v("派单")]):e._e(),10==a.order_status||20==a.order_status?t("a",{staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleCancel(a.order_id)}}},[e._v("取消")]):e._e()],1)}}])}),t("a-pagination",{staticStyle:{float:"right"},attrs:{"default-page-size":e.queryParam.pageSize,pageSizes:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:e.pageSizeOptions,layout:"total, sizes, prev, pager, next, jumper",showTotal:e.showTotal},on:{showSizeChange:e.handleSizeChange,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=a("8005"),l=[{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"}}],c={name:"Index",components:{ContentHeader:o["a"],STable:o["d"],Dispatch:s["a"]},data:function(){return{searchForm:this.$form.createForm(this),categoryList:[],orderStatusList:[],queryParam:{order_status:"0",server_name:"",category_id:"",page:1,pageSize:15},pageSizeOptions:["15","30","50"],showTotal:function(e){return"共 ".concat(e," 条记录")},total:0,isLoading:!1,columns:l,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["m"](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,t){this.queryParam.page=e,this.queryParam.pageSize=t,this.fetchData()},handleSizeChange:function(e,t){this.queryParam.page=e,this.queryParam.pageSize=t,this.fetchData()},handleCancel:function(e){var t=this,a=this.$confirm({title:"您确定要取消该订单吗?",content:"",onOk:function(){return n["d"]({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["n"]().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()}}},u=c,d=(a("2b5d3"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"65e0c0f4",null);t["default"]=m.exports},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["i"]},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),_={components:{SelectImage:l["i"]},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"])(C,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["f"]({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},8005:function(e,t,a){"use strict";var r=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)},i=[],n=(a("d3b7"),a("41ed")),o={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["k"]().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["h"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},s=o,l=a("2877"),c=Object(l["a"])(s,r,i,!1,null,null,null);t["a"]=c.exports},"9bce":function(e,t,a){"use strict";a("f9b6")},c7eb:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("a4d3"),a("e01a"),a("b636"),a("d28b"),a("944a"),a("fb6a"),a("b0c0"),a("0c47"),a("23dc"),a("3410"),a("131a"),a("d3b7"),a("3ca3"),a("159b"),a("ddb0");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 t};var e,t={},a=Object.prototype,n=a.hasOwnProperty,o=Object.defineProperty||function(e,t,a){e[t]=a.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,a){return e[t]=a}}function m(e,t,a,r){var i=t&&t.prototype instanceof y?t:y,n=Object.create(i.prototype),s=new $(r||[]);return o(n,"_invoke",{value:O(e,a,s)}),n}function f(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var p="suspendedStart",h="suspendedYield",v="executing",g="completed",b={};function y(){}function _(){}function C(){}var w={};d(w,l,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(V([])));L&&L!==a&&n.call(L,l)&&(w=L);var S=C.prototype=y.prototype=Object.create(w);function q(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function a(i,o,s,l){var c=f(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Object(r["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,l)}),(function(e){a("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return a("throw",e,s,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,i){a(e,r,t,i)}))}return i=i?i.then(n,n):n()}})}function O(t,a,r){var i=p;return function(n,o){if(i===v)throw new Error("Generator is already running");if(i===g){if("throw"===n)throw o;return{value:e,done:!0}}for(r.method=n,r.arg=o;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=f(t,a,r);if("normal"===c.type){if(i=r.done?g:h,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function R(t,a){var r=a.method,i=t.iterator[r];if(i===e)return a.delegate=null,"throw"===r&&t.iterator["return"]&&(a.method="return",a.arg=e,R(t,a),"throw"===a.method)||"return"!==r&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var n=f(i,t.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,b;var o=n.arg;return o?o.done?(a[t.resultName]=o.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,b):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,b)}function F(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function V(t){if(t||""===t){var a=t[l];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function a(){for(;++i=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),I(a),b}},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;I(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,r){return this.delegate={iterator:V(t),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}},daab:function(e,t,a){"use strict";a.d(t,"m",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"i",(function(){return s})),a.d(t,"g",(function(){return l})),a.d(t,"n",(function(){return c})),a.d(t,"d",(function(){return u})),a.d(t,"a",(function(){return d})),a.d(t,"h",(function(){return m})),a.d(t,"f",(function(){return f})),a.d(t,"k",(function(){return p})),a.d(t,"c",(function(){return h})),a.d(t,"l",(function(){return v})),a.d(t,"j",(function(){return g})),a.d(t,"e",(function(){return b}));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",orderDetail:"/recovery/orderDetail",completeOrder:"/recovery/completeOrder"};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})}function h(e){return Object(r["b"])({url:i.cancelOrder,method:"post",data:e})}function v(e){return Object(r["b"])({url:i.orderStatus,method:"post",data:e})}function g(e){return Object(r["b"])({url:i.orderDetail,method:"post",data:e})}function b(e){return Object(r["b"])({url:i.completeOrder,method:"post",data:e})}},f827:function(e,t,a){"use strict";a("2177")},f9b6:function(e,t,a){}}]);