chunk-015e19fa.130edf69.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-015e19fa"],{"09f4":function(e,t,l){"use strict";l.d(t,"a",function(){return r}),Math.easeInOutQuad=function(e,t,l,a){return e/=a/2,e<1?l/2*e*e+t:(e--,-l/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,t,l){var r=o(),u=e-r,s=20,i=0;t="undefined"===typeof t?500:t;var c=function e(){i+=s;var o=Math.easeInOutQuad(i,r,u,t);n(o),i<t?a(e):l&&"function"===typeof l&&l()};c()}},2543:function(e,t,l){"use strict";l.d(t,"i",function(){return u}),l.d(t,"j",function(){return s}),l.d(t,"m",function(){return i}),l.d(t,"g",function(){return c}),l.d(t,"k",function(){return d}),l.d(t,"h",function(){return v}),l.d(t,"a",function(){return b}),l.d(t,"b",function(){return m}),l.d(t,"c",function(){return f}),l.d(t,"f",function(){return g}),l.d(t,"l",function(){return p}),l.d(t,"e",function(){return h}),l.d(t,"d",function(){return _});var a=l("b775"),n=l("4328"),o=l.n(n),r="/api-web";function u(e){return Object(a["a"])({url:r+"/goods/queryPage",method:"get",params:e})}function s(e){return Object(a["a"])({url:r+"/goods/get/".concat(e),method:"get"})}function i(e){return Object(a["a"])({url:r+"/goods/updateGoodsStatus",method:"post",data:o.a.stringify(e)})}function c(e){return Object(a["a"])({url:r+"/goods/add",method:"post",data:o.a.stringify(e)})}function d(e){return Object(a["a"])({url:r+"/goods/update",method:"post",data:o.a.stringify(e)})}function v(e){return Object(a["a"])({url:r+"/goods/del/".concat(e),method:"post"})}function b(e){return Object(a["a"])({url:r+"/category/queryPage",method:"get",params:e})}function m(e){return Object(a["a"])({url:r+"/category/upset",method:"post",data:e})}function f(e){return Object(a["a"])({url:r+"/category/del",method:"post",data:o.a.stringify(e)})}function g(e){return Object(a["a"])({url:r+"/subjectChange/queryPage",method:"get",params:e})}function p(e){return Object(a["a"])({url:r+"/subjectChange/updateCostMargin",method:"post",data:o.a.stringify(e)})}function h(e){return Object(a["a"])({url:r+"/goodsProcurement/queryGoodsProcurements",method:"get",params:e})}function _(e){return Object(a["a"])({url:r+"/goods/addGoodsProcurement",method:"post",params:e})}},"38ab":function(e,t,l){},"92e3":function(e,t,l){"use strict";l.d(t,"j",function(){return n}),l.d(t,"n",function(){return o}),l.d(t,"h",function(){return r}),l.d(t,"a",function(){return u}),l.d(t,"m",function(){return s}),l.d(t,"v",function(){return i}),l.d(t,"b",function(){return c}),l.d(t,"p",function(){return d}),l.d(t,"k",function(){return v}),l.d(t,"o",function(){return b}),l.d(t,"x",function(){return m}),l.d(t,"i",function(){return f}),l.d(t,"g",function(){return g}),l.d(t,"w",function(){return p}),l.d(t,"s",function(){return h}),l.d(t,"y",function(){return _}),l.d(t,"r",function(){return E}),l.d(t,"t",function(){return I}),l.d(t,"l",function(){return A}),l.d(t,"e",function(){return M}),l.d(t,"u",function(){return y}),l.d(t,"f",function(){return O}),l.d(t,"q",function(){return S}),l.d(t,"d",function(){return N}),l.d(t,"c",function(){return R});var a=l("267e"),n=[{label:"单技课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训单技课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}],o=[{label:"单技课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训单技课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"}],r=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"综合课",value:"COMPREHENSIVE"}],u=[{label:"正常签到",value:1},{label:"异常签到",value:0}],s=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"临时工",value:"TEMPORARY"}],i=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],c=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"},{value:"QUIT_SCHOOL",label:"退学"}],d=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"OTHER",label:"其他"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DOUBLE_ELEVEN2020",label:"双十一活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"}],v=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],b=[{value:"APPLY",text:"报名中"},{value:"PAY",text:"缴费中"},{value:"PREPARE",text:"筹备中"},{value:"PROGRESS",text:"进行中"},{value:"PAUSE",text:"暂停"},{value:"DRAFT",text:"编辑中"},{value:"AUDIT",text:"审核中"},{value:"AUDIT_FAILED",text:"审核失败"},{value:"CANCELED",text:"取消"},{value:"FEE_AUDIT",text:"费用审核中"}],m=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],f=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],g=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],p=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],h=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"}],_=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],E=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],I=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],A=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"}],M=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],y=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],O=[{label:"90",value:"SINGLE"},{label:"90",value:"MIX"},{label:"45",value:"HIGH"},{label:"45",value:"HIGH_ONLINE"},{label:"90",value:"COMPREHENSIVE"},{label:"25",value:"PRACTICE"},{label:"25",value:"MUSIC_NETWORK"},{label:"180",value:"TRAINING_SINGLE"},{label:"180",value:"TRAINING_MIX"},{label:"40",value:"CLASSROOM"}],S=w(a["h"]),N=w(a["b"]),R=w(a["a"]);function w(e){var t=[];for(var l in e)t.push({label:e[l],value:l});return t}},cd82:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"m-container"},[e._m(0),e._v(" "),l("div",{staticClass:"m-core"},[l("el-form",{attrs:{inline:!0,model:e.searchForm}},[l("el-form-item",[l("el-input",{attrs:{placeholder:"流水号 订单号 学生姓名"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),l("el-form-item",{attrs:{prop:"organId"}},[l("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},e._l(e.organList,function(e,t){return l("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"organId"}},[l("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择所属学校"},model:{value:e.searchForm.cooperationOrganId,callback:function(t){e.$set(e.searchForm,"cooperationOrganId",t)},expression:"searchForm.cooperationOrganId"}},e._l(e.cooperations,function(e,t){return l("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),l("el-form-item",[l("el-date-picker",{staticStyle:{width:"410px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"销售开始日期","end-placeholder":"销售结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.resetDate,callback:function(t){e.resetDate="string"===typeof t?t.trim():t},expression:"resetDate"}})],1),e._v(" "),l("el-form-item",[l("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),l("div",{staticClass:"tableWrap"},[l("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[l("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:"","label-width":"120px"}},[l("el-form-item",{attrs:{label:"交易流水号"}},[l("span",[e._v(e._s(t.row.transNo))])]),e._v(" "),l("el-form-item",{attrs:{label:"订单号"}},[l("span",[e._v(e._s(t.row.orderNo))])]),e._v(" "),l("el-form-item",{attrs:{label:"更换金额(元)"}},[l("span",[e._v(e._s(e._f("moneyFormat")(t.row.changeMusicalPrice)))])]),e._v(" "),l("el-form-item",{attrs:{label:"教务老师"}},[l("span",[e._v(e._s(t.row.eduTeacher))])]),e._v(" "),l("el-form-item",{attrs:{label:"交易方式"}},[l("span",[e._v(e._s(e._f("paymentChannelStatus")(t.row.paymentChannel)))])])],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.originalMusicalGoods?l("div",[e._v("\n "+e._s(t.row.originalMusicalGoods.name)+"\n ")]):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原教辅",formatter:function(t){return e.accessoriesFormatter(t.originalAccessoriesGoods)}}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"原支付金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.originalMusicalPrice))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"更换乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.changeMusicalGoods?l("div",[e._v("\n "+e._s(t.row.changeMusicalGoods.name)+"\n ")]):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"更换教辅",formatter:function(t){return e.accessoriesFormatter(t.changeAccessoriesGoods)}}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"差价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.changeMusicalPrice+t.row.changeAccessoriesPrice-(t.row.originalMusicalPrice+t.row.originalAccessoriesPrice)))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"成本差(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.costMargin))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName",label:"所属学校"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"乐团"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"销售日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.sellTime))+"\n ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.reset(t.row)}}},[e._v("修改")])],1)]}}])})],1),e._v(" "),l("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),l("resetSound",{attrs:{show:e.show,item:e.activeRow},on:{closeReset:e.closeReset,getList:e.getList}})],1)},n=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("h2",[l("div",{staticClass:"squrt"}),e._v("更换列表\n ")])}],o=(l("7f7f"),l("386d"),l("bc3a"),l("5f87"),l("333d")),r=(l("3908"),l("1cc7")),u=l("2543"),s=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("el-dialog",{attrs:{title:"修改",width:"500px",visible:e.soundVisible},on:{"update:visible":function(t){e.soundVisible=t}}},[l("el-form",{ref:"soundForm",attrs:{model:e.soundForm,"label-position":"right","label-width":"120px",inline:!0}},[l("el-form-item",{attrs:{label:"原乐器"}},[l("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.originalMusicalGoods,callback:function(t){e.$set(e.soundForm,"originalMusicalGoods",t)},expression:"soundForm.originalMusicalGoods"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"原教辅"}},[l("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.originalAccessories,callback:function(t){e.$set(e.soundForm,"originalAccessories",t)},expression:"soundForm.originalAccessories"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"更换乐器"}},[l("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.changeMusicalGoods,callback:function(t){e.$set(e.soundForm,"changeMusicalGoods",t)},expression:"soundForm.changeMusicalGoods"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"更换教辅"}},[l("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.changeAccessories,callback:function(t){e.$set(e.soundForm,"changeAccessories",t)},expression:"soundForm.changeAccessories"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"支付差价"}},[l("el-input",{staticStyle:{width:"330px"},attrs:{disabled:""},model:{value:e.soundForm.money,callback:function(t){e.$set(e.soundForm,"money",t)},expression:"soundForm.money"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"成本差(元)"}},[l("el-input",{staticStyle:{width:"330px"},model:{value:e.soundForm.costMargin,callback:function(t){e.$set(e.soundForm,"costMargin",t)},expression:"soundForm.costMargin"}})],1)],1),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.soundVisible=!1}}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:e.resetCostMargin}},[e._v("确 定")])],1)],1)],1)},i=[],c=l("6612"),d=l.n(c),v={props:["show","item"],data:function(){return{soundForm:{originalMusicalGoods:null,originalAccessories:null,changeMusicalGoods:null,changeAccessories:null,money:null,costMargin:null,id:null},soundVisible:!1}},mounted:function(){},methods:{accessoriesFormatter:function(e){if((null===e||void 0===e?void 0:e.length)>0){var t=e.map(function(e){return e.name});return t.join(",")}return""},resetCostMargin:function(){var e=this;Object(u["l"])({id:this.soundForm.id,costMargin:this.soundForm.costMargin}).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("getList"))})}},watch:{show:function(e){this.soundVisible=e},soundVisible:function(e){e||this.$emit("closeReset")},item:{immediate:!0,deep:!0,handler:function(e,t){this.soundForm=e?{originalMusicalGoods:e.originalMusicalGoods?e.originalMusicalGoods.name:null,originalAccessories:this.accessoriesFormatter(e.originalAccessoriesGoods)||null,changeMusicalGoods:e.changeMusicalGoods?e.changeMusicalGoods.name:null,changeAccessories:this.accessoriesFormatter(e.changeAccessoriesGoods)||null,money:d()(e.changeMusicalPrice+e.changeAccessoriesPrice-(e.originalMusicalPrice+e.originalAccessoriesPrice)).format("0,0.00"),costMargin:d()(e.costMargin).format("0,0.00"),id:e.id}:{originalMusicalGoods:null,originalAccessories:null,changeMusicalGoods:null,changeAccessories:null,money:null,costMargin:null,id:null}}}}},b=v,m=l("2877"),f=Object(m["a"])(b,s,i,!1,null,null,null),g=f.exports,p=l("92e3"),h=l("e3eb"),_=l.n(h),E=l("fa7d"),I=new Date;I=I.getFullYear()+"-"+(I.getMonth()+1)+"-"+I.getDate();var A={components:{pagination:o["a"],resetSound:g},data:function(){return{searchForm:{search:null},resetDate:[],show:!1,teacherList:[],tableList:[],organList:[],cooperations:[],saleStatus:p["t"],activeRow:null,rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){var e=this;this.resetDate=[],this.resetDate.push(Object(E["a"])(I)),this.resetDate.push(Object(E["b"])(I)),Object(r["O"])({rows:1e3}).then(function(t){200==t.code&&(e.cooperations=t.data.rows)}),Object(r["U"])().then(function(t){200==t.code&&(e.organList=t.data)}),this.init()},activated:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var e=this,t=this.searchForm;t.rows=this.rules.limit,t.page=this.rules.page,this.resetDate&&this.resetDate.length>1?(t.startTime=this.resetDate[0],t.endTime=this.resetDate[1]):(t.startTime=null,t.endTime=null),Object(u["f"])(_()(t)).then(function(t){200===t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)})},reset:function(e){this.activeRow=e,this.show=!0},closeReset:function(){this.show=!1},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.resetFields(),this.search()},accessoriesFormatter:function(e){if(e&&e.length>0){var t=e.map(function(e){return e.name});return t.join(",")}return""}},watch:{}},M=A,y=(l("df13"),Object(m["a"])(M,a,n,!1,null,"0b5ac9fd",null));t["default"]=y.exports},df13:function(e,t,l){"use strict";var a=l("38ab"),n=l.n(a);n.a},fa7d:function(e,t,l){"use strict";l.d(t,"a",function(){return a}),l.d(t,"b",function(){return n});l("a481"),l("5a0c");var a=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),l=new Date(e);0==l.getDay()&&(t-=6048e5);var a=t-24*(l.getDay()-1)*60*60*1e3,n=new Date(a),o=n.getFullYear(),r=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,u=n.getDate()<10?"0"+n.getDate():n.getDate(),s=o+"-"+r+"-"+u;return s},n=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),l=new Date(e),a=7-l.getDay();7==a&&(a=0);var n=t+24*a*60*60*1e3,o=new Date(n),r=o.getFullYear(),u=o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,s=o.getDate()<10?"0"+o.getDate():o.getDate(),i=r+"-"+u+"-"+s;return i}}}]);