1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d71bd97"],{1491:function(t,e,r){"use strict";r.d(e,"B",(function(){return a})),r.d(e,"z",(function(){return o})),r.d(e,"g",(function(){return i})),r.d(e,"C",(function(){return s})),r.d(e,"y",(function(){return l})),r.d(e,"l",(function(){return c})),r.d(e,"r",(function(){return u})),r.d(e,"c",(function(){return d})),r.d(e,"D",(function(){return m})),r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return _})),r.d(e,"o",(function(){return p})),r.d(e,"p",(function(){return g})),r.d(e,"t",(function(){return b})),r.d(e,"x",(function(){return h})),r.d(e,"w",(function(){return v})),r.d(e,"d",(function(){return y})),r.d(e,"e",(function(){return j})),r.d(e,"n",(function(){return k})),r.d(e,"v",(function(){return w})),r.d(e,"j",(function(){return O})),r.d(e,"s",(function(){return x})),r.d(e,"k",(function(){return D})),r.d(e,"i",(function(){return I})),r.d(e,"h",(function(){return C})),r.d(e,"m",(function(){return U})),r.d(e,"q",(function(){return S})),r.d(e,"A",(function(){return F})),r.d(e,"f",(function(){return B})),r.d(e,"u",(function(){return Q}));var n=r("b775");function a(t){return Object(n["a"])({url:"/orders/get_agent_gift_bag",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/orders/add_list_tag",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/orders/BatchAddTag",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/orders/export_list",method:"get",params:t})}function l(){return Object(n["a"])({url:"/activity/getactivityinfo",method:"get"})}function c(t){return Object(n["a"])({url:"/orders/GetActivityLimit",method:"get",params:t})}function u(t){return Object(n["a"])({url:"/UserImg/GetUserInfo",method:"get",params:t})}function d(t){return Object(n["a"])({url:"/UserImg/AddUserImgInfo",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/UserImg/uploadImage",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/UserImg/AddUpdateImg",method:"get",params:t})}function _(t){return Object(n["a"])({url:"/UserImg/AddUpdateImgB",method:"get",params:t})}function p(t){return Object(n["a"])({url:"/UserImg/GetImgStatus",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/UserImg/GetImgStatusB",method:"get",params:t})}function b(t){return Object(n["a"])({url:"/UserImg/GetUserList",method:"get",params:t})}function h(t){return Object(n["a"])({url:"/UserImg/UpdateUserImgInfoB ",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/UserImg/UpdateUserImgInfo",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/UserImg/AgainCreateImg",method:"get",params:t})}function j(t){return Object(n["a"])({url:"/UserImg/AgainCreateImgB",method:"get",params:t})}function k(t){return Object(n["a"])({url:"/UserImg/GetCrownInfo",method:"get",params:t})}function w(t){return Object(n["a"])({url:"/UserImg/UpdateCrownImgInfo",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/UserImg/DeleteUserImg",method:"get",params:t})}function x(t){return Object(n["a"])({url:"/UserImg/GetUserInfos",method:"get",params:t})}function D(t){return Object(n["a"])({url:"/UserImg/ExportAddress",method:"get",params:t})}function I(t){return Object(n["a"])({url:"/CrownBigGiftInfo",method:"get",params:t})}function C(t){return Object(n["a"])({url:"/BigGiftInfo",method:"get",params:t})}function U(t){return Object(n["a"])({url:"/BigGift/GetApplyList",method:"get",params:t})}function S(t){return Object(n["a"])({url:"/BigGift/GetUserInfo",method:"get",params:t})}function F(t){return Object(n["a"])({url:"/BigGift/editBelongToUser",method:"post",data:t})}function B(t){return Object(n["a"])({url:"/BigGift/ApplySuccess",method:"post",data:t})}function Q(t){return Object(n["a"])({url:"/BigGift/UpdateApply",method:"post",data:t})}},"44f1":function(t,e,r){"use strict";r.d(e,"c",(function(){return n})),r.d(e,"d",(function(){return a})),r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return i}));r("c5f6"),r("a481"),r("ac6a");function n(t){switch(+t){case-2:return{name:"已取消",color:"#F56C6C"};case-1:return{name:"待收款确认",color:"#4da5a5"};case 0:return{name:"待订单审核",color:"#f97547"};case 1:return{name:"待财务审核",color:"#13c19f"};case 2:return{name:"待发货审核",color:"#ffaa1d"};case 3:return{name:"待收货",color:"#409EFF"};case 4:return{name:"已完成",color:"#74a2e6"};case 5:return{name:"已驳回(客服)",color:"#67C23A"};case 6:return{name:"已驳回(财务)",color:"#67C23A"};case 7:return{name:"已驳回(物流)",color:"#67C23A"};default:return{name:"未知订单状态",color:"#909399"}}}function a(t){switch(+t){case 0:return{name:"未付款",color:"#f96b6b"};case 1:return{name:"部分付款",color:"#f96b6b"};case 2:return{name:"已付款",color:"#415161"};case 3:return{name:"待退款",color:"#f96b6b"};default:return{name:"未知支付状态",color:"#909399"}}}function o(t){var e;switch(t){case 0:e="销售未实名认证";break;case 1:e="等待分享人审核";break;case 2:e="等待上级批发商审核";break;case 3:e="等待用户确认";break;case 4:e="分享人审核驳回";break;case 5:e="上级批发商审核驳回";break;case 6:e="授权成功";break;default:e=t}return e}function i(t){if(!t&&0!==t)return{name:"类别待定",color:"#909399"};var e;switch(t){case 3:e={name:"批发商",color:"#f0a637"};break;case 2:e={name:"经销商",color:"#67c23a"};break;case 1:e={name:"销售员",color:"#1fd3c2"};break;default:e={name:"公司",color:"#409eff"}}return e}},4764:function(t,e,r){"use strict";r.d(e,"m",(function(){return a})),r.d(e,"e",(function(){return o})),r.d(e,"o",(function(){return i})),r.d(e,"q",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return c})),r.d(e,"g",(function(){return u})),r.d(e,"r",(function(){return d})),r.d(e,"p",(function(){return m})),r.d(e,"l",(function(){return f})),r.d(e,"i",(function(){return _})),r.d(e,"n",(function(){return p})),r.d(e,"f",(function(){return g})),r.d(e,"h",(function(){return b})),r.d(e,"k",(function(){return h})),r.d(e,"b",(function(){return v})),r.d(e,"a",(function(){return y})),r.d(e,"j",(function(){return j}));var n=r("b775");function a(t){return Object(n["a"])({url:"/orders/order_detail",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/orders/add_order_log",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/orders/audit_order",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/orders/get_collect_money_log",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/orders/get_user_money",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/orders/add_income_log",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/orders/part_back_money",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/orders/destory_order",method:"get",params:t})}function m(t){return Object(n["a"])({url:"/orders/send_express",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/orders/order_address",method:"get",params:t})}function _(t){return Object(n["a"])({url:"/orders/destroy_order_address",method:"post",data:t})}function p(){return Object(n["a"])({url:"/orders/get_cancel_why",method:"get"})}function g(t){return Object(n["a"])({url:"/orders/add_cancel_why",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/orders/GetUser",method:"get",params:t})}function h(t){return Object(n["a"])({url:"/orders/UpdateBelongId",method:"get",params:t})}function v(t){return Object(n["a"])({url:"orders/GetExceptionOrder",method:"get",params:t})}function y(t){return Object(n["a"])({url:"orders/ExportExceptionOrder",method:"get",params:t})}function j(t){return Object(n["a"])({url:"/orders/destory_order_all",method:"post",data:t})}},"74e2":function(t,e,r){},"898f":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),r("el-select",{staticStyle:{width:"300px","margin-bottom":"20px"},on:{change:t.seclect},model:{value:t.listQuery.activity_id,callback:function(e){t.$set(t.listQuery,"activity_id",e)},expression:"listQuery.activity_id"}},t._l(t.activitys,(function(t){return r("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1),t._v(" "),r("el-select",{model:{value:t.listQuery.apply_status,callback:function(e){t.$set(t.listQuery,"apply_status",e)},expression:"listQuery.apply_status"}},t._l(t.applyList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),t._v(" "),r("el-select",{model:{value:t.listQuery.destroy_status,callback:function(e){t.$set(t.listQuery,"destroy_status",e)},expression:"listQuery.destroy_status"}},t._l(t.destoryList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),t._v(" "),r("el-input",{staticClass:"filter-item filter-input",staticStyle:{display:"inline-block",width:"300px"},attrs:{placeholder:"备注昵称/姓名/手机号",clearable:""},model:{value:t.listQuery.search_name,callback:function(e){t.$set(t.listQuery,"search_name",e)},expression:"listQuery.search_name"}}),t._v(" "),r("el-button",{staticStyle:{"margin-left":"15px"},attrs:{type:"primary"},on:{click:function(e){return t.getList()}}},[t._v("搜索")]),r("br"),t._v(" "),r("el-table",{ref:"multipleTable",staticClass:"tableBorder",attrs:{border:"",stripe:"","header-cell-style":{background:"#f8fbfc"},data:t.tablelist},on:{"selection-change":t.handleSelectionChange}},[r("el-table-column",{attrs:{prop:"order_num",align:"center",label:"订单编号",width:"210"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("span",{staticStyle:{cursor:"pointer",color:"#1890FF"},on:{click:function(e){return t.showDetail(n.order_num)}}},[t._v(t._s(n.order_num))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"apply_time",align:"center",label:"申请时间",width:"160"}}),t._v(" "),r("el-table-column",{attrs:{prop:"get_user",label:"下单人昵称",align:"center",width:"150","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(r.get_user&&r.get_user.nickname))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"get_user",label:"下单人姓名",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(r.get_user&&r.get_user.realname))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"created_at",align:"center",label:"下单时间",width:"160"}}),t._v(" "),r("el-table-column",{attrs:{prop:"destroy_cause",align:"center",label:"申请原因",width:"160","show-overflow-tooltip":!0}}),t._v(" "),r("el-table-column",{attrs:{prop:"status",align:"center",label:"订单状态",width:"110"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row,a=n.is_deleted,o=n.apply_status;return[1===a?r("el-tag",{attrs:{type:"info"}},[t._v("已作废")]):r("el-tag",{attrs:{type:1===o?"warning":""}},[t._v(t._s(1===o?"申请作废":"正常"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"total",label:"数量合计",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v("\n "+t._s(r.total)+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"money",label:"订单总额",align:"center",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s("¥"+r.money))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"belong_user",align:"center",label:"审核状态",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("el-tag",{attrs:{type:0===n.destroy_status?"":1===n.destroy_status?"success":"danger"}},[t._v(t._s(t._f("destroy_status")(n.destroy_status)))]),t._v(" "),r("el-popover",{attrs:{placement:"top-start",title:"拒绝原因",width:"200",trigger:"click",content:n.reject_cause}},[2===n.destroy_status&&n.reject_cause?r("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看拒绝原因")]):t._e()],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[0===n.is_deleted&&n.apply_status?r("el-button",{staticStyle:{"margin-left":"15px"},attrs:{slot:"reference",type:"primary",size:"small"},on:{click:function(e){return t.reject_fei(n)}},slot:"reference"},[t._v("通过")]):t._e(),t._v(" "),0===n.is_deleted&&n.apply_status?r("el-button",{staticStyle:{"margin-left":"15px"},attrs:{slot:"reference",type:"danger",size:"small"},on:{click:function(e){return t.reject(n.id)}},slot:"reference"},[t._v("拒绝")]):t._e()]}}])})],1),t._v(" "),r("pagination",{attrs:{total:t.tableTotal,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}}),t._v(" "),r("el-dialog",{attrs:{title:"订单详情",visible:t.dialogVisible,width:"70%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("div",[r("p",[t._v("订单编号: "+t._s(t.orderDetail&&t.orderDetail.order_num))]),t._v(" "),r("el-table",{staticClass:"table nomgb",attrs:{border:"",stripe:"","header-cell-style":{background:"#eef1f9"},data:t.orderDetail&&t.orderDetail.goods_detail}},[r("el-table-column",{attrs:{type:"index",width:"60",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{prop:"",label:"主图"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[r("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{src:e.main_img,fit:"fill"}})]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),t._v(" "),r("el-table-column",{attrs:{prop:"size",label:"商品规格"}}),t._v(" "),r("el-table-column",{attrs:{prop:"num",label:"数量"}}),t._v(" "),r("el-table-column",{attrs:{prop:"unit",label:"单位"}}),t._v(" "),r("el-table-column",{attrs:{prop:"goods_price",label:"单价"}}),t._v(" "),r("el-table-column",{attrs:{prop:"money",label:"金额小计"}})],1),t._v(" "),r("div",{staticClass:"order_total"},[r("div",{staticClass:"left"},[r("span",[t._v("合计数量: "),r("i",{staticClass:"red"},[t._v(t._s(t.orderDetail.total))])]),t._v(" "),r("span",[t._v("合计金额: "),r("i",{staticClass:"red"},[t._v(t._s(t.parseMoney(t.orderDetail&&t.orderDetail.money)))])])]),t._v(" "),r("div",{staticClass:"right"},[r("span",[t._v("已付金额: "),r("i",{staticClass:"red"},[t._v(t._s(t.parseMoney(t.orderDetail&&t.orderDetail.pay_money)))])]),t._v(" "),r("span",[t._v("应付金额: "),r("i",{staticClass:"red"},[t._v(t._s(t.parseMoney(t.orderDetail&&t.orderDetail.money)))])])])]),t._v(" "),r("div",{staticClass:"other"},[r("el-form",{attrs:{"label-width":"100px"}},[r("el-form-item",{staticClass:"other_address",attrs:{label:"收货信息"}},[r("span",[t._v("\n 收货人: "+t._s(t.orderDetail.get_address&&t.orderDetail.get_address.username)+"\n ")]),t._v(" "),r("span",[t._v("联系方式: "+t._s(t.orderDetail.get_address&&t.orderDetail.get_address.mobile))]),t._v(" "),r("span",[t._v("收货地址: "+t._s(t.orderDetail.get_address&&""+t.orderDetail.get_address.province+t.orderDetail.get_address.city+t.orderDetail.get_address.town+t.orderDetail.get_address.address))])]),t._v(" "),r("el-form-item",{attrs:{label:"所属信息"}},[t.orderDetail.belong_user?[r("span",[t._v("昵称: "+t._s(t.orderDetail.belong_user&&t.orderDetail.belong_user.nickname))]),t._v(" "),r("span",[t._v("姓名: "+t._s(t.orderDetail.belong_user&&t.orderDetail.belong_user.realname))]),t._v(" "),r("span",[t._v("手机号: "+t._s(t.orderDetail.belong_user&&t.orderDetail.belong_user.mobile))])]:r("span",[t._v("该订单暂无所属者")])],2),t._v(" "),r("el-form-item",{attrs:{label:"备注说明"}},[r("div",{staticClass:"remark_container"},[t.orderDetail.get_order_remark&&t.orderDetail.get_order_remark.length>0?r("div",{staticClass:"remark_list"},[t._l(t.orderDetail.get_order_remark.slice(0,t.toggleRemarkNum),(function(e){return r("span",{key:e.id},[t._v(t._s(e.remark)+" ("+t._s(e.name+" "+e.created_at)+" )")])})),t._v(" "),t.orderDetail.get_order_remark.length>3?r("div",[t.orderDetail.get_order_remark.length>t.toggleRemarkNum?r("span",{staticClass:"toggle",on:{click:function(e){t.toggleRemarkNum=t.orderDetail.get_order_remark.length}}},[t._v("更多"),r("i",{staticClass:"el-icon-arrow-down"})]):r("span",{staticClass:"toggle",on:{click:function(e){t.toggleRemarkNum=3}}},[t._v("收起"),r("i",{staticClass:"el-icon-arrow-up"})])]):t._e()],2):r("div",[t._v("无")])])]),t._v(" "),r("el-form-item",{attrs:{label:"赠品信息"}},[r("ul",{staticClass:"zengpin_list"},t._l(t.orderDetail.get_order_gift,(function(e){return r("li",{directives:[{name:"show",rawName:"v-show",value:e.pivot&&e.pivot.num>0,expression:"item.pivot && item.pivot.num > 0"}],key:e.id},[r("el-image",{staticStyle:{width:"38px",height:"38px","margin-right":"10px"},attrs:{src:e.img,fit:"fill"}}),t._v(" "),r("p",[t._v(t._s(e.name)+" - "+t._s(e.pivot.num||0))])],1)})),0)]),t._v(" "),t.orderDetail.destroy_cause?r("el-form-item",{attrs:{label:"作废原因:"}},[r("span",{staticStyle:{color:"#FB231F"}},[t._v(t._s(t.orderDetail.destroy_cause))])]):t._e(),t._v(" "),t.orderDetail.reject_cause?r("el-form-item",{attrs:{label:"拒绝原因:"}},[r("span",{staticStyle:{color:"#FB231F"}},[t._v(t._s(t.orderDetail.reject_cause))])]):t._e()],1)],1)],1)]),t._v(" "),r("el-dialog",{attrs:{title:"拒绝原因",visible:t.dialogReject,width:"30%"},on:{"update:visible":function(e){t.dialogReject=e}}},[r("el-input",{attrs:{type:"textarea",rows:6,maxlength:"100",placeholder:"请输入拒绝原因"},model:{value:t.rejectForm.reject_cause,callback:function(e){t.$set(t.rejectForm,"reject_cause",e)},expression:"rejectForm.reject_cause"}}),t._v(" "),r("div",{staticStyle:{color:"#f30","margin-top":"10px"}},[t._v("\n (拒绝原因可选择不填写)\n ")]),t._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogReject=!1}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.reject_sure}},[t._v("确 定")])],1)],1),t._v(" "),r("el-dialog",{attrs:{title:"批量审核",visible:t.diapiliang,"destroy-on-close":!0,width:"30%"},on:{"update:visible":function(e){t.diapiliang=e}}},[r("div",{staticClass:"flexcenter"},[r("el-button",{attrs:{type:"primary"},on:{click:t.allSure}},[t._v("批量通过")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.batch}},[t._v("批量驳回")])],1),t._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.diapiliang=!1}}},[t._v("取 消")])],1)])],1)},a=[],o=r("c80c"),i=(r("96cf"),r("3b8d")),s=r("0bbe"),l=r("4764"),c=r("1491"),u=r("ed08"),d=r("44f1"),m={filters:{destroy_status:function(t){return 0===t?"未审核":1===t?"已通过":2===t?"已拒绝":void 0}},data:function(){return{rejectForm:{id:"",status:"",reject_cause:""},loadingFull:!1,dialogVisible:!1,dialogReject:!1,order_num:"",visible:!1,orderDetail:{},listQuery:{page_index:1,page_size:10,search_name:"",activity_id:"",apply_status:"",destroy_status:""},toggleRemarkNum:3,applyList:[{id:"",name:"全部"},{id:0,name:"正常"},{id:1,name:"申请作废"},{id:2,name:"已作废"}],destoryList:[{id:"",name:"全部"},{id:0,name:"未审核"},{id:1,name:"已通过"},{id:2,name:"已拒绝"}],ids:[],diapiliang:!1,multipleSelection:[],tablelist:[],tableTotal:0,activitys:[]}},created:function(){var t=this;this.orderStatus=d["c"],this.payStatus=d["d"],this.parseMoney=u["g"],this.activityList((function(){t.getList()}))},methods:{checkboxT:function(t,e){return 0===t.destroy_status?1:0},batch:function(){this.diapiliang=!0},handleSelectionChange:function(t){this.multipleSelection=t.map((function(t){return t.order_num})),this.ids=t.map((function(t){return t.id}))},getag:function(){},allSure:function(){var t=this;this.$confirm("确定作废这些订单吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["j"])({order_num:t.multipleSelection}).then((function(e){200===e.code?Object(s["h"])({id:t.ids,status:1}).then((function(e){200===e.code?(t.$message.success("作废成功"),t.getList(),t.getag()):t.$message.success("作废失败")})):t.$message.error(e.message)})).catch((function(e){t.loadingFull=!1}))})).catch((function(){}))},reject_fei:function(t){var e=this;this.$confirm("确定作废此订单吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["r"])({order_num:t.order_num,remark:t.destroy_cause}).then((function(r){200===r.code?Object(s["h"])({id:t.id,status:1}).then((function(t){200===t.code?(e.$message.success("作废成功"),e.getList(),e.getag()):e.$message.success("作废失败")})):e.$message.error(r.message)})).catch((function(t){e.loadingFull=!1}))})).catch((function(){}))},reject:function(t){this.rejectForm.reject_cause="",this.dialogReject=!0,this.rejectForm.id=t},reject_sure:function(){var t=this;this.rejectForm.status=2,Object(s["h"])(this.rejectForm).then((function(e){200===e.code?(t.$message.success("拒绝成功"),t.dialogReject=!1,t.getList(),t.getag()):t.$message.success("拒绝失败")}))},showDetail:function(t){this.order_num=t,this.getDetail(),this.dialogVisible=!0},getDetail:function(){var t=Object(i["a"])(Object(o["a"])().mark((function t(){var e=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(l["m"])({order_num:this.order_num}).then((function(t){e.loadingFull=!1,200===t.code?e.orderDetail=t.data:e.$message.error(t.message)})).catch((function(t){e.loadingFull=!1}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),seclect:function(){this.getList()},getList:function(){var t=Object(i["a"])(Object(o["a"])().mark((function t(){var e=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(s["b"])(this.listQuery).then((function(t){e.loadingFull=!1,200===t.code?(e.tablelist=t.data.list,e.tableTotal=t.data.total):e.$message.error(t.message)})).catch((function(t){e.loadingFull=!1}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),index:function(t){var e=this.listQuery,r=e.page_index,n=e.page_size;return(r-1)*n+t+1},changePagination:function(t){var e=t.page,r=t.limit;this.listQuery.page_size=r,this.listQuery.page_index=e,this.getList()},activityList:function(){var t=Object(i["a"])(Object(o["a"])().mark((function t(e){var r=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["y"])().then((function(t){if(r.loadingFull=!1,200===t.code){var n=[{title:"全部",id:""}];r.activitys=t.data.concat(n)}e&&e()})).catch((function(t){e&&e()}));case 2:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()}},f=m,_=(r("b9fb"),r("2877")),p=Object(_["a"])(f,n,a,!1,null,"04bac985",null);e["default"]=p.exports},b9fb:function(t,e,r){"use strict";r("74e2")}}]);
|