Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-5480cdd6.a3d6e235.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
5.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5480cdd6","chunk-fcd760a4"],{1570:function(t,e,a){"use strict";a("e7a1")},"34f5":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var r=a("b775");function s(t){return new Promise((e,a)=>{Object(r["a"])({url:"/refundOrder.queryAdminRefundOrders",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}},"61f2":function(t,e,a){"use strict";a.r(e);var r=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 bg-white",attrs:{span:4}},[e("admin-shop",{on:{"shop-change":t.handleShopChange}})],1),e("el-col",{attrs:{span:20}},[e("el-card",{},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("refundCart.queryCondition")))])]),e("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.conditions}},[e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("refundCart.orderNumber"),clearable:""},model:{value:t.conditions.cartId,callback:function(e){t.$set(t.conditions,"cartId",e)},expression:"conditions.cartId"}})],1),e("el-form-item",[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("refundCart.selectStatus")},model:{value:t.conditions.state,callback:function(e){t.$set(t.conditions,"state",e)},expression:"conditions.state"}},t._l(t.statusOptions,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("refundCart.productName"),clearable:""},model:{value:t.conditions.prodName,callback:function(e){t.$set(t.conditions,"prodName",e)},expression:"conditions.prodName"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.queryOrders}},[t._v(t._s(t.$t("refundCart.query")))])],1)],1)],1),e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("refundCart.refundOrder")))])]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.orderCarts,border:""}},[e("el-table-column",{attrs:{prop:"cartId",label:t.$t("refundCart.orderNumber"),align:"center"}}),e("el-table-column",{attrs:{prop:"prodName",label:t.$t("refundCart.productName"),align:"center"}}),e("el-table-column",{attrs:{prop:"specValue",label:t.$t("refundCart.productSpec"),align:"center"}}),e("el-table-column",{attrs:{prop:"personName",label:t.$t("refundCart.userName"),align:"center"}}),e("el-table-column",{attrs:{prop:"returnPayPrice",label:t.$t("refundCart.refundAmount"),align:"center"}}),e("el-table-column",{attrs:{prop:"stateName",label:t.$t("refundCart.orderStatus"),align:"center"}}),e("el-table-column",{attrs:{prop:"returnReason",label:t.$t("refundCart.refundReason"),align:"center"}}),e("el-table-column",{attrs:{prop:"createTime",label:t.$t("refundCart.applyTime"),align:"center"}})],1),e("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,total:t.total,layout:"total, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange}})],1)],1)],1)],1)},s=[],n=a("34f5"),l=a("c962"),o={components:{AdminShop:l["default"]},data(){return{orderCarts:[],conditions:{cartId:"",state:"",prodName:"",shopId:""},statusOptions:[{value:"",label:this.$t("refundCart.selectStatus")},{value:"5005",label:this.$t("refundCart.applyRefund")},{value:"6006",label:this.$t("refundCart.refundSuccess")},{value:"7007",label:this.$t("refundCart.hasRefunded")}],currentPage:1,pageSize:10,total:0}},created(){this.listOrders()},methods:{handleShopChange(t){this.conditions.shopId=t.shopId,this.listOrders()},async listOrders(){const t={...this.conditions,page:this.currentPage,row:this.pageSize},e=await Object(n["a"])(t);this.orderCarts=e.data.map(t=>{let e="";return t.productSpecDetails&&t.productSpecDetails.forEach(t=>{e+=t.detailValue+"/"}),{...t,specValue:e||"-"}}),this.total=e.total},queryOrders(){this.currentPage=1,this.listOrders()},handleCurrentChange(t){this.currentPage=t,this.listOrders()}}},i=o,c=(a("1570"),a("2877")),d=Object(c["a"])(i,r,s,!1,null,"3ef99e67",null);e["default"]=d.exports},9418:function(t,e,a){"use strict";a("cd80")},c962:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t._self._c;return e("el-card",{staticClass:"list-selector"},[e("ul",{staticClass:"list-selector-list"},["Y"==t.showAll?e("li",{class:{selected:""===t.adminShopInfo.shopId},on:{click:function(e){return t.swatchAdminShopId({shopId:"",shopName:"全部"})}}},[t._v(" "+t._s(t.$t("common.all"))+" ")]):t._e(),t._l(t.adminShopInfo.shops,(function(a,r){return e("li",{key:r,class:{selected:t.adminShopInfo.shopId===a.shopId},on:{click:function(e){return t.swatchAdminShopId(a)}}},[t._v(" "+t._s(a.shopName)+" ")])}))],2)])},s=[],n=a("7323"),l={name:"AdminShop",data(){return{adminShopInfo:{shops:[],shopId:""}}},props:{showAll:{type:String,default:"Y"}},created(){this._listAdminShops()},methods:{async _listAdminShops(){try{const t=await Object(n["k"])({page:1,row:100});this.adminShopInfo.shops=t.data,"N"==this.showAll&&this.adminShopInfo.shops.length>0&&this.swatchAdminShopId(this.adminShopInfo.shops[0])}catch(t){console.error("获取店铺列表失败:",t)}},swatchAdminShopId(t){this.adminShopInfo.shopId=t.shopId,this.$emit("shop-change",t)}}},o=l,i=(a("9418"),a("2877")),c=Object(i["a"])(o,r,s,!1,null,"177c0c26",null);e["default"]=c.exports},cd80:function(t,e,a){},e7a1:function(t,e,a){}}]);
//# sourceMappingURL=chunk-5480cdd6.a3d6e235.js.map