1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-171bc9d3"],{"26cd":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card mb20"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("router-link",{attrs:{to:{path:t.roterPre+"/accounts/reconciliation"}}},[a("el-button",{staticClass:"mr20 mb20",attrs:{size:"mini",icon:"el-icon-back"}},[t._v("返回")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand demo-table-expands",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"收货人:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.real_name)))])]),t._v(" "),a("el-form-item",{attrs:{label:"电话:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.user_phone)))])]),t._v(" "),a("el-form-item",{attrs:{label:"地址:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.user_address)))])]),t._v(" "),a("el-form-item",{attrs:{label:"商品总数:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.total_num)))])]),t._v(" "),a("el-form-item",{attrs:{label:"支付状态:"}},[a("span",[t._v(t._s(t._f("payTypeFilter")(e.row.pay_type)))])]),t._v(" "),a("el-form-item",{attrs:{label:"支付时间:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.pay_time)))])]),t._v(" "),a("el-form-item",{attrs:{label:"对账备注:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.admin_mark)))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order_id",label:"ID",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否对账","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("reconciliationFilter")(e.row.reconciliation_id)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order_sn",label:"订单编号","min-width":"190"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.orderProduct,(function(e,n){return a("div",{key:n,staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),a("span",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num))])])}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品总价","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.getTotal(e.row.orderProduct)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"佣金金额","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(Number(e.row.extension_one)+Number(e.row.extension_two)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_price",label:"实际支付","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_postage",label:"邮费","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"order_rate",label:"手续费","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"下单时间","min-width":"150"}})],1),t._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-card",{staticClass:"box-card"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableDataRefund.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand demo-table-expandss",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"订单号:"}},[a("span",[t._v(t._s(e.row.order.order_sn))])]),t._v(" "),a("el-form-item",{attrs:{label:"退款商品总价:"}},[a("span",[t._v(t._s(t.getTotalRefund(e.row.refundProduct)))])]),t._v(" "),a("el-form-item",{attrs:{label:"退款商品总数:"}},[a("span",[t._v(t._s(e.row.refund_num))])]),t._v(" "),a("el-form-item",{attrs:{label:"申请退款时间:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.create_time)))])]),t._v(" "),a("el-form-item",{attrs:{label:"对账备注:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.admin_mark)))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_order_id",label:"ID",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"退款单号","min-width":"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.refund_order_sn)}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:e.row.is_del>0,expression:"scope.row.is_del > 0"}],staticStyle:{color:"#ED4014",display:"block"}},[t._v("用户已删除")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否对账","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("reconciliationFilter")(e.row.reconciliation_id)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"user.nickname",label:"用户信息","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_price",label:"退款金额","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.refundProduct,(function(e,n){return a("div",{key:n,staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.product.cart_info.product.image,"preview-src-list":[e.product.cart_info.product.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.product.cart_info.product.store_name+" | ")+t._s(e.product.cart_info.productAttr.sku))]),t._v(" "),a("span",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.product.cart_info.productAttr.price+" x "+e.product.product_num))])])}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"serviceScore",label:"订单状态","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{display:"block"}},[t._v(t._s(t._f("orderRefundFilter")(e.row.status)))]),t._v(" "),a("span",{staticStyle:{display:"block"}},[t._v("退款原因:"+t._s(e.row.refund_message))]),t._v(" "),a("span",{staticStyle:{display:"block"}},[t._v("状态变更时间:"+t._s(e.row.status_time))])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableDataRefund.total},on:{"size-change":t.handleSizeChangeRefund,"current-change":t.pageChangeRefund}})],1)],1)],1)},r=[],i=a("2801"),o=a("83d6"),l={name:"Record",data:function(){return{roterPre:o["roterPre"],chkName:"",chkNameRefund:"",isIndeterminate:!0,resource:[],visible:!1,timeVal:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]},listLoading:!0,tableData:{data:[],total:0},tableDataRefund:{data:[],total:0},tableFrom:{page:1,limit:10},ids:[],idsRefund:[]}},mounted:function(){this.getList(),this.getRefundList(),0===this.$route.params.type&&this.setTagsViewTitle()},created:function(){this.tempRoute=Object.assign({},this.$route)},methods:{isDisabled:function(t){return 3===t.status},onchangeTime:function(t){this.timeVal=t,this.tableFrom.data=this.timeVal?this.timeVal.join("-"):"",this.getList(),this.getRefundList()},getTotalRefund:function(t){for(var e=0,a=0;a<t.length;a++)e+=t[a].product.cart_info.productAttr.price*t[a].refund_num;return e},getTotal:function(t){for(var e=0,a=0;a<t.length;a++)e+=t[a].cart_info.productAttr.price*t[a].product_num;return e},getList:function(){var t=this;this.listLoading=!0,Object(i["m"])(this.$route.params.id,this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.tableData.data.map((function(e){t.$set(e,{checked:!1})})),t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.chkName="",this.getList()},getRefundList:function(){var t=this;this.listLoading=!0,Object(i["n"])(this.$route.params.id,this.tableFrom).then((function(e){t.tableDataRefund.data=e.data.list,t.tableDataRefund.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChangeRefund:function(t){this.tableFrom.page=t,this.getRefundList()},handleSizeChangeRefund:function(t){this.tableFrom.limit=t,this.getRefundList()},setTagsViewTitle:function(){var t="查看订单",e=Object.assign({},this.tempRoute,{title:"".concat(t,"-").concat(this.$route.params.id)});this.$store.dispatch("tagsView/updateVisitedView",e)}}},s=l,c=(a("b4ee"),a("2877")),u=Object(c["a"])(s,n,r,!1,null,"1c226987",null);e["default"]=u.exports},2801:function(t,e,a){"use strict";a.d(e,"k",(function(){return r})),a.d(e,"o",(function(){return i})),a.d(e,"m",(function(){return o})),a.d(e,"n",(function(){return l})),a.d(e,"l",(function(){return s})),a.d(e,"c",(function(){return c})),a.d(e,"b",(function(){return u})),a.d(e,"s",(function(){return d})),a.d(e,"i",(function(){return f})),a.d(e,"j",(function(){return m})),a.d(e,"a",(function(){return _})),a.d(e,"q",(function(){return p})),a.d(e,"p",(function(){return b})),a.d(e,"r",(function(){return g})),a.d(e,"g",(function(){return v})),a.d(e,"f",(function(){return h})),a.d(e,"e",(function(){return w})),a.d(e,"d",(function(){return k})),a.d(e,"h",(function(){return y}));var n=a("0c6d");function r(t){return n["a"].get("store/order/reconciliation/lst",t)}function i(t,e){return n["a"].post("store/order/reconciliation/status/".concat(t),e)}function o(t,e){return n["a"].get("store/order/reconciliation/".concat(t,"/order"),e)}function l(t,e){return n["a"].get("store/order/reconciliation/".concat(t,"/refund"),e)}function s(t){return n["a"].get("store/order/reconciliation/mark/".concat(t,"/form"))}function c(t){return n["a"].get("financial_record/list",t)}function u(t){return n["a"].get("financial_record/export",t)}function d(t){return n["a"].get("financial/export",t)}function f(){return n["a"].get("version")}function m(){return n["a"].get("financial/account/form")}function _(){return n["a"].get("financial/create/form")}function p(t){return n["a"].get("financial/lst",t)}function b(t){return n["a"].get("financial/detail/".concat(t))}function g(t){return n["a"].get("financial/mark/".concat(t,"/form"))}function v(t){return n["a"].get("financial_record/lst",t)}function h(t,e){return n["a"].get("financial_record/detail/".concat(t),e)}function w(t){return n["a"].get("financial_record/title",t)}function k(t,e){return n["a"].get("financial_record/detail_export/".concat(t),e)}function y(t){return n["a"].get("financial_record/count",t)}},"8f58":function(t,e,a){},b4ee:function(t,e,a){"use strict";a("8f58")}}]); |