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 line
4.7 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/needsOrder/index"],{"26b9":function(t,e,n){},4498:function(t,e,n){"use strict";n.r(e);var a=n("6d51"),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},"5cfb":function(t,e,n){"use strict";n.r(e);var a=n("eace"),o=n("4498");for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n("f162");var i,s=n("f0c5"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=r.exports},"6d51":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){this.getCommunicates()},onReady:function(){},onShow:function(){},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/demandCommunicates").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),console.log(n.data.data),e.setData({list:n.data.data}),t.stopPullDownRefresh())}))},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})},getProjectList:function(){var e=this;n.http("get","Project/listProject",{projectState:this.tabActive-1,projectType:2}).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())}))},agreenOpen:function(e){var a=e.currentTarget.dataset.item;console.log(a);var o=a.stageResultsDtoList.filter((function(t){return 1==t.state}));t.showModal({title:"提示!",content:"是否同意开启下阶段?",success:function(e){var a=this;e.confirm&&n.http("get","Project/startNextStage",{stageResultId:o[0].id}).then((function(e){e.data.success&&(t.showToast({title:"操作成功!",duration:2e3}),a.getProjectList())}))}})},toPlatform:function(e){var n=e.currentTarget.dataset.item.projectCode;t.navigateTo({url:"/pages/demandHall/platform/index?code="+n})},cancelCommunicate:function(e){var a=e.currentTarget.dataset.info;console.log(a);var o=this;t.showModal({title:"提示!",content:"是否取消沟通?",success:function(e){e.confirm&&n.http("GET","Communicate/cancelCommunicates",{communicateId:a.communicateId}).then((function(e){e.data.success&&(t.showToast({title:"操作成功!",duration:1500}),setTimeout((function(){o.getCommunicates()}),1500))}))}})},toCreateProject:function(e){var n=e.currentTarget.dataset.item;t.navigateTo({url:"/pages/demandHall/createProject/index?state="+n.comminuteState+"&id="+n.communicateId})},confirm:function(e){var a=e.currentTarget.dataset.item,o=(e.currentTarget.dataset.id,this);t.showModal({title:"提示!",content:"是否确认立项?",success:function(e){e.confirm&&n.http("GET","Communicate/aggreProject",{projectId:a.partnerInfos[0].projectId}).then((function(e){e.data.success&&(t.showToast({title:"操作成功!",duration:2e3}),setTimeout((function(){o.getCommunicates()}),2e3))}))}})},cancelProject:function(e){var a=e.currentTarget.dataset.item,o=e.currentTarget.dataset.id,c=this;t.showModal({title:"提示!",content:"是否确认取消立项?",success:function(e){e.confirm&&n.http("post","Communicate/cancelProject",{communicateId:o,partnerInfos:a.partnerInfos}).then((function(e){e.data.success&&(t.showToast({title:"操作成功!",duration:2e3}),c.getCommunicates())}))}})},deliveryProject:function(e){var a=this,o=e.currentTarget.dataset.item;t.showModal({title:"提示",content:"是否确认提交申请交付",success