1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18164422"],{"0b65":function(t,e,a){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[a,e])}},{text:"昨天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[a,e])}},{text:"最近7天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近30天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"本月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[a,e])}},{text:"本年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[a,e])}}]}},"4e56":function(t,e,a){"use strict";a("bfdc")},"697c":function(t,e,a){},bfdc:function(t,e,a){},c3e9:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard mb14"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"85px",inline:""}},[a("el-form-item",{attrs:{label:"时间选择:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"拼团状态:",prop:"status"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.activityStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"团长搜索:",prop:"user_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入开团团长昵称/ID",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.user_name,callback:function(e){t.$set(t.tableFrom,"user_name",e)},expression:"tableFrom.user_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品搜索:",prop:"keyword"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称/ID",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),t.cardLists.length>0?a("cards-data",{attrs:{"card-lists":t.cardLists}}):t._e(),t._v(" "),a("el-card",{staticClass:"box-card"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"group_buying_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"开团团长","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.initiator&&e.row.initiator.nickname))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"拼团商品图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.productGroup.product.image,"preview-src-list":[t.row.productGroup.product.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"拼团商品","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.productGroup.product.store_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"拼团时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("发起时间:"+t._s(e.row.create_time))]),t._v(" "),a("div",[t._v("结束时间:"+t._s(e.row.stop_time))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"buying_count_num",label:"几人团","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"yet_buying_num",label:"参与人次","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(-1===e.row.status?"未完成":0===e.row.status?"进行中":"已完成"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.group_buying_id)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("details-data",{ref:"detailsData",attrs:{"is-show":t.isShowDetail}})],1)},l=[],n=a("b7be"),s=a("83d6"),o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.dialogVisible?i("el-dialog",{attrs:{title:"查看详情",visible:t.dialogVisible,width:"660px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[i("el-table-column",{attrs:{prop:"uid",label:"ID","min-width":"80"}}),t._v(" "),i("el-table-column",{attrs:{prop:"nickname",label:"用户名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.is_initiator?i("span",{staticClass:"initiator"},[t._v("团长")]):t._e(),i("span",[t._v(t._s(e.row.nickname))])]}}],null,!1,1665894273)}),t._v(" "),i("el-table-column",{attrs:{label:"用户头像","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[t.row.avatar?i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.avatar,"preview-src-list":[t.row.avatar]}})],1):i("img",{staticStyle:{width:"36px",height:"36px","vertical-align":"top"},attrs:{src:a("cdfe"),alt:""}})]}}],null,!1,3128291785)}),t._v(" "),i("el-table-column",{attrs:{label:"订单编号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(" "+t._s(e.row.orderInfo&&e.row.orderInfo.order_sn))])]}}],null,!1,2124253839)}),t._v(" "),i("el-table-column",{attrs:{label:"金额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(" "+t._s(e.row.orderInfo&&e.row.orderInfo.pay_price))])]}}],null,!1,2324806425)}),t._v(" "),i("el-table-column",{attrs:{label:"订单状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.orderInfo&&-1==e.row.orderInfo.status?i("span",{staticClass:"refuned"},[t._v(" 已退款")]):i("span",{staticClass:"unrefuned"},[t._v("未退款")])]}}],null,!1,726021529)})],1),t._v(" "),i("div",{staticClass:"block mb20"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1):t._e()},r=[],c={name:"Info",props:{isShow:{type:Boolean,default:!0}},data:function(){return{id:"",loading:!1,dialogVisible:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},computed:{},methods:{getList:function(t){var e=this;this.id=t,this.listLoading=!0,Object(n["s"])(this.id,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList(this.id)},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(this.id)}}},u=c,d=(a("4e56"),a("2877")),m=Object(d["a"])(u,o,r,!1,null,"e63870a6",null),p=m.exports,b=a("0f56"),g=a("0b65"),f={name:"ProductList",components:{detailsData:p,cardsData:b["a"]},data:function(){return{props:{emitPath:!1},pickerOptions:g["a"],roterPre:s["roterPre"],listLoading:!0,cardLists:[],tableData:{data:[],total:0},activityStatusList:[{label:"未完成",value:-1},{label:"进行中",value:0},{label:"已完成",value:10}],tableFrom:{page:1,limit:20,keyword:"",date:"",status:"",user_name:""},modals:!1,dialogVisible:!1,loading:!1,manyTabTit:{},manyTabDate:{},attrInfo:{},timeVal:"",isShowDetail:!1}},mounted:function(){this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},goDetail:function(t){this.$refs.detailsData.dialogVisible=!0,this.isShowDetail=!0,this.$refs.detailsData.getList(t)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["p"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},h=f,w=(a("c55f"),Object(d["a"])(h,i,l,!1,null,"3428a340",null));e["default"]=w.exports},c55f:function(t,e,a){"use strict";a("697c")},cdfe:function(t,e,a){t.exports=a.p+"mer/img/f.5aa43cd3.png"}}]); |