(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-SelectProject-SelectProject"],{"4f08":function(t,e,r){"use strict";var o=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getUnitUser=u,e.getUnit=c,e.GetUserDepartment=i,e.selectProject=a,e.showImage=s,e.getMaterialTree=d,e.GetContracts=l,e.getSupplierNameAndType=f,e.GetEngineeringContracts=m,e.GetContract=p,e.GetWorkFlowProcedureList=g,e.WorkFlowAudit=h,e.WorkFlowSave=C;var n=o(r("8cec"));function u(t){return(0,n.default)({url:"/common/GetUnitUser",method:"get",params:{projectid:t}})}function c(t){return(0,n.default)({url:"/common/getunit",method:"get",params:{projectid:t}})}function i(t){return(0,n.default)({url:"/common/GetUserDepartment",method:"get",params:{usercode:t}})}function a(){return(0,n.default)({url:"/common/GetProjectList",method:"get"})}function s(t){return(0,n.default)({url:"/common/ShowImg",method:"get",params:{code:t}})}function d(t){return(0,n.default)({url:"/common/GetMaterialTree",method:"get",params:{classCode:t}})}function l(t,e){return(0,n.default)({url:"/common/GetContracts",method:"get",params:{projectcode:t,searchValue:e}})}function f(t,e){return(0,n.default)({url:"/common/GetSupplierNameAndType",method:"get",params:{supplierCode:t,supplierTypeCode:e}})}function m(t,e){return(0,n.default)({url:"/common/GetEngineeringContracts",method:"get",params:{projectcode:t,searchValue:e}})}function p(t){return(0,n.default)({url:"/Common/GetContract",method:"get",params:{contractCode:t}})}function g(t,e,r){return(0,n.default)({url:"/Common/GetWorkFlowProcedureList",method:"get",params:{procedureName:t,projectCode:e,activity:r}})}function h(t,e){return(0,n.default)({url:"/Common/WorkFlowAudit",method:"get",params:{userCode:t,procedureCode:e}})}function C(t){return(0,n.default)({url:"/Common/WorkFlowSave",method:"POST",data:t})}},5234:function(t,e,r){"use strict";(function(t){r("4160"),r("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r("4f08"),n={data:function(){return{projectList:[]}},onLoad:function(){this.$util.persistLogin(this)},created:function(){this.getProjectList()},methods:{getProjectList:function(){var e=this;(0,o.selectProject)().then((function(r){t.info("getProjectList",r),r.forEach((function(t,r,o){e.$set(e.projectList,r,t)}))}))},onClick:function(e,r){var o=r.unitCode;this.$store.commit("setProjectCode",o),uni.setStorage({key:"storage_state",data:this.$store.state,success:function(){t.info("setProjectCode选择项目后状态缓存成功")},fail:function(){t.error("setProjectCode选择项目后状态缓存失败")}}),uni.navigateTo({url:"/pages/index/index"})}}};e.default=n}).call(this,r("5a52")["default"])},b2f6:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return u})),r.d(e,"a",(function(){return o}));var o={uniList:r("2ce4").default,uniListItem:r("54f1").default},n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",[r("uni-list",t._l(t.projectList,(function(e,o){return r("uni-list-item",{key:o,staticStyle:{cursor:"pointer"},attrs:{title:e.unitCode,rightText:e.unitName,clickable:!0},on:{click:function(r){arguments[0]=r=t.$handleEvent(r),t.onClick(o,e)}}})})),1)],1)},u=[]},ec33:function(t,e,r){"use strict";r.r(e);var o=r("b2f6"),n=r("fd0a");for(var u in n)"default"!==u&&function(t){r.d(e,t,(function(){return n[t]}))}(u);var c,i=r("f0c5"),a=Object(i["a"])(n["default"],o["b"],o["c"],!1,null,"28dfa156",null,!1,o["a"],c);e["default"]=a.exports},fd0a:function(t,e,r){"use strict";r.r(e);var o=r("5234"),n=r.n(o);for(var u in o)"default"!==u&&function(t){r.d(e,t,(function(){return o[t]}))}(u);e["default"]=n.a}}]);