Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-6e9290b0.76fc91a8.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
8.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e9290b0"],{3380:function(t,e,o){"use strict";o("dbac")},"61bb":function(t,e,o){"use strict";o("8053")},8053:function(t,e,o){},d6e2:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"animated fadeInRight ecommerce"},[e("el-row",{attrs:{gutter:20}},[e("el-col",{staticClass:"padding-r-0",attrs:{span:4}},[e("el-card",{staticClass:"list-selector"},[e("ul",{staticClass:"list-selector-list"},[e("li",{class:{selected:""===t.aShopInfo.conditions.shopType},on:{click:function(e){return t.swatchShopType({shopTypeId:"",typeName:"全部"})}}},[t._v(" "+t._s(t.$t("common.all"))+" ")]),t._l(t.aShopInfo.shopTypes,(function(o,a){return e("li",{key:a,class:{selected:t.aShopInfo.conditions.shopType==o.shopTypeId},on:{click:function(e){return t.swatchShopType(o)}}},[t._v(" "+t._s(o.typeName)+" ")])}))],2)])],1),e("el-col",{attrs:{span:20}},[e("el-card",{staticClass:"ibox"},[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("aShop.queryCondition")))])]),e("el-form",{staticClass:"demo-form-inline text-left",attrs:{inline:!0}},[e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("aShop.shopName"),clearable:""},model:{value:t.aShopInfo.conditions.shopName,callback:function(e){t.$set(t.aShopInfo.conditions,"shopName",e)},expression:"aShopInfo.conditions.shopName"}})],1),e("el-form-item",[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("aShop.selectStatus")},model:{value:t.aShopInfo.conditions.state,callback:function(e){t.$set(t.aShopInfo.conditions,"state",e)},expression:"aShopInfo.conditions.state"}},[e("el-option",{attrs:{label:t.$t("common.all"),value:""}}),e("el-option",{attrs:{label:t.$t("aShop.approved"),value:"002"}}),e("el-option",{attrs:{label:t.$t("aShop.rejected"),value:"003"}})],1)],1),e("el-form-item",[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("aShop.selectMerchant")},model:{value:t.aShopInfo.conditions.merchantId,callback:function(e){t.$set(t.aShopInfo.conditions,"merchantId",e)},expression:"aShopInfo.conditions.merchantId"}},[e("el-option",{attrs:{label:t.$t("common.all"),value:""}}),t._l(t.aShopInfo.merchants,(function(t){return e("el-option",{key:t.storeId,attrs:{label:t.name,value:t.storeId}})}))],2)],1),e("el-form-item",[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){return t._queryOrdersMethod()}}},[t._v(" "+t._s(t.$t("aShop.query"))+" ")])],1)],1)],1),e("el-card",{staticClass:"ibox"},[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("aShop.shopInfo")))])]),e("div",{},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.aShopInfo.shops,border:""}},[e("el-table-column",{attrs:{prop:"shopLogo",label:t.$t("aShop.shopLogo"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[t.row.shopLogo?e("img",{staticStyle:{width:"60px",height:"60px","border-radius":"5px"},attrs:{src:t.row.shopLogo}}):e("img",{staticStyle:{width:"60px",height:"60px","border-radius":"5px"},attrs:{src:"/img/noPhoto.jpg"}})]}}])}),e("el-table-column",{attrs:{prop:"shopName",label:t.$t("aShop.shopName"),align:"center"}}),e("el-table-column",{attrs:{prop:"shopTypeName",label:t.$t("aShop.shopType"),align:"center"}}),e("el-table-column",{attrs:{prop:"storeName",label:t.$t("aShop.merchantName"),align:"center"}}),e("el-table-column",{attrs:{prop:"storeAddress",label:t.$t("aShop.merchantAddress"),align:"center"}}),e("el-table-column",{attrs:{prop:"storeTel",label:t.$t("aShop.contactNumber"),align:"center"}}),e("el-table-column",{attrs:{prop:"stateName",label:t.$t("aShop.shopStatus"),align:"center"}}),e("el-table-column",{attrs:{prop:"createTime",label:t.$t("aShop.createTime"),align:"center"}}),e("el-table-column",{attrs:{label:t.$t("aShop.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-button-group",["002"==o.row.state?e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openShopWithdrawModel(o.row)}}},[t._v(" "+t._s(t.$t("aShop.withdraw"))+" ")]):t._e(),e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openShopDetail(o.row)}}},[t._v(" "+t._s(t.$t("aShop.detail"))+" ")])],1)]}}])})],1),e("el-pagination",{attrs:{"current-page":t.aShopInfo.conditions.page,"page-size":t.aShopInfo.conditions.row,layout:"total, prev, pager, next",total:t.aShopInfo.total},on:{"current-change":t.handleCurrentChange}})],1)])],1)],1),e("shop-withdraw",{ref:"shopWithdraw",on:{refresh:t._queryOrdersMethod}})],1)},s=[],i=o("7323"),n=o("f86c"),r=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("shopWithdraw.confirmOperation"),visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.closeDialog}},[e("div",{staticClass:"form-group row"},[e("label",{staticClass:"col-sm-3 col-form-label"},[t._v(t._s(t.$t("shopWithdraw.withdrawReason")))]),e("div",{staticClass:"col-sm-9"},[e("el-input",{attrs:{type:"textarea",rows:3,placeholder:t.$t("shopWithdraw.requiredRemark")},model:{value:t.shopWithdrawInfo.remark,callback:function(e){t.$set(t.shopWithdrawInfo,"remark",e)},expression:"shopWithdrawInfo.remark"}})],1)]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.closeDialog}},[t._v(t._s(t.$t("shopWithdraw.cancel")))]),e("el-button",{attrs:{type:"primary"},on:{click:t.updateShopWithdraw}},[t._v(t._s(t.$t("shopWithdraw.confirmWithdraw")))])],1)])},l=[],h={name:"ShopWithdraw",data(){return{dialogVisible:!1,shopWithdrawInfo:{remark:"",state:"001"}}},methods:{open(t){this.shopWithdrawInfo={...t,remark:"",state:"001"},this.dialogVisible=!0},closeDialog(){this.dialogVisible=!1,this.shopWithdrawInfo={remark:"",state:"001"}},updateShopWithdraw(){this.shopWithdrawInfo.remark?Object(i["a"])(this.shopWithdrawInfo).then(t=>{console.log(t),this.$message.success(this.$t("shopWithdraw.processSuccess")),this.closeDialog(),this.$emit("refresh")}).catch(t=>{this.$message.error(this.$t("shopWithdraw.processFailed")+t)}):this.$message.warning(this.$t("shopWithdraw.requiredRemark"))}}},p=h,c=(o("61bb"),o("2877")),d=Object(c["a"])(p,r,l,!1,null,"13beafd2",null),u=d.exports,f={name:"AShop",components:{ShopWithdraw:u},data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,aShopInfo:{shops:[],shopTypes:[],merchants:[],total:0,records:1,orderDetail:!1,conditions:{shopName:"",shopType:"",state:"",appId:"",merchantId:"",page:1,row:10}}}},created(){this._listShopTypes(),this._listMerchants(),this._listAShops(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},methods:{handleCurrentChange(t){this._listAShops(t,this.DEFAULT_ROWS)},_listAShops(t,e){this.aShopInfo.conditions.page=t,this.aShopInfo.conditions.row=e,Object(i["k"])(this.aShopInfo.conditions).then(t=>{this.aShopInfo.total=t.total,this.aShopInfo.records=t.records,this.aShopInfo.shops=t.data}).catch(t=>{console.log("请求失败处理",t)})},swatchShopType(t){this.aShopInfo.conditions.shopType=t.shopTypeId,this._listAShops(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_listShopTypes(){const t={page:1,row:100};Object(i["j"])(t).then(t=>{this.aShopInfo.shopTypes=t.data}).catch(t=>{console.log("请求失败处理",t)})},_queryOrdersMethod(){this._listAShops(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_openShopWithdrawModel(t){this.$refs.shopWithdraw.open(t)},_listMerchants(){const t={page:1,row:100,storeTypeCd:"800900000005"};Object(n["b"])(t).then(t=>{this.aShopInfo.merchants=t.data}).catch(t=>{console.log("请求失败处理",t)})},_openShopDetail(t){window.open("/#/pages/shop/aShopDetail?shopId="+t.shopId)}}},m=f,S=(o("3380"),Object(c["a"])(m,a,s,!1,null,"12c7e56c",null));e["default"]=S.exports},dbac:function(t,e,o){},f86c:function(t,e,o){"use strict";o.d(e,"b",(function(){return s})),o.d(e,"a",(function(){return i}));var a=o("b775");function s(t){return new Promise((e,o)=>{Object(a["a"])({url:"/store.listStores",method:"get",params:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function i(t){return new Promise((e,o)=>{Object(a["a"])({url:"/storeStaff.listStoreStaff",method:"get",params:t}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}}}]);
//# sourceMappingURL=chunk-6e9290b0.76fc91a8.js.map