(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{496:function(t,e,r){},637:function(t,e,r){"use strict";r(496)},772:function(t,e,r){"use strict";r.r(e);var n=r(6),o=(r(30),{name:"user_cards_list",data:function(){return{page:1,total:0,tableData:[],count:{inVerify:0,inReview:0,inPay:0,inDeveloping:0},selectedStatus:0,remarkModel:!1,remarkData:{id:"0",content:""},statuses:[]}},mounted:function(){this.getList(),this.getCount(),this.getStatus()},methods:{getList:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.page,data={page:r,status:t.selectedStatus},e.next=4,t.$post("/api/admin/freeWork/getList",data);case 4:(n=e.sent)&&1===n.status&&(t.tableData=n.data.list||[],t.total=1*n.data.total);case 6:case"end":return e.stop()}}),e)})))()},getCount:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/freeWork/getCount",{});case 2:(r=e.sent)&&1===r.status&&(t.count=r.data||{});case 4:case"end":return e.stop()}}),e)})))()},getStatus:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/freeWork/getStatus");case 2:(r=e.sent)&&1===r.status&&(t.statuses=r.data);case 4:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page=t,this.getList()},clickDetail:function(t){window.open("/rooter/cloudjobitem/".concat(t))},formatDate:function(time){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("0"===time)return"--";var e=new Date(1e3*time),r=e.getFullYear(),n=e.getMonth()+1,o=e.getDate(),l=e.getHours(),c=e.getMinutes(),_=e.getSeconds();return l<10&&(l="0"+l),c<10&&(c="0"+c),_<10&&(_="0"+_),""==t?r+"-"+n+"-"+o+" "+l+":"+c+":"+_:r+"-"+n+"-"+o+" "+l+":"+c},onRemark:function(t){this.remarkData.id=t.id,this.remarkModel=!0},onRemind:function(t){var e=this,r=this,body={uid:t.developer_uid,hire_id:t.id};this.$post("/api/admin/freeWork/remind",body).then((function(t){1==t.status?(e.$message({message:"提醒成功",type:"success"}),r.getList()):e.$message({message:t.info,type:"success"})}))},onPay:function(t){var e=this,r=this,body={uid:t.uid,hire_id:t.id};this.$post("/api/admin/freeWork/pay",body).then((function(t){1==t.status?(r.getList(),e.$message({message:"提醒成功",type:"success"})):e.$message({message:t.info,type:"success"})}))},onToList:function(t){var data={obj_id:t.id,type:5};this.$router.push({path:"/main/remark_list",query:data})},onRemarkSave:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var data,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading=!0,""!==t.remarkData.content&&"0"!==t.remarkData.id){e.next=5;break}return t.$message.error("请输入内容"),t.loading=!1,e.abrupt("return",!1);case 5:return data={content:t.remarkData.content,id:t.remarkData.id},e.next=8,t.$post("/api/admin/freeWork/saveRemark",data);case 8:(r=e.sent)&&1===r.status&&(t.$message.success("备注成功"),t.remarkModel=!1,t.getData()),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()}}}),l=o,c=(r(637),r(4)),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",[t._m(0),t._v(" "),e("div",{staticClass:"count-list"},[e("div",{staticClass:"count-item",staticStyle:{"margin-right":"20px"}},[e("span",[t._v("对接中:"+t._s(t.count.inPending))]),t._v(" "),e("span",[t._v("待托管费用:"+t._s(t.count.inPay))]),t._v(" "),e("span",[t._v("开发中:"+t._s(t.count.inDeveloping))])])]),t._v(" "),e("div",{staticStyle:{"margin-bottom":"15px"}},[e("el-select",{attrs:{placeholder:"工作状态"},on:{change:function(e){return t.getList()}},model:{value:t.selectedStatus,callback:function(e){t.selectedStatus=e},expression:"selectedStatus"}},t._l(t.statuses,(function(r,n){return e("el-option",{key:n,attrs:{label:r.status_name,value:r.status}},[e("div",[t._v("\n "+t._s(r.status_name)+"\n "),n>0?e("el-tag",{staticClass:"status-num",attrs:{size:"mini",effect:"plain"}},[t._v(t._s(r.count))]):t._e()],1)])})),1)],1),t._v(" "),e("div",[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[e("el-table-column",{attrs:{prop:"id",label:"工作ID"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",{staticClass:"lblue point"},[e("a",{attrs:{target:"_blank",href:r.row.host+"/rooter/hireitem/"+r.row.id}},[t._v(" "+t._s(r.row.id))])])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"企业方"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",{staticClass:"lblue point"},[e("a",{attrs:{target:"_blank",href:r.row.host+"/rooter/user/"+r.row.uid}},[t._v(t._s(r.row.user_name+"("+r.row.uid+")"))])])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"开发者"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",{staticClass:"lblue point"},[e("a",{attrs:{target:"_blank",href:r.row.host+"/rooter/user/"+r.row.developer_uid}},[t._v(t._s(r.row.developer_name+"("+r.row.developer_uid+")"))])])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"platform_text",label:"来源"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.platform_text)+"("+t._s(r.row.version)+")")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"work_area_name",label:"地点"}}),t._v(" "),e("el-table-column",{attrs:{prop:"description","show-overflow-tooltip":!0,label:"项目简介"}}),t._v(" "),e("el-table-column",{attrs:{prop:"hours",label:"工作时间"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.hours)+"小时")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"hours",label:"工作时间"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[r.row.month>0?e("span",[t._v(t._s(r.row.month)+"月")]):t._e(),t._v(t._s(r.row.day)+"天")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"hours",label:"雇佣方式"},scopedSlots:t._u([{key:"default",fn:function(r){return[1==r.row.work_time_type?e("span",[t._v("全日工作")]):t._e(),t._v(" "),2==r.row.work_time_type?e("span",[t._v("半日工作")]):t._e(),t._v(" "),3==r.row.work_time_type?e("span",[t._v("全日半日皆可")]):t._e(),t._v(" "),r.row.work_time_type?t._e():e("span",[t._v("无")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"price",label:"总价"}}),t._v(" "),e("el-table-column",{attrs:{prop:"pay_time",label:"发布时间"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(t.formatDate(r.row.create_time,"Y-m-d H:i")))])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"当前项目状态"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.status_name))])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"是否发布招聘"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(1==r.row.is_recruit?"是":"否"))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"",label:"客户经理"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",{staticClass:"lblue point"},[e("a",{attrs:{target:"_blank",href:r.row.host+"/rooter/user/"+r.row.account_manager_uid}},[t._v(t._s(r.row.account_manager_name+"("+r.row.account_manager_uid+")"))])])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"备注"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("div",[t._v(t._s(r.row.remark_text))]),t._v(" "),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onToList(r.row)}}},[t._v("查看备注("+t._s(r.row.remark_num)+")")])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onRemark(r.row)}}},[t._v("添加备注")]),t._v(" "),0==r.row.is_remind_status?e("el-button",{staticClass:"remind",attrs:{type:"text"},on:{click:function(e){return t.onRemind(r.row)}}},[t._v("提醒接单")]):t._e(),t._v(" "),0==r.row.is_pay_status?e("el-button",{staticClass:"remind",attrs:{type:"text"},on:{click:function(e){return t.onPay(r.row)}}},[t._v("提醒付费")]):t._e(),t._v(" "),1==r.row.is_remind&&1==r.row.status?e("el-button",{staticClass:"remind",staticStyle:{background:"#eee!important",color:"#d2d2d2!important"},attrs:{type:"text"}},[t._v("已提醒接单")]):t._e(),t._v(" "),1==r.row.is_pay&&3==r.row.status?e("el-button",{staticClass:"remind",staticStyle:{background:"#eee!important",color:"#d2d2d2!important"},attrs:{type:"text"}},[t._v("已提醒付费")]):t._e()]}}])})],1)],1),t._v(" "),e("div",[e("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"total, prev, pager, next","page-size":20,total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),e("el-dialog",{attrs:{title:"添加备注",visible:t.remarkModel},on:{"update:visible":function(e){t.remarkModel=e}}},[e("div",[e("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入内容"},model:{value:t.remarkData.content,callback:function(e){t.$set(t.remarkData,"content",e)},expression:"remarkData.content"}})],1),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.remarkModel=!1}}},[t._v("取 消")]),t._v(" "),e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onRemarkSave}},[t._v("确 定")])],1)])],1)}),[function(){var t=this._self._c;return t("div",[t("h2",[this._v("自由工作")])])}],!1,null,"1e308cdb",null);e.default=component.exports}}]);