2 lines
4.3 KiB
JavaScript
2 lines
4.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0cb5e9cb"],{"2e86":function(t,e,a){},"36d6":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t._self._c;return e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("h5",[t._v("查询条件")])]),e("div",{staticClass:"card-body"},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:6}},[e("el-input",{attrs:{placeholder:"请输入拼团商品名称",clearable:""},model:{value:t.groupBuyManageInfo.conditions.groupProdName,callback:function(e){t.$set(t.groupBuyManageInfo.conditions,"groupProdName",e)},expression:"groupBuyManageInfo.conditions.groupProdName"}})],1),e("el-col",{attrs:{span:8}},[e("el-input",{attrs:{placeholder:"请输入批次编号",clearable:""},model:{value:t.groupBuyManageInfo.conditions.batchId,callback:function(e){t.$set(t.groupBuyManageInfo.conditions,"batchId",e)},expression:"groupBuyManageInfo.conditions.batchId"}})],1),e("el-col",{attrs:{span:6}},[e("el-input",{attrs:{placeholder:"请输入订单号",clearable:""},model:{value:t.groupBuyManageInfo.conditions.buyId,callback:function(e){t.$set(t.groupBuyManageInfo.conditions,"buyId",e)},expression:"groupBuyManageInfo.conditions.buyId"}})],1),e("el-col",{attrs:{span:4}},[e("el-button",{attrs:{type:"primary"},on:{click:t._queryProductMethod}},[e("i",{staticClass:"el-icon-search"}),t._v(" 查询 ")]),e("el-button",{on:{click:t._resetProductMethod}},[e("i",{staticClass:"el-icon-refresh"}),t._v(" 重置 ")])],1)],1)],1)])],1)],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("h5",[t._v("拼团列表")])]),e("div",{staticClass:"card-body"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.groupBuyManageInfo.products,border:""}},[e("el-table-column",{attrs:{prop:"persionId",label:"用户ID",align:"center"}}),e("el-table-column",{attrs:{prop:"persionName",label:"用户名称",align:"center"}}),e("el-table-column",{attrs:{prop:"groupProdName",label:"拼团名称",align:"center"}}),e("el-table-column",{attrs:{prop:"groupId",label:"拼团ID",align:"center"}}),e("el-table-column",{attrs:{prop:"buyId",label:"订单号",align:"center"}}),e("el-table-column",{attrs:{prop:"buyCount",label:"拼团数量",align:"center"}}),e("el-table-column",{attrs:{prop:"amount",label:"付款金额",align:"center"}}),e("el-table-column",{attrs:{prop:"stateName",label:"状态",align:"center"}})],1),e("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)])],1)],1)],1)},n=[],r=a("b775");function s(t){return new Promise((e,a)=>{Object(r["a"])({url:"/groupBuy.queryGroupBuy",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}var l={name:"GroupBuyManage",data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,currentPage:1,pageSize:10,total:0,groupBuyManageInfo:{products:[],conditions:{groupProdName:"",batchId:"",buyId:"",page:1,row:10}}}},created(){this._initMethod()},methods:{_initMethod(){const t=this.$route.query.batchId;t&&(this.groupBuyManageInfo.conditions.batchId=t),this._listProducts(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_listProducts(t,e){this.groupBuyManageInfo.conditions.page=t,this.groupBuyManageInfo.conditions.row=e;const a={...this.groupBuyManageInfo.conditions,groupProdName:this.groupBuyManageInfo.conditions.groupProdName.trim(),batchId:this.groupBuyManageInfo.conditions.batchId.trim(),buyId:this.groupBuyManageInfo.conditions.buyId.trim()};s(a).then(e=>{this.groupBuyManageInfo.products=e.data,this.total=e.records,this.currentPage=t}).catch(t=>{console.error("请求失败:",t)})},_queryProductMethod(){this._listProducts(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_resetProductMethod(){this.groupBuyManageInfo.conditions={groupProdName:"",batchId:"",buyId:"",page:1,row:10},this._listProducts(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},handleCurrentChange(t){this._listProducts(t,this.DEFAULT_ROWS)}}},i=l,c=(a("8453"),a("2877")),u=Object(c["a"])(i,o,n,!1,null,"598f026f",null);e["default"]=u.exports},8453:function(t,e,a){"use strict";a("2e86")}}]);
|
|
//# sourceMappingURL=chunk-0cb5e9cb.82c44bb7.js.map
|