40.aae3f2c7.js 37 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[40],{"0M8k":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"order-entry"},[e.$route.query.action?"add"==e.$route.query.action?[r("OrderEntryAdd")]:"edit"==e.$route.query.action?[r("OrderEntryEdit")]:"detail"==e.$route.query.action?[r("OrderEntryDetail")]:e._e():[e._m(0),r("el-form",{ref:"ruleForm",attrs:{model:e.form,"label-width":"130px"}},[r("el-row",[r("el-col",{attrs:{span:5}},[r("el-form-item",{attrs:{label:"",prop:"way","label-width":"40px"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.form.way,callback:function(t){e.$set(e.form,"way",t)},expression:"form.way"}},[r("el-option",{attrs:{label:"客户名称",value:"name"}}),r("el-option",{attrs:{label:"拼音姓名",value:"spell_name"}}),r("el-option",{attrs:{label:"客户编号",value:"client_id"}})],1)],1)],1),r("el-col",{attrs:{span:9}},["name"==e.form.way?r("el-form-item",{attrs:{"label-width":"10px;",prop:"name1"}},[r("el-input",{attrs:{placeholder:"客户名称"},model:{value:e.form.name1,callback:function(t){e.$set(e.form,"name1",t)},expression:"form.name1"}})],1):e._e(),"spell_name"==e.form.way?r("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"10px;",prop:"name2"}},[r("el-input",{attrs:{placeholder:"拼音姓名"},model:{value:e.form.name2,callback:function(t){e.$set(e.form,"name2",t)},expression:"form.name2"}})],1):e._e(),"client_id"==e.form.way?r("el-form-item",{staticStyle:{"margin-left":"10px"},attrs:{"label-width":"10px;",prop:"name3"}},[r("el-input",{attrs:{placeholder:"客户编号"},model:{value:e.form.name3,callback:function(t){e.$set(e.form,"name3",t)},expression:"form.name3"}})],1):e._e()],1)],1),r("el-row",[r("el-col",{attrs:{span:7}},[r("el-form-item",{attrs:{label:"所属分公司",prop:"company_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.company_id,callback:function(t){e.$set(e.form,"company_id",t)},expression:"form.company_id"}},e._l(e.companyWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:7}},[r("el-form-item",{attrs:{label:"所属合作方",prop:"partner_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.partner_id,callback:function(t){e.$set(e.form,"partner_id",t)},expression:"form.partner_id"}},e._l(e.partnerWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:7}},[r("el-form-item",{attrs:{label:"所属国家",prop:"country_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.country_id,callback:function(t){e.$set(e.form,"country_id",t)},expression:"form.country_id"}},e._l(e.countryWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:7}},[r("el-form-item",{attrs:{label:"转案日期",prop:"time"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{format:"yyyy-MM-dd","value-format":"timestamp",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.date},model:{value:e.form.time,callback:function(t){e.$set(e.form,"time",t)},expression:"form.time"}})],1)],1)],1),r("el-row",[r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:14}},[r("el-button",{attrs:{size:"small"},on:{click:function(t){e.resetForm("ruleForm")}}},[e._v("重置")]),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("搜索")])],1)],1)],1),e._l(e.btns,function(t){return["add"===t.url?r("el-button",{key:t.id,attrs:{type:"warning",size:"small"},on:{click:e.addHandle}},[e._v(e._s(t.name))]):e._e()]}),r("div",{staticClass:"line"}),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",stripe:""}},[r("el-table-column",{attrs:{type:"index",width:"50"}}),r("el-table-column",{attrs:{prop:"id",label:"ID",width:"200"}}),r("el-table-column",{attrs:{prop:"client_name",label:"客户名称",width:"200"}}),r("el-table-column",{attrs:{prop:"partner",label:"合作方","min-width":"200px"}}),r("el-table-column",{attrs:{prop:"company",label:"所属分公司",width:"200"}}),r("el-table-column",{attrs:{prop:"country",label:"所属国家",width:"200"}}),r("el-table-column",{attrs:{formatter:e.dateFormat,prop:"first_entry_t",label:"首次入境日期",width:"200"}}),r("el-table-column",{attrs:{prop:"first_entry_num",label:"首次入境人数",width:"200"}}),e.btns.length>0?r("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticStyle:{"text-align":"center"}},[e._l(e.btns,function(a){return["detail"===a.url?r("el-button",{key:a.id,attrs:{type:"primary",size:"mini"},on:{click:function(r){e.detailHandle(t.row.id)}}},[e._v(e._s(a.name))]):"edit"===a.url?r("el-button",{key:a.id,attrs:{type:"warning",size:"mini"},on:{click:function(r){e.editHandle(t.row.id)}}},[e._v(e._s(a.name))]):"del"===a.url?r("el-button",{key:a.id,attrs:{type:"danger",size:"mini"},on:{click:function(r){e.delHandle(t.row.id)}}},[e._v(e._s(a.name))]):e._e()]})],2)]}}])}):e._e()],1),[r("div",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticClass:"block"},[r("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,total:e.total,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)]]],2)},o=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("fieldset",{staticStyle:{"margin-top":"20px"}},[r("legend",{staticStyle:{"font-weight":"normal"}},[e._v("入境订单")])])}],l=(r("rGqo"),r("91GP"),r("f3/d"),r("VRzm"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"order-entry-add"},[e._m(0),r("el-row",[r("el-col",{attrs:{span:22}},[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,"label-width":"140px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"客户名称",prop:"client_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.client_id,callback:function(t){e.$set(e.form,"client_id",t)},expression:"form.client_id"}},e._l(e.clientWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所属国家",prop:"country_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.country_id,callback:function(t){e.$set(e.form,"country_id",t)},expression:"form.country_id"}},e._l(e.countryWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"first_entry_t",label:"首次入境日期"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerBeginDateBefore,type:"date",placeholder:"选择日期","value-format":"timestamp"},model:{value:e.form.first_entry_t,callback:function(t){e.$set(e.form,"first_entry_t",t)},expression:"form.first_entry_t"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"首次入境人数",prop:"first_entry_num"}},[r("el-input",{model:{value:e.form.first_entry_num,callback:function(t){e.$set(e.form,"first_entry_num",t)},expression:"form.first_entry_num"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否做行前辅导",prop:"if_coach"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_coach,callback:function(t){e.$set(e.form,"if_coach",t)},expression:"form.if_coach"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"行前辅导者",prop:"coach_name"}},[r("el-input",{model:{value:e.form.coach_name,callback:function(t){e.$set(e.form,"coach_name",t)},expression:"form.coach_name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"海外接待人员",prop:"overseas_reception"}},[r("el-input",{model:{value:e.form.overseas_reception,callback:function(t){e.$set(e.form,"overseas_reception",t)},expression:"form.overseas_reception"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否超标",prop:"if_overproof"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_overproof,callback:function(t){e.$set(e.form,"if_overproof",t)},expression:"form.if_overproof"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-col",{attrs:{span:14}},[r("el-form-item",{attrs:{label:"超标接待费",prop:"overproof_fee_unit"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.overproof_fee_unit,callback:function(t){e.$set(e.form,"overproof_fee_unit",t)},expression:"form.overproof_fee_unit"}},e._l(e.currencyWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.symbol,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:10}},[r("el-form-item",{staticClass:"mobile",attrs:{label:" ",prop:"overproof_fee"}},[r("el-input",{model:{value:e.form.overproof_fee,callback:function(t){e.$set(e.form,"overproof_fee",t)},expression:"form.overproof_fee"}})],1)],1)],1)],1),r("el-form-item",{attrs:{label:"接待费支付详情",prop:"reception_fee_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.reception_fee_info,callback:function(t){e.$set(e.form,"reception_fee_info",t)},expression:"form.reception_fee_info"}})],1),r("el-form-item",{attrs:{label:"合作方陪同信息",prop:"partner_accompany_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.partner_accompany_info,callback:function(t){e.$set(e.form,"partner_accompany_info",t)},expression:"form.partner_accompany_info"}})],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否购房",prop:"if_house_purchase"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_house_purchase,callback:function(t){e.$set(e.form,"if_house_purchase",t)},expression:"form.if_house_purchase"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1)],1),1===parseInt(e.form.if_house_purchase)?r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"塌单原因",prop:"collapse_cause"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.collapse_cause,callback:function(t){e.$set(e.form,"collapse_cause",t)},expression:"form.collapse_cause"}},[r("el-option",{attrs:{label:"房源问题",value:"0"}}),r("el-option",{attrs:{label:"项目对比",value:"1"}}),r("el-option",{attrs:{label:"怀疑房价",value:"2"}}),r("el-option",{attrs:{label:"客户意向",value:"3"}}),r("el-option",{attrs:{label:"资金问题",value:"4"}}),r("el-option",{attrs:{label:"其他",value:"5"}})],1)],1)],1)],1):e._e(),r("el-form-item",{attrs:{rules:[{max:250,message:"不超过250个字",trigger:"change"}],label:"备注",prop:"collapse_cause_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.collapse_cause_info,callback:function(t){e.$set(e.form,"collapse_cause_info",t)},expression:"form.collapse_cause_info"}})],1),r("el-form-item",{staticStyle:{"text-align":"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("提交")])],1)],1)],1)],1)],1)}),n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("fieldset",{staticStyle:{"margin-top":"20px"}},[r("legend",{staticStyle:{"font-weight":"normal"}},[e._v("入境订单 • 添加")])])}],i=r("MigZ"),s=r("JtfS"),c={name:"OrderEntry_add",data:function(){var e=function(e,t,r){var a=/^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/;t?a.test(t)?r():r(new Error("必须是数字")):r()};return{pickerBeginDateBefore:{disabledDate:function(e){return e.getTime()>Date.now()-864e4}},currencyWrap:"",countryWrap:"",clientWrap:"",loading:!1,form:{},rules:{overproof_fee:[{validator:e,trigger:"change"}],first_entry_num:[{required:!0,message:"必填",trigger:"blur"}],first_entry_t:[{required:!0,message:"必填",trigger:"blur"}],country_id:[{required:!0,message:"必填",trigger:"change"}],client_id:[{required:!0,message:"必填",trigger:"change"}],if_house_purchase:[{required:!0,message:"必填",trigger:"change"}],collapse_cause:[{required:!0,message:"必填",trigger:"change"}]}}},created:function(){},mounted:function(){this.prefixList(),this.countryList(),this.clientList(),this.currencyList()},methods:{currencyList:function(){var e=this,t={};t.url=i["a"].common_currency_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.currencyWrap=t.data},function(t){e.loading=!1})},clientList:function(){var e=this,t={};t.url=i["a"].common_client_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.clientWrap=t.data},function(t){e.loading=!1})},countryList:function(){var e=this,t={};t.url=i["a"].common_country_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.countryWrap=t.data},function(t){e.loading=!1})},prefixList:function(){var e=this,t={};t.url=i["a"].common_prefix_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.prefixWrap=t.data},function(t){e.loading=!1})},submitForm:function(e){var t=this,r=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;r.loading=!0;var a={};a.data=r.form,a.url=i["a"].order_entry_add,s["a"].req(a,r).then(function(e){r.loading=!1,t.$router.go(-1)},function(e){r.loading=!1,t.$message(e.msg)})})}}},u=c,f=(r("HXMA"),r("KHd+")),p=Object(f["a"])(u,l,n,!1,null,"280270ac",null),m=p.exports,d=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"order-entry-edit"},[e._m(0),r("el-row",[r("el-col",{attrs:{span:22}},[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,"label-width":"140px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"客户名称",prop:"client_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.client_id,callback:function(t){e.$set(e.form,"client_id",t)},expression:"form.client_id"}},e._l(e.clientWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所属国家",prop:"country_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.country_id,callback:function(t){e.$set(e.form,"country_id",t)},expression:"form.country_id"}},e._l(e.countryWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"first_entry_t",label:"首次入境日期"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerBeginDateBefore,type:"date",placeholder:"选择日期","value-format":"timestamp"},model:{value:e.form.first_entry_t,callback:function(t){e.$set(e.form,"first_entry_t",t)},expression:"form.first_entry_t"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"首次入境人数",prop:"first_entry_num"}},[r("el-input",{model:{value:e.form.first_entry_num,callback:function(t){e.$set(e.form,"first_entry_num",t)},expression:"form.first_entry_num"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否做行前辅导",prop:"if_coach"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_coach,callback:function(t){e.$set(e.form,"if_coach",t)},expression:"form.if_coach"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"行前辅导者",prop:"coach_name"}},[r("el-input",{model:{value:e.form.coach_name,callback:function(t){e.$set(e.form,"coach_name",t)},expression:"form.coach_name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"海外接待人员",prop:"overseas_reception"}},[r("el-input",{model:{value:e.form.overseas_reception,callback:function(t){e.$set(e.form,"overseas_reception",t)},expression:"form.overseas_reception"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否超标",prop:"if_overproof"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_overproof,callback:function(t){e.$set(e.form,"if_overproof",t)},expression:"form.if_overproof"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-col",{attrs:{span:14}},[r("el-form-item",{attrs:{label:"超标接待费",prop:"overproof_fee_unit"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.overproof_fee_unit,callback:function(t){e.$set(e.form,"overproof_fee_unit",t)},expression:"form.overproof_fee_unit"}},e._l(e.currencyWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.symbol,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:10}},[r("el-form-item",{staticClass:"mobile",attrs:{label:" ",prop:"overproof_fee"}},[r("el-input",{model:{value:e.form.overproof_fee,callback:function(t){e.$set(e.form,"overproof_fee",e._n(t))},expression:"form.overproof_fee"}})],1)],1)],1)],1),r("el-form-item",{attrs:{label:"接待费支付详情",prop:"reception_fee_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.reception_fee_info,callback:function(t){e.$set(e.form,"reception_fee_info",t)},expression:"form.reception_fee_info"}})],1),r("el-form-item",{attrs:{label:"合作方陪同信息",prop:"partner_accompany_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.partner_accompany_info,callback:function(t){e.$set(e.form,"partner_accompany_info",t)},expression:"form.partner_accompany_info"}})],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否购房",prop:"if_house_purchase"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_house_purchase,callback:function(t){e.$set(e.form,"if_house_purchase",t)},expression:"form.if_house_purchase"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1)],1),1===parseInt(e.form.if_house_purchase)?r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"塌单原因",prop:"collapse_cause"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.collapse_cause,callback:function(t){e.$set(e.form,"collapse_cause",t)},expression:"form.collapse_cause"}},[r("el-option",{attrs:{label:"房源问题",value:"0"}}),r("el-option",{attrs:{label:"项目对比",value:"1"}}),r("el-option",{attrs:{label:"怀疑房价",value:"2"}}),r("el-option",{attrs:{label:"客户意向",value:"3"}}),r("el-option",{attrs:{label:"资金问题",value:"4"}}),r("el-option",{attrs:{label:"其他",value:"5"}})],1)],1)],1)],1):e._e(),r("el-form-item",{attrs:{rules:[{max:250,message:"不超过250个字",trigger:"change"}],label:"备注",prop:"collapse_cause_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.collapse_cause_info,callback:function(t){e.$set(e.form,"collapse_cause_info",t)},expression:"form.collapse_cause_info"}})],1),r("el-form-item",{staticStyle:{"text-align":"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("提交")])],1)],1)],1)],1)],1)},_=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("fieldset",{staticStyle:{"margin-top":"20px"}},[r("legend",{staticStyle:{"font-weight":"normal"}},[e._v("入境订单 • 编辑")])])}],h={name:"OrderEntry_edit",data:function(){var e=function(e,t,r){var a=/^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/;t?a.test(t)?r():r(new Error("必须是数字")):r()};return{pickerBeginDateBefore:{disabledDate:function(e){return e.getTime()>Date.now()-864e4}},currencyWrap:"",countryWrap:"",clientWrap:"",loading:!1,form:{},rules:{overproof_fee:[{validator:e,trigger:"change"}],first_entry_num:[{required:!0,message:"必填",trigger:"blur"}],first_entry_t:[{required:!0,message:"必填",trigger:"blur"}],country_id:[{required:!0,message:"必填",trigger:"change"}],client_id:[{required:!0,message:"必填",trigger:"change"}],if_house_purchase:[{required:!0,message:"必填",trigger:"change"}],collapse_cause:[{required:!0,message:"必填",trigger:"change"}]}}},created:function(){},mounted:function(){this.prefixList(),this.countryList(),this.clientList(),this.currencyList(),this.loadData()},methods:{loadData:function(){var e=this,t={};t.data={id:this.$route.query.id},t.url=i["a"].order_entry_detail,s["a"].req(t,e).then(function(t){e.loading=!1,e.form=t.data},function(t){e.loading=!1})},currencyList:function(){var e=this,t={};t.url=i["a"].common_currency_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.currencyWrap=t.data},function(t){e.loading=!1})},clientList:function(){var e=this,t={};t.url=i["a"].common_client_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.clientWrap=t.data},function(t){e.loading=!1})},countryList:function(){var e=this,t={};t.url=i["a"].common_country_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.countryWrap=t.data},function(t){e.loading=!1})},prefixList:function(){var e=this,t={};t.url=i["a"].common_prefix_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.prefixWrap=t.data},function(t){e.loading=!1})},submitForm:function(e){var t=this,r=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;r.loading=!0;var a={};a.data=r.form,a.url=i["a"].order_entry_edit,s["a"].req(a,r).then(function(e){r.loading=!1,t.$router.go(-1)},function(e){r.loading=!1,t.$message(e.msg)})})}}},y=h,b=(r("JSw/"),Object(f["a"])(y,d,_,!1,null,"16927051",null)),v=b.exports,g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"order-entry-detail"},[e._m(0),r("el-row",[r("el-col",{attrs:{span:22}},[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,disabled:"","label-width":"140px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"客户名称",prop:"client_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.client_id,callback:function(t){e.$set(e.form,"client_id",t)},expression:"form.client_id"}},e._l(e.clientWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所属国家",prop:"country_id"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.country_id,callback:function(t){e.$set(e.form,"country_id",t)},expression:"form.country_id"}},e._l(e.countryWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"first_entry_t",label:"首次入境日期"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerBeginDateBefore,type:"date",placeholder:"选择日期","value-format":"timestamp"},model:{value:e.form.first_entry_t,callback:function(t){e.$set(e.form,"first_entry_t",t)},expression:"form.first_entry_t"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"首次入境人数",prop:"first_entry_num"}},[r("el-input",{model:{value:e.form.first_entry_num,callback:function(t){e.$set(e.form,"first_entry_num",t)},expression:"form.first_entry_num"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否做行前辅导",prop:"if_coach"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_coach,callback:function(t){e.$set(e.form,"if_coach",t)},expression:"form.if_coach"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"行前辅导者",prop:"coach_name"}},[r("el-input",{model:{value:e.form.coach_name,callback:function(t){e.$set(e.form,"coach_name",t)},expression:"form.coach_name"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"海外接待人员",prop:"overseas_reception"}},[r("el-input",{model:{value:e.form.overseas_reception,callback:function(t){e.$set(e.form,"overseas_reception",t)},expression:"form.overseas_reception"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否超标",prop:"if_overproof"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_overproof,callback:function(t){e.$set(e.form,"if_overproof",t)},expression:"form.if_overproof"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1),r("el-col",{attrs:{span:12}},[r("el-col",{attrs:{span:14}},[r("el-form-item",{attrs:{label:"超标接待费",prop:"overproof_fee_unit"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:e.form.overproof_fee_unit,callback:function(t){e.$set(e.form,"overproof_fee_unit",t)},expression:"form.overproof_fee_unit"}},e._l(e.currencyWrap,function(e){return r("el-option",{key:e.id,attrs:{label:e.symbol,value:e.id}})}))],1)],1),r("el-col",{attrs:{span:10}},[r("el-form-item",{staticClass:"mobile",attrs:{label:" ",prop:"overproof_fee"}},[r("el-input",{model:{value:e.form.overproof_fee,callback:function(t){e.$set(e.form,"overproof_fee",e._n(t))},expression:"form.overproof_fee"}})],1)],1)],1)],1),r("el-form-item",{attrs:{label:"接待费支付详情",prop:"reception_fee_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.reception_fee_info,callback:function(t){e.$set(e.form,"reception_fee_info",t)},expression:"form.reception_fee_info"}})],1),r("el-form-item",{attrs:{label:"合作方陪同信息",prop:"partner_accompany_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.partner_accompany_info,callback:function(t){e.$set(e.form,"partner_accompany_info",t)},expression:"form.partner_accompany_info"}})],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"是否购房",prop:"if_house_purchase"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.if_house_purchase,callback:function(t){e.$set(e.form,"if_house_purchase",t)},expression:"form.if_house_purchase"}},[r("el-option",{attrs:{label:"是",value:"0"}}),r("el-option",{attrs:{label:"否",value:"1"}})],1)],1)],1)],1),1===parseInt(e.form.if_house_purchase)?r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"塌单原因",prop:"collapse_cause"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.collapse_cause,callback:function(t){e.$set(e.form,"collapse_cause",t)},expression:"form.collapse_cause"}},[r("el-option",{attrs:{label:"房源问题",value:"0"}}),r("el-option",{attrs:{label:"项目对比",value:"1"}}),r("el-option",{attrs:{label:"怀疑房价",value:"2"}}),r("el-option",{attrs:{label:"客户意向",value:"3"}}),r("el-option",{attrs:{label:"资金问题",value:"4"}}),r("el-option",{attrs:{label:"其他",value:"5"}})],1)],1)],1)],1):e._e(),r("el-form-item",{attrs:{rules:[{max:250,message:"不超过250个字",trigger:"change"}],label:"备注",prop:"collapse_cause_info"}},[r("el-input",{attrs:{type:"textarea"},model:{value:e.form.collapse_cause_info,callback:function(t){e.$set(e.form,"collapse_cause_info",t)},expression:"form.collapse_cause_info"}})],1)],1)],1),r("el-col",[r("el-button",{staticStyle:{display:"block",margin:"auto"},attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("返回")])],1)],1)],1)},x=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("fieldset",{staticStyle:{"margin-top":"20px"}},[r("legend",{staticStyle:{"font-weight":"normal"}},[e._v("入境订单 • 详情")])])}],w={name:"OrderEntry_detail",data:function(){return{pickerBeginDateBefore:{disabledDate:function(e){return e.getTime()>Date.now()-864e4}},currencyWrap:"",countryWrap:"",clientWrap:"",loading:!1,form:{},rules:{first_entry_num:[{required:!0,message:"必填",trigger:"blur"}],first_entry_t:[{required:!0,message:"必填",trigger:"blur"}],country_id:[{required:!0,message:"必填",trigger:"change"}],client_id:[{required:!0,message:"必填",trigger:"change"}],if_house_purchase:[{required:!0,message:"必填",trigger:"change"}],collapse_cause:[{required:!0,message:"必填",trigger:"change"}]}}},created:function(){},mounted:function(){this.prefixList(),this.countryList(),this.clientList(),this.currencyList(),this.loadData()},methods:{loadData:function(){var e=this,t={};t.data={id:this.$route.query.id},t.url=i["a"].order_entry_detail,s["a"].req(t,e).then(function(t){e.loading=!1,e.form=t.data},function(t){e.loading=!1})},currencyList:function(){var e=this,t={};t.url=i["a"].common_currency_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.currencyWrap=t.data},function(t){e.loading=!1})},clientList:function(){var e=this,t={};t.url=i["a"].common_client_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.clientWrap=t.data},function(t){e.loading=!1})},countryList:function(){var e=this,t={};t.url=i["a"].common_country_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.countryWrap=t.data},function(t){e.loading=!1})},prefixList:function(){var e=this,t={};t.url=i["a"].common_prefix_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.prefixWrap=t.data},function(t){e.loading=!1})},submitForm:function(e){this.$router.go(-1)}}},k=w,$=(r("uVwJ"),Object(f["a"])(k,g,x,!1,null,"27366eae",null)),S=$.exports,L=r("kLkQ"),q=r("wd/R"),D=r.n(q),W={name:"OrderEntry",components:{OrderEntryAdd:m,OrderEntryEdit:v,OrderEntryDetail:S},data:function(){return{btns:"",companyWrap:"",countryWrap:"",partnerWrap:"",tableData:[],total:0,currentPage:1,pageSize:10,loading:!0,form:{way:"name",time:"",name1:"",name2:"",name3:"",country_id:"",partner_id:"",company_id:""}}},watch:{$route:function(e,t){this.getTableData()}},created:function(){var e=this.$store.state.tabMenuObj,t=this.$route.name;e[t]&&(this.btns=L["a"].deepClone(e[t].btns))},mounted:function(){this.getTableData(),this.companyList(),this.partnerList(),this.countryList()},methods:{companyList:function(){var e=this,t={};t.url=i["a"].common_company_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.companyWrap=t.data},function(t){e.loading=!1})},partnerList:function(){var e=this,t={};t.url=i["a"].common_partner_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.partnerWrap=t.data},function(t){e.loading=!1})},countryList:function(){var e=this,t={};t.url=i["a"].common_country_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.countryWrap=t.data},function(t){e.loading=!1})},delHandle:function(e){var t=this;t.$confirm("确认删除此条信息吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var r={};r.data={id:e},r.url=i["a"].order_entry_del,s["a"].req(r,this).then(function(e){t.loading=!1,t.getTableData()},function(e){t.loading=!1,t.$message(e)})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},resetForm:function(e){this.$refs[e].resetFields(),this.currentPage=1,this.getTableData()},submitForm:function(){this.currentPage=1,this.getTableData()},editHandle:function(e){this.$router.push({path:"/main/order-entry?action=edit&id="+e})},detailHandle:function(e){this.$router.push({path:"/main/order-entry?action=detail&id="+e})},addHandle:function(){this.$router.push({path:"/main/order-entry?action=add"})},date:function(){},dateFormat:function(e,t){var r=e[t.property];return void 0===r?"":D()(parseInt(r)).format("YYYY-MM-DD")},handleSizeChange:function(e){this.pageSize=e,this.getTableData()},handleCurrentChange:function(e){this.currentPage=e,this.getTableData()},getTableData:function(){var e=this,t={},r={page:this.currentPage-1,limit:this.pageSize},a={name:this.form.name1,spell_name:this.form.name2,client_id:this.form.name3,company_id:this.form.company_id,partner_id:this.form.partner_id,country_id:this.form.country_id,min_t:this.form.time[0]?this.form.time[0]:"",max_t:this.form.time[1]?this.form.time[1]:""};t.data=Object.assign({},r,a),t.url=i["a"].order_entry_list,s["a"].req(t,this).then(function(t){e.loading=!1,e.total=parseInt(t.data.count),e.tableData=t.data.order_entry_list},function(t){e.loading=!1})},adapterList:function(e){if(e&&Array.isArray(e)&&0!==e.length){var t=[];e.forEach(function(e){var r={id:e.id,name:e.name,principal:e.principal,mobile:e.phone_code+"-"+e.phone,create_t:e.create_t,address:e.address};t.push(r)}),this.tableData=t}else this.tableData=[]}}},O=W,T=(r("ZyrA"),Object(f["a"])(O,a,o,!1,null,"6dae6ed8",null));t["default"]=T.exports},"1TsA":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},Afnz:function(e,t,r){"use strict";var a=r("LQAc"),o=r("XKFU"),l=r("KroJ"),n=r("Mukb"),i=r("hPIQ"),s=r("QaDb"),c=r("fyDq"),u=r("OP3Y"),f=r("K0xU")("iterator"),p=!([].keys&&"next"in[].keys()),m="@@iterator",d="keys",_="values",h=function(){return this};e.exports=function(e,t,r,y,b,v,g){s(r,t,y);var x,w,k,$=function(e){if(!p&&e in D)return D[e];switch(e){case d:return function(){return new r(this,e)};case _:return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",L=b==_,q=!1,D=e.prototype,W=D[f]||D[m]||b&&D[b],O=W||$(b),T=b?L?$("entries"):O:void 0,F="Array"==t&&D.entries||W;if(F&&(k=u(F.call(new e)),k!==Object.prototype&&k.next&&(c(k,S,!0),a||"function"==typeof k[f]||n(k,f,h))),L&&W&&W.name!==_&&(q=!0,O=function(){return W.call(this)}),a&&!g||!p&&!q&&D[f]||n(D,f,O),i[t]=O,i[S]=h,b)if(x={values:L?O:$(_),keys:v?O:$(d),entries:T},g)for(w in x)w in D||l(D,w,x[w]);else o(o.P+o.F*(p||q),t,x);return x}},FJW5:function(e,t,r){var a=r("hswa"),o=r("y3w9"),l=r("DVgA");e.exports=r("nh4g")?Object.defineProperties:function(e,t){o(e);var r,n=l(t),i=n.length,s=0;while(i>s)a.f(e,r=n[s++],t[r]);return e}},HXMA:function(e,t,r){"use strict";var a=r("ZyjP"),o=r.n(a);o.a},"JSw/":function(e,t,r){"use strict";var a=r("h44D"),o=r.n(a);o.a},Kuth:function(e,t,r){var a=r("y3w9"),o=r("FJW5"),l=r("4R4u"),n=r("YTvA")("IE_PROTO"),i=function(){},s="prototype",c=function(){var e,t=r("Iw71")("iframe"),a=l.length,o="<",n=">";t.style.display="none",r("+rLv").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+n+"document.F=Object"+o+"/script"+n),e.close(),c=e.F;while(a--)delete c[s][l[a]];return c()};e.exports=Object.create||function(e,t){var r;return null!==e?(i[s]=a(e),r=new i,i[s]=null,r[n]=e):r=c(),void 0===t?r:o(r,t)}},OP3Y:function(e,t,r){var a=r("aagx"),o=r("S/j/"),l=r("YTvA")("IE_PROTO"),n=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),a(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?n:null}},QaDb:function(e,t,r){"use strict";var a=r("Kuth"),o=r("RjD/"),l=r("fyDq"),n={};r("Mukb")(n,r("K0xU")("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=a(n,{next:o(1,r)}),l(e,t+" Iterator")}},ZyjP:function(e,t,r){},ZyrA:function(e,t,r){"use strict";var a=r("y38M"),o=r.n(a);o.a},h44D:function(e,t,r){},nGyu:function(e,t,r){var a=r("K0xU")("unscopables"),o=Array.prototype;void 0==o[a]&&r("Mukb")(o,a,{}),e.exports=function(e){o[a][e]=!0}},nl8U:function(e,t,r){},rGqo:function(e,t,r){for(var a=r("yt8O"),o=r("DVgA"),l=r("KroJ"),n=r("dyZX"),i=r("Mukb"),s=r("hPIQ"),c=r("K0xU"),u=c("iterator"),f=c("toStringTag"),p=s.Array,m={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(m),_=0;_<d.length;_++){var h,y=d[_],b=m[y],v=n[y],g=v&&v.prototype;if(g&&(g[u]||i(g,u,p),g[f]||i(g,f,y),s[y]=p,b))for(h in a)g[h]||l(g,h,a[h],!0)}},uVwJ:function(e,t,r){"use strict";var a=r("nl8U"),o=r.n(a);o.a},y38M:function(e,t,r){},yt8O:function(e,t,r){"use strict";var a=r("nGyu"),o=r("1TsA"),l=r("hPIQ"),n=r("aCFj");e.exports=r("Afnz")(Array,"Array",function(e,t){this._t=n(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),l.Arguments=l.Array,a("keys"),a("values"),a("entries")}}]);