2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e8e3e70"],{6965:function(e,t,r){},aec6:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("div",[t("el-card",{staticClass:"ibox"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("div",[e._v(e._s(e.$t("storeOrderCartFee.queryTitle")))]),t("div",{staticClass:"ibox-tools",staticStyle:{top:"10px"}})]),t("div",{},[t("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:e.storeOrderCartFeeInfo.conditions}},[t("el-form-item",[t("el-form-item",[t("el-input",{attrs:{placeholder:e.$t("storeOrderCartFee.feeNamePlaceholder"),clearable:""},model:{value:e.storeOrderCartFeeInfo.conditions.feeName,callback:function(t){e.$set(e.storeOrderCartFeeInfo.conditions,"feeName",t)},expression:"storeOrderCartFeeInfo.conditions.feeName"}})],1)],1),t("el-form-item",[t("el-form-item",[t("el-input",{attrs:{placeholder:e.$t("storeOrderCartFee.cartIdPlaceholder"),clearable:""},model:{value:e.storeOrderCartFeeInfo.conditions.cartId,callback:function(t){e.$set(e.storeOrderCartFeeInfo.conditions,"cartId",t)},expression:"storeOrderCartFeeInfo.conditions.cartId"}})],1)],1),t("el-form-item",[t("el-form-item",[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("storeOrderCartFee.statePlaceholder"),clearable:""},model:{value:e.storeOrderCartFeeInfo.conditions.state,callback:function(t){e.$set(e.storeOrderCartFeeInfo.conditions,"state",t)},expression:"storeOrderCartFeeInfo.conditions.state"}},e._l(e.storeOrderCartFeeInfo.states,(function(e){return t("el-option",{key:e.statusCd,attrs:{label:e.name,value:e.statusCd}})})),1)],1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e._queryStoreOrderCartFees}},[t("i",{staticClass:"el-icon-search"}),e._v(" "+e._s(e.$t("common.query"))+" ")]),t("el-button",{attrs:{size:"small"},on:{click:e._resetStoreOrderCartFees}},[t("i",{staticClass:"el-icon-refresh"}),e._v(" "+e._s(e.$t("common.reset"))+" ")])],1)],1)],1)]),t("el-card",{staticClass:"margin-top-sm"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("div",[e._v(e._s(e.$t("storeOrderCartFee.orderFeeTitle")))])]),t("div",{},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.storeOrderCartFeeInfo.storeOrderCartFees,border:""}},[t("el-table-column",{attrs:{prop:"cartId",label:e.$t("storeOrderCartFee.cartId"),align:"center"}}),t("el-table-column",{attrs:{prop:"feeName",label:e.$t("storeOrderCartFee.feeName"),align:"center"}}),t("el-table-column",{attrs:{prop:"price",label:e.$t("storeOrderCartFee.price"),align:"center"}}),t("el-table-column",{attrs:{prop:"payPrice",label:e.$t("storeOrderCartFee.payPrice"),align:"center"}}),t("el-table-column",{attrs:{prop:"payWayName",label:e.$t("storeOrderCartFee.payWayName"),align:"center"}}),t("el-table-column",{attrs:{prop:"state",label:e.$t("storeOrderCartFee.state"),align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s("1001"===t.state?e.$t("storeOrderCartFee.unpaid"):e.$t("storeOrderCartFee.paid"))+" ")]}}])}),t("el-table-column",{attrs:{prop:"updateTime",label:e.$t("storeOrderCartFee.updateTime"),align:"center"}}),t("el-table-column",{attrs:{prop:"remark",label:e.$t("storeOrderCartFee.remark"),align:"center"}})],1),t("el-pagination",{attrs:{"current-page":e.storeOrderCartFeeInfo.conditions.page,"page-size":e.storeOrderCartFeeInfo.conditions.row,layout:"total, prev, pager, next",total:e.storeOrderCartFeeInfo.total},on:{"current-change":e.handleCurrentChange}})],1)])],1)},o=[],s=r("7323"),n=r("b775");function i(e){return new Promise((t,r)=>{Object(n["a"])({url:"/storeOrder.queryStoreOrderCartFee",method:"get",params:e}).then(e=>{const r=e.data;t(r)}).catch(e=>{r(e)})})}var l={name:"StoreOrderCartFee",data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,storeOrderCartFeeInfo:{storeOrderCartFees:[],total:0,records:1,states:[],conditions:{feeName:"",state:"",cartId:"",shopId:"",page:1,row:10}}}},created(){this.shopId=Object(s["f"])(),this.storeOrderCartFeeInfo.conditions.shopId=this.shopId,this._initMethod()},methods:{async _initMethod(){await this._listStoreOrderCartFees(this.DEFAULT_PAGE,this.DEFAULT_ROWS);try{const{data:e}=await Object(s["e"])("store_order_cart_fee","state");this.storeOrderCartFeeInfo.states=e}catch(e){console.error("获取字典数据失败:",e)}},async _listStoreOrderCartFees(e,t){this.storeOrderCartFeeInfo.conditions.page=e,this.storeOrderCartFeeInfo.conditions.row=t;const r={...this.storeOrderCartFeeInfo.conditions,feeName:this.storeOrderCartFeeInfo.conditions.feeName.trim(),cartId:this.storeOrderCartFeeInfo.conditions.cartId.trim()};try{const e=await i(r);this.storeOrderCartFeeInfo.total=e.total,this.storeOrderCartFeeInfo.records=e.records,this.storeOrderCartFeeInfo.storeOrderCartFees=e.data}catch(a){console.error("请求失败:",a)}},_queryStoreOrderCartFees(){this._listStoreOrderCartFees(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_resetStoreOrderCartFees(){this.storeOrderCartFeeInfo.conditions.feeName="",this.storeOrderCartFeeInfo.conditions.cartId="",this.storeOrderCartFeeInfo.conditions.state="",this._listStoreOrderCartFees(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},handleCurrentChange(e){this._listStoreOrderCartFees(e,this.DEFAULT_ROWS)}}},d=l,c=(r("e7a3"),r("2877")),C=Object(c["a"])(d,a,o,!1,null,"0a7e2f33",null);t["default"]=C.exports},e7a3:function(e,t,r){"use strict";r("6965")}}]);
|
|
//# sourceMappingURL=chunk-0e8e3e70.871eb6e5.js.map
|