You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.6 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-091dbd42"],{e692:function(e,t,a){"use strict";a.d(t,"m",(function(){return r})),a.d(t,"h",(function(){return o})),a.d(t,"n",(function(){return l})),a.d(t,"a",(function(){return n})),a.d(t,"e",(function(){return u})),a.d(t,"f",(function(){return i})),a.d(t,"c",(function(){return d})),a.d(t,"d",(function(){return c})),a.d(t,"i",(function(){return h})),a.d(t,"j",(function(){return p})),a.d(t,"k",(function(){return b})),a.d(t,"b",(function(){return m})),a.d(t,"l",(function(){return f})),a.d(t,"g",(function(){return g}));var s=a("b775");a("2c37");function r(e){return s["a"].request({method:"POST",url:"shop/supplier/insert",data:e})}function o(e){return s["a"].request({method:"POST",url:"shop/goods/insert",data:e})}function l(e){return s["a"].request({method:"GET",url:"shop/supplier/list",params:e})}function n(e){return s["a"].request({method:"POST",url:"shop/order/arrivalGoods",data:e})}function u(e){return s["a"].request({method:"GET",url:"shop/category/list",params:e})}function i(e){return s["a"].request({method:"POST",url:"shop/category/update",data:e})}function d(e){return s["a"].request({method:"GET",url:"shop/category/delete",params:e})}function c(e){return s["a"].request({method:"POST",url:"shop/category/insert",data:e})}function h(e){return s["a"].request({method:"GET",url:"shop/goods/loading",params:e})}function p(e){return s["a"].request({method:"GET",url:"shop/goods/unloading",params:e})}function b(e){return s["a"].request({method:"POST",url:"shop/order/deliverGoods",data:e})}function m(e){return s["a"].request({method:"GET",url:"shop/refund/exchangeGoods",params:e})}function f(e){return s["a"].request({method:"POST",url:"shop/refund/examine",data:e})}function g(e){return s["a"].request({method:"POST",url:"shop/evaluation/reply",data:e})}},e8cd:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{},[t("VueTable",{ref:"table",attrs:{config:e.config},on:{tableCheck:e.tableCheck},scopedSlots:e._u([{key:"goodsImgList",fn:function(a){return[a.data.goodsImgList.length?t("div",[t("el-button",{staticClass:"init-text",attrs:{type:"text"},on:{click:function(t){return e.getPhotoView(a.data.goodsImgList)}}},[t("span",[e._v("查看")])])],1):t("div",[e._v("-")])]}}])},[t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"},[t("button",{on:{click:function(t){return e.add(e.table_row)}}},[e._v("审核")]),t("button",{on:{click:function(t){return e.change(e.table_row)}}},[e._v("已换货")])])])],2)],1),t("Drawer",{attrs:{drawerTitle:"审核",drawerVrisible:e.add_vrisible},on:{drawerClose:e.addClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("退换审核")]),[t("VueForm",{ref:"addForm",attrs:{formObj:e.addForm}})]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.addSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.addClose}},[t("span",[e._v("取消")])])])])],1)]),t("views-photo",{attrs:{isVisible:e.photos_Visible,goodsImgsList:e.goodsImgsList},on:{closeViews:e.getclose}})],1)},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("退换申请")])])}],o=a("5bf1"),l=a("e692"),n={components:{viewsPhoto:o["a"]},data(){return{photos_Visible:!1,goodsImgsList:[],add_vrisible:!1,addDate:null,addForm:{ruleForm:{},form_item:[{type:"Select",label:"审核状态",placeholder:"请选择",width:"100%",options:[{value:9,label:"申请通过"},{value:10,label:"申请驳回"}],prop:"status"},{type:"textarea",label:"审核通过/驳回原因",placeholder:"请输入",width:"50%",prop:"reason"}]},table_row:[],imglist:[],activeName:"0",config:{thead:[{label:"序号",type:"index",width:"80"},{label:"订单编号",prop:"code",width:"100"},{label:"商品名称",prop:"goodsName",width:"auto"},{label:"商品照片",prop:"goodsImgList",width:"150",type:"slot",slotName:"goodsImgList"},{label:"用户信息",prop:"userName",width:"230",type:"function",callback:(e,t)=>{if(e.userTel)return e.userName+" "+e.userTel}},{label:"客户期望",prop:"backType",width:"auto",type:"function",callback:(e,t)=>{switch(e.backType){case 1:return"退货";case 2:return"换货";default:break}}},{label:"退换货状态",prop:"status",width:"auto",type:"function",callback:(e,t)=>{switch(e.status){case-3:return"支付完成后全额退款";case-2:return"交易创建并等待买家付款";case-1:return"未付款交易超时关闭";case 1:return"待发货";case 2:return"已发货";case 3:return"已到货";case 4:return"已收货";case 6:return"已评价";case 8:return"申请退换货";case 9:return"申请通过";case 10:return"申请退换货驳回";case 11:return"换货中";case 12:return"已换货";case 15:return"交易结束并不可退款"}}},{label:"退货申请时间",prop:"backDate",width:"auto"}],table_data:[],url:"shopRefundList",search_item:[{type:"Input",label:"订单编号",placeholder:"请输入订单号",prop:"code"},{type:"select",label:"审核状态",placeholder:"请选择",options:[{value:1,label:"退货"},{value:2,label:"换货"}],prop:"backType"},{type:"Int",label:"用户手机号",placeholder:"请输入手机号",prop:"userTel"},{type:"select",label:"退换货状态",placeholder:"请选择",options:[{value:-3,label:"支付完成后全额退款"},{value:-2,label:"交易创建并等待买家付款"},{value:-1,label:"未付款交易超时关闭"},{value:1,label:"待发货"},{value:2,label:"已发货"},{value:3,label:"已到货"},{value:4,label:"已收货"},{value:6,label:"已评价"},{value:8,label:"申请退换货"},{value:9,label:"申请退换货通过"},{value:10,label:"申请退换货驳回"},{value:11,label:"换货中"},{value:12,label:"已换货"},{value:15,label:"交易结束"}],prop:"status"}],data:{pageNum:1,size:10}}}},methods:{change(e){e.length>1?this.$message.error("只能操作一条数据"):e.length?11!==e[0].status?this.$message({message:"该状态不可操作",type:"error"}):Object(l["b"])({id:e[0].id}).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.loadData())}):this.$message.error("请选择")},getPhotoView(e){this.photos_Visible=!0,this.goodsImgsList=e},getclose(){this.photos_Visible=!1},add(e){e.length>1?this.$message.error("只能操作一条数据"):e.length?8!==e[0].status?this.$message({message:"该审核已结束",type:"error"}):this.add_vrisible=!0:this.$message.error("请选择")},addClose(){this.$refs.addForm.reset(),this.add_vrisible=!1},addSubmit(){let e={...this.addForm.ruleForm,id:this.table_row[0].id};Object(l["l"])(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})},dateTimeChange(e){this.addForm.ruleForm.openStartDate=e[0],this.addForm.ruleForm.openEndDate=e[1]},handleClick(e,t){let a=null;a=0!=this.activeName?this.activeName:null;const s={pageNum:1,size:10,status:a};this.$refs.table.requestData(s)},tableCheck(e){this.table_row=e},del(e){if(e.length){let e=[];for(let t=0;t<this.table_row.length;t++)e.push(this.table_row[t].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.table.tableDelete(e)}).catch(e=>{})}else this.$message.error("请选中需要删除的数据")}}},u=n,i=a("2877"),d=Object(i["a"])(u,s,r,!1,null,null,null);t["default"]=d.exports}}]);
//# sourceMappingURL=chunk-091dbd42.fc02746f.js.map