1 line
4.6 KiB
JavaScript
1 line
4.6 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/expenseApproval/engineering"],{"1d2c":function(e,n,t){"use strict";var i=t("5f56"),o=t.n(i);o.a},"3dcf":function(e,n,t){"use strict";t.r(n);var i=t("7d0d"),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},"5f56":function(e,n,t){},"7d0d":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){a(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 a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var s=function(){t.e("components/filesComponent/fileUnit").then(function(){return resolve(t("cb7b"))}.bind(null,t)).catch(t.oe)},c=function(){t.e("components/auditingProcess/item").then(function(){return resolve(t("e9dc"))}.bind(null,t)).catch(t.oe)},u={data:function(){return{imageUrls:[],doUser:!1,isShow:!1,ExpenseBill:{},showPopupMiddle:!1,popType:"middle",cardShow:!0,cardShow2:!0,cardShow3:!0,cardShow4:!0,isExamine:!1}},components:{processUnit:c,filesUnit:s},computed:r({},(0,i.mapGetters)({users:"getUser"})),methods:{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.CONTRACT_TOTALAMOUNT=i.ExpenseBill.CONTRACT_TOTALAMOUNT,i.PERPAID_TOTALAMOUNT=i.ExpenseBill.PERPAID_TOTALAMOUNT,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,t.$forceUpdate(),e.hideLoading(),setTimeout((function(){t.isShow=!0,t.isLoading=!1}),500)}))}},onLoad:function(n){e.showLoading({title:"正在加载"}),this.isLoading=!0,this.getData(n.id)},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=u}).call(this,t("543d")["default"])},aaac:function(e,n,t){"use strict";t.r(n);var i=t("fb06"),o=t("3dcf");for(var r in o)"default"!==r&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t("1d2c");var a,s=t("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"217541f7",null,!1,i["a"],a);n["default"]=c.exports},bbc4:function(e,n,t){"use strict";(function(e){t("5fd4");i(t("66fd"));var n=i(t("aaac"));function i(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},fb06: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.$util.cutDate(e.ExpenseBill.FINANCEPROINST_CREATEDATE)),i=e.$util.fmoney(e.ExpenseBill.CONTRACT_TOTALAMOUNT),o=e.$util.fmoney(e.ExpenseBill.PERPAID_TOTALAMOUNT,2),r=e.$util.fmoney(e.ExpenseBill.PAYMENT_LOWER,2);e._isMounted||(e.e0=function(n){e.cardShow3=!e.cardShow3}),e.$mp.data=Object.assign({},{$root:{g0:t,g1:i,g2:o,g3:r}})},r=[]}},[["bbc4","common/runtime","common/vendor"]]]); |