chunk-57ce74a2.3b4028d2.js 4.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57ce74a2"],{"408a":function(e,t,o){var a=o("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=a(e))throw TypeError("Incorrect invocation");return+e}},b680:function(e,t,o){"use strict";var a=o("23e7"),r=o("a691"),n=o("408a"),i=o("1148"),l=o("d039"),c=1..toFixed,s=Math.floor,u=function(e,t,o){return 0===t?o:t%2===1?u(e,t-1,o*e):u(e*e,t/2,o)},d=function(e){var t=0,o=e;while(o>=4096)t+=12,o/=4096;while(o>=2)t+=1,o/=2;return t},b=c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!l((function(){c.call({})}));a({target:"Number",proto:!0,forced:b},{toFixed:function(e){var t,o,a,l,c=n(this),b=r(e),m=[0,0,0,0,0,0],p="",h="0",f=function(e,t){var o=-1,a=t;while(++o<6)a+=e*m[o],m[o]=a%1e7,a=s(a/1e7)},v=function(e){var t=6,o=0;while(--t>=0)o+=m[t],m[t]=s(o/e),o=o%e*1e7},g=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==m[e]){var o=String(m[e]);t=""===t?o:t+i.call("0",7-o.length)+o}return t};if(b<0||b>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(p="-",c=-c),c>1e-21)if(t=d(c*u(2,69,1))-69,o=t<0?c*u(2,-t,1):c/u(2,t,1),o*=4503599627370496,t=52-t,t>0){f(0,o),a=b;while(a>=7)f(1e7,0),a-=7;f(u(10,a,1),0),a=t-1;while(a>=23)v(1<<23),a-=23;v(1<<a),f(1,1),v(2),h=g()}else f(0,o),f(1<<-t,0),h=g()+i.call("0",b);return b>0?(l=h.length,h=p+(l<=b?"0."+i.call("0",b-l)+h:h.slice(0,l-b)+"."+h.slice(l-b))):h=p+h,h}})},c8f6:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"new-app-container layout-vertical"},[o("YMTableSearch",{attrs:{loading:e.loading,"search-form":e.searchForm},on:{onValueChange:e.onValueChange,submit:e.onSubmit}}),o("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":e.tableOptions,"edit-form":e.editForm,"edit-config":e.editConfig,columns:e.columns,"rows-actions":e.rowsActions,"show-summary":!1,apis:e.apis,alertTip:e.alertTip,"custom-style":{height:"calc(100vh - 170px)"}},on:{onResponse:e.onResponse}}),o("Dialog",{ref:"dialog"},[o("template",{slot:"content"})],2)],1)},r=[],n=(o("a9e3"),o("b680"),o("d3b7"),o("0643"),o("4e3e"),o("159b"),o("9039")),i={components:{Dialog:n["a"]},data:function(){return{loading:!1,visibleBasicDrawer:!1,alertTip:"",searchForm:[{label:"会员ID",type:"input",prop:"member_id",default:"",clearable:!0},{label:"类型",type:"select",prop:"change_type",options:[],clearable:!0}],columns:[{label:"会员ID",type:"input",prop:"member_id",clearable:!1},{label:"变动前余额",prop:"after_balance",method:function(e){var t;return null===(t=Number(e.before_balance))||void 0===t?void 0:t.toFixed(2)}},{label:"变动金额",prop:"amount",method:function(e){var t;return null===(t=Number(e.amount))||void 0===t?void 0:t.toFixed(2)}},{label:"变动后余额",prop:"before_balance",method:function(e){var t;return null===(t=Number(e.after_balance))||void 0===t?void 0:t.toFixed(2)}},{label:"时间",prop:"created_at"},{label:"类型",prop:"change_type"},{label:"说明",prop:"remark"}],rowsActions:[],apis:{list:{url:"balance/log",dataParam:"data.data",resultParam:"data",init:!1},add:{url:"",cover:!0,coverMethod:function(e,t){return e.year+"、"+t[0].label}},edit:{url:"",cover:!0,coverMethod:function(e,t){return e.year+"、"+t[0].label}}},tableOptions:{},editForm:[],editConfig:{addTip:"注:备注",editTip:"注:备注"},member_id:""}},created:function(){this.member_id=this.$route.query.member_id,this.member_id&&(this.searchForm[0]=Object.assign({},this.searchForm[0],{default:this.member_id}))},mounted:function(){this.member_id?this.onSubmit({member_id:this.member_id}):this.onSubmit()},methods:{handleSubmit:function(e){console.log("提交数据:",e)},onResponse:function(e){var t=this;console.log(e,"data"),this.alertTip="--"!==e.total_amount&&"统计数据:"+e.total_amount,this.searchForm[1].options=[],e.change_types.forEach((function(e){t.searchForm[1].options.push({label:e,value:e})}))},onValueChange:function(e){},onSubmit:function(e){this.$refs.table.getList(e)}}},l=i,c=o("2877"),s=Object(c["a"])(l,a,r,!1,null,null,null);t["default"]=s.exports}}]);