(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-643c12ba"],{"0037":function(e,t,n){},8492:function(e,t,n){"use strict";n.d(t,"u",(function(){return r})),n.d(t,"s",(function(){return i})),n.d(t,"v",(function(){return o})),n.d(t,"t",(function(){return s})),n.d(t,"q",(function(){return c})),n.d(t,"n",(function(){return d})),n.d(t,"y",(function(){return u})),n.d(t,"o",(function(){return l})),n.d(t,"x",(function(){return f})),n.d(t,"w",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return g})),n.d(t,"l",(function(){return k})),n.d(t,"z",(function(){return b})),n.d(t,"C",(function(){return v})),n.d(t,"B",(function(){return y})),n.d(t,"A",(function(){return w})),n.d(t,"r",(function(){return C})),n.d(t,"j",(function(){return x})),n.d(t,"a",(function(){return R})),n.d(t,"i",(function(){return N})),n.d(t,"k",(function(){return O})),n.d(t,"f",(function(){return $})),n.d(t,"g",(function(){return F})),n.d(t,"h",(function(){return I})),n.d(t,"p",(function(){return L})),n.d(t,"m",(function(){return D}));var a=n("0c6d");function r(e){return a["a"].get("merchant/menu/lst",e)}function i(){return a["a"].get("merchant/menu/create/form")}function o(e){return a["a"].get("merchant/menu/update/form/".concat(e))}function s(e){return a["a"].delete("merchant/menu/delete/".concat(e))}function c(e){return a["a"].get("system/merchant/lst",e)}function d(){return a["a"].get("system/merchant/create/form")}function u(e){return a["a"].get("system/merchant/update/form/".concat(e))}function l(e){return a["a"].delete("system/merchant/delete/".concat(e))}function f(e,t){return a["a"].post("system/merchant/status/".concat(e),{status:t})}function h(e){return a["a"].get("system/merchant/password/form/".concat(e))}function m(e){return a["a"].get("system/merchant/category/lst",e)}function p(){return a["a"].get("system/merchant/category/form")}function _(e){return a["a"].get("system/merchant/category/form/".concat(e))}function g(e){return a["a"].delete("system/merchant/category/".concat(e))}function k(e,t){return a["a"].get("merchant/order/lst/".concat(e),t)}function b(e){return a["a"].get("merchant/order/mark/".concat(e,"/form"))}function v(e,t){return a["a"].get("merchant/order/refund/lst/".concat(e),t)}function y(e){return a["a"].get("merchant/order/refund/mark/".concat(e,"/form"))}function w(e,t){return a["a"].post("merchant/order/reconciliation/create/".concat(e),t)}function C(e){return a["a"].post("system/merchant/login/".concat(e))}function x(e){return a["a"].get("merchant/intention/lst",e)}function R(e){return a["a"].get("merchant/intention/mark/".concat(e,"/form"))}function N(e){return a["a"].delete("merchant/intention/delete/".concat(e))}function O(e){return a["a"].get("merchant/intention/status/".concat(e,"/form"))}function $(e){return a["a"].get("system/merchant/changecopy/".concat(e,"/form"))}function F(){return a["a"].get("merchant/intention/agree")}function I(e){return a["a"].post("merchant/intention/agree",e)}function L(e,t){return a["a"].post("system/merchant/close/".concat(e),{status:t})}function D(){return a["a"].get("system/merchant/count")}},e2fd:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card mb20"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},["1"===e.$route.params.type?n("router-link",{attrs:{to:{path:e.roterPre+"/merchant/list"}}},[n("el-button",{staticClass:"mr20 mb20",attrs:{size:"mini",icon:"el-icon-back"}},[e._v("返回")])],1):n("router-link",{attrs:{to:{path:e.roterPre+"/accounts/reconciliation"}}},[n("el-button",{staticClass:"mr20 mb20",attrs:{size:"mini",icon:"el-icon-back"}},[e._v("返回")])],1),e._v(" "),"1"===e.$route.params.type?n("div",{staticClass:"filter-container"},[n("el-form",{attrs:{inline:!0}},[n("el-form-item",{staticClass:"mr20",attrs:{label:"使用状态:"}},[n("el-select",{attrs:{placeholder:"请选择评价状态"},on:{change:e.init},model:{value:e.tableFrom.status,callback:function(t){e.$set(e.tableFrom,"status",t)},expression:"tableFrom.status"}},[n("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),n("el-option",{attrs:{label:"未对账",value:"0"}}),e._v(" "),n("el-option",{attrs:{label:"已对账",value:"1"}})],1)],1),e._v(" "),n("el-form-item",{staticClass:"mr10",attrs:{label:"时间选择:"}},[n("el-date-picker",{attrs:{type:"daterange",align:"right","unlink-panels":"",format:"yyyy 年 MM 月 dd 日","value-format":"yyyy/MM/dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1)],1):e._e(),e._v(" "),"1"===e.$route.params.type?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.onAdd(0)}}},[e._v("商户对账")]):e._e()],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-form",{staticClass:"demo-table-expand demo-table-expands",attrs:{"label-position":"left",inline:""}},[n("el-form-item",{attrs:{label:"收货人:"}},[n("span",[e._v(e._s(e._f("filterEmpty")(t.row.real_name)))])]),e._v(" "),n("el-form-item",{attrs:{label:"电话:"}},[n("span",[e._v(e._s(e._f("filterEmpty")(t.row.user_phone)))])]),e._v(" "),n("el-form-item",{attrs:{label:"地址:"}},[n("span",[e._v(e._s(e._f("filterEmpty")(t.row.user_address)))])]),e._v(" "),n("el-form-item",{attrs:{label:"商品总数:"}},[n("span",[e._v(e._s(e._f("filterEmpty")(t.row.total_num)))])]),e._v(" "),n("el-form-item",{attrs:{label:"支付状态:"}},[n("span",[e._v(e._s(e._f("payTypeFilter")(t.row.pay_type)))])]),e._v(" "),n("el-form-item",{attrs:{label:"支付时间:"}},[n("span",[e._v(e._s(e._f("filterEmpty")(t.row.pay_time)))])]),e._v(" "),n("el-form-item",{attrs:{label:"对账备注:"}},[n("span",[e._v(e._s(t.row.admin_mark))])])],1)]}}])}),e._v(" "),"1"===e.$route.params.type?n("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[n("el-popover",{staticClass:"tabPop",attrs:{placement:"top-start",width:"100",trigger:"hover"}},[n("div",[n("span",{staticClass:"spBlock onHand",class:{check:"dan"===e.chkName},on:{click:function(n){return e.onHandle("dan",t.$index)}}},[e._v("选中本页")]),e._v(" "),n("span",{staticClass:"spBlock onHand",class:{check:"duo"===e.chkName},on:{click:function(t){return e.onHandle("duo")}}},[e._v("选中全部")])]),e._v(" "),n("el-checkbox",{attrs:{slot:"reference",value:"dan"===e.chkName&&e.checkedPage.indexOf(e.tableFrom.page)>-1||"duo"===e.chkName},on:{change:e.changeType},slot:"reference"})],1)]}},{key:"default",fn:function(t){return[n("el-checkbox",{attrs:{value:e.checkedIds.indexOf(t.row.order_id)>-1||"duo"===e.chkName&&-1===e.noChecked.indexOf(t.row.order_id)},on:{change:function(n){return e.changeOne(n,t.row)}}})]}}],null,!1,3619774636)}):e._e(),e._v(" "),n("el-table-column",{attrs:{prop:"order_id",label:"ID",width:"60"}}),e._v(" "),n("el-table-column",{attrs:{label:"是否对账","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("reconciliationFilter")(t.row.reconciliation_id)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"order_sn",label:"订单编号","min-width":"190"}}),e._v(" "),n("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.orderProduct,(function(t,a){return n("div",{key:a,staticClass:"tabBox acea-row row-middle"},[n("div",{staticClass:"demo-image__preview"},[n("el-image",{attrs:{src:t.cart_info.product.image,"preview-src-list":[t.cart_info.product.image]}})],1),e._v(" "),n("span",{staticClass:"tabBox_tit"},[e._v(e._s(t.cart_info.product.store_name+" | ")+e._s(t.cart_info.productAttr.sku))]),e._v(" "),n("span",{staticClass:"tabBox_pice"},[e._v(e._s("¥"+t.cart_info.productAttr.price+" x "+t.product_num))])])}))}}])}),e._v(" "),n("el-table-column",{attrs:{label:"商品总价","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.getTotal(t.row.orderProduct)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"pay_price",label:"实际支付","min-width":"100"}}),e._v(" "),n("el-table-column",{attrs:{label:"佣金金额","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(Number(t.row.extension_one)+Number(t.row.extension_two)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"total_postage",label:"邮费","min-width":"100"}}),e._v(" "),n("el-table-column",{attrs:{prop:"order_rate",label:"手续费","min-width":"100"}}),e._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"下单时间","min-width":"150"}}),e._v(" "),"1"===e.$route.params.type?n("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.addMark(t.row.order_id)}}},[e._v("添加备注")])]}}],null,!1,96162191)}):e._e()],1),e._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-sizes":[10,20,30,40],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),n("el-card",{staticClass:"box-card"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.tableDataRefund.data,size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[n("el-form-item",{attrs:{label:"订单号:"}},[n("span",[e._v(e._s(t.row.order.order_sn))])]),e._v(" "),n("el-form-item",{attrs:{label:"退款商品总价:"}},[n("span",[e._v(e._s(e.getTotalRefund(t.row.refundProduct)))])]),e._v(" "),n("el-form-item",{attrs:{label:"退款商品总数:"}},[n("span",[e._v(e._s(t.row.refund_num))])]),e._v(" "),n("el-form-item",{attrs:{label:"申请退款时间:"}},[n("span",[e._v(e._s(e._f("filterEmpty")(t.row.create_time)))])]),e._v(" "),n("el-form-item",{attrs:{label:"对账备注:"}},[n("span",[e._v(e._s(t.row.admin_mark))])])],1)]}}])}),e._v(" "),"1"===e.$route.params.type?n("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[n("el-popover",{staticClass:"tabPop",attrs:{placement:"top-start",width:"100",trigger:"hover"}},[n("div",[n("span",{staticClass:"spBlock onHand",class:{check:"dan"===e.chkNameRefund},on:{click:function(n){return e.onHandleRefund("dan",t.$index)}}},[e._v("选中本页")]),e._v(" "),n("span",{staticClass:"spBlock onHand",class:{check:"duo"===e.chkNameRefund},on:{click:function(t){return e.onHandleRefund("duo")}}},[e._v("选中全部")])]),e._v(" "),n("el-checkbox",{attrs:{slot:"reference",value:"dan"===e.chkNameRefund&&e.checkedPage.indexOf(e.tableFrom.page)>-1||"duo"===e.chkNameRefund},on:{change:e.changeTypeRefund},slot:"reference"})],1)]}},{key:"default",fn:function(t){return[n("el-checkbox",{attrs:{value:e.refundCheckedIds.indexOf(t.row.refund_order_id)>-1||"duo"===e.chkNameRefund&&-1===e.refundNoChecked.indexOf(t.row.refund_order_id)},on:{change:function(n){return e.changeOneRefund(n,t.row)}}})]}}],null,!1,1428325602)}):e._e(),e._v(" "),n("el-table-column",{attrs:{prop:"refund_order_id",label:"ID",width:"60"}}),e._v(" "),n("el-table-column",{attrs:{label:"退款单号","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticStyle:{display:"block"},domProps:{textContent:e._s(t.row.refund_order_sn)}}),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.row.is_del>0,expression:"scope.row.is_del > 0"}],staticStyle:{color:"#ED4014",display:"block"}},[e._v("用户已删除")])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"是否对账","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("reconciliationFilter")(t.row.reconciliation_id)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"user.nickname",label:"用户信息","min-width":"130"}}),e._v(" "),n("el-table-column",{attrs:{prop:"refund_price",label:"退款金额","min-width":"130"}}),e._v(" "),n("el-table-column",{attrs:{prop:"nickname",label:"商品信息","min-width":"330"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.refundProduct,(function(t,a){return n("div",{key:a,staticClass:"tabBox acea-row row-middle"},[n("div",{staticClass:"demo-image__preview"},[n("el-image",{attrs:{src:t.product.cart_info.product.image,"preview-src-list":[t.product.cart_info.product.image]}})],1),e._v(" "),n("span",{staticClass:"tabBox_tit"},[e._v(e._s(t.product.cart_info.product.store_name+" | ")+e._s(t.product.cart_info.productAttr.sku))]),e._v(" "),n("span",{staticClass:"tabBox_pice"},[e._v(e._s("¥"+t.product.cart_info.productAttr.price+" x "+t.product.product_num))])])}))}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"serviceScore",label:"订单状态","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticStyle:{display:"block"}},[e._v(e._s(e._f("orderRefundFilter")(t.row.status)))]),e._v(" "),n("span",{staticStyle:{display:"block"}},[e._v("退款原因:"+e._s(t.row.refund_message))]),e._v(" "),n("span",{staticStyle:{display:"block"}},[e._v("状态变更时间:"+e._s(t.row.status_time))])]}}])}),e._v(" "),"1"===e.$route.params.type?n("el-table-column",{key:"10",attrs:{label:"操作","min-width":"80",fixed:"right",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.onOrderMark(t.row.refund_order_id)}}},[e._v("订单备注")])]}}],null,!1,2548398108)}):e._e()],1),e._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[10,20,30,40],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableDataRefund.total},on:{"size-change":e.handleSizeChangeRefund,"current-change":e.pageChangeRefund}})],1)],1)],1)},r=[],i=(n("ac6a"),n("8492")),o=n("2801"),s=n("83d6"),c={name:"Record",data:function(){return{roterPre:s["roterPre"],chkName:"",chkNameRefund:"",isIndeterminate:!0,resource:[],visible:!1,timeVal:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-6048e5),e.$emit("pick",[n,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-2592e6),e.$emit("pick",[n,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-7776e6),e.$emit("pick",[n,t])}}]},listLoading:!0,tableData:{data:[],total:0},tableDataRefund:{data:[],total:0},tableFrom:{page:1,limit:10,date:"",status:""},ids:[],idsRefund:[],checkedPage:[],checkedIds:[],noChecked:[],refundCheckedIds:[],refundNoChecked:[]}},mounted:function(){this.init()},created:function(){this.tempRoute=Object.assign({},this.$route)},methods:{isDisabled:function(e){return 3===e.status},init:function(){this.tableFrom.page=1,this.getList(),this.getRefundList(),0===this.$route.params.type&&this.setTagsViewTitle()},onHandle:function(e){this.chkName=this.chkName===e?"":e,this.changeType(!(""===this.chkName))},changeOne:function(e,t){if(e)if("duo"===this.chkName){var n=this.noChecked.indexOf(t.order_id);n>-1&&this.noChecked.splice(n,1)}else{var a=this.checkedIds.indexOf(t.order_id);-1===a&&this.checkedIds.push(t.order_id)}else if("duo"===this.chkName){var r=this.noChecked.indexOf(t.order_id);-1===r&&this.noChecked.push(t.order_id)}else{var i=this.checkedIds.indexOf(t.order_id);i>-1&&this.checkedIds.splice(i,1)}},changeType:function(e){e?this.chkName||(this.chkName="dan"):this.chkName="";var t=this.checkedPage.indexOf(this.tableFrom.page);"dan"===this.chkName?this.checkedPage.push(this.tableFrom.page):t>-1&&this.checkedPage.splice(t,1),this.syncCheckedId()},syncCheckedId:function(){var e=this,t=this.tableData.data.map((function(e){return e.order_id}));"duo"===this.chkName?this.checkedIds=[]:"dan"===this.chkName?t.forEach((function(t){var n=e.checkedIds.indexOf(t);-1===n&&e.checkedIds.push(t)})):t.forEach((function(t){var n=e.checkedIds.indexOf(t);n>-1&&e.checkedIds.splice(n,1)}))},onHandleRefund:function(e){this.chkNameRefund=this.chkNameRefund===e?"":e,this.changeTypeRefund(!(""===this.chkNameRefund))},changeOneRefund:function(e,t){if(e)if("duo"===this.chkNameRefund){var n=this.refundNoChecked.indexOf(t.refund_order_id);n>-1&&this.refundNoChecked.splice(n,1)}else{var a=this.refundCheckedIds.indexOf(t.refund_order_id);-1===a&&this.refundCheckedIds.push(t.refund_order_id)}else if("duo"===this.chkNameRefund){var r=this.refundNoChecked.indexOf(t.refund_order_id);-1===r&&this.refundNoChecked.push(t.refund_order_id)}else{var i=this.refundCheckedIds.indexOf(t.refund_order_id);i>-1&&this.refundCheckedIds.splice(i,1)}},changeTypeRefund:function(e){e?this.chkNameRefund||(this.chkNameRefund="dan"):this.chkNameRefund="";var t=this.checkedPage.indexOf(this.tableFrom.page);"dan"===this.chkNameRefund?this.checkedPage.push(this.tableFrom.page):t>-1&&this.checkedPage.splice(t,1),this.syncCheckedIdRefund()},syncCheckedIdRefund:function(){var e=this,t=this.tableDataRefund.data.map((function(e){return e.refund_order_id}));"duo"===this.chkNameRefund?this.refundCheckedIds=[]:"dan"===this.chkNameRefund?t.forEach((function(t){var n=e.refundCheckedIds.indexOf(t);-1===n&&e.refundCheckedIds.push(t)})):t.forEach((function(t){var n=e.refundCheckedIds.indexOf(t);n>-1&&e.refundCheckedIds.splice(n,1)}))},onAdd:function(){var e=this,t={order_ids:this.checkedIds,order_out_ids:this.noChecked,order_type:"duo"===this.chkName?1:0,refund_order_ids:this.refundCheckedIds,refund_out_ids:this.refundNoChecked,refund_type:"duo"===this.chkNameRefund?1:0,date:this.tableFrom.date};this.$modalSure("发起商户对账吗").then((function(){Object(i["A"])(e.$route.params.id,t).then((function(t){var n=t.message;e.$message.success(n),e.tableFrom.page=1,e.getList(),e.getRefundList(),e.chkName="",e.chkNameRefund="",e.refundCheckedIds=[],e.checkedIds=[],e.noChecked=[],e.refundNoChecked=[]})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},onchangeTime:function(e){this.timeVal=e,this.tableFrom.date=this.timeVal?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList(),this.getRefundList()},onOrderMark:function(e){var t=this;this.$modalForm(Object(i["B"])(e)).then((function(){return t.getRefundList()}))},addMark:function(e){var t=this;this.$modalForm(Object(i["z"])(e)).then((function(){return t.getList()}))},getTotalRefund:function(e){for(var t=0,n=0;n