You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
3.8 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/resourcesOrder/index"],{"0e91":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement;t._self._c},c=[]},8137:function(t,e,n){"use strict";n.r(e);var a=n("0e91"),o=n("fdb1");for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n("fd00");var i,r=n("f0c5"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=s.exports},"8c15":function(t,e,n){},bfee:function(t,e,n){"use strict";(function(t){n("ef82");a(n("66fd"));var e=a(n("8137"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},f0d5:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=getApp(),a={data:function(){return{tabActive:1,list:[]}},components:{},props:{},onLoad:function(t){},onReady:function(){},onShow:function(){1==this.tabActive?this.getCommunicates():this.getProjectList()},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){1==this.tabActive?this.getCommunicates():this.getProjectList()},onReachBottom:function(){},onShareAppMessage:function(){},methods:{toDemandHall:function(){t.switchTab({url:"/pages/demandHall/index"})},tabClick:function(t){var e=t.currentTarget.dataset.i;this.setData({tabActive:e}),1==e?this.getCommunicates():this.getProjectList()},getCommunicates:function(){var e=this;n.http("get","Communicate/resourceCommunicates").then((function(n){n.data.success&&(n.data.data.length>0&&(n.data.data.map((function(t){t.open=!1})),n.data.data[0].open=!0),e.setData({list:n.data.data}),t.stopPullDownRefresh())}))},getProjectList:function(){var e=this;n.http("get","Project/listProject",{projectState:this.tabActive-1,projectType:1}).then((function(n){n.data.success&&(n.data.data.map((function(t){t.stageResultsDtoList.map((function(e){1==e.state&&(t.showBtn=!0)}))})),e.setData({list:n.data.data}),t.stopPullDownRefresh())}))},openNextProgress:function(e){var a=e.currentTarget.dataset.item;console.log(a),t.showModal({title:"提示!",content:"是否申请开启下阶段?",success:function(e){e.confirm&&n.http("get","Project/applyNextStage",{projectCode:a.projectCode}).then((function(e){e.data.success&&t.showToast({title:"操作成功!",duration:2e3})}))}})},openClick:function(t){var e=t.currentTarget.dataset.idx;console.log(e);var n=this.list;n[e].open=!n[e].open,this.setData({list:n})},toApplyDetail:function(e){var n=encodeURIComponent(JSON.stringify(e.currentTarget.dataset.item));t.navigateTo({url:"/pages/demandHall/applyDetail/index?data="+n})},applyDelivery:function(e){var a=e.currentTarget.dataset.item;t.showModal({title:"提示",content:"是否确认提交申请交付",success:function(e){e.confirm&&n.http("GET","Project/applyDeliveryProject",{projectId:a.id}).then((function(e){e.data.success&&t.showToast({title:"操作成功!"})}))}})},call:function(e){var n=e.currentTarget.dataset.item;t.makePhoneCall({phoneNumber:n.phone})},createProject:function(e){console.log(e);var n=e.currentTarget.dataset.id,a=e.currentTarget.dataset.comminutestate;1==a&&t.showModal({title:"提示!",content:"是否确认立项?",success:function(e){e.confirm&&t.navigateTo({url:"/pages/demandHall/createProject/index?id="+n})}})},toPlatform:function(e){var n=e.currentTarget.dataset.item.projectCode;t.navigateTo({url:"/pages/demandHall/platform/index?code="+n})}}};e.default=a}).call(this,n("543d")["default"])},fd00:function(t,e,n){"use strict";var a=n("8c15"),o=n.n(a);o.a},fdb1:function(t,e,n){"use strict";n.r(e);var a=n("f0d5"),o=n.n(a);for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);e["default"]=o.a}},[["bfee","common/runtime","common/vendor"]]]);