1 line
3.1 KiB
JavaScript
1 line
3.1 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/expenseApproval/expenseApproval"],{"004e":function(e,t,a){"use strict";a.r(t);var n=a("bbac"),i=a("fd96");for(var s in i)"default"!==s&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("292e");var o,c=a("f0c5"),r=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"4801410a",null,!1,n["a"],o);t["default"]=r.exports},"292e":function(e,t,a){"use strict";var n=a("e911"),i=a.n(n);i.a},aeda:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){a.e("pages/expenseApproval/components/expenseUnit").then(function(){return resolve(a("a5e6"))}.bind(null,a)).catch(a.oe)},i={data:function(){return{pageData:{pageIndex:1,pageSize:10,isEnd:!1,isLoading:!0},pageList:[]}},components:{ListUnit:n},onLoad:function(){this.pageData.isLoading=!0,e.showLoading({title:"正在加载"}),this.getList()},methods:{getList:function(){var t=this,a=this;a.$request.get({action_type:"GetFinanceFlowList",pageIndex:a.pageData.pageIndex,pageSize:a.pageData.pageSize}).then((function(n){if(n.ResultCode&&"100"==n.ResultCode){var i=n.Data.List;i.length>0&&(a.pageList=1==t.pageData.pageIndex?i:a.pageList.concat(i)),i.length<a.pageData.pageSize&&(a.pageData.isEnd=!0),a.$forceUpdate()}else a.pageList=[];e.hideLoading(),setTimeout((function(){a.pageData.isLoading=!1}),500)}))},loadMore:function(){this.pageData.isEnd||(this.pageData.pageIndex+=1,this.getList())},goDetail:function(t){var a="";switch(t.ACCEPT_TYPE){case 401202:a="travelExpense";break;case 401207:a="publicTransportation";break;case 401206:a="travelExcessive";break;case 401101:a="administrative";break;case 401102:a="officialEntertaining";break;case 401203:a="engineering";break;case 401204:a="budget";break;case 401205:a="fixedAssets";break;case 401301:a="internalTransfer";break;case 401302:a="bigPay";break;case 401303:a="checkRecipients";break;case 401304:a="getPayment";break;case 401201:a="reimbursement";break}e.navigateTo({url:"/pages/expenseApproval/"+a+"?id="+t.FINANCEPROINST_ID})}},onPullDownRefresh:function(){this.pageData.pageIndex=1,this.pageData.isEnd=!1,e.showLoading({title:"正在加载"}),this.getList(),setTimeout((function(){e.stopPullDownRefresh()}),1e3)},onReachBottom:function(){this.loadMore()},onShow:function(){var t=this;this.$eventHub.$once("3000",(function(a){a&&(e.showLoading({title:"正在加载"}),t.pageData.pageIndex=1,t.pageData.isEnd=!1,t.getList())}))},onHide:function(){this.$eventHub.$off("3000",(function(e){}))}};t.default=i}).call(this,a("543d")["default"])},bbac:function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement;e._self._c},s=[]},e911:function(e,t,a){},ed7b:function(e,t,a){"use strict";(function(e){a("5fd4");n(a("66fd"));var t=n(a("004e"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,a("543d")["createPage"])},fd96:function(e,t,a){"use strict";a.r(t);var n=a("aeda"),i=a.n(n);for(var s in n)"default"!==s&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a}},[["ed7b","common/runtime","common/vendor"]]]); |