2021-02-07 21:21:12 +08:00

1 line
4.8 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/expenseApproval/expenseApproval"],{"09df":function(e,t,a){"use strict";a.r(t);var n=a("72d6"),i=a("f169");for(var s in i)"default"!==s&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("3da4");var o,r=a("f0c5"),c=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"15e10fb7",null,!1,n["a"],o);t["default"]=c.exports},"0d30":function(e,t,a){"use strict";(function(e){a("40da");n(a("66fd"));var t=n(a("09df"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,a("543d")["createPage"])},"3da4":function(e,t,a){"use strict";var n=a("ba27"),i=a.n(n);i.a},"72d6":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=[]},ad38:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a("2f62");function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach((function(t){o(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var r=function(){a.e("pages/expenseApproval/components/expenseUnit").then(function(){return resolve(a("4653"))}.bind(null,a)).catch(a.oe)},c={data:function(){return{pageData:{pageIndex:1,pageSize:10,isEnd:!1,isLoading:!0},pageList:[],selectTypeIndex:0,selectList:[{name:"全部",typeId:""},{name:"差旅费报销",typeId:"401202"},{name:"费用报销审批",typeId:"401201"},{name:"行政资产申请",typeId:"401101"},{name:"公务交通费用",typeId:"401207"},{name:"差旅费超标准",typeId:"401206"},{name:"公务接待审批",typeId:"401102"},{name:"工程款支付",typeId:"401203"},{name:"经费预算申请",typeId:"401204"},{name:"固定资产处理",typeId:"401205"},{name:"内部转账审批",typeId:"401301"},{name:"大额支付审批",typeId:"401302"},{name:"支票领用审批",typeId:"401303"},{name:"领付款申请",typeId:"401304"}]}},components:{ListUnit:r},computed:s({},(0,n.mapGetters)({reloading:"shouldReLoadingList"})),methods:s(s({},(0,n.mapMutations)(["shouldReLoadingList"])),{},{bindPartChange:function(t){this.selectTypeIndex!=t.detail.value&&(this.selectTypeIndex=t.detail.value,this.pageData.pageIndex=1,e.showLoading({title:"正在加载"}),this.pageData.isEnd=!1,this.getList(),this.$forceUpdate())},getList:function(){var t=this,a=this;a.$request.$get("GetFinanceFlowList",{pageIndex:a.pageData.pageIndex,pageSize:a.pageData.pageSize,ProdefName:a.selectList[this.selectTypeIndex].typeId}).then((function(n){if(n.ResultCode&&"100"==n.ResultCode){var i=n.Data.List;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(e){switch(e.ACCEPT_TYPE){case 401101:"administrative";break;case 401302:"bigPay";break;case 401204:"budget";break;case 401303:"checkRecipients";break;case 401203:"engineering";break;case 401205:"fixedAssets";break;case 401304:"getPayment";break;case 401301:"internalTransfer";break;case 401102:"officialEntertaining";break;case 401207:"publicTransportation";break;case 401201:"reimbursement";break;case 401206:"travelExcessive";break;case 401202:"travelExpense";break}this.$util.toNextRoute("navigateTo","/pages/expenseApproval/expenseDetail?type="+e.ACCEPT_TYPE+"&id="+e.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()},onLoad:function(){this.pageData.isLoading=!0,e.showLoading({title:"正在加载"}),this.getList()},onUnload:function(){this.$util.addUserBehavior()},onShow:function(){this.reloading&&(e.showLoading({title:"正在加载"}),this.pageData.pageIndex=1,this.pageData.isEnd=!1,this.getList(),this.shouldReLoadingList(!1))},onHide:function(){}};t.default=c}).call(this,a("543d")["default"])},ba27:function(e,t,a){},f169:function(e,t,a){"use strict";a.r(t);var n=a("ad38"),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}},[["0d30","common/runtime","common/vendor"]]]);