| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[89],{522:function(t,e,n){},639:function(t,e,n){"use strict";n(522)},754:function(t,e,n){"use strict";n.r(e);n(24),n(191);var o=n(7),r=(n(40),{data:function(){return{page:1,solutionData:[],form:{reason:""},record:[],isDialogShow:!1,solutionTitle:"",is_choice:"",choice:[{id:"1",name:"是"},{id:"0",name:"否"}],solutionStatus:"",statusData:[{id:"0",name:"草稿"},{id:"1",name:"审核"},{id:"2",name:"通过"},{id:"3",name:"拒绝"}]}},mounted:function(){this.getList()},methods:{handleCurrentChange:function(t){this.page=t,this.getList()},searchList:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return data={page:1,size:20,title:"",is_choice:"",status:""},t.solutionTitle&&(data.title=t.solutionTitle),t.is_choice&&(data.is_choice=t.is_choice),console.log(t.solutionStatus),t.solutionStatus&&(data.status=t.solutionStatus),e.next=7,t.$post("/api/admin/kaifawu/getProviders",data);case 7:n=e.sent,t.solutionData=n.data.list,t.record=n.data.record;case 10:case"end":return e.stop()}}),e)})))()},detail:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.open("/main/solution_detail?id=".concat(t),"_self");case 1:case"end":return e.stop()}}),e)})))()},getList:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,data,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.page,20,data={page:n,size:20},e.next=5,t.$post("/api/admin/kaifawu/getProviders",data);case 5:o=e.sent,t.solutionData=o.data.list,t.record=o.data.record;case 8:case"end":return e.stop()}}),e)})))()},contact:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var data,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return data={id:t},n.next=3,e.$post("/api/admin/kaifawu/contact",data);case 3:o=n.sent,e.$message({message:o.info,type:"success"});case 5:case"end":return n.stop()}}),n)})))()}}}),l=(n(639),n(4)),component=Object(l.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[e("el-input",{attrs:{placeholder:"搜索标题"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchList.apply(null,arguments)}},model:{value:t.solutionTitle,callback:function(e){t.solutionTitle=e},expression:"solutionTitle"}})],1),t._v(" "),e("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[e("el-select",{attrs:{clearable:"",placeholder:"是否优选"},model:{value:t.is_choice,callback:function(e){t.is_choice=e},expression:"is_choice"}},t._l(t.choice,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),e("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[e("el-select",{attrs:{clearable:"",placeholder:"状态"},model:{value:t.solutionStatus,callback:function(e){t.solutionStatus=e},expression:"solutionStatus"}},t._l(t.statusData,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),e("div",{staticStyle:{width:"100px",margin:"0 15px",float:"left"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.searchList}},[t._v("搜索")])],1),t._v(" "),e("div",{staticStyle:{clear:"both"}})]),t._v(" "),t.record?e("div",{staticClass:"count-list"},[e("div",{staticClass:"count-item"},[t._v("总数:"+t._s(t.record.sum))]),t._v(" "),e("div",{staticClass:"count-item"},[t._v("待审核:"+t._s(t.record.wait_check))]),t._v(" "),e("div",{staticClass:"count-item"},[t._v("已通过:"+t._s(t.record.approve))]),t._v(" "),e("div",{staticClass:"count-item"},[t._v("拒绝:"+t._s(t.record.deny))]),t._v(" "),e("router-link",{attrs:{to:"/main/kaifawu_contact"}},[e("el-button",{attrs:{type:"primary",size:"mini"}},[t._v("解决方案需求")])],1)],1):t._e(),t._v(" "),t.solutionData?e("div",{staticClass:"content"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.solutionData,border:""}},[e("el-table-column",{attrs:{prop:"title",label:"方案名称"}}),t._v(" "),e("el-table-column",{attrs:{prop:"login_mobile",label:"联系方式"}}),t._v(" "),e("el-table-column",{attrs:{prop:"updated_at",label:"入驻时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"checked_at",label:"操作时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"nickname",label:"客户经理"}}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"当前状态"}}),t._v(" "),e("el-table-column",{attrs:{label:"是否优选"},scopedSlots:t._u([{key:"default",fn:function(n){return[1==n.row.is_choice?e("p",[t._v("是")]):e("p",[t._v("否")])]}}],null,!1,599207746)}),t._v(" "),e("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-checkbox",{attrs:{label:"1",name:"type"},on:{change:function(e){return t.contact(n.row.id)}}},[t._v("联系他")]),t._v(" "),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.detail(n.row.id)}}},[t._v("查看详情")])]}}],null,!1,2084893795)})],1)],1):t._e(),t._v(" "),e("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"prev, pager, next","page-size":20,total:Number(t.record.sum)},on:{"current-change":t.handleCurrentChange}})],1)}),[],!1,null,"01f449e2",null);e.default=component.exports}}]);
|