erp/public/dist/js/192.71ec2e85.js

2 lines
7.7 KiB
JavaScript
Raw Normal View History

2024-11-04 14:46:22 +08:00
"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[192],{2175:function(t,r,e){e.r(r),e.d(r,{default:function(){return s}});var n=function(){var t=this,r=t._self._c;return r("div",[r("el-card",{staticClass:"box-card",attrs:{"body-style":{padding:"20px 20px 0 20px"}}},[r("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.formSearch}},[r("el-form-item",{attrs:{label:"团购状态"}},[r("el-select",{attrs:{placeholder:"团购状态"},model:{value:t.formSearch.status,callback:function(r){t.$set(t.formSearch,"status",r)},expression:"formSearch.status"}},[r("el-option",{attrs:{label:"未开始",value:"-5"}}),r("el-option",{attrs:{label:"跟团中",value:"1"}}),r("el-option",{attrs:{label:"预览中",value:"-10"}}),r("el-option",{attrs:{label:"已结束",value:"20"}})],1)],1),r("el-form-item",{attrs:{label:"活动标题"}},[r("el-input",{attrs:{placeholder:"活动标题"},model:{value:t.formSearch.title,callback:function(r){t.$set(t.formSearch,"title",r)},expression:"formSearch.title"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(r){return t.getGroupList()}}},[t._v("查询")]),r("el-button",{attrs:{type:"success"},on:{click:function(r){return t.groupAdd()}}},[t._v("新增团购")])],1)],1)],1),r("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"10px"}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"","row-key":"id","tree-props":{children:"children"}}},[r("el-table-column",{attrs:{prop:"shop.name",label:"店铺"}}),r("el-table-column",{attrs:{prop:"title",label:"活动标题"}}),r("el-table-column",{attrs:{prop:"status",label:"团购状态"}}),r("el-table-column",{attrs:{label:"开团时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.start_time))]),r("div",[t._v("至")]),r("div",[t._v(t._s(e.row.end_time))])]}}])}),r("el-table-column",{attrs:{label:"手机查看"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.row.qr_code_url}})]}}])}),r("el-table-column",{attrs:{prop:"create_status",label:"创建结果"}}),r("el-table-column",{attrs:{prop:"options",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.parent_id?r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return t.groupEdit(e.row.id)}}},[t._v("编辑")]):t._e()]}}])})],1)],1)],1)},o=[],a=(e(560),e(5157)),u={data(){return{formSearch:{status:"",title:"",page:1,per_page:20},loading:!0,tableData:[]}},mounted(){this.getGroupList()},methods:{getGroupList(){(0,a.X8)(this.formSearch).then((t=>{this.tableData=t.data.data,this.loading=!1}))},groupAdd(){this.$router.push({path:"GROUP_GOODS_ADD",query:{id:0}})},groupEdit(t){this.$router.push({path:"GROUP_GOODS_EDIT",query:{id:t}})}}},i=u,l=e(1001),c=(0,l.Z)(i,n,o,!1,null,null,null),s=c.exports},5157:function(t,r,e){e.d(r,{Rp:function(){return a},Tv:function(){return i},X8:function(){return o},Y6:function(){return u},ni:function(){return c},sC:function(){return l}});var n=e(8430);function o(t){return(0,n.Z)({url:"/api/group",method:"get",params:t})}function a(t){return(0,n.Z)({url:"/api/group",method:"post",data:t})}function u(t){return(0,n.Z)({url:`/api/group/${t}`,method:"get"})}function i(t,r){return(0,n.Z)({url:`/api/group/${t}`,method:"patch",data:r})}function l(t){return(0,n.Z)({url:"/api/groupGoods",method:"get",params:t})}function c(t){return(0,n.Z)({url:"/api/groupGoods",method:"post",params:t})}},4328:function(t,r,e){var n=e(5290),o=e(7578),a=e(6310),u=function(t){return function(r,e,u){var i,l=n(r),c=a(l),s=o(u,c);if(t&&e!==e){while(c>s)if(i=l[s++],i!==i)return!0}else for(;c>s;s++)if((t||s in l)&&l[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},5649:function(t,r,e){var n=e(7697),o=e(2297),a=TypeError,u=Object.getOwnPropertyDescriptor,i=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}c
//# sourceMappingURL=192.71ec2e85.js.map