(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tender/tenderAlteration"],{2518:function(e,t,a){"use strict";a.r(t);var n=a("8999"),i=a.n(n);for(var o in n)"default"!==o&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},8269:function(e,t,a){"use strict";(function(e){a("40da");n(a("66fd"));var t=n(a("f04f"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,a("543d")["createPage"])},8999: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 o(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){s(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 s(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("components/auditingProcess/item").then(function(){return resolve(a("fe5b"))}.bind(null,a)).catch(a.oe)},u=function(){a.e("components/filesComponent/fileUnit").then(function(){return resolve(a("18af"))}.bind(null,a)).catch(a.oe)},c={data:function(){return{baseData:{},isShow:!1,isLoading:!0,foundType:0,cardShow:!0,isSign:!1,isResolve:!1,signInfo:{}}},components:{filesUnit:u,processUnit:r},computed:o({},(0,n.mapGetters)({users:"getUser"})),methods:{getDetail:function(t){var a=this;a.$request.$get("GetTenderFlowDetail",{HIGHWAYPROINST_ID:t}).then((function(t){if(t.ResultCode&&"100"==t.ResultCode||(a.isShow=!1),a.baseData=t.Data,a.baseData.SUBMITTAL_DATE=a.$util.cutDate(a.baseData.SUBMITTAL_DATE,"YYYY-MM-DD"),a.baseData.HIGHWAYPROINST_CREATEDATE=a.$util.cutDate(a.baseData.HIGHWAYPROINST_CREATEDATE,"YYYY-MM-DD"),a.baseData.BIDOPENING_DATE=a.$util.cutDate(a.baseData.BIDOPENING_DATE,"YYYY-MM-DD"),a.baseData.FileList.map((function(e){var t=e.ATTACHMENT_DESC.split(".");e.type=t[t.length-1],e.name=e.ATTACHMENT_DESC,e.path=e.ATTACHMENT_URL})),a.baseData.SingInfo){a.signInfo=a.baseData.SingInfo[0];var n=a.signInfo.USER_IDS.split(",");(n.indexOf(a.users.UserId+"")>-1||n.indexOf(a.users.UserId)>-1)&&(a.isSign=!0)}else a.baseData.NOWSTAFF_ID==a.users.UserId&&(a.isResolve=!0);a.$forceUpdate(),e.hideLoading(),setTimeout((function(){a.isShow=!0,a.isLoading=!1}),500)}))},showPop:function(e){var t=this,a="";switch(e){case 4e3:a="/pages/auditingPop/transfer?businessType=4000&PROINST_ID="+t.baseData.HIGHWAYPROINST_ID+"&NOWACTINST_ID="+t.baseData.NOWACTINST_ID;break;case 2e3:a="/pages/auditingPop/toExamine?businessType=4000&PROINST_ID="+t.baseData.HIGHWAYPROINST_ID+"&NOWACTINST_ID="+t.baseData.NOWACTINST_ID+"&ApproName="+t.baseData.ApproName+"&NeedApproved="+t.baseData.NeedApproved;break;case 3e3:a="/pages/auditingPop/reject?businessType=4000&PROINST_ID="+t.baseData.HIGHWAYPROINST_ID+"&NOWACTINST_ID="+t.baseData.NOWACTINST_ID;break;default:a="/pages/auditingPop/jointlySign?businessType=4000&PROINST_ID="+t.baseData.HIGHWAYPROINST_ID+"&NOWACTINST_ID="+t.baseData.NOWACTINST_ID+"&ApproName="+t.baseData.ApproName+"&ACTDEF_ID="+t.baseData.ACTDEF_ID;break}t.$util.toNextRoute("navigateTo",a)}},onLoad:function(t){e.showLoading({title:"正在加载"}),this.isLoading=!0,this.getDetail(t.HIGHWAYPROINST_ID);var a=this;e.$on("4000",(function(t){t&&(e.showLoading({title:"正在加载"}),a.isLoading=!0,a.isShow=!1,a.getDetail(a.baseData.HIGHWAYPROINST_ID))}))},onShow:function(){},onUnload:function(){this.$util.addUserBehavior(),e.$off("4000")},onHide:function(){}};t.default=c}).call(this,a("543d")["default"])},bf80:function(e,t,a){"use strict";var n=a("fb42"),i=a.n(n);i.a},f04f:function(e,t,a){"use strict";a.r(t);var n=a("f5eb"),i=a("2518");for(var o in i)"default"!==o&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("bf80");var s,r=a("f0c5"),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"75c87624",null,!1,n["a"],s);t["default"]=u.exports},f5eb:function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.cardShow=!e.cardShow})},o=[]},fb42:function(e,t,a){}},[["8269","common/runtime","common/vendor"]]]);