1b0fb5cdce311910a20a13ca2ebd2200f8f5752ab52793242ece59d2d7e3d3bacc0931473c72283f03adbe94159def8fa038f5e859cb426d459b3d190c41 50 KB

1
  1. {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-36e0f3b0\"],{\"049b\":function(t,e,n){\"use strict\";n.r(e),n.d(e,\"getTempCustomerData\",(function(){return r})),n.d(e,\"updateCustomerCheckStatus\",(function(){return o})),n.d(e,\"addCustomer\",(function(){return i})),n.d(e,\"getCustomerInfo\",(function(){return u})),n.d(e,\"editCustomer\",(function(){return c})),n.d(e,\"CustomerInitialsSearch\",(function(){return s})),n.d(e,\"getAllCustomer\",(function(){return d})),n.d(e,\"customerExport\",(function(){return l})),n.d(e,\"updateCustomerStatus\",(function(){return f})),n.d(e,\"addCustomerTag\",(function(){return p})),n.d(e,\"delCustomerTag\",(function(){return m})),n.d(e,\"addCustomerContact\",(function(){return h})),n.d(e,\"searchCustomer\",(function(){return g})),n.d(e,\"getCustomerLocation\",(function(){return b})),n.d(e,\"batchEditCustomer\",(function(){return C})),n.d(e,\"addShippingAddress\",(function(){return v})),n.d(e,\"deleteShippingAddress\",(function(){return y})),n.d(e,\"updateShippingAddress\",(function(){return O})),n.d(e,\"getShippingAddressInfo\",(function(){return S})),n.d(e,\"getAllShippingAddress\",(function(){return A})),n.d(e,\"query\",(function(){return j})),n.d(e,\"getAllCustomerCommunication\",(function(){return _})),n.d(e,\"addCustomerCommunication\",(function(){return D})),n.d(e,\"delCustomerCommunication\",(function(){return R})),n.d(e,\"updateCustomerCommunication\",(function(){return F})),n.d(e,\"getAllCustomerTagLib\",(function(){return w})),n.d(e,\"addCustomerTagLib\",(function(){return x})),n.d(e,\"delCustomerTagLib\",(function(){return T})),n.d(e,\"getCustomerTagLibInfo\",(function(){return k})),n.d(e,\"editCustomerTagLib\",(function(){return I})),n.d(e,\"getAllCustomerdemand\",(function(){return P})),n.d(e,\"getCustomerdemandInfo\",(function(){return B})),n.d(e,\"updateCustomerTagLibById\",(function(){return N})),n.d(e,\"searchCustomerBuyLog\",(function(){return M})),n.d(e,\"exportsearchCustomerBuyLog\",(function(){return L})),n.d(e,\"getAllCustomerVisitsLog\",(function(){return z})),n.d(e,\"getAllMemberBalanceDetail\",(function(){return E})),n.d(e,\"getAllCustomerIntegralDesc\",(function(){return $})),n.d(e,\"updateCustomerIntegral\",(function(){return V})),n.d(e,\"noOrderCustomer\",(function(){return q})),n.d(e,\"intervalNoOrderCustomer\",(function(){return U})),n.d(e,\"rechargeMemberBalance\",(function(){return G})),n.d(e,\"recommenderStatic\",(function(){return J})),n.d(e,\"customerImport\",(function(){return Q})),n.d(e,\"getAllDriver\",(function(){return H})),n.d(e,\"delDriver\",(function(){return K})),n.d(e,\"addDriver\",(function(){return W})),n.d(e,\"editDriver\",(function(){return X})),n.d(e,\"getDriverInfo\",(function(){return Y})),n.d(e,\"getAllOpenDriver\",(function(){return Z})),n.d(e,\"getAllCustomerVisit\",(function(){return tt})),n.d(e,\"getCustomerCallOnReportForm\",(function(){return et})),n.d(e,\"getCustomerVisitInfo\",(function(){return nt})),n.d(e,\"getAllDepartment\",(function(){return at})),n.d(e,\"getCustomerNoVisit\",(function(){return rt})),n.d(e,\"getCustomerDistributed\",(function(){return ot})),n.d(e,\"setCustomerType\",(function(){return it})),n.d(e,\"delCustomer\",(function(){return ut}));var a=n(\"b775\");function r(t){return Object(a[\"default\"])({url:\"/Customer/Customer/getTempData\",method:\"get\",data:t})}function o(t){return Object(a[\"default\"])({url:\"/Customer/Customer/updateCustomerCheckStatus\",method:\"post\",data:t})}function i(t){return Object(a[\"default\"])({url:\"/Customer/Customer/addCustomer\",method:\"post\",data:t})}function u(t,e){return Object(a[\"default\"])({url:\"/Customer/Customer/getCustomerInfo/\"+t,method:\"get\",data:e})}function c(t,e){return Object(a[\"default\"])({url:\"/Customer/Customer/editCustomer/\"+t,method:\"post\",data:e})}function s(t){return Object(a[\"default\"])({url:\"/Customer/Customer/initialsSearch\",method:\"post\",data:t})}function d(t){return Object(a[\"default\"])({url:\"/Customer/Customer/getAllCustomer\",method:\"post\",data:t})}function l(t){return Object(a[\"default\"])({url:\"/Customer/Customer/export\",method:\"post\",responseType:\"blob\",data:t})}function f(t){return Object(a[\"default\"])({url:\"/Customer/Customer/updateCustomerStatus\",method:\"post\",data:t})}function p(t){return Object(a[\"default\"])({url:\"/Customer/Customer/addCustomerTag\",method:\"post\",data:t})}function m(t){return Object(a[\"default\"])({url:\"/Customer/Customer/delCustomerTag\",method:\"post\",data:t})}function h(t){return Object(a[\"default\"])({url:\"/Customer/CustomerContact/addCustomerContact\",method:\"post\",data:t})}function g(t){return Object(a[\"default\"])({url:\"/Customer/Customer/search\",method:\"post\",data:t})}function b(t){return Object(a[\"default\"])({url:\"/Customer/Customer/getCustomerLocation\",method:\"post\",data:t})}function C(t){return Object(a[\"default\"])({url:\"/Customer/Customer/batchEditCustomer\",method:\"post\",data:t})}function v(t){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/addShippingAddress\",method:\"post\",data:t})}function y(t,e){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/deleteShippingAddress/\"+t,method:\"delete\",data:e})}function O(t){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/updateShippingAddress\",method:\"put\",data:t})}function S(t,e){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/getShippingAddressInfo/\"+t,method:\"get\",data:e})}function A(t,e){return Object(a[\"default\"])({url:\"/Customer/ShippingAddress/getAllShippingAddress/\"+t,method:\"post\",data:e})}function j(t){return Object(a[\"default\"])({url:\"/Customer/Customer/query\",method:\"post\",data:t})}function _(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getAllCustomerCommunication\",method:\"post\",data:t})}function D(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/addCustomerCommunication\",method:\"post\",data:t})}function R(t,e){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/delCustomerCommunication/\"+t,method:\"delete\",data:e})}function F(t,e){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/updateCustomerCommunication/\"+t,method:\"put\",data:e})}function w(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/getAllCustomerTagLib\",method:\"get\",data:t})}function x(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/addCustomerTagLib\",method:\"post\",data:t})}function T(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/delCustomerTagLib\",method:\"post\",data:t})}function k(t,e){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/getCustomerTagLibInfo/\"+t,method:\"post\",data:e})}function I(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/editCustomerTagLib\",method:\"post\",data:t})}function P(t){return Object(a[\"default\"])({url:\"/Customer/CustomerDemand/getAllCustomerdemand\",method:\"post\",data:t})}function B(t,e){return Object(a[\"default\"])({url:\"/Customer/CustomerDemand/getCustomerdemandInfo/\"+t,method:\"get\",data:e})}function N(t){return Object(a[\"default\"])({url:\"Customer/CustomerTagLib/updateCustomerTagLibById\",method:\"post\",data:t})}function M(t){return Object(a[\"default\"])({url:\"Customer/Customer/searchCustomerBuyLog\",method:\"post\",data:t})}function L(t){return Object(a[\"default\"])({url:\"Customer/Customer/searchCustomerBuyLog\",method:\"post\",responseType:\"blob\",data:t})}function z(t){return Object(a[\"default\"])({url:\"Customer/CustomerVisitsLog/getAllCustomerVisitsLog\",method:\"post\",data:t})}function E(t){return Object(a[\"default\"])({url:\"Customer/MemberBalanceDetail/getAllMemberBalanceDetail\",method:\"post\",data:t})}function $(t){return Object(a[\"default\"])({url:\"Customer/Customer/getAllCustomerIntegralDesc\",method:\"post\",data:t})}function V(t){return Object(a[\"default\"])({url:\"Customer/Customer/updateCustomerIntegral\",method:\"post\",data:t})}function q(t){return Object(a[\"default\"])({url:\"Customer/Customer/noOrderCustomer\",method:\"post\",data:t})}function U(t){return Object(a[\"default\"])({url:\"Customer/Customer/intervalNoOrderCustomer\",method:\"post\",data:t})}function G(t){return Object(a[\"default\"])({url:\"Customer/Customer/rechargeMemberBalance\",method:\"post\",data:t})}function J(t){return Object(a[\"default\"])({url:\"Customer/Customer/recommenderStatic\",method:\"post\",data:t})}function Q(t){return Object(a[\"default\"])({url:\"Customer/Customer/customerImport\",method:\"post\",data:t})}function H(t){return Object(a[\"default\"])({url:\"/System/Driver/getAllDriver\",method:\"put\",data:t})}function K(t,e){return Object(a[\"default\"])({url:\"System/Driver/delDriver/\"+t,method:\"put\",data:e})}function W(t){return Object(a[\"default\"])({url:\"System/Driver/addDriver\",method:\"put\",data:t})}function X(t){return Object(a[\"default\"])({url:\"System/Driver/editDriver\",method:\"put\",data:t})}function Y(t,e){return Object(a[\"default\"])({url:\"System/Driver/getDriverInfo/\"+t,method:\"put\",data:e})}function Z(t){return Object(a[\"default\"])({url:\"System/Driver/getAllOpenDriver\",method:\"post\",data:t})}function tt(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getAllCustomerVisit\",method:\"post\",data:t})}function et(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getCustomerCallOnReportForm\",method:\"post\",data:t})}function nt(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getCustomerVisitInfo\",method:\"post\",data:t})}function at(t){return Object(a[\"default\"])({url:\"Department/Department/getAllDepartment\",method:\"post\",data:t})}function rt(t){return Object(a[\"default\"])({url:\"Customer/CustomerCommunication/getCustomerNoVisit\",method:\"post\",data:t})}function ot(t){return Object(a[\"default\"])({url:\"Customer/Customer/getCustomerDistributed\",method:\"post\",data:t})}function it(t){return Object(a[\"default\"])({url:\"Customer/Customer/setCustomerType\",method:\"post\",data:t})}function ut(t){return Object(a[\"default\"])({url:\"Customer/Customer/delCustomer\",method:\"post\",data:t})}},\"1a08\":function(t,e,n){\"use strict\";n(\"2427\")},2427:function(t,e,n){},3241:function(t,e,n){\"use strict\";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"el-cascader\",{staticStyle:{width:\"150px\"},attrs:{size:t.size,disabled:t.disabled,clearable:t.clearable,filterable:t.filterable,placeholder:t.placeholder,value:t.value,options:t.areaData,props:t.props},on:{\"expand-change\":t.expandChange,change:t.change,clear:t.clear},scopedSlots:t._u([{key:\"default\",fn:function(e){return n(\"div\",{on:{click:t.clickChange}},[t._v(\" \"+t._s(e.data.label)+\" \")])}}])})},r=[],o=n(\"cf0d\"),i=n(\"2934\"),u={name:\"RegionSelectJSON\",model:{prop:\"value\",event:\"change\"},props:{value:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},placeholder:{type:String,default:\"请选择所属区域\"},props:{type:Object,default:()=>({label:\"label\",value:\"value\"})},size:{type:String,default:\"small\"},checkStrictly:{type:Boolean,default:!1}},data(){return{areaData:o,province_list:[],city_list:[],district_list:[],province_code:\"\",city_code:\"\"}},watch:{value(t){this.getRegion()}},async created(){this.props.checkStrictly=this.checkStrictly,this.value.length&&await this.getRegion()},methods:{clickChange(t){t.target.parentElement.parentElement.firstChild.click()},async getRegion(){if(this.value[0]){let t={},e={};const n=this.areaData.find(t=>t.value===parseInt(this.value[0]));n.children&&(t=n.children.find(t=>t.value===parseInt(this.value[1]))),t&&t.children&&(e=t.children.find(t=>t.value===parseInt(this.value[2]))),this.$emit(\"getRegion\",n,t,e)}},async getAllProvince(){const{data:t}=await Object(i[\"getAllProvince\"])();this.province_list=t,this.province_code=t[0].code;const e=this.province_list.map(t=>({...t,children:[]}));this.areaData=e},async getAllCityByProvinceCode(t){const{data:e}=await Object(i[\"getAllCityByProvinceCode\"])(t),n=this.areaData.findIndex(e=>e.code===t);this.areaData[n].children=e.map(t=>({...t,children:[]}))},async getAllAreaByCityCode(t,e){const{data:n}=await Object(i[\"getAllAreaByCityCode\"])(t),a=this.areaData.findIndex(t=>t.code===e),r=this.areaData[a].children.findIndex(e=>e.code===t);this.areaData[a].children[r].children=n},expandChange(t){t[1]||t[0]},change(t){const e=[];if(t[0]&&(e[0]=this.areaData.find(e=>e.value===t[0])),t[1]){const n=this.areaData.find(e=>e.value===t[0]);e[1]=n.children.find(e=>e.value===t[1])}if(t[2]){const n=this.areaData.find(e=>e.value===t[0]),a=n.children.find(e=>e.value===t[1]);e[2]=a.children.find(e=>e.value===t[2])}this.$emit(\"change\",t,e)},clear(){this.$emit(\"clear\")}}},c=u,s=n(\"2877\"),d=Object(s[\"a\"])(c,a,r,!1,null,\"cf2eabb8\",null);e[\"default\"]=d.exports},\"5a11\":function(t,e,n){\"use strict\";n(\"ab0b\")},\"64f1\":function(t,e,n){\"use strict\";n.r(e),n.d(e,\"getStaff\",(function(){return r})),n.d(e,\"updateStaffStaff\",(function(){return o})),n.d(e,\"addStaff\",(function(){return i})),n.d(e,\"deleteStaff\",(function(){return u})),n.d(e,\"updateStaff\",(function(){return c})),n.d(e,\"getAllStaff\",(function(){return s})),n.d(e,\"getStaffInfo\",(function(){return d})),n.d(e,\"updateStaffTargetAndReward\",(function(){return l})),n.d(e,\"getAllStaffRewardDesc\",(function(){return f})),n.d(e,\"addDepartment\",(function(){return p})),n.d(e,\"deleteDepartment\",(function(){return m})),n.d(e,\"updateDepartment\",(function(){return h})),n.d(e,\"getAllDepartment\",(function(){return g})),n.d(e,\"getDepartmentInfo\",(function(){return b})),n.d(e,\"getAllRole\",(function(){return C})),n.d(e,\"getRoleInfo\",(function(){return v})),n.d(e,\"updateRole\",(function(){return y})),n.d(e,\"deleteRole\",(function(){return O})),n.d(e,\"addRole\",(function(){return S})),n.d(e,\"getAllStaffStaff\",(function(){return A}));var a=n(\"b775\");function r(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/getStaffInfo/\"+t,method:\"post\",data:e})}function o(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/updateStaff/\"+t,method:\"post\",data:e})}function i(t){return Object(a[\"default\"])({url:\"/Department/Staff/addStaff\",method:\"post\",data:t})}function u(t){return Object(a[\"default\"])({url:\"/Department/Staff/deleteStaff\",method:\"post\",data:t})}function c(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/updateStaff/\"+t,method:\"put\",data:e})}function s(t){return Object(a[\"default\"])({url:\"/Department/Staff/getAllStaff\",method:\"post\",data:t})}function d(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/getStaffInfo/\"+t,method:\"get\",data:e})}function l(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/updateStaffTargetAndReward/\"+t,method:\"post\",data:e})}function f(t){return Object(a[\"default\"])({url:\"/Department/Staff/getAllStaffRewardDesc\",method:\"post\",data:t})}function p(t){return Object(a[\"default\"])({url:\"/Department/Department/addDepartment\",method:\"post\",data:t})}function m(t,e){return Object(a[\"default\"])({url:\"/Department/Department/deleteDepartment/\"+t,method:\"delete\",data:e})}function h(t,e){return Object(a[\"default\"])({url:\"/Department/Department/updateDepartment/\"+t,method:\"put\",data:e})}function g(t){return Object(a[\"default\"])({url:\"/Department/Department/getAllDepartment\",method:\"post\",data:t})}function b(t,e){return Object(a[\"default\"])({url:\"/Department/Department/getDepartmentInfo/\"+t,method:\"get\",data:e})}function C(t){return Object(a[\"default\"])({url:\"/Department/Role/getAllRole\",method:\"post\",data:t})}function v(t,e){return Object(a[\"default\"])({url:\"/Department/Role/getRoleInfo/\"+t,method:\"get\",data:e})}function y(t,e){return Object(a[\"default\"])({url:\"/Department/Role/updateRole/\"+t,method:\"put\",data:e})}function O(t,e){return Object(a[\"default\"])({url:\"/Department/Role/deleteRole/\"+t,method:\"delete\",data:e})}function S(t){return Object(a[\"default\"])({url:\"/Department/Role/addRole\",method:\"post\",data:t})}function A(t){return Object(a[\"default\"])({url:\"/Department/Staff/getAllStaff\",method:\"post\",data:t})}},\"7a21\":function(t,e,n){\"use strict\";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"el-dialog\",{attrs:{modal:t.modal,title:\"员工列表\",visible:t.isShow,width:\"50%\",\"close-on-press-escape\":!1,\"close-on-click-modal\":!1},on:{close:t.cancel}},[n(\"div\",{staticClass:\"search-wrp\"},[n(\"el-input\",{staticStyle:{width:\"240px\"},attrs:{size:\"small\",clearable:\"\",placeholder:\"请输入名称/手机号\"},on:{clear:t.searchClick},model:{value:t.keywords,callback:function(e){t.keywords=e},expression:\"keywords\"}},[n(\"el-button\",{attrs:{slot:\"append\",type:\"primary\",icon:\"el-icon-search\"},on:{click:t.searchClick},slot:\"append\"})],1),n(\"DepartmentSel\",{staticStyle:{width:\"240px\",display:\"inline-block\",\"margin-left\":\"10px\"},attrs:{clearable:\"\"},on:{change:t.departmentChange},model:{value:t.departmentPidPath,callback:function(e){t.departmentPidPath=e},expression:\"departmentPidPath\"}})],1),n(\"el-table\",{directives:[{name:\"loading\",rawName:\"v-loading\",value:t.loading,expression:\"loading\"}],ref:\"staffRef\",attrs:{data:t.tabelData},on:{\"row-dblclick\":t.dbSelect,\"selection-change\":t.handleSelectionChange}},[t.isCheck?n(\"el-table-column\",{attrs:{type:\"selection\",width:\"55\"}}):t._e(),n(\"el-table-column\",{attrs:{prop:\"staffName\",label:\"姓名\"}}),n(\"el-table-column\",{attrs:{prop:\"departmentName\",label:\"部门\"}}),n(\"el-table-column\",{attrs:{prop:\"mobile\",label:\"手机号\"}}),n(\"el-table-column\",{attrs:{label:\"选择\",width:\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[n(\"el-button\",{attrs:{size:\"mini\",icon:\"el-icon-check\"},on:{click:function(n){return t.dbSelect(e.row)}}})]}}])})],1),n(\"FooterPage\",{attrs:{\"page-size\":t.pre_page,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}},[t.isCheck?n(\"div\",{attrs:{slot:\"btn-div\"},slot:\"btn-div\"},[n(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确认\")]),n(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1):t._e()])],1)},r=[],o=n(\"3c48\"),i=n(\"b53c\"),u=n(\"64f1\"),c=(n(\"d099\"),{name:\"ClientListModal\",components:{FooterPage:o[\"default\"],DepartmentSel:i[\"default\"]},props:{isShow:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},isserch:{type:Boolean,default:!0},modal:{type:Boolean,default:!0}},data(){return{search_data:[],choose_data:[],tabelData:[],pre_page:10,page:1,selectedIndex:null,keywords:\"\",departmentPidPath:[],departmentId:\"\",total:0,loading:!1,pageLayout:\"total, prev, pager, next\",selectedClient:{},row_id:{}}},created(){this.getList()},methods:{async getList(){this.loading=!0;const{data:t,pageTotal:e}=await Object(u[\"getAllStaff\"])({page:this.page,pageSize:this.pre_page,deleteStatus:5,keyword:this.keywords,departmentId:this.departmentId});this.loading=!1;for(let n=0;n<t.length;n++){const e=this.choose_data.find(e=>e.id===t[n].id);e&&this.$nextTick(()=>{t[n]=e,this.$refs.staffRef.toggleRowSelection(t[n],!0)})}this.tabelData=t,this.total=e},searchClick(){this.page=1,this.getList()},dbSelect(t){this.isserch&&(this.$emit(\"confirm\",[{...t}]),this.cancel()),this.row_id=t},departmentChange(t){this.departmentId=t[t.length-1],this.departmentPidPath=t.join(\",\"),this.pageChange(1)},confirm(){this.$emit(\"confirm\",this.choose_data,[{...this.row_id}]),this.cancel()},cancel(){this.$emit(\"cancel\")},pageChange(t){this.page=t,this.getList()},sizeChange(t){this.pre_page=t,this.pageChange(1)},handleSelectionChange(t){this.choose_data.length?this.choose_data=this.$_common.unique(this.choose_data.concat(t),[\"id\"]):this.choose_data=t}}}),s=c,d=(n(\"1a08\"),n(\"2877\")),l=Object(d[\"a\"])(s,a,r,!1,null,\"7909e540\",null);e[\"default\"]=l.exports},ab0b:function(t,e,n){},b53c:function(t,e,n){\"use strict\";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",[n(\"el-cascader\",{style:{width:t.width+\"px\"},attrs:{disabled:t.disabled,clearable:t.clearable,filterable:t.filterable,placeholder:t.placeholder,value:t.value,options:t.Department_data,props:t.props,size:t.size},on:{\"expand-change\":t.expandChange,change:t.change},scopedSlots:t._u([{key:\"default\",fn:function(e){return n(\"div\",{on:{click:t.clickChange}},[t._v(\" \"+t._s(e.data.departmentName)+\" \")])}}])}),t.isShowAdd?n(\"el-button\",{attrs:{type:\"text\",size:\"mini\"},on:{click:t.getAllDepartment}},[t._v(\" 【刷新】 \")]):t._e()],1)},r=[],o=n(\"64f1\"),i={name:\"DepartmentSel\",model:{prop:\"value\",event:\"change\"},props:{value:{type:Array,default:()=>[]},isShowAdd:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:\"请选择部门\"},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},width:{type:[Number,String],default:200},size:{type:String,default:\"small\"}},data(){return{Department_data:[],props:{label:\"departmentName\",value:\"id\",checkStrictly:!0}}},created(){this.getAllDepartment()},methods:{async getAllDepartment(){const t=await Object(o[\"getAllDepartment\"])();this.Department_data=t.data},change(t){this.$emit(\"change\",t)},expandChange(t){this.$emit(\"expandChange\",t)}}},u=i,c=n(\"2877\"),s=Object(c[\"a\"])(u,a,r,!1,null,\"0457a42c\",null);e[\"default\"]=s.exports},d099:function(t,e,n){\"use strict\";n.r(e),n.d(e,\"addFinanceType\",(function(){return r})),n.d(e,\"editFinanceType\",(function(){return o})),n.d(e,\"delFinanceType\",(function(){return i})),n.d(e,\"getAllFinanceType\",(function(){return u})),n.d(e,\"getAllFinanceTypeNoPage\",(function(){return c})),n.d(e,\"updateFinanceTypeStatus\",(function(){return s})),n.d(e,\"updateFinanceTypeDefaultStatus\",(function(){return d})),n.d(e,\"getAllReceive\",(function(){return l})),n.d(e,\"exportGetAllReceive\",(function(){return f})),n.d(e,\"searchAllReceive\",(function(){return p})),n.d(e,\"exportSearchAllReceive\",(function(){return m})),n.d(e,\"getReceiveInfo\",(function(){return h})),n.d(e,\"updateReceiveStatus\",(function(){return g})),n.d(e,\"getReceivedByOrder\",(function(){return b})),n.d(e,\"getAllPay\",(function(){return C})),n.d(e,\"exportGetAllPay\",(function(){return v})),n.d(e,\"searchPay\",(function(){return y})),n.d(e,\"exportSearchPay\",(function(){return O})),n.d(e,\"updatePayStatus\",(function(){return S})),n.d(e,\"getPayInfo\",(function(){return A})),n.d(e,\"addAccount\",(function(){return j})),n.d(e,\"getAllAccount\",(function(){return _})),n.d(e,\"editAccount\",(function(){return D})),n.d(e,\"delAccount\",(function(){return R})),n.d(e,\"updateAccountDefaultStatus\",(function(){return F})),n.d(e,\"updateAccountStatus\",(function(){return w})),n.d(e,\"getAccountInfo\",(function(){return x})),n.d(e,\"getAllAccountDetail\",(function(){return T})),n.d(e,\"addReceived\",(function(){return k})),n.d(e,\"deleteReceived\",(function(){return I})),n.d(e,\"exportsgetAllReceived\",(function(){return P})),n.d(e,\"getAllReceived\",(function(){return B})),n.d(e,\"getReceivedInfo\",(function(){return N})),n.d(e,\"updateReceivedStatus\",(function(){return M})),n.d(e,\"updateReceiptRequisitionStatus\",(function(){return L})),n.d(e,\"getTempReceivedData\",(function(){return z})),n.d(e,\"ReceivedSearch\",(function(){return E})),n.d(e,\"editReceived\",(function(){return $})),n.d(e,\"addPaid\",(function(){return V})),n.d(e,\"searchPaid\",(function(){return q})),n.d(e,\"getAllPaid\",(function(){return U})),n.d(e,\"exportsgetAllPaid\",(function(){return G})),n.d(e,\"getPaidInfo\",(function(){return J})),n.d(e,\"updatePaidStatus\",(function(){return Q})),n.d(e,\"getTempPaidData\",(function(){return H})),n.d(e,\"editPaid\",(function(){return K})),n.d(e,\"getAllCustomerBalance\",(function(){return W})),n.d(e,\"exportgetAllCustomerBalance\",(function(){return X})),n.d(e,\"getAllCustomerBalanceDetail\",(function(){return Y})),n.d(e,\"exportgetAllCustomerBalanceDetail\",(function(){return Z})),n.d(e,\"getAllSupplierBalance\",(function(){return tt})),n.d(e,\"exportGetAllSupplierBalance\",(function(){return et})),n.d(e,\"exportgetAllSupplierBalanceDetail\",(function(){return nt})),n.d(e,\"getAllSupplierBalanceDetail\",(function(){return at})),n.d(e,\"addAccountTransfer\",(function(){return rt})),n.d(e,\"getAccountTransferInfo\",(function(){return ot})),n.d(e,\"editAccountTransfer\",(function(){return it})),n.d(e,\"getAllAccountTransfer\",(function(){return ut})),n.d(e,\"updateAccountTransferStatus\",(function(){return ct})),n.d(e,\"getTempAccountTransferData\",(function(){return st})),n.d(e,\"getTodayStatistics\",(function(){return dt})),n.d(e,\"getAllReceiptRequisition\",(function(){return lt})),n.d(e,\"addReceiptRequisition\",(function(){return ft})),n.d(e,\"editReceiptRequisition\",(function(){return pt})),n.d(e,\"getReceiptRequisitionInfo\",(function(){return mt})),n.d(e,\"getAllAccountType\",(function(){return ht})),n.d(e,\"addAccountType\",(function(){return gt})),n.d(e,\"delAccountType\",(function(){return bt})),n.d(e,\"getAccountTypeInfo\",(function(){return Ct})),n.d(e,\"editAccountType\",(function(){return vt})),n.d(e,\"getAllExpenseSingle\",(function(){return yt})),n.d(e,\"addExpenseSingle\",(function(){return Ot})),n.d(e,\"getExpenseSingleInfo\",(function(){return St})),n.d(e,\"editExpenseSingle\",(function(){return At})),n.d(e,\"delExpenseSingle\",(function(){return jt})),n.d(e,\"updateExpenseStatus\",(function(){return _t})),n.d(e,\"getAllRefund\",(function(){return Dt})),n.d(e,\"addRefund\",(function(){return Rt})),n.d(e,\"getRefundInfo\",(function(){return Ft})),n.d(e,\"editRefund\",(function(){return wt})),n.d(e,\"updateRefundStatus\",(function(){return xt})),n.d(e,\"getAllReceivedOffset\",(function(){return Tt})),n.d(e,\"getAllPaidOffset\",(function(){return kt}));var a=n(\"b775\");function r(t){return Object(a[\"default\"])({url:\"/Finance/FinanceType/addFinanceType\",method:\"post\",data:t})}function o(t,e){return Object(a[\"default\"])({url:\"/Finance/FinanceType/editFinanceType/\"+t,method:\"put\",data:e})}function i(t,e){return Object(a[\"default\"])({url:\"/Finance/FinanceType/delFinanceType/\"+t,method:\"delete\",data:e})}function u(t){return Object(a[\"default\"])({url:\"/Finance/FinanceType/getAllFinanceType\",method:\"post\",data:t})}function c(t,e){return Object(a[\"default\"])({url:\"/Finance/FinanceType/getAllFinanceTypeNoPage/\"+t,method:\"post\",data:e})}function s(t){return Object(a[\"default\"])({url:\"/Finance/FinanceType/updateFinanceTypeStatus\",method:\"post\",data:t})}function d(t){return Object(a[\"default\"])({url:\"/Finance/FinanceType/updateFinanceTypeDefaultStatus\",method:\"post\",data:t})}function l(t){return Object(a[\"default\"])({url:\"/Finance/Receive/getAllReceive\",method:\"post\",data:t})}function f(t){return Object(a[\"default\"])({url:\"/Finance/Receive/getAllReceive\",responseType:\"blob\",method:\"post\",data:t})}function p(t){return Object(a[\"default\"])({url:\"/Finance/Receive/search\",method:\"post\",data:t})}function m(t){return Object(a[\"default\"])({url:\"/Finance/Receive/search\",responseType:\"blob\",method:\"post\",data:t})}function h(t){return Object(a[\"default\"])({url:\"/Finance/Receive/getReceiveInfo\",method:\"post\",data:t})}function g(t){return Object(a[\"default\"])({url:\"/Finance/Receive/updateReceiveStatus\",method:\"post\",data:t})}function b(t){return Object(a[\"default\"])({url:\"/Finance/Received/getReceivedByOrder\",method:\"post\",data:t})}function C(t){return Object(a[\"default\"])({url:\"/Finance/Pay/getAllPay\",method:\"post\",data:t})}function v(t){return Object(a[\"default\"])({url:\"/Finance/Pay/getAllPay\",responseType:\"blob\",method:\"post\",data:t})}function y(t){return Object(a[\"default\"])({url:\"/Finance/Pay/search\",method:\"post\",data:t})}function O(t){return Object(a[\"default\"])({url:\"/Finance/Pay/search\",responseType:\"blob\",method:\"post\",data:t})}function S(t){return Object(a[\"default\"])({url:\"/Finance/Pay/updatePayStatus\",method:\"post\",data:t})}function A(t){return Object(a[\"default\"])({url:\"/Finance/Pay/getPayInfo\",method:\"post\",data:t})}function j(t){return Object(a[\"default\"])({url:\"/Finance/Account/addAccount\",method:\"post\",data:t})}function _(t){return Object(a[\"default\"])({url:\"/Finance/Account/getAllAccount\",method:\"post\",data:t})}function D(t,e){return Object(a[\"default\"])({url:\"/Finance/Account/editAccount/\"+t,method:\"put\",data:e})}function R(t,e){return Object(a[\"default\"])({url:\"/Finance/Account/delAccount/\"+t,method:\"delete\",data:e})}function F(t){return Object(a[\"default\"])({url:\"/Finance/Account/updateAccountDefaultStatus\",method:\"post\",data:t})}function w(t){return Object(a[\"default\"])({url:\"/Finance/Account/updateAccountStatus\",method:\"post\",data:t})}function x(t,e){return Object(a[\"default\"])({url:\"/Finance/Account/getAccountInfo/\"+t,method:\"get\",data:e})}function T(t){return Object(a[\"default\"])({url:\"/Finance/AccountDetail/getAllAccountDetail\",method:\"post\",data:t})}function k(t){return Object(a[\"default\"])({url:\"/Finance/Received/addReceived\",method:\"post\",data:t})}function I(t,e){return Object(a[\"default\"])({url:\"/Finance/Received/deleteReceived/\"+t,method:\"delete\",data:e})}function P(t){return Object(a[\"default\"])({url:\"/Finance/Received/getAllReceived\",method:\"post\",responseType:\"blob\",data:t})}function B(t){return Object(a[\"default\"])({url:\"Finance/Received/getAllReceived\",method:\"post\",data:t})}function N(t){return Object(a[\"default\"])({url:\"/Finance/Received/getReceivedInfo\",method:\"post\",data:t})}function M(t){return Object(a[\"default\"])({url:\"/Finance/Received/updateReceivedStatus\",method:\"post\",data:t})}function L(t){return Object(a[\"default\"])({url:\"Finance/ReceiptRequisition/updateReceiptRequisitionStatus\",method:\"post\",data:t})}function z(t){return Object(a[\"default\"])({url:\"/Finance/Received/getTempReceivedData\",method:\"get\",data:t})}function E(t){return Object(a[\"default\"])({url:\"/Finance/Received/search\",method:\"post\",data:t})}function $(t,e){return Object(a[\"default\"])({url:\"/Finance/Received/editReceived/\"+t,method:\"post\",data:e})}function V(t){return Object(a[\"default\"])({url:\"/Finance/Paid/addPaid\",method:\"post\",data:t})}function q(t){return Object(a[\"default\"])({url:\"/Finance/Paid/search\",method:\"post\",data:t})}function U(t){return Object(a[\"default\"])({url:\"/Finance/Paid/getAllPaid\",method:\"post\",data:t})}function G(t){return Object(a[\"default\"])({url:\"/Finance/Paid/getAllPaid\",method:\"post\",responseType:\"blob\",data:t})}function J(t){return Object(a[\"default\"])({url:\"/Finance/Paid/getPaidInfo\",method:\"post\",data:t})}function Q(t){return Object(a[\"default\"])({url:\"/Finance/Paid/updatePaidStatus\",method:\"post\",data:t})}function H(t){return Object(a[\"default\"])({url:\"/Finance/Paid/getTempPaidData\",method:\"get\",data:t})}function K(t,e){return Object(a[\"default\"])({url:\"/Finance/Paid/editPaid/\"+t,method:\"post\",data:e})}function W(t){return Object(a[\"default\"])({url:\"/Finance/CustomerBalance/getAllCustomerBalance\",method:\"post\",data:t})}function X(t){return Object(a[\"default\"])({url:\"Finance/CustomerBalance/getAllCustomerBalance\",method:\"post\",responseType:\"blob\",data:t})}function Y(t){return Object(a[\"default\"])({url:\"/Finance/CustomerBalanceDetail/getAllCustomerBalanceDetail\",method:\"post\",data:t})}function Z(t){return Object(a[\"default\"])({url:\"/Finance/CustomerBalanceDetail/getAllCustomerBalanceDetail\",method:\"post\",responseType:\"blob\",data:t})}function tt(t){return Object(a[\"default\"])({url:\"/Finance/SupplierBalance/getAllSupplierBalance\",method:\"post\",data:t})}function et(t){return Object(a[\"default\"])({url:\"/Finance/SupplierBalance/getAllSupplierBalance\",method:\"post\",responseType:\"blob\",data:t})}function nt(t){return Object(a[\"default\"])({url:\"/Finance/SupplierBalanceDetail/getAllSupplierBalanceDetail\",method:\"post\",responseType:\"blob\",data:t})}function at(t){return Object(a[\"default\"])({url:\"/Finance/SupplierBalanceDetail/getAllSupplierBalanceDetail\",method:\"post\",data:t})}function rt(t){return Object(a[\"default\"])({url:\"/Finance/AccountTransfer/addAccountTransfer\",method:\"post\",data:t})}function ot(t,e){return Object(a[\"default\"])({url:\"/Finance/AccountTransfer/getAccountTransferInfo/\"+t,method:\"get\",data:e})}function it(t,e){return Object(a[\"default\"])({url:\"/Finance/AccountTransfer/editAccountTransfer/\"+t,method:\"put\",data:e})}function ut(t){return Object(a[\"default\"])({url:\"/Finance/AccountTransfer/getAllAccountTransfer\",method:\"post\",data:t})}function ct(t,e){return Object(a[\"default\"])({url:\"/Finance/AccountTransfer/updateAccountTransferStatus/\"+t,method:\"put\",data:e})}function st(t){return Object(a[\"default\"])({url:\"/Finance/AccountTransfer/getTempAccountTransferData\",method:\"post\",data:t})}function dt(t){return Object(a[\"default\"])({url:\"Finance/Account/getTodayStatistics\",method:\"post\",data:t})}function lt(t){return Object(a[\"default\"])({url:\"Finance/ReceiptRequisition/getAllReceiptRequisition\",method:\"post\",data:t})}function ft(t){return Object(a[\"default\"])({url:\"Finance/ReceiptRequisition/addReceiptRequisition\",method:\"post\",data:t})}function pt(t,e){return Object(a[\"default\"])({url:\"Finance/ReceiptRequisition/editReceiptRequisition/\"+t,method:\"post\",data:e})}function mt(t,e){return Object(a[\"default\"])({url:\"Finance/ReceiptRequisition/getReceiptRequisitionInfo/\"+t,method:\"get\",data:e})}function ht(t){return Object(a[\"default\"])({url:\"Finance/AccountType/getAllAccountType\",method:\"post\",data:t})}function gt(t){return Object(a[\"default\"])({url:\"Finance/AccountType/addAccountType\",method:\"post\",data:t})}function bt(t,e){return Object(a[\"default\"])({url:\"Finance/AccountType/delAccountType/\"+t,method:\"delete\",data:e})}function Ct(t,e){return Object(a[\"default\"])({url:\"Finance/AccountType/getAccountTypeInfo/\"+t,method:\"post\",data:e})}function vt(t){return Object(a[\"default\"])({url:\"Finance/AccountType/editAccountType\",method:\"post\",data:t})}function yt(t){return Object(a[\"default\"])({url:\"Finance/ExpenseSingle/getAllExpenseSingle\",method:\"post\",data:t})}function Ot(t){return Object(a[\"default\"])({url:\"Finance/ExpenseSingle/addExpenseSingle\",method:\"post\",data:t})}function St(t,e){return Object(a[\"default\"])({url:\"Finance/ExpenseSingle/getExpenseSingleInfo/\"+t,method:\"get\",data:e})}function At(t,e){return Object(a[\"default\"])({url:\"Finance/ExpenseSingle/editExpenseSingle/\"+t,method:\"post\",data:e})}function jt(t,e){return Object(a[\"default\"])({url:\"Finance/ExpenseSingle/delExpenseSingle/\"+t,method:\"delete\",data:e})}function _t(t){return Object(a[\"default\"])({url:\"Finance/ExpenseSingle/updateExpenseStatus\",method:\"post\",data:t})}function Dt(t){return Object(a[\"default\"])({url:\"Finance/Refund/getAllRefund\",method:\"post\",data:t})}function Rt(t){return Object(a[\"default\"])({url:\"Finance/Refund/addRefund\",method:\"post\",data:t})}function Ft(t){return Object(a[\"default\"])({url:\"Finance/Refund/getRefundInfo\",method:\"post\",data:t})}function wt(t,e){return Object(a[\"default\"])({url:\"Finance/Refund/editRefund/\"+t,method:\"post\",data:e})}function xt(t){return Object(a[\"default\"])({url:\"Finance/Refund/updateRefundStatus\",method:\"post\",data:t})}function Tt(t){return Object(a[\"default\"])({url:\"Finance/Received/getAllReceivedOffset\",method:\"post\",data:t})}function kt(t){return Object(a[\"default\"])({url:\"Finance/Paid/getAllPaidOffset\",method:\"post\",data:t})}},edb1:function(t,e,n){\"use strict\";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"ContainerQuery\",[n(\"div\",{attrs:{slot:\"more\"},slot:\"more\"},[n(\"el-form\",{attrs:{inline:!0,size:\"small\"}},[n(\"el-form-item\",[n(\"el-input\",{staticStyle:{width:\"220px\"},attrs:{placeholder:\"客户名称\",clearable:\"\"},on:{clear:t.searchData},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.searchData(e)}},model:{value:t.customerName,callback:function(e){t.customerName=e},expression:\"customerName\"}},[n(\"el-button\",{attrs:{slot:\"append\"},on:{click:t.searchData},slot:\"append\"},[n(\"i\",{staticClass:\"el-icon-search\"})])],1)],1),n(\"el-form-item\",[n(\"el-input\",{staticStyle:{width:\"200px\"},attrs:{clearable:!0,placeholder:\"业务员\"},on:{clear:t.clearCurrentUnit},model:{value:t.currentUnit,callback:function(e){t.currentUnit=e},expression:\"currentUnit\"}},[n(\"i\",{staticClass:\"el-input__icon el-icon-search\",attrs:{slot:\"suffix\"},on:{click:function(e){return t.saleFn(!0)}},slot:\"suffix\"})])],1),n(\"el-form-item\",[n(\"RegionSelect\",{staticStyle:{width:\"100%\"},attrs:{clearable:!0,placeholder:\"地区\",\"check-strictly\":!0},on:{change:t.regionChange},model:{value:t.area,callback:function(e){t.area=e},expression:\"area\"}})],1)],1)],1),n(\"el-row\",[n(\"el-col\",{attrs:{span:2}},[n(\"el-container\",{staticStyle:{height:\"730px\",border:\"1px solid #eee\"}},[n(\"el-aside\",{staticStyle:{\"background-color\":\"rgb(238, 241, 246)\",\"padding-top\":\"20px\"},attrs:{width:\"100%\"}},[n(\"div\",{staticStyle:{height:\"70px\",width:\"100%\",position:\"relative\"}},[n(\"span\",{staticStyle:{\"margin-left\":\"10px\"}},[t._v(\"异常分组\")]),n(\"div\",[t.buttonFlag?t._e():n(\"el-button\",{staticStyle:{position:\"absolute\",right:\"10px\",bottom:\"0\"},attrs:{type:\"text\"},on:{click:function(e){t.buttonFlag=!0}}},[t._v(\" 编辑 \")]),t.buttonFlag?n(\"el-button\",{staticStyle:{position:\"absolute\",right:\"60px\",bottom:\"5px\"},attrs:{size:\"mini\"},on:{click:function(e){t.buttonFlag=!1}}},[t._v(\" 取消 \")]):t._e(),t.buttonFlag?n(\"el-button\",{staticStyle:{position:\"absolute\",right:\"0\",bottom:\"5px\"},attrs:{type:\"primary\",size:\"mini\"},on:{click:t.addData}},[t._v(\" 保存 \")]):t._e()],1)]),t.buttonFlag?t._e():n(\"ul\",{staticClass:\"edit-list\"},[n(\"li\",{staticClass:\"item-box-outline\"},[n(\"div\",{staticClass:\"item-box item-box-view\",class:[t.actived2?\"actived\":\"\"],on:{click:function(e){return t.changeMenu(2)}}},[n(\"div\",{staticClass:\"space-block\"}),n(\"div\",{staticClass:\"item-content\"},[n(\"div\",{staticClass:\"title-box\"},[n(\"div\",{staticClass:\"title\"},[t._v(\" 久未订货(\"+t._s(t.analysis_form.intervalDay)+\") \")])])])])]),n(\"li\",{staticClass:\"item-box-outline\"},[n(\"div\",{staticClass:\"item-box item-box-view\",class:[t.actived3?\"actived\":\"\"],on:{click:function(e){return t.changeMenu(3)}}},[n(\"div\",{staticClass:\"space-block\"}),n(\"div\",{staticClass:\"item-content\"},[n(\"div\",{staticClass:\"title-box\"},[n(\"div\",{staticClass:\"title\"},[t._v(\" 新注册未下单(\"+t._s(t.analysis_form.newRegisterOrder)+\") \")])])])])]),n(\"li\",{staticClass:\"item-box-outline\"},[n(\"div\",{staticClass:\"item-box item-box-view\",class:[t.actived4?\"actived\":\"\"],on:{click:function(e){return t.changeMenu(4)}}},[n(\"div\",{staticClass:\"space-block\"}),n(\"div\",{staticClass:\"item-content\"},[n(\"div\",{staticClass:\"title-box\"},[n(\"div\",{staticClass:\"title\"},[t._v(\" 未拜访客户统计(\"+t._s(t.analysis_form.notVisit)+\") \")])])])])])]),t.buttonFlag?n(\"ul\",{staticClass:\"edit-list\"},[n(\"li\",{staticClass:\"item-box-outline\"},[n(\"el-popover\",{attrs:{placement:\"left-end\",trigger:\"hover\"}},[n(\"div\",[t._v(\" 距上次订货 \"),n(\"span\",{staticClass:\"el-icon-arrow-right\"}),n(\"el-input-number\",{staticStyle:{width:\"50px\"},attrs:{controls:!1,min:1},model:{value:t.analysis_form.intervalDay,callback:function(e){t.$set(t.analysis_form,\"intervalDay\",e)},expression:\"analysis_form.intervalDay\"}})],1),n(\"div\",{staticClass:\"item-box item-box-view\",class:[t.actived2?\"actived\":\"\"],attrs:{slot:\"reference\"},on:{click:function(e){return t.changeMenu(2)}},slot:\"reference\"},[n(\"div\",{staticClass:\"space-block\"}),n(\"div\",{staticClass:\"item-content\"},[n(\"div\",{staticClass:\"title-box\"},[n(\"div\",{staticClass:\"title\"},[t._v(\"久未订货\")]),n(\"div\",{staticClass:\"title-explain\"},[t._v(\" 距上次订货 \"),n(\"span\",{staticClass:\"el-icon-arrow-right\"},[t._v(\" \"+t._s(t.analysis_form.intervalDay)+\"天 \")])])])])])])],1),n(\"li\",{staticClass:\"item-box-outline\"},[n(\"el-popover\",{attrs:{placement:\"left-end\",trigger:\"hover\"}},[n(\"div\",[t._v(\" 注册天数 \"),n(\"span\",{staticClass:\"el-icon-arrow-left\"}),n(\"el-input-number\",{staticStyle:{width:\"50px\"},attrs:{controls:!1,min:1},model:{value:t.analysis_form.newRegisterOrder,callback:function(e){t.$set(t.analysis_form,\"newRegisterOrder\",e)},expression:\"analysis_form.newRegisterOrder\"}}),t._v(\" 未下单 \")],1),n(\"div\",{staticClass:\"item-box item-box-view\",class:[t.actived3?\"actived\":\"\"],attrs:{slot:\"reference\"},on:{click:function(e){return t.changeMenu(3)}},slot:\"reference\"},[n(\"div\",{staticClass:\"space-block\"}),n(\"div\",{staticClass:\"item-content\"},[n(\"div\",{staticClass:\"title-box\"},[n(\"div\",{staticClass:\"title\"},[t._v(\"新注册未下单\")]),n(\"div\",{staticClass:\"title-explain\"},[t._v(\" 注册天数 \"),n(\"span\",{staticClass:\"el-icon-arrow-left\"},[t._v(\" \"+t._s(t.analysis_form.newRegisterOrder)+\"天未下单 \")])])])])])])],1),n(\"li\",{staticClass:\"item-box-outline\"},[n(\"el-popover\",{attrs:{placement:\"left-end\",trigger:\"hover\"}},[n(\"div\",[t._v(\" 客户 \"),n(\"span\",{staticClass:\"el-icon-arrow-left\"}),n(\"el-input-number\",{staticStyle:{width:\"50px\"},attrs:{controls:!1,min:1},model:{value:t.analysis_form.notVisit,callback:function(e){t.$set(t.analysis_form,\"notVisit\",e)},expression:\"analysis_form.notVisit\"}}),t._v(\" 未拜访 \")],1),n(\"div\",{staticClass:\"item-box item-box-view\",class:[t.actived4?\"actived\":\"\"],attrs:{slot:\"reference\"},on:{click:function(e){return t.changeMenu(4)}},slot:\"reference\"},[n(\"div\",{staticClass:\"space-block\"}),n(\"div\",{staticClass:\"item-content\"},[n(\"div\",{staticClass:\"title-box\"},[n(\"div\",{staticClass:\"title\"},[t._v(\"客户未拜访统计\")]),n(\"div\",{staticClass:\"title-explain\"},[t._v(\" 客户 \"),n(\"span\",{staticClass:\"el-icon-arrow-left\"},[t._v(\" \"+t._s(t.analysis_form.notVisit)+\"天未拜访 \")])])])])])])],1)]):t._e()])],1)],1),n(\"el-col\",{attrs:{span:22}},[n(\"el-table\",{staticStyle:{width:\"100%\"},attrs:{data:t.tableData}},[n(\"el-table-column\",{attrs:{prop:\"name\",label:\"客户名称\"}}),n(\"el-table-column\",{attrs:{prop:\"code\",label:\"客户编码\"}}),n(\"el-table-column\",{attrs:{prop:\"address\",label:\"客户地区\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.area?n(\"span\",[t._v(\" \"+t._s(e.row.area.provinceName+\" \"+e.row.area.cityName+\" \"+e.row.area.districtName)+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{prop:\"customerType\",label:\"客户类型\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.customerType?n(\"span\",[t._v(\" \"+t._s(e.row.customerType)+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{prop:\"salesManName\",label:\"业务员\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.salesManName?n(\"span\",[t._v(\" \"+t._s(e.row.salesManName)+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{prop:\"province\",label:\"注册天数\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.customerDays?n(\"span\",[t._v(\" \"+t._s(e.row.customerDays)+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{label:\"本年订单金额\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.year?n(\"span\",[t._v(\" \"+t._s(t.$_common.formattedNumber(e.row.year.orderMoney))+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{label:\"本月订单金额\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.thisMonth?n(\"span\",[t._v(\" \"+t._s(t.$_common.formattedNumber(e.row.thisMonth.orderMoney))+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{label:\"上月订单金额\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.lastMonth?n(\"span\",[t._v(\" \"+t._s(t.$_common.formattedNumber(e.row.lastMonth.orderMoney))+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{label:\"本年订单个数\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.year?n(\"span\",[t._v(\" \"+t._s(t.$_common.formatNub(e.row.year.orderNum))+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{label:\"本月订单个数\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.thisMonth?n(\"span\",[t._v(\" \"+t._s(t.$_common.formatNub(e.row.thisMonth.orderNum))+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{label:\"上月订单个数\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.lastMonth?n(\"span\",[t._v(\" \"+t._s(t.$_common.formatNub(e.row.lastMonth.orderNum))+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{label:\"本年拜访次数\",prop:\"yearNum\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.yearNum?n(\"span\",[t._v(\" \"+t._s(e.row.yearNum)+\" \")]):n(\"span\",[t._v(\"-\")])]}}])}),n(\"el-table-column\",{attrs:{width:\"135\",label:\"距上次拜访多少天\",prop:\"customerDays\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.intervalDay?n(\"span\",[t._v(\" \"+t._s(e.row.intervalDay)+\" \")]):n(\"span\",[t._v(\"-\")])]}}])})],1),n(\"FooterPage\",{attrs:{\"page-size\":t.pageSize,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}})],1)],1),t.staff_show?n(\"staffListModal\",{attrs:{\"is-show\":t.staff_show,\"is-check\":!1,isserch:t.isserch},on:{cancel:function(e){t.staff_show=!1},confirm:t.staffSel}}):t._e()],1)},r=[],o=n(\"7a21\"),i=n(\"3241\"),u=n(\"049b\"),c=n(\"d8dd\"),s={components:{staffListModal:o[\"default\"],RegionSelect:i[\"default\"]},data(){return{customerName:\"\",currentUnit:\"\",staff_show:!1,isserch:!0,salesManId:\"\",area:[],provinceCode:\"\",cityCode:\"\",districtCode:\"\",activeName:\"1\",tableData:[],radio1:\"\",on_menu:0,buttonFlag:!1,actived1:!1,actived2:!0,actived3:!1,actived4:!1,actived5:!1,analysis_form:{intervalDay:1,newRegisterOrder:15,notVisit:15},index:\"\",basicData:{},total:0,page:1,pageSize:10}},async created(){await this.getBasicSetup(),await this.changeMenu(2)},async activated(){await this.getBasicSetup(),await this.changeMenu(2)},methods:{changeMenu(t){this.index=t,this.customerName=\"\",this.currentUnit=\"\",this.salesManId=\"\",this.provinceCode=\"\",this.cityCode=\"\",this.districtCode=\"\",this.page=1,this.pageSize=10,this.area=[],1===t?(this.actived1=!0,this.actived2=!1,this.actived3=!1,this.actived4=!1,this.actived5=!1):2===t?(this.actived1=!1,this.actived2=!0,this.actived3=!1,this.actived4=!1,this.actived5=!1,this.intervalNoOrderCustomer()):3===t?(this.actived1=!1,this.actived2=!1,this.actived3=!0,this.actived4=!1,this.actived5=!1,this.noOrderCustomer()):4===t?(this.actived1=!1,this.actived2=!1,this.actived3=!1,this.actived4=!0,this.actived5=!1,this.getCustomerNoVisit()):5===t&&(this.actived1=!1,this.actived2=!1,this.actived3=!1,this.actived4=!1,this.actived5=!0)},searchData(){switch(this.index){case 2:this.intervalNoOrderCustomer();break;case 3:this.noOrderCustomer();break;case 4:this.getCustomerNoVisit()}},saleFn(t){this.staff_show=!0,this.isserch=t},staffSel(t){const e=t[0];this.currentUnit=e.staffName,this.salesManId=e.id,this.searchData()},regionChange(t){this.provinceCode=t[0],this.cityCode=t[1],this.districtCode=t[2],this.searchData()},tabChange(){},async noOrderCustomer(){const{data:t,pageTotal:e}=await Object(u[\"noOrderCustomer\"])({page:this.page,pageSize:this.pageSize,intervalDay:Number(this.analysis_form.newRegisterOrder),customerName:this.customerName,salesManId:this.salesManId,provinceCode:this.provinceCode,cityCode:this.cityCode,districtCode:this.districtCode});this.tableData=t,this.total=e},async addData(){2===this.index&&(await this.intervalNoOrderCustomer(),this.buttonFlag=!1),3===this.index&&(await this.noOrderCustomer(),this.buttonFlag=!1),4===this.index&&(await this.getCustomerNoVisit(),this.buttonFlag=!1);await Object(c[\"setting\"])({basicData:{...this.basicData,analysis_form:this.analysis_form}});this.$message({message:\"提交成功\",type:\"success\"}),await this.getBasicSetup()},async intervalNoOrderCustomer(){const{data:t,pageTotal:e}=await Object(u[\"intervalNoOrderCustomer\"])({page:this.page,pageSize:this.pageSize,intervalDay:Number(this.analysis_form.intervalDay),customerName:this.customerName,salesManId:this.salesManId,provinceCode:this.provinceCode,cityCode:this.cityCode,districtCode:this.districtCode});this.tableData=t,this.total=e},async getBasicSetup(){const{data:t}=await Object(c[\"getBasicSetup\"])();this.basicData=t.basicData,t.basicData.analysis_form?this.analysis_form=t.basicData.analysis_form:this.analysis_form={intervalDay:1,newRegisterOrder:15,notVisit:15}},clearData(){this.customerName=\"\",this.currentUnit=\"\",this.salesManId=\"\",this.provinceCode=\"\",this.cityCode=\"\",this.districtCode=\"\"},clearCurrentUnit(){this.salesManId=\"\",this.searchData()},async getCustomerNoVisit(){const{data:t,pageTotal:e}=await Object(u[\"getCustomerNoVisit\"])({page:this.page,pageSize:this.pageSize,intervalDay:Number(this.analysis_form.notVisit),customerName:this.customerName,staffId:this.salesManId,province:this.provinceCode,city:this.cityCode,district:this.districtCode});this.tableData=t,this.total=e},sizeChange(t){this.pageSize=t,this.pageChange(1)},pageChange(t){this.page=t,this.searchData()}}},d=s,l=(n(\"5a11\"),n(\"2877\")),f=Object(l[\"a\"])(d,a,r,!1,null,\"afe03e48\",null);e[\"default\"]=f.exports}}]);","extractedComments":[]}