(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00f77d53"],{"09f4":function(t,e,l){"use strict";l.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,l,a){return t/=a/2,t<1?l/2*t*t+e:(t--,-l/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,l){var s=n(),o=t-s,r=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=r;var n=Math.easeInOutQuad(c,s,o,e);i(n),c0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),l("el-dialog",{attrs:{title:"订单跟进",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[l("el-form",{attrs:{"label-width":"130px",model:t.item}},[l("el-form-item",{attrs:{label:"产品名称"}},[t._v(" "+t._s(t.item.product_name)+" ")]),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"产品状态"}},[t._v(" "+t._s(t.item.order_status_name)+" ")]),l("el-form-item",{attrs:{label:"数量"}},[t._v(" "+t._s(t.item.quantity)+" ")]),l("el-form-item",{attrs:{label:"联系人"}},[t._v(" "+t._s(t.item.contact)+" ")]),l("el-form-item",{attrs:{label:"手机"}},[t._v(" "+t._s(t.item.mobile)+" ")]),l("el-form-item",{attrs:{label:"下单时间"}},[t._v(" "+t._s(t._f("parseTime")(t.item.create_at,"{y}-{m}-{d} {h}:{i}"))+" ")])],1),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"人员"}},[l("el-row",[l("el-col",{attrs:{span:3}},[t._v("大人")]),l("el-col",{attrs:{span:5}},[l("el-input",{attrs:{name:"adult",placeholder:"大人"},model:{value:t.item.personnel.adult,callback:function(e){t.$set(t.item.personnel,"adult",e)},expression:"item.personnel.adult"}})],1),l("el-col",{attrs:{span:3}},[t._v("老人")]),l("el-col",{attrs:{span:5}},[l("el-input",{attrs:{name:"adult",placeholder:"老人"},model:{value:t.item.personnel.old,callback:function(e){t.$set(t.item.personnel,"old",e)},expression:"item.personnel.old"}})],1),l("el-col",{attrs:{span:3}},[t._v("小孩")]),l("el-col",{attrs:{span:5}},[l("el-input",{attrs:{name:"child",placeholder:"小孩"},model:{value:t.item.personnel.child,callback:function(e){t.$set(t.item.personnel,"child",e)},expression:"item.personnel.child"}})],1)],1)],1),l("el-form-item",{attrs:{label:"核销码"}},[l("el-input",{attrs:{name:"check_sn",placeholder:"请输入平台核销码"},model:{value:t.item.check_sn,callback:function(e){t.$set(t.item,"check_sn",e)},expression:"item.check_sn"}})],1),l("el-form-item",{attrs:{label:"加微信"}},[l("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.item.is_wechat,callback:function(e){t.$set(t.item,"is_wechat",e)},expression:"item.is_wechat"}},[t._v("已加微信")])],1),l("el-form-item",{attrs:{label:"出游日期"}},[l("el-date-picker",{attrs:{type:"date",placeholder:"选择日期时间"},model:{value:t.item.travel_date,callback:function(e){t.$set(t.item,"travel_date",e)},expression:"item.travel_date"}})],1),l("el-form-item",{attrs:{label:"返回日期"}},[l("el-date-picker",{attrs:{type:"date",placeholder:"选择日期时间"},model:{value:t.item.travel_end,callback:function(e){t.$set(t.item,"travel_end",e)},expression:"item.travel_end"}})],1),l("el-form-item",{attrs:{label:"下次跟进时间"}},[l("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间"},model:{value:t.next_follow,callback:function(e){t.next_follow=e},expression:"next_follow"}})],1)],1)],1),l("el-form-item",{attrs:{label:"跟进状态"}},[t._l(t.status_arr,(function(e,a){return[a>0?l("el-radio",{attrs:{label:a,border:""},model:{value:t.item.status,callback:function(e){t.$set(t.item,"status",e)},expression:"item.status"}},[t._v(t._s(e))]):t._e()]}))],2),l("el-form-item",{staticStyle:{width:"600px"},attrs:{label:"快捷跟进"}},[l("el-select",{attrs:{placeholder:"请选择"},on:{change:t.onChange},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[l("el-form-item",{staticStyle:{display:"inline-flex","text-align":"left",width:"770px"}},t._l(t.options,(function(t){return l("el-option",{key:t.value,staticStyle:{width:"250px",display:"inline-flex","word-break":"break-all"},attrs:{label:t.label,value:t.label}})})),1)],1)],1),l("el-form-item",{attrs:{label:"跟进说明"}},[l("el-input",{attrs:{type:"textarea"},model:{value:t.item.desc,callback:function(e){t.$set(t.item,"desc",e)},expression:"item.desc"}})],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSave(t.item)}}},[t._v("保 存")])],1),l("el-tabs",{attrs:{type:"border-card"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[l("el-tab-pane",{attrs:{name:"follow",label:"跟进记录"}},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.item.follow}},[l("el-table-column",{attrs:{label:"日期",width:"138"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",[t._v(t._s(t._f("parseTime")(e.row.create_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),l("el-table-column",{attrs:{label:"跟进人",width:"110",prop:"name"}}),l("el-table-column",{attrs:{label:"状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",[t._v(t._s(t.status_arr[e.row.status]))])]}}])}),l("el-table-column",{attrs:{prop:"desc",label:"跟进说明"}})],1)],1),l("el-tab-pane",{attrs:{name:"finance",label:"财务记录"}},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.item.finance}},[l("el-table-column",{attrs:{label:"日期"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",[t._v(t._s(t._f("parseTime")(e.row.create_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),l("el-table-column",{attrs:{label:"类型",width:"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",[t._v(t._s(t.type_arr[e.row.type]))])]}}])}),l("el-table-column",{attrs:{label:"状态",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",[t._v(t._s(e.row.total/100))])]}}])})],1)],1)],1)],1),l("el-dialog",{attrs:{title:"纯核销",visible:t.dialog2Visible},on:{"update:visible":function(e){t.dialog2Visible=e}}},[l("el-form",{attrs:{"label-width":"160px",model:t.form}},[l("el-form-item",{attrs:{label:"平台"}},[l("el-radio",{attrs:{label:"1"},model:{value:t.form.os,callback:function(e){t.$set(t.form,"os",e)},expression:"form.os"}},[t._v("美团")])],1),l("el-form-item",{attrs:{label:"核销码"}},[l("el-input",{attrs:{placeholder:"请输入平台核销码"},model:{value:t.form.check_sn,callback:function(e){t.$set(t.form,"check_sn",e)},expression:"form.check_sn"}})],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onPass(t.form)}}},[t._v("保 存")])],1)],1),l("el-dialog",{attrs:{title:"申请转出订单",visible:t.dialog3Visible},on:{"update:visible":function(e){t.dialog3Visible=e}}},[l("el-form",{attrs:{"label-width":"160px",model:t.item3}},[l("el-input",{attrs:{disabled:""},model:{value:t.item3.os,callback:function(e){t.$set(t.item3,"os",e)},expression:"item3.os"}}),l("el-form-item",{attrs:{label:"标题:"}},[l("el-input",{attrs:{disabled:""},model:{value:t.item3.product_name,callback:function(e){t.$set(t.item3,"product_name",e)},expression:"item3.product_name"}})],1),l("el-form-item",{attrs:{label:"订单号:"}},[l("el-input",{attrs:{disabled:""},model:{value:t.item3.sn,callback:function(e){t.$set(t.item3,"sn",e)},expression:"item3.sn"}})],1),l("el-form-item",{staticStyle:{width:"600px"},attrs:{label:"流转对象:"}},[l("el-select",{attrs:{placeholder:"请选择"},on:{change:t.onChange2},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[l("el-form-item",{staticStyle:{display:"inline-flex","text-align":"left",width:"770px"}},t._l(t.adminList,(function(t){return l("el-option",{key:t.value,staticStyle:{width:"250px",display:"inline-flex","word-break":"break-all"},attrs:{label:t.username,value:t.id}})})),1)],1)],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onCirculationSave()}}},[t._v("确 认")])],1)],1)],1)},i=[],n=l("b85c"),s=l("5530"),o=(l("a15b"),l("d81d"),l("e9c4"),l("a9e3"),l("b64b"),l("67f2")),r={name:"Orderlist",components:{Pagination:o["a"]},data:function(){return{active:"follow",types:{0:"",1:"",2:"",3:"primary",4:"success",5:"warning"},types2:{1:"primary",2:"success",3:"warning"},status_arr:["待跟进","跟进中","已核销","核销失败","放弃跟单"],type_arr:["-","收益","支出"],timetype_arr:{},order_status:["#9e9f9c","#04bcd9","#fc9904","#1193f4","#48b14b","#eb1662","#9d1cb5"],follow_status:["#9e9f9c","#04bcd9","#fc9904","#1193f4","#48b14b","#eb1662"],options:[],value:null,next_follow:null,list:[],total:0,listLoading:!0,listQuery:{page:1,limit:10,times:[],status:null,admin:null,zhubo:null},item:{next_follow:"",personnel:{}},follow:[],dialogVisible:!1,dialog2Visible:!1,dialog3Visible:!1,oss:{},item3:{sn:null,os:null},os_arr:{1:"美团",2:"快手",3:"抖音"},adminList:[],form:{}}},created:function(){this.listQuery.status=this.$route.query.status||null,this.listQuery.zhubo=this.$route.query.zhubo||null,this.$route.query.start&&this.$route.query.end&&(this.listQuery.times=[this.$route.query.start,this.$route.query.end]),this.getList(),this.getShortcutContent(),this.getAdminList()},methods:{getList:function(t){var e=this;if(this.listQuery.excel=null,1!=t)this.$axios.get("/admin/order/index",{params:this.listQuery}).then((function(t){e.list=t.data.data,e.total=t.data.total,e.timetype_arr=t.ext.timetype,e.oss=t.ext.oss,e.listLoading=!1}));else{this.listQuery.excel=1;var l=this.listQuery.times[0]instanceof Date,a=Object(s["a"])(Object(s["a"])({},this.listQuery),{},{times:[l?this.listQuery.times[0].toISOString():"",l?this.listQuery.times[1].toISOString():""]});window.open("/admin/order/index?"+this.objectToQuery(a))}},objectToQuery:function(t){return Object.keys(t).map((function(e){var l=t[e];return void 0==l||null==l?"":encodeURIComponent(e)+"="+encodeURIComponent(l)})).join("&")},onInfo:function(t){var e=this;this.value=null,this.next_follow=null,this.$set(t,"next_follow",null),this.item=t,this.active="follow",this.$axios.get("/admin/order/info",{params:{id:t.id}}).then((function(t){e.item=t.data,e.dialogVisible=!0})).catch((function(t){}))},getAdminList:function(){var t=this;this.$axios.get("/admin/admin/index",{params:{limit:100,status:1,is_order:1}}).then((function(e){t.adminList=e.data.data,t.listLoading=!1})).catch((function(t){}))},onCirculation:function(t){this.dialog3Visible=!0,this.item3=Object(s["a"])(Object(s["a"])({},t),{},{os:Number(t.os)})},onCirculationSave:function(){console.log("====os:"+JSON.stringify(this.item3))},onBack:function(){var t=this;this.$axios.post("/admin/order/back",this.item).then((function(e){t.dialogVisible=!1,t.item={},t.getList()})).catch((function(t){}))},onSave:function(t){var e=this;console.log(this.next_follow),this.$axios.post("/admin/order/save",{id:t.id,check_sn:t.check_sn,is_wechat:t.is_wechat,travel_end:t.travel_end,travel_date:t.travel_date,desc:t.desc,status:t.status,next_follow:this.next_follow,personnel:this.item.personnel}).then((function(t){e.dialogVisible=!1,e.item={next_follow:"",personnel:{}}})).catch((function(t){}))},onPass:function(t){var e=this;this.$axios.post("/admin/order/pass",{check_sn:t.check_sn}).then((function(t){e.dialog2Visible=!1,e.form={}})).catch((function(t){}))},onChange:function(t){this.$set(this.item,"desc",t+(void 0!=this.item.desc?this.item.desc:""))},onChange2:function(t){this.$set(this.item,"to_admin_id",t+(void 0!=this.item.admin_id?this.item.admin_id:""))},handleChange:function(t){console.log(t)},getShortcutContent:function(){var t=this;this.listLoading=!0,this.$axios.get("/admin/shortcutContent/list",{params:{page:1,limit:50,status:1}}).then((function(e){var l,a=Object(n["a"])(e.data.data);try{for(a.s();!(l=a.n()).done;){var i=l.value;t.options.push({value:i.id,label:i.content})}}catch(s){a.e(s)}finally{a.f()}})).catch((function(){}))}}},c=r,u=(l("acc0"),l("2877")),d=Object(u["a"])(c,a,i,!1,null,"09c03dba",null);e["default"]=d.exports},"67f2":function(t,e,l){"use strict";var a=function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[l("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},i=[],n=(l("a9e3"),l("09f4")),s={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(n["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(n["a"])(0,800)}}},o=s,r=(l("7d30"),l("2877")),c=Object(r["a"])(o,a,i,!1,null,"28fdfbeb",null);e["a"]=c.exports},"7a17":function(t,e,l){},"7d30":function(t,e,l){"use strict";l("7a17")},acc0:function(t,e,l){"use strict";l("61d3")},e9c4:function(t,e,l){var a=l("23e7"),i=l("d066"),n=l("d039"),s=i("JSON","stringify"),o=/[\uD800-\uDFFF]/g,r=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,u=function(t,e,l){var a=l.charAt(e-1),i=l.charAt(e+1);return r.test(t)&&!c.test(i)||c.test(t)&&!r.test(a)?"\\u"+t.charCodeAt(0).toString(16):t},d=n((function(){return'"\\udf06\\ud834"'!==s("\udf06\ud834")||'"\\udead"'!==s("\udead")}));s&&a({target:"JSON",stat:!0,forced:d},{stringify:function(t,e,l){var a=s.apply(null,arguments);return"string"==typeof a?a.replace(o,u):a}})}}]);