travel/service/public/static/js/chunk-30b744ac.fc8dc3dd.js

1 line
5.7 KiB
JavaScript
Raw Normal View History

2024-10-28 10:17:48 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30b744ac"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,n){var l=o(),r=t-l,s=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=s;var o=Math.easeInOutQuad(u,l,r,e);i(o),u<e?a(t):n&&"function"===typeof n&&n()};c()}},"0e8c":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{placeholder:"订单号"},model:{value:t.listQuery.sn,callback:function(e){t.$set(t.listQuery,"sn",e)},expression:"listQuery.sn"}}),n("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.getList}},[t._v(" 搜索 ")])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status&&0==e.row.status?n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-check"},on:{click:function(n){return t.onPass(e.row)}}},[t._v(" 确认 ")]):t._e()]}}])}),n("el-table-column",{attrs:{align:"center",label:"订单号",prop:"orderInfo.sn"}}),n("el-table-column",{attrs:{align:"center",label:"出游日期",prop:"travel_date"}}),n("el-table-column",{attrs:{align:"center",label:"出游人数",prop:"num"}}),n("el-table-column",{attrs:{align:"center",label:"出行人名称",width:"100",prop:"name"}}),n("el-table-column",{attrs:{align:"center",label:"联系电话",prop:"mobile"}}),n("el-table-column",{attrs:{align:"center",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?n("span",[t._v("已确认")]):t._e(),0==e.row.status?n("span",[t._v("待确认")]):t._e()]}}])}),n("el-table-column",{attrs:{align:"center",label:"券码图片",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.code_pic,(function(t){return n("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t,"preview-src-list":e.row.code_pic}})}))}}])}),n("el-table-column",{attrs:{align:"center",label:"备注",prop:"note"}})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)},i=[],o=n("67f2"),l={name:"Orderlist",components:{Pagination:o["a"]},filters:{},data:function(){return{list:[],total:0,listLoading:!0,listQuery:{page:1,limit:10},oss:{},item:{},dialogVisible:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.$axios.get("/admin/orderbooks/list",{params:this.listQuery}).then((function(e){t.list=e.data.data,t.total=e.data.total,t.oss=e.ext,t.listLoading=!1}))},onBack:function(){var t=this;this.$axios.post("/admin/order/back",this.item).then((function(e){t.dialogVisible=!1,t.item={},t.getList()})).catch((function(t){}))},onPass:function(t){var e=this;this.$axios.post("/admin/orderbooks/updateStatus",{id:t.id}).then((function(t){e.dialogVisible=!1,e.item={},e.getList()})).catch((function(t){}))}}},r=l,s=(n("d205"),n("2877")),u=Object(s["a"])(r,a,i,!1,null,"f117a39e",null);e["default"]=u.exports},"67f2":function(t,e,n){"use st