2 lines
6.2 KiB
JavaScript
2 lines
6.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a28fe660"],{1434:function(t,a,e){},8885:function(t,a,e){"use strict";e("1434")},da58:function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t._self._c;return a("div",[a("el-card",{staticClass:"ibox"},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("div",[t._v(t._s(t.$t("shopAccountDetailManage.queryConditions")))]),a("div",{staticClass:"ibox-tools",staticStyle:{top:"10px"}})]),a("div",{},[a("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.shopAccountDetailManageInfo.conditions}},[a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("shopAccountDetailManage.selectAccount")},model:{value:t.shopAccountDetailManageInfo.conditions.acctId,callback:function(a){t.$set(t.shopAccountDetailManageInfo.conditions,"acctId",a)},expression:"shopAccountDetailManageInfo.conditions.acctId"}},t._l(t.shopAccountDetailManageInfo.shopAccounts,(function(t,e){return a("el-option",{key:e,attrs:{label:t.acctName+t.acctTypeName,value:t.acctId}})})),1)],1),a("el-form-item",[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("shopAccountDetailManage.selectDetailType")},model:{value:t.shopAccountDetailManageInfo.conditions.detailType,callback:function(a){t.$set(t.shopAccountDetailManageInfo.conditions,"detailType",a)},expression:"shopAccountDetailManageInfo.conditions.detailType"}},t._l(t.shopAccountDetailManageInfo.detailTypes,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.statusCd}})})),1)],1),a("el-form-item",[a("el-input",{attrs:{placeholder:t.$t("shopAccountDetailManage.inputOrderId")},model:{value:t.shopAccountDetailManageInfo.conditions.orderId,callback:function(a){t.$set(t.shopAccountDetailManageInfo.conditions,"orderId",a)},expression:"shopAccountDetailManageInfo.conditions.orderId"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(a){return t._queryshopAccountDetailMethod()}}},[a("i",{staticClass:"el-icon-search"}),t._v(" "+t._s(t.$t("shopAccountDetailManage.query"))+" ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(a){return t._resetshopAccountDetailMethod()}}},[a("i",{staticClass:"el-icon-refresh"}),t._v(" "+t._s(t.$t("shopAccountDetailManage.reset"))+" ")])],1)],1)],1)]),a("el-card",{staticClass:"margin-top-sm"},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("div",[t._v(t._s(t.$t("shopAccountDetailManage.financialDetails")))]),a("div",{staticClass:"ibox-tools",staticStyle:{top:"10px"}})]),a("div",{},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.shopAccountDetailManageInfo.shopAccountDetails,border:""}},[a("el-table-column",{attrs:{prop:"detailId",label:t.$t("shopAccountDetailManage.detailId"),align:"center"}}),a("el-table-column",{attrs:{prop:"orderId",label:t.$t("shopAccountDetailManage.orderId"),align:"center"}}),a("el-table-column",{attrs:{prop:"acctName",label:t.$t("shopAccountDetailManage.accountName"),align:"center"}}),a("el-table-column",{attrs:{prop:"detailType",label:t.$t("shopAccountDetailManage.detailType"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s("1001"==a.row.detailType?t.$t("shopAccountDetailManage.transferIn"):t.$t("shopAccountDetailManage.transferOut"))+" ")]}}])}),a("el-table-column",{attrs:{prop:"amount",label:t.$t("shopAccountDetailManage.amount"),align:"center"}}),a("el-table-column",{attrs:{prop:"createTime",label:t.$t("shopAccountDetailManage.transactionTime"),align:"center"}}),a("el-table-column",{attrs:{prop:"remark",label:t.$t("shopAccountDetailManage.remark"),align:"center"}})],1),a("el-pagination",{attrs:{"current-page":t.shopAccountDetailManageInfo.conditions.page,"page-size":t.shopAccountDetailManageInfo.conditions.row,layout:"total, prev, pager, next",total:t.shopAccountDetailManageInfo.total},on:{"current-change":t.handleCurrentChange,"update:currentPage":function(a){return t.$set(t.shopAccountDetailManageInfo.conditions,"page",a)},"update:current-page":function(a){return t.$set(t.shopAccountDetailManageInfo.conditions,"page",a)}}})],1)])],1)},n=[],c=e("b775");function i(t){return new Promise((a,e)=>{Object(c["a"])({url:"/account/queryAccountDetail",method:"get",params:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}function s(t){return new Promise((a,e)=>{Object(c["a"])({url:"/account.listAccount",method:"get",params:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}var l=e("7323"),r={name:"ShopAccountDetailManage",data(){return{shopAccountDetailManageInfo:{shopAccountDetails:[],shopAccounts:[],total:0,records:1,moreCondition:!1,scId:"",detailTypes:[],conditions:{acctId:"",detailType:"",orderId:"",page:1,row:10}}}},created(){this._initMethod()},methods:{async _initMethod(){this.shopAccountDetailManageInfo.scId=Object(l["f"])(),console.log(this.shopAccountDetailManageInfo.moreCondition),await this._loadShopAccounts(),await this._listshopAccountDetails(1,10),await this._loadDictData()},async _loadDictData(){try{const{data:t}=await Object(l["e"])("account_detail","detail_type");this.shopAccountDetailManageInfo.detailTypes=t}catch(t){console.error("获取字典数据失败:",t)}},async _listshopAccountDetails(t,a){this.shopAccountDetailManageInfo.conditions.page=t,this.shopAccountDetailManageInfo.conditions.row=a;try{const t=await i(this.shopAccountDetailManageInfo.conditions);this.shopAccountDetailManageInfo.total=t.total,this.shopAccountDetailManageInfo.records=t.records,this.shopAccountDetailManageInfo.shopAccountDetails=t.data}catch(e){console.error("请求失败:",e)}},_queryshopAccountDetailMethod(){this._listshopAccountDetails(1,this.shopAccountDetailManageInfo.conditions.row)},_resetshopAccountDetailMethod(){this.shopAccountDetailManageInfo.conditions={acctId:"",detailType:"",orderId:"",page:1,row:10},this._listshopAccountDetails(1,10)},handleCurrentChange(t){this._listshopAccountDetails(t,this.shopAccountDetailManageInfo.conditions.row)},async _loadShopAccounts(){try{const t=await s({page:1,row:50});this.shopAccountDetailManageInfo.shopAccounts=t.data}catch(t){console.error("请求失败:",t)}}}},u=r,p=(e("8885"),e("2877")),d=Object(p["a"])(u,o,n,!1,null,"d92333d0",null);a["default"]=d.exports}}]);
|
|
//# sourceMappingURL=chunk-a28fe660.dc78f919.js.map
|