(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0decb5"],{"86bc":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[e._m(0),a("div",{staticClass:"pad_20 flex-bet flex-y-top"},[a("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[a("el-form-item",{attrs:{label:"手机号或商品名称"}},[a("el-input",{attrs:{size:"medium",placeholder:"请输入手机号或商品名称"},on:{input:e.onSearch},model:{value:e.formInline.keyword,callback:function(t){e.$set(e.formInline,"keyword",t)},expression:"formInline.keyword"}})],1),a("el-form-item",{attrs:{label:"商品分类"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.onSearch},model:{value:e.formInline.type,callback:function(t){e.$set(e.formInline,"type",t)},expression:"formInline.type"}},e._l(e.labelOptions2,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.onSearch},model:{value:e.formInline.state,callback:function(t){e.$set(e.formInline,"state",t)},expression:"formInline.state"}},e._l(e.labelOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.onSearch}},[e._v("搜索")]),a("a",{staticClass:"mar_l10",attrs:{href:e.handelExport()}},[a("el-button",{attrs:{size:"medium"}},[e._v("导出")])],1)],1)],1)],1),a("div",{staticClass:"tabledata mar_t20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{data:e.list,"element-loading-text":e.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{prop:"goodsName",label:"商品名称"}}),a("el-table-column",{attrs:{prop:"type",label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"==t.row.goodsType?a("div",[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("实物商品")])],1):e._e(),"2"==t.row.goodsType?a("div",[a("el-tag",{attrs:{size:"mini"}},[e._v("虚拟商品")])],1):e._e()]}}])}),a("el-table-column",{attrs:{prop:"pay",label:"兑换价格"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.score>0&&t.row.money<=0?a("div",[e._v(e._s(t.row.score)+"积分")]):e._e(),t.row.money>0&&t.row.score<=0?a("div",[e._v(e._s(t.row.money)+"元")]):e._e(),t.row.score>0&&t.row.money>0?a("div",[e._v(e._s(t.row.score)+"积分+"+e._s(t.row.money)+"元 ")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"convertNum",label:"兑换数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("x"+e._s(t.row.convertNum))])]}}])}),a("el-table-column",{attrs:{prop:"createdAt",label:"兑换时间"}}),a("el-table-column",{attrs:{prop:"receinfo",label:"取货方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["1"==t.row.deliveryMode?a("span",[a("el-button",{attrs:{type:"primary",size:"mini"}},[e._v("快递配送")])],1):e._e(),"2"==t.row.deliveryMode?a("span",[a("el-button",{attrs:{type:"success",size:"mini"}},[e._v("到店自提")])],1):e._e()])]}}])}),a("el-table-column",{attrs:{prop:"state",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["2"==t.row.state&&null==t.row.selfCode?a("div",[a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("待发货")])],1):e._e(),"2"==t.row.state&&null!=t.row.selfCode?a("div",[a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("待核销")])],1):e._e(),"3"==t.row.state?a("div",[a("el-tag",{attrs:{size:"mini"}},[e._v("已发货")])],1):e._e(),"4"==t.row.state?a("div",[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已完成")])],1):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"textbutton"},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.seeDetai(t.row)}}},[e._v("查看详情")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:null==t.row.selfCode&&"1"==t.row.goodsType&&"2"==t.row.state,expression:"scope.row.selfCode ==null && scope.row.goodsType=='1' && scope.row.state=='2'"}],attrs:{type:"text"},on:{click:function(a){return e.modifyOrder(t.row.id,1)}}},[e._v("发货 ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:null!=t.row.selfCode&&"2"==t.row.state,expression:"scope.row.selfCode !=null && scope.row.state=='2'"}],attrs:{type:"text"},on:{click:function(a){return e.modifyOrder(t.row.id,2)}}},[e._v("核销 ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"3"==t.row.state,expression:"scope.row.state=='3'"}],attrs:{type:"text"},on:{click:function(a){return e.deliver(t.row.logisticsName,t.row.logisticsCode)}}},[e._v(" 查看 ")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.print(t.row.id)}}},[e._v("打印")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.modifyOrder(t.row.id,3)}}},[e._v("删除")])],1)]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.pagesize,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}}),a("el-dialog",{staticClass:"fahuo",attrs:{title:"编辑发货",visible:e.dialogTableVisible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-form",{ref:"form",attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"物流名称","label-width":e.formLabelWidth,required:!0,prop:"logisticsName"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.form.logisticsName,callback:function(t){e.$set(e.form,"logisticsName",t)},expression:"form.logisticsName"}})],1),a("el-form-item",{attrs:{label:"物流单号","label-width":e.formLabelWidth,required:!0,prop:"logisticsCode"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.form.logisticsCode,callback:function(t){e.$set(e.form,"logisticsCode",t)},expression:"form.logisticsCode"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"dialogcancel",on:{click:function(t){e.dialogTableVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.dialogform(e.form)}}},[e._v("确 定")])],1)],1),a("el-dialog",{staticClass:"fahuo",attrs:{title:"订单核销",visible:e.dialogTableVisible2,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.dialogTableVisible2=t}}},[a("el-form",{ref:"form2",attrs:{model:e.form2}},[a("el-form-item",{attrs:{label:"自提码","label-width":e.formLabelWidth}},[a("el-input",{attrs:{"auto-complete":"off",required:!0,prop:"selfCode"},model:{value:e.form2.selfCode,callback:function(t){e.$set(e.form2,"selfCode",t)},expression:"form2.selfCode"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"dialogcancel",on:{click:function(t){e.dialogTableVisible2=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.dialogform2(e.form2)}}},[e._v("确 定")])],1)],1),a("edit",{ref:"edit",on:{fetchData:e.fetchData}})],1)])},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("兑换记录")])])])}],i=(a("99af"),a("d81d"),a("96cf"),a("1da1")),o=a("7cb7"),l=a("365c"),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("el-dialog",{attrs:{title:e.title,visible:e.dialogFormVisible,width:"55%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.close}},[a("div",{},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px"}},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticClass:"bflex-4"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("订单信息")])])]),a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("商品类型:")]),a("div",["1"==e.orderDetail.goodsType?a("div",[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("实物商品")])],1):e._e(),"2"==e.orderDetail.goodsType?a("div",[a("el-tag",{attrs:{size:"mini"}},[e._v("虚拟商品")])],1):e._e()])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("订单号:"+e._s(e.orderDetail.outTradeNo))]),a("div")]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("取货方式:")]),a("div",["1"==e.orderDetail.deliveryMode?a("span",[a("el-button",{attrs:{type:"primary",size:"mini"}},[e._v("快递配送")])],1):e._e(),"2"==e.orderDetail.deliveryMode?a("span",[a("el-button",{attrs:{type:"success",size:"mini"}},[e._v("到店自提")])],1):e._e()])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("提交时间:")]),a("div",[e._v(e._s(e.orderDetail.createdAt))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("用户信息:")]),a("div",[e._v(e._s(e.orderDetail.userName)+"(UID:"+e._s(e.orderDetail.userId)+")")])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("订单状态:")]),a("div",{staticClass:"flex flex-center"},[a("div",["2"==e.orderDetail.state&&null==e.orderDetail.selfCode?a("div",[a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("待发货")])],1):e._e(),"2"==e.orderDetail.state&&null!=e.orderDetail.selfCode?a("div",[a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("待核销")])],1):e._e(),"3"==e.orderDetail.state?a("div",[a("el-tag",{attrs:{size:"mini"}},[e._v("已发货")])],1):e._e(),"4"==e.orderDetail.state?a("div",[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已完成")])],1):e._e()])])])])]),a("div",{staticClass:"bflex-6 mar_l20"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("兑换详情")])])]),a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},["2"==e.orderDetail.deliveryMode?a("div",{staticClass:"seeLeft"},[e._v("自提点联系人:"+e._s(e.orderDetail.receiveName)+"/"+e._s(e.orderDetail.receiveTel))]):e._e(),"1"==e.orderDetail.deliveryMode?a("div",{staticClass:"seeLeft"},[e._v("配送信息:"+e._s(e.orderDetail.receiveName)+"/"+e._s(e.orderDetail.receiveTel))]):e._e(),a("div")]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},["2"==e.orderDetail.deliveryMode?a("div",{staticClass:"seeLeft"},[e._v("自提点地址:")]):e._e(),"1"==e.orderDetail.deliveryMode?a("div",{staticClass:"seeLeft"},[e._v("配送地址:")]):e._e(),a("div",{},[e._v(e._s(e.orderDetail.receiveAddress))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},["2"==e.orderDetail.deliveryMode?a("div",{staticClass:"seeLeft"},[e._v("核销码:")]):e._e(),a("div",{},[e._v(e._s(e.orderDetail.selfCode))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("商品名称:")]),a("div",{},[e._v(e._s(e.orderDetail.goodsName))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("兑换价格:")]),a("div",{},[e.orderDetail.score>0&&e.orderDetail.money<=0?a("div",[e._v(e._s(e.orderDetail.score)+"积分")]):e._e(),e.orderDetailmoney>0&&e.orderDetail.score<=0?a("div",[e._v(e._s(e.orderDetail.money)+"元")]):e._e(),e.orderDetail.score>0&&e.orderDetail.money>0?a("div",[e._v(e._s(e.orderDetail.score)+"积分+"+e._s(e.orderDetail.money)+"元 ")]):e._e()])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("兑换数量:x"+e._s(e.orderDetail.convertNum))]),a("div")])])])])])],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:e.close}},[e._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])],1)},c=[],d={name:"goodlistedit",created:function(){},data:function(){return{form:{id:"",sort:"1",name:"",min:"",max:"",minute:""},orderDetail:{},title:"",type:1,dialogFormVisible:!1,qjjl:[],qjjl2:[]}},components:{},methods:{showEdit:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:e?(t.title="预约记录",t.orderDetail=Object.assign({},e)):t.title="添加",t.dialogFormVisible=!0;case 2:case"end":return a.stop()}}),a)})))()},close:function(){this.dialogFormVisible=!1},setStoreId:function(e){this.form.storeId=e},save:function(){this.dialogFormVisible=!1}}},u=d,f=a("2877"),m=Object(f["a"])(u,n,c,!1,null,null,null),v=m.exports,p={components:{Edit:v},created:function(){this.fetchData()},data:function(){return{formInline:{keyword:"",type:"",state:""},list:[],listLoading:!0,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},labelOptions:[{value:"0",label:"全部"},{value:"2",label:"待发货"},{value:"3",label:"待收货"},{value:"4",label:"已完成"}],labelOptions2:[{value:"0",label:"全部"},{value:"1",label:"实物商品"},{value:"2",label:"虚拟商品"}],formLabelWidth:"150px",dialogTableVisible:!1,dialogTableVisible2:!1,form:{logisticsName:"",logisticsCode:"",type:"",id:""},form2:{selfCode:""}}},methods:{fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(o["Qb"])({page:e.page.currentPage,keyword:e.formInline.keyword,type:e.formInline.type,state:e.formInline.state});case 3:a=t.sent,r=a.data,s=a.count,e.list=r,e.page.total=s,e.listLoading=!1;case 9:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.page.currentPage=e,this.fetchData()},onSearch:function(){this.fetchData()},modifyOrder:function(e,t){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:e&&1==t&&(a.dialogTableVisible=!0,a.form.id=e),e&&2==t&&(a.dialogTableVisible2=!0,a.form2.id=e),e&&3==t&&a.$baseConfirm("你确定要删除当前项吗",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["Eb"])({id:e,type:3});case 2:r=t.sent,s=r.msg,a.$baseMessage(s,"success"),a.fetchData();case 6:case"end":return t.stop()}}),t)}))));case 3:case"end":return r.stop()}}),r)})))()},print:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e){a.next=7;break}return a.next=3,Object(o["gb"])({id:e});case 3:r=a.sent,s=r.msg,t.$baseMessage(s,"success"),t.fetchData();case 7:case"end":return a.stop()}}),a)})))()},dialogform:function(){var e=this;this.$refs["form"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(a){var r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=11;break}return e.form.type=1,t.next=4,Object(o["Eb"])(e.form);case 4:r=t.sent,s=r.msg,e.dialogTableVisible=!1,e.$baseMessage(s,"success"),e.fetchData(),t.next=12;break;case 11:return t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},dialogform2:function(){var e=this;this.$refs["form2"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(a){var r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.form2.selfCode){t.next=11;break}return e.form2.type=2,t.next=4,Object(o["Eb"])(e.form2);case 4:r=t.sent,s=r.msg,e.dialogTableVisible2=!1,e.$baseMessage(s,"success"),e.fetchData(),t.next=13;break;case 11:return e.$baseMessage("请输入核销码","error"),t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},deliver:function(e,t){window.open("https://www.kuaidi100.com/chaxun","_blank")},handleDelete:function(e){var t=this;if(e.id)this.$baseConfirm("你确定要删除当前项吗",null,Object(i["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(o["Eb"])({id:e.id,type:2});case 2:r=a.sent,s=r.msg,t.$baseMessage(s,"success"),t.fetchData();case 6:case"end":return a.stop()}}),a)}))));else{if(!(this.selectRows.length>0))return this.$baseMessage("未选中任何行","error"),!1;var a=this.selectRows.map((function(e){return e.id}));this.$baseConfirm("你确定要删除选中项吗",null,Object(i["a"])(regeneratorRuntime.mark((function e(){var r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["Eb"])({id:a,type:2});case 2:r=e.sent,s=r.msg,t.$baseMessage(s,"success"),t.fetchData();case 6:case"end":return e.stop()}}),e)}))))}},seeDetai:function(e){e.outTradeNo&&this.$refs["edit"].showEdit(e)},handletj:function(){this.$router.push({path:"deliverytongji"})},handleEdit:function(e){e?this.$router.push("/couponAdd?type=".concat(e)):this.$router.push({path:"couponAdd"})},handleEdit2:function(e){e.id?this.$router.push("/couponAdd?id=".concat(e.id,"&type=").concat(e.type)):this.$router.push({path:"couponAdd"})},handelExport:function(){var e=l["a"].backendPath;return e+"channel/integral-shop/order-list?export=1&page="+this.page.currentPage+"&keyword="+this.formInline.keyword+"&state="+this.formInline.state+"&type="+this.formInline.type}}},b=p,_=Object(f["a"])(b,r,s,!1,null,null,null);t["default"]=_.exports}}]);