935543f593bee030c5df.js 5.8 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[39],{433:function(t,e,n){},484:function(t,e,n){"use strict";var r=n(433);n.n(r).a},537:function(t,e,n){"use strict";n.r(e);n(30);var r=n(3),o={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(r.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(r.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)})))()},skuDetail:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.open("/main/solution_sku?id=".concat(t),"_self");case 1:case"end":return e.stop()}}),e)})))()},getList:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,data,r;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:r=e.sent,t.solutionData=r.data.list,t.record=r.data.record;case 8:case"end":return e.stop()}}),e)})))()},contact:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var data,r;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:r=n.sent,e.$message({message:r.info,type:"success"});case 5:case"end":return n.stop()}}),n)})))()}}},c=(n(484),n(2)),component=Object(c.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",[n("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[n("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(e)}},model:{value:t.solutionTitle,callback:function(e){t.solutionTitle=e},expression:"solutionTitle"}})],1),t._v(" "),n("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[n("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 n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("div",{staticStyle:{width:"200px",margin:"0 15px",float:"left"}},[n("el-select",{attrs:{clearable:"",placeholder:"状态"},model:{value:t.solutionStatus,callback:function(e){t.solutionStatus=e},expression:"solutionStatus"}},t._l(t.statusData,(function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("div",{staticStyle:{width:"100px",margin:"0 15px",float:"left"}},[n("el-button",{attrs:{type:"primary"},on:{click:t.searchList}},[t._v("搜索")])],1),t._v(" "),n("div",{staticStyle:{clear:"both"}})]),t._v(" "),t.record?n("div",{staticClass:"count-list"},[n("div",{staticClass:"count-item"},[t._v("总数:"+t._s(t.record.sum))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v("待审核:"+t._s(t.record.wait_check))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v("已通过:"+t._s(t.record.approve))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v("拒绝:"+t._s(t.record.deny))]),t._v(" "),n("router-link",{attrs:{to:"/main/kaifawu_contact"}},[n("el-button",{attrs:{type:"primary",size:"mini"}},[t._v("解决方案需求")])],1)],1):t._e(),t._v(" "),t.solutionData?n("div",{staticClass:"content"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.solutionData,border:""}},[n("el-table-column",{attrs:{prop:"title",label:"方案名称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"login_mobile",label:"联系方式"}}),t._v(" "),n("el-table-column",{attrs:{prop:"updated_at",label:"入驻时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"checked_at",label:"操作时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"nickname",label:"客户经理"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"当前状态"}}),t._v(" "),n("el-table-column",{attrs:{label:"是否优选"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.is_choice?n("p",[t._v("是")]):n("p",[t._v("否")])]}}],null,!1,599207746)}),t._v(" "),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-checkbox",{attrs:{label:"1",name:"type"},on:{change:function(n){return t.contact(e.row.id)}}},[t._v("联系他")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.detail(e.row.id)}}},[t._v("查看详情")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.skuDetail(e.row.id)}}},[t._v("套餐信息")])]}}],null,!1,3147665172)})],1)],1):t._e(),t._v(" "),n("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,"c357206e",null);e.default=component.exports}}]);