(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fd7c5082"],{"08f8":function(t,e,a){"use strict";a("17bd")},"17bd":function(t,e,a){},"21d2":function(t,e,a){"use strict";a.d(e,"j",(function(){return i})),a.d(e,"k",(function(){return n})),a.d(e,"y",(function(){return o})),a.d(e,"G",(function(){return r})),a.d(e,"H",(function(){return s})),a.d(e,"F",(function(){return c})),a.d(e,"s",(function(){return u})),a.d(e,"C",(function(){return d})),a.d(e,"q",(function(){return m})),a.d(e,"A",(function(){return p})),a.d(e,"D",(function(){return f})),a.d(e,"E",(function(){return h})),a.d(e,"z",(function(){return b})),a.d(e,"d",(function(){return g})),a.d(e,"p",(function(){return v})),a.d(e,"i",(function(){return x})),a.d(e,"g",(function(){return _})),a.d(e,"o",(function(){return y})),a.d(e,"b",(function(){return I})),a.d(e,"r",(function(){return S})),a.d(e,"t",(function(){return C})),a.d(e,"u",(function(){return j})),a.d(e,"f",(function(){return w})),a.d(e,"h",(function(){return O})),a.d(e,"a",(function(){return L})),a.d(e,"e",(function(){return k})),a.d(e,"m",(function(){return T})),a.d(e,"n",(function(){return D})),a.d(e,"x",(function(){return P})),a.d(e,"w",(function(){return E})),a.d(e,"l",(function(){return U})),a.d(e,"B",(function(){return N})),a.d(e,"N",(function(){return B})),a.d(e,"c",(function(){return V})),a.d(e,"v",(function(){return $})),a.d(e,"I",(function(){return G})),a.d(e,"J",(function(){return z})),a.d(e,"K",(function(){return q})),a.d(e,"L",(function(){return W})),a.d(e,"M",(function(){return R}));var l=a("b775");function i(){return Object(l["a"])({url:"/admin/platform/retail/store/config/get",method:"get"})}function n(t){return Object(l["a"])({url:"/admin/platform/retail/store/config/save",method:"post",data:t})}function o(t){return Object(l["a"])({url:"/admin/platform/retail/store/people/list",method:"get",params:t})}function r(t){return Object(l["a"])({url:"/admin/platform/retail/store/sub/user/list",method:"get",params:t})}function s(t){return Object(l["a"])({url:"/admin/platform/retail/store/promotion/order/list",method:"get",params:t})}function c(t){return Object(l["a"])({url:"/admin/platform/retail/store/clean/spread/".concat(t),method:"get"})}function u(t){return Object(l["a"])({url:"/admin/platform/bcx/brokerage/config/product/list",method:"GET",params:t})}function d(t){return Object(l["a"])({url:"/admin/platform/bcx/brokerage/config/set/product",method:"POST",data:t})}function m(t,e){var a=1==t?"/admin/platform/bcx/performance/report/fxy/list":2==t?"/admin/platform/bcx/performance/report/fxs/list":3==t?"/admin/platform/bcx/performance/report/channel/list":4==t?"/admin/platform/bcx/performance/report/department/list":"/admin/platform/bcx/performance/report/department/member/list";return Object(l["a"])({url:a,method:"GET",params:e})}function p(t){return Object(l["a"])({url:"/admin/platform/bcx/performance/report/statistics",method:"GET",params:t})}function f(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/bill/statistics",method:"GET",params:t})}function h(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/statistics",method:"GET",params:t})}function b(){return Object(l["a"])({url:"/admin/platform/bcx/region/tree",method:"GET"})}function g(t,e){var a=1===t?"/admin/platform/bcx/performance/report/fxy/list/excel":2===t?"/admin/platform/bcx/performance/report/fxs/list/excel":3===t?"/admin/platform/bcx/performance/report/channel/list/excel":4===t?"/admin/platform/bcx/performance/report/department/list/excel":"/admin/platform/bcx/performance/report/department/member/list/excel";return Object(l["a"])({url:a,method:"GET",params:e,responseType:"blob"})}function v(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/bill/fxy/list",method:"GET",params:t})}function x(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/bill/fxs/list",method:"GET",params:t})}function _(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/bill/channel/list",method:"GET",params:t})}function y(t,e){return Object(l["a"])({url:0==t?"/admin/platform/bcx/settle/bill/department/list":"/admin/platform/bcx/settle/bill/department/member/list",method:"GET",params:e})}function I(t,e){var a=1===t?"/admin/platform/bcx/settle/bill/fxy/list/excel":2===t?"/admin/platform/bcx/settle/bill/fxs/list/excel":3===t?"/admin/platform/bcx/settle/bill/channel/list/excel":4===t?"/admin/platform/bcx/settle/bill/department/list/excel":"/admin/platform/bcx/settle/bill/department/member/list/excel";return Object(l["a"])({url:a,method:"GET",params:e,responseType:"blob"})}function S(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/bill/generate/settle",method:"POST",data:t})}function C(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/bill/detail/".concat(t.id),method:"GET",params:t})}function j(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/bill/get/settle/info",method:"POST",data:t})}function w(t){return Object(l["a"])({url:"/admin/platform/bcx/brokerage/config/load",method:"get",params:t})}function O(t){return Object(l["a"])({url:"/admin/platform/bcx/channel/list",method:"get",params:t})}function L(t){return Object(l["a"])({url:"/admin/platform/bcx/region/tree",method:"get",params:t})}function k(t){return Object(l["a"])({url:"/admin/platform/bcx/brokerage/config/save",method:"post",data:t})}function T(t){return Object(l["a"])({url:"/admin/platform/bcx/department/tree",method:"get",params:t})}function D(t){return Object(l["a"])({url:"/admin/platform/bcx/department/member/list",method:"GET",params:t})}function P(t,e){var a=1===t?"/admin/platform/bcx/settle/fxy/list":2===t?"/admin/platform/bcx/settle/fxs/list":3===t?"/admin/platform/bcx/settle/channel/list":4===t?"/admin/platform/bcx/settle/department/list":"/admin/platform/bcx/settle/department/member/list";return Object(l["a"])({url:a,method:"GET",params:e})}function E(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/get/settle/info",method:"POST",data:t})}function U(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/do/settle",method:"POST",data:t})}function N(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/cancel/".concat(t.id),method:"POST",params:t})}function B(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/upload/attachments",method:"POST",data:t})}function V(t,e){var a=1===t?"/admin/platform/bcx/settle/fxy/list/excel":2===t?"/admin/platform/bcx/settle/fxs/list/excel":3===t?"/admin/platform/bcx/settle/channel/list/excel":4===t?"/admin/platform/bcx/settle/department/list/excel":"/admin/platform/bcx/settle/department/member/list/excel";return Object(l["a"])({url:a,method:"GET",params:e,responseType:"blob"})}function $(t){return Object(l["a"])({url:"/admin/platform/bcx/settle/detail/".concat(t.id),method:"GET",params:t})}function G(t){return Object(l["a"])({url:"/admin/platform/bcx/performance/report/channel/list",method:"GET",params:t})}function z(t){return Object(l["a"])({url:"/admin/platform/bcx/performance/report/settle/bill/list",method:"GET",params:t})}function q(t){return Object(l["a"])({url:"/admin/platform/bcx/performance/report/settle/list",method:"GET",params:t})}function W(t){return Object(l["a"])({url:"/front/user/performance/report/list",method:"GET",params:t})}function R(t){return Object(l["a"])({url:"/front/user/performance/report/settle/bill/list",method:"GET",params:t})}},"28cb":function(t,e,a){"use strict";a("4311")},4311:function(t,e,a){},4568:function(t,e,a){"use strict";a("f0e6")},"8f6a":function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:retail:store:people:list"],expression:"['platform:retail:store:people:list']"}],staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container",staticStyle:{"margin-bottom":"10px"}},[a("div",{staticClass:"top-info"},[a("div",{staticClass:"settle-obj-status"},[a("div",{staticClass:"settle-obj"},[a("div",{staticClass:"item"},[a("span",{staticClass:"tip"},[t._v("结算对象:")]),t._v(" "),a("span",[t._v(t._s(t.settleBillInfo.settleName))])]),t._v(" "),a("div",{staticClass:"item"},[a("span",{staticClass:"tip"},[t._v("结算单号:")]),t._v(" "),a("span",[t._v(t._s(t.settleBillInfo.settleNo))])])]),t._v(" "),a("div",{staticClass:"settle-status",staticStyle:{"margin-left":"50px"}},[a("div",{staticClass:"item"},[a("span",{staticClass:"tip"},[t._v("结算状态:")]),t._v(" "),a("span",[t._v(t._s(1===t.settleBillInfo.settleStatus?"待结算":"已结算"))])]),t._v(" "),a("div",{staticClass:"item"},[a("span",{staticClass:"tip"},[t._v("结算类型:")]),t._v(" "),a("span",[t._v(t._s(1===t.settleBillInfo.belongType?"渠道商":2===t.settleBillInfo.belongType?"部门":3===t.settleBillInfo.belongType||5===t.settleBillInfo.belongType?"个人":"企业"))])])]),t._v(" "),a("div",{staticClass:"settle-status",staticStyle:{"margin-left":"50px"}},[a("div",{staticClass:"item"},[a("span",{staticClass:"tip"},[t._v("账期:")]),t._v(" "),a("span",[t._v(t._s(t.settleBillInfo.billPeriod))])])])]),t._v(" "),a("div",{staticClass:"data-info"},[a("div",{staticClass:"data-item"},[a("span",[t._v("¥ "+t._s(t.settleBillInfo.totalPrice))]),t._v(" "),a("span",[t._v("实付总金额(元)")])]),t._v(" "),a("div",{staticClass:"data-item"},[a("span",[t._v("¥ "+t._s(t.settleBillInfo.brokerageTotalPrice))]),t._v(" "),a("span",[t._v("结算金额(元)")])]),t._v(" "),a("div",{staticClass:"data-item"},[a("span",[t._v(t._s(t.settleBillInfo.reportCount))]),t._v(" "),a("span",[t._v("结算数量(条)")])])])]),t._v(" "),a("div",{staticClass:"search-condition",staticStyle:{"margin-top":"30px"}},[a("el-form",{staticClass:"search-condition",attrs:{size:"small","label-width":"100px"}},[a("el-form-item",{attrs:{label:"订单号:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",size:"small",clearable:""},model:{value:t.searchInfo.orderNo,callback:function(e){t.$set(t.searchInfo,"orderNo","string"===typeof e?e.trim():e)},expression:"searchInfo.orderNo"}})],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{label:3===t.type?"渠道商名称:":4===t.type?"部门名称:":5===t.type?"成员姓名:":"分销员姓名:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"姓名",size:"small",clearable:""},model:{value:t.searchInfo.name,callback:function(e){t.$set(t.searchInfo,"name","string"===typeof e?e.trim():e)},expression:"searchInfo.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"下单时间:"}},[a("el-date-picker",{attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1),t._v(" "),a("div",{staticClass:"search-btn",on:{click:t.searchList}},[t._v("搜 索")])],1)]),t._v(" "),a("SettleDetailComp",{attrs:{id:t.id,settleStatus:t.settleStatus,searchInfo:t.searchInfo,listLoading:t.listLoading,billList:t.billList,type:t.type,total:t.total,page:t.page,limit:t.limit},on:{handleSizeChange:t.handleSizeChange}})],1)])],1)},i=[],n=a("21d2"),o=a("0f56"),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"settle-detail-comp"},[a("div",{staticClass:"btns"},[1==t.settleStatus?a("div",{staticClass:"batch-settle-btn",on:{click:t.openSettleDialog}},[t._v("确认结算")]):a("div",{staticClass:"batch-settle-btn",staticStyle:{"margin-left":"10px"},on:{click:t.openUploadVoucherDialog}},[t._v("上传凭证")]),t._v(" "),a("div",{staticClass:"batch-export-btn",on:{click:t.batchExport}},[t._v("导出明细")])]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.billList,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"orderNo",label:"订单号","min-width":"180",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"orderTime",label:"订单时间","min-width":"140",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"payPrice",label:"实付金额","min-width":"130",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"brokeragePrice",label:"佣金(元)","min-width":"130",align:"center"}}),t._v(" "),t.type<3?a("el-table-column",{attrs:{label:"分销类型","min-width":"130",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1===e.row.brokerageUserType?"企业":"个人"))])]}}],null,!1,3808179565)}):t._e(),t._v(" "),t.type<3?a("el-table-column",{attrs:{prop:"brokerageUserRealName",label:"分销员姓名","min-width":"130",align:"center"}}):t._e(),t._v(" "),t.type<3?a("el-table-column",{attrs:{prop:"brokerageUserNikeName",label:"分销员昵称","min-width":"130",align:"center"}}):t._e(),t._v(" "),t.type<3?a("el-table-column",{attrs:{prop:"brokerageUserPhone",label:"分销员手机号","min-width":"130",align:"center"}}):t._e(),t._v(" "),t.type<3?a("el-table-column",{attrs:{prop:"brokerageUserOrg",label:"所属企业","min-width":"130",align:"center"}}):t._e(),t._v(" "),a("el-table-column",{attrs:{label:"结算状态","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1===e.row.settleStatus?"待生效":2===e.row.settleStatus?"冻结中":3===e.row.settleStatus?"待结算":4===e.row.settleStatus?"结算中":5===e.row.settleStatus?"已结算":"无效"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"orderTime",label:"结算时间","min-width":"140",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.settleTime?e.row.settleTime:"--/——"))])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.limit,"current-page":t.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1),t._v(" "),a("SettleDialog",{attrs:{showSettleDialog:t.showSettleDialog,checkList:t.checkList},on:{closeSettleDialog:t.closeSettleDialog}}),t._v(" "),a("UploadVoucherDialog",{attrs:{showUploadVoucherDialog:t.showUploadVoucherDialog,settleId:t.settleId},on:{closeUploadVoucherDialog:t.closeUploadVoucherDialog}})],1)},s=[],c=a("785a"),u=a("f4f8"),d=a("f839");function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function p(t,e,a){return e=f(e),e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function f(t){var e=h(t,"string");return"symbol"===m(e)?e:String(e)}function h(t,e){if("object"!==m(t)||null===t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var l=a.call(t,e||"default");if("object"!==m(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var b={props:["id","settleStatus","listLoading","billList","total","page","limit","searchInfo","type"],components:{SettleDialog:u["a"],UploadVoucherDialog:d["a"]},data:function(){return{showSettleDialog:!1,showUploadVoucherDialog:!1,settleId:null,checkList:[]}},methods:p(p({openSettleDialog:function(){this.checkList.push({id:this.id}),this.showSettleDialog=!0},closeSettleDialog:function(){this.showSettleDialog=!1},openUploadVoucherDialog:function(){this.settleId=this.id,this.showUploadVoucherDialog=!0},batchExport:function(){var t={settleId:this.id};this.bcxId&&(t.bcxId=this.bcxId),this.searchInfo.brokerageUserPhone&&(t.brokerageUserPhone=this.searchInfo.brokerageUserPhone),this.searchInfo.dateLimit&&(t.dateLimit=this.searchInfo.dateLimit),this.searchInfo.name&&(t.name=this.searchInfo.name),this.searchInfo.orderNo&&(t.orderNo=this.searchInfo.orderNo),this.searchInfo.settleStatus>0&&(t.settleStatus=this.searchInfo.settleStatus),Object(n["d"])(this.type,t).then((function(t){var e=decodeURIComponent(t.headers["content-disposition"].split("=")[1]),a=window.URL.createObjectURL(new Blob([t.data],{type:"application/vnd.ms-excel"})),l=document.createElement("a");l.style.display="none",l.href=a,l.setAttribute("download",e),document.body.appendChild(l),l.click(),document.body.removeChild(l),window.URL.revokeObjectURL(a)})).catch((function(){}))},uploadVoucher:function(t){var e=new FormData,a={model:"user",pid:0};e.append("multipart",t.file),this.uploadPic(e,a)},uploadPic:function(t,e){var a=this,l=this.$loading({lock:!0,text:"上传中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(c["d"])(t,e).then((function(t){l.close(),a.$message.success("上传成功"),console.info("res",t)})).catch((function(t){l.close()}))},handleSizeChange:function(t){this.$emit("handleSizeChange",t)},pageChange:function(t){this.$emit("pageChange",t)}},"closeSettleDialog",(function(t){t&&this.$emit("updateList"),this.showSettleDialog=!1})),"closeUploadVoucherDialog",(function(){this.showUploadVoucherDialog=!1}))},g=b,v=(a("28cb"),a("2877")),x=Object(v["a"])(g,r,s,!1,null,"6b021b9d",null),_=x.exports,y=a("e350"),I={name:"settleBillDetail",components:{cardsData:o["a"],settleDetailComp:_,SettleDetailComp:_},data:function(){return{listLoading:!1,settleBillInfo:{},billList:[{}],timeVal:[],searchInfo:{orderNo:"",name:"",dateLimit:""},limit:20,page:1,total:0,totalPage:null,type:null,id:null,settleStatus:null,bcxId:null,tabActive:0}},mounted:function(){this.type=this.$route.query.type,this.bcxId=this.$route.query.bcxId,this.id=this.$route.query.id,this.settleStatus=this.$route.query.settleStatus,Object(y["a"])(["platform:retail:store:people:list"])&&(this.getSettleBillInfo(),this.getList())},methods:{checkPermi:y["a"],getSettleBillInfo:function(){var t=this,e={id:this.id};Object(n["v"])(e).then((function(e){t.settleBillInfo=e})).catch((function(){}))},getList:function(){var t=this;this.listLoading=!0;var e={limit:this.limit,page:this.page,settleId:this.$route.query.id};this.bcxId&&(e.bcxId=this.bcxId),this.searchInfo.orderNo&&(e.orderNo=this.searchInfo.orderNo),this.searchInfo.dateLimit&&(e.dateLimit=this.searchInfo.dateLimit),this.searchInfo.name&&(e.name=this.searchInfo.name),Object(n["q"])(this.type,e).then((function(e){var a=e.limit,l=e.total,i=e.totalPage,n=e.page,o=e.list;t.limit=a,t.total=l,t.totalPage=i,t.page=n,t.billList=o,t.listLoading=!1,console.info("xxx list",e)})).catch((function(){t.listLoading=!1}))},searchList:function(){this.page=1,this.getList()},changeTime:function(){this.timeVal?this.searchInfo.dateLimit=this.timeVal.join(","):this.searchInfo.dateLimit="",this.getList()},changeTab:function(){this.getList()},handleSizeChange:function(t){this.limit=t,this.page=1,this.getList()},pageChange:function(t){this.page=t,this.getList()}}},S=I,C=(a("4568"),Object(v["a"])(S,l,i,!1,null,"74bbc73a",null));e["default"]=C.exports},bfe1:function(t,e,a){"use strict";a("ca00")},ca00:function(t,e,a){},f0e6:function(t,e,a){},f4f8:function(t,e,a){"use strict";var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"settle-dialog"},[a("el-dialog",{attrs:{visible:t.showSettleDialog,title:"佣金结算"},on:{"update:visible":function(e){t.showSettleDialog=e},close:t.onCancel}},[a("el-form",{attrs:{model:t.form}},[a("el-form-item",{attrs:{label:"结算订单"}},[a("div",[t._v(t._s(t.settleBaseInfo.settleCount)+"(笔)")])]),t._v(" "),a("el-form-item",{attrs:{label:"结算金额"}},[a("div",[t._v("¥ "+t._s(t.settleBaseInfo.settleTotalPrice))])]),t._v(" "),a("el-form-item",{attrs:{label:"支付方式"}},[a("el-radio-group",{model:{value:t.form.payWay,callback:function(e){t.$set(t.form,"payWay",e)},expression:"form.payWay"}},[a("el-radio",{attrs:{label:1}},[t._v("线下结算")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("企业钱包结算")]),t._v(" "),a("el-radio",{attrs:{label:3}},[t._v("第三方支付结算")])],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.onCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",disabled:0===t.settleBaseInfo.settleCount},on:{click:t.confirmSettle}},[t._v("确认结算")])],1)],1)],1)},i=[],n=a("21d2"),o={props:["showSettleDialog","checkList"],data:function(){return{form:{payWay:null},settleBillAttachmentsUrl:"",checkIds:[],settleBaseInfo:{}}},watch:{showSettleDialog:function(t){var e=this;t?(this.checkList.length&&this.checkList.forEach((function(t){e.checkIds.push(t.id)})),this.getSettleInfo()):this.checkIds=[]}},methods:{getSettleInfo:function(){var t=this,e={settleIdList:this.checkIds};Object(n["w"])(e).then((function(e){t.settleBaseInfo=e})).catch((function(){}))},onCancel:function(){this.$emit("closeSettleDialog")},confirmSettle:function(){var t=this,e={settleIdList:this.checkIds,payWay:this.form.payWay};e.payWay||this.$message({message:"请选择支付方式",type:"error",showClose:!0}),Object(n["l"])(e).then((function(e){t.$message({message:"结算成功",type:"success",showClose:!0}),t.$emit("closeSettleDialog","update")})).catch((function(){}))}}},r=o,s=(a("bfe1"),a("2877")),c=Object(s["a"])(r,l,i,!1,null,"1e7e5cfa",null);e["a"]=c.exports},f839:function(t,e,a){"use strict";var l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"upload-voucher-dialog"},[a("el-dialog",{attrs:{visible:t.showUploadVoucherDialog,title:"上传凭证"},on:{"update:visible":function(e){t.showUploadVoucherDialog=e},close:t.onCancel}},[a("el-form",[a("el-form-item",{attrs:{label:"结算发票"}},[a("el-upload",{attrs:{action:"","http-request":t.uploadInvoice,multiple:"",accept:".jpg, .png"}},[a("div",{staticClass:"upload-content"},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("支持扩展名:.jpg .png...")])],1)])],1),t._v(" "),a("el-form-item",{attrs:{label:"结算凭证"}},[a("el-upload",{attrs:{action:"","http-request":t.uploadVoucher,multiple:"",accept:".jpg, .png"}},[a("div",{staticClass:"upload-content"},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("支持扩展名:.jpg .png...")])],1)])],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.onCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.confirmUpload}},[t._v("确认上传")])],1)],1)],1)},i=[],n=a("785a"),o=a("21d2"),r={props:["showUploadVoucherDialog","settleId"],data:function(){return{settleInvoiceList:[],settleProofList:[]}},methods:{uploadInvoice:function(t){var e=new FormData,a={model:"user",pid:0};e.append("multipart",param.file),this.uploadPic(e,a,"invoice")},uploadVoucher:function(t){var e=new FormData,a={model:"user",pid:0};e.append("multipart",t.file),this.uploadPic(e,a,"proof")},uploadPic:function(t,e,a){var l=this,i=this.$loading({lock:!0,text:"上传中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(n["d"])(t,e).then((function(t){i.close(),console.info("res",t);var e=t.extName,n=t.fileName,o=t.url;"proof"===a?l.settleProofList.push({extName:e,fileName:n,url:o}):l.settleInvoiceList.push({extName:e,fileName:n,url:o})})).catch((function(t){i.close()}))},onCancel:function(){this.$emit("closeUploadVoucherDialog")},confirmUpload:function(){var t=this,e={settleId:this.settleId,settleInvoiceList:this.settleInvoiceList,settleProofList:this.settleProofList};Object(o["N"])(e).then((function(e){t.$message.success("上传成功"),t.onCancel()})).catch((function(){}))}}},s=r,c=(a("08f8"),a("2877")),u=Object(c["a"])(s,l,i,!1,null,null,null);e["a"]=u.exports}}]);