1 line
4.9 KiB
JavaScript
1 line
4.9 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/expenseApproval/reimbursement"],{"093d":function(e,n,t){"use strict";(function(e){t("5fd4");i(t("66fd"));var n=i(t("9552"));function i(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},"6c0e":function(e,n,t){},"7dca":function(e,n,t){"use strict";t.r(n);var i=t("eb6e"),o=t.n(i);for(var r in i)"default"!==r&&function(e){t.d(n,e,(function(){return i[e]}))}(r);n["default"]=o.a},9552:function(e,n,t){"use strict";t.r(n);var i=t("c0a0"),o=t("7dca");for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t("c0eb");var s,c=t("f0c5"),a=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"f4292c44",null,!1,i["a"],s);n["default"]=a.exports},c0a0:function(e,n,t){"use strict";var i;t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return i}));var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.isShow?e.$util.cutDate(e.ExpenseBill.FINANCEPROINST_CREATEDATE):null),i=e.isShow?e.$util.fmoney(e.ExpenseBill.PAYMENT_LOWER,2):null,o=e.isShow?e.__map(e.ExpenseBill.ExpenseDetail,(function(n,t){var i=e.__get_orig(n),o=e.$util.fmoney(n.EXPENSEDETAIL_AMOUNT);return{$orig:i,g2:o}})):null;e._isMounted||(e.e0=function(n){e.cardShow3=!e.cardShow3}),e.$mp.data=Object.assign({},{$root:{g0:t,g1:i,l0:o}})},r=[]},c0eb:function(e,n,t){"use strict";var i=t("6c0e"),o=t.n(i);o.a},eb6e:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t("2f62");function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var c=function(){t.e("components/auditingProcess/item").then(function(){return resolve(t("e9dc"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/filesComponent/fileUnit").then(function(){return resolve(t("cb7b"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/uni-popup").then(function(){return resolve(t("9cb3"))}.bind(null,t)).catch(t.oe)},l={data:function(){return{doUser:!1,ExpenseBill:{},preSubscribefeeMap:{},isShow:!1,isLoading:!0,cardShow:!0,imageUrls:[],cardShow3:!0,cardShow4:!0,showPopupMiddle:!1,showId:""}},components:{processUnit:c,filesUnit:a,popUp:u},computed:r({},(0,i.mapGetters)({users:"getUser"})),onLoad:function(n){e.showLoading({title:"正在加载"}),this.isLoading=!0,this.getData(n.id)},methods:{clickGetSubscribefee:function(e){this.showId=e,this.showPopupMiddle=!0},closePop:function(){this.showPopupMiddle=!1},showImg:function(n,t){e.previewImage({urls:this.imageUrls,current:t,loop:!0,indicator:"number"})},showPop:function(n){var t=this;switch(n){case 4e3:e.navigateTo({url:"/pages/auditingPop/transfer?businessType=3000&PROINST_ID="+t.ExpenseBill.FINANCEPROINST_ID+"&NOWACTINST_ID="+t.ExpenseBill.NOWACTDEF_IDS});break;case 2e3:e.navigateTo({url:"/pages/auditingPop/toExamine?businessType=3000&PROINST_ID="+t.ExpenseBill.FINANCEPROINST_ID+"&NOWACTINST_ID="+t.ExpenseBill.NOWACTDEF_IDS+"&ApproName="+t.ExpenseBill.ApproName+"&ACCEPT_TYPE="+t.ExpenseBill.ACCEPT_TYPE+"&NeedApproved="+t.ExpenseBill.NeedApproved});break;case 3e3:e.navigateTo({url:"/pages/auditingPop/reject?businessType=3000&PROINST_ID="+t.ExpenseBill.FINANCEPROINST_ID+"&NOWACTINST_ID="+t.ExpenseBill.NOWACTDEF_IDS+"&ACCEPT_TYPE="+t.ExpenseBill.ACCEPT_TYPE});break}},getData:function(n){var t=this;this.$request.get({action_type:"GetFinanceFlowDetail",FINANCEPROINST_ID:n}).then((function(n){n.ResultCode&&"100"==n.ResultCode||(t.isShow=!1);var i=n.Data;t.ExpenseBill=i||{},i.PAYMENT_LOWER=i.ExpenseBill.PAYMENT_LOWER,i.FileList&&i.FileList.map((function(e){var n=e.ATTACHMENT_NAME.split(".");e.type=n[n.length-1],e.name=e.ATTACHMENT_NAME,e.path=e.ATTACHMENT_URL}));var o=[];i.ImageList&&i.ImageList.map((function(e){o.push(e.IMAGE_URL)})),t.imageUrls=o;var r={};i.PreSubscribefeeList&&(i.PreSubscribefeeList.map((function(e){r[e.FINANCEPROINST_ID]=e})),t.preSubscribefeeMap=r),t.$forceUpdate(),e.hideLoading(),setTimeout((function(){t.isShow=!0,t.isLoading=!1}),500)}))}},onShow:function(){var n=this;this.$eventHub.$once("3000",(function(t){t&&(e.showLoading({title:"正在加载"}),n.isLoading=!0,n.getData(n.ExpenseBill.FINANCEPROINST_ID))}))},onHide:function(){this.$eventHub.$off("3000",(function(e){}))}};n.default=l}).call(this,t("543d")["default"])}},[["093d","common/runtime","common/vendor"]]]); |