1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-SelectProject-SelectProject"],{1136:function(t,e,o){"use strict";var r=o("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getUnitUser=u,e.getUnit=a,e.GetUserDepartment=i,e.selectProject=c,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,e.GetMaterialList=j;var n=r(o("7ce4"));function u(t){return(0,n.default)({url:"/common/GetUnitUser",method:"get",params:{projectid:t}})}function a(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 c(){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,o){return(0,n.default)({url:"/Common/GetWorkFlowProcedureList",method:"get",params:{procedureName:t,projectCode:e,activity:o}})}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})}function j(t){return(0,n.default)({url:"/Common/GetMaterialList",method:"get",params:{name:t}})}},"650c":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return u})),o.d(e,"a",(function(){return r}));var r={uniList:o("5470").default,uniListItem:o("552f").default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[o("uni-list",t._l(t.projectList,(function(e,r){return o("uni-list-item",{key:r,staticStyle:{cursor:"pointer"},attrs:{title:e.unitCode,rightText:e.unitName,clickable:!0},on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.onClick(r,e)}}})})),1)],1)},u=[]},"675f":function(t,e,o){"use strict";o.r(e);var r=o("650c"),n=o("9911");for(var u in n)"default"!==u&&function(t){o.d(e,t,(function(){return n[t]}))}(u);var a,i=o("f0c5"),c=Object(i["a"])(n["default"],r["b"],r["c"],!1,null,"b37e6628",null,!1,r["a"],a);e["default"]=c.exports},9911:function(t,e,o){"use strict";o.r(e);var r=o("a53a"),n=o.n(r);for(var u in r)"default"!==u&&function(t){o.d(e,t,(function(){return r[t]}))}(u);e["default"]=n.a},a53a:function(t,e,o){"use strict";(function(t){o("4160"),o("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o("1136"),n={data:function(){return{projectList:[]}},onLoad:function(){this.$util.persistLogin(this)},created:function(){this.getProjectList()},methods:{getProjectList:function(){var e=this;(0,r.selectProject)().then((function(o){t.info("getProjectList",o),o.isSuccess||uni.showToast({title:o.errMsg,duration:3e3,icon:"none"}),o.data.forEach((function(t,o,r){e.$set(e.projectList,o,t)}))}))},onClick:function(e,o){var r=o.unitCode;this.$store.commit("setProjectCode",r),uni.setStorage({key:"storage_state",data:this.$store.state,success:function(){t.info("setProjectCode选择项目后状态缓存成功"),t.info("storage_state",uni.getStorageSync("storage_state"))},fail:function(){t.error("setProjectCode选择项目后状态缓存失败")}}),uni.navigateTo({url:"/pages/index/index"})}}};e.default=n}).call(this,o("5a52")["default"])}}]);
|