You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/static/js/app.75d8c869.js

1 line
702 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"+HqL":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxMUY5QTREQTA1MkYxMUVBOEMwOTg1MDgzQjVBNTc3QSIgeG1wTU06RG9jdW1lb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Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkYyMERBNTE0MTY1MTFFOUE1NjJGRDNDNzJDNTVBN0QiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkYyMERBNTI0MTY1MTFFOUE1NjJGRDNDNzJDNTVBN0QiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7hCk5DAAACAElEQVR42qSV20tUURTGv33GxgtjD0beGtBw8tKLoE/2VxiakC8i5IsYaFAm9qykE/qgIPog2JNKOhH9F0aUPoiNYGJOIEEQNjbmnL7NrMOc2+DkLPjBOXvv9Z211157HXUx0gsfC5JOoYPUkhQ5Ih/JJnkrYw4r8hG7T6ZIxOcjzcJDEiejZMO+yLA9B8hLWRDB5abXvBGfgF+EE+QZ/t8sn1F7hN0eseISqMFxGM+jXBXIR7TbEtS5mXFmKwjj0VOoyF0gVA7cqMzCD+WwWe2pt/yAhO0zqm8YaGjOvJSFYIxFna4HX5COvQYO9+2jt0iPIaXhMFVVm305SwLJ0yx/z4H6OzAGXzCMerdrp2IdHvChzjFcHabDOLd7Heb2FszlGUc6VM8AVNs9mLufYC5O2T2/6girPdn4foT0wiRw+guqpRW4FszOpVIwN1cyO7nd5PasKZJqL/aIHh8i/YpRlpQC564LEZBqM0343ZQEKfc9t58/vGMVN6G6+jN6e9vu2YQW/Ewa3TPGxBKjK8tdecnfMN+vuUe3tGDMKsq87M8ZI9uh2CpwknDPxvQp64zvu2vxCvaNNBhyKE9QuI3o+K27vE6mCxCbFg1H+xojc1cQmxdfTz+8II/lgOJ5CMWlDwyJb86OrZvmO1msu3e7XHwr8R/kF7Du9wv4J8AAdbF+5wQ+l40AAAAASUVORK5CYII="},"+yfX":function(e,t,n){},"/407":function(e,t,n){"use strict";var i={name:"RelatedBusinessCell",props:{type:{type:String,default:""},cellIndex:Number,data:Object,showFoot:{type:Boolean,default:!0},cursorPointer:{type:Boolean,default:!0}},data:function(){return{}},computed:{typeName:function(){return"customer"==this.type?"客户":"contacts"==this.type?"联系人":"business"==this.type?"商机":"contract"==this.type?"合同":""},name:function(){return this.data.name||this.data.business_name||this.data.customer_name||this.data.number}},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{footClick:function(){this.$emit("unbind",this.type,this.cellIndex,this.data)},bodyClick:function(){this.$emit("detail",this.type,this.cellIndex,this.data)}}},a=(n("CoO1"),n("KHd+")),s=Object(a.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("flexbox",{staticClass:"cell"},[n("div",{staticClass:"cell-head"},[n("i",{class:e._f("wkIconPre")(e.type)}),e._v(" "),n("span",[e._v("\n "+e._s("相关"+e.typeName+"-")+"\n ")])]),e._v(" "),n("div",{staticClass:"cell-body text-one-line",class:{"cursor-pointer":e.cursorPointer},on:{click:e.bodyClick}},[e._v("\n "+e._s(e.name)+"\n ")]),e._v(" "),n("div",{staticClass:"cell-foot"},[e.showFoot?n("a",{staticClass:"cancel-btn",on:{click:e.footClick}},[e._v("取消关联")]):e._e()])])},[],!1,null,"6fb99480",null);s.options.__file="index.vue";t.a=s.exports},"/861":function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"i",function(){return s}),n.d(t,"h",function(){return o}),n.d(t,"j",function(){return r}),n.d(t,"a",function(){return c}),n.d(t,"e",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"g",function(){return h});var i=n("t3Un");function a(e){return Object(i.a)({url:"admin/examine_flow/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"admin/examine_flow/stepList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(i.a)({url:"admin/examine_flow/"+(e.flow_id?"update":"save"),method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"admin/examine_flow/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(i.a)({url:"admin/examine_flow/enables",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){var t="revoke"===e.type?"crm/contract/revokeCheck":"crm/contract/check";return Object(i.a)({url:t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){var t="revoke"===e.type?"crm/invoice/revokeCheck":"crm/invoice/check";return Object(i.a)({url:t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){var t="revoke"===e.type?"crm/receivables/revokeCheck":"crm/receivables/check";return Object(i.a)({url:t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i.a)({url:"admin/examine_flow/recordList",method:"post",data:e})}function h(e){return Object(i.a)({url:"admin/examine_flow/stepList",method:"post",data:e})}},"/epS":function(e,t,n){},0:function(e,t){},"0QEV":function(e,t,n){},"0hym":function(e,t,n){"use strict";var i=n("GQeE"),a=n.n(i),s=n("KTTK"),o=n("7Qib"),r=n("0ioL"),c={name:"XhUser",components:{},props:{show:{type:Boolean,default:!0},radio:{type:Boolean,default:!1},selectedData:{type:Array,default:function(){return[]}},infoType:{type:String,default:"default"},infoRequest:Function,infoParams:{type:Object,default:function(){return{}}}},data:function(){return{list:[],selectIds:[],loading:!1,searchInput:"",checkAll:!1,isIndeterminate:!1}},computed:{showList:function(){var e=this;return this.list.filter(function(t){return r.a.match(t.realname||"",e.searchInput)})},max:function(){return this.radio?1:void 0}},watch:{selectedData:function(e){this.show&&this.checkItems(e)},show:function(e){e&&(this.list&&0==this.list.length?this.getUserList():this.checkItems(this.selectedData))}},mounted:function(){this.show&&this.getUserList()},methods:{getUserList:function(){var e=this;this.loading=!0,this.getRequest()(this.getParams()).then(function(t){e.list=t.data.list||t.data,e.checkItems(e.selectedData),e.loading=!1}).catch(function(){e.loading=!1})},getRequest:function(){return this.infoRequest?this.infoRequest:"default"===this.infoType?s.w:"crm_contract"===this.infoType||"crm_invoice"===this.infoType||"crm_receivables"===this.infoType||"oa_examine"===this.infoType?s.w:void 0},getParams:function(){var e=this.infoParams&&a()(0!==this.infoParams.length)?this.infoParams:{};return"default"===this.infoType?(e.status="all",e):"crm_contract"===this.infoType||"crm_invoice"===this.infoType||"crm_receivables"===this.infoType||"oa_examine"===this.infoType?(e.pageType=0,e):void 0},changeCheckout:function(e){this.refreshAllCheck(e.length);for(var t=[],n=0;n<this.list.length;n++){var i=this.list[n];e.includes(i.id)&&t.push(i)}this.$emit("changeCheckout",t,e)},handleCheckAllChange:function(e){this.selectIds=e?this.list.map(function(e){return e.userId}):[],this.isIndeterminate=!1;var t=e?this.list:[];this.$emit("changeCheckout",Object(o.t)(t),this.selectIds)},refreshAllCheck:function(e){this.checkAll=e===this.list.length,this.isIndeterminate=e>0&&e<this.list.length},checkItems:function(e){this.selectIds=e.map(function(e){return e.id}),this.refreshAllCheck(this.selectIds.length)},clearAll:function(){this.selectItems=[],this.$emit("changeCheckout",[],[])}}},l=(n("Le4E"),n("KHd+")),u=Object(l.a)(c,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"xh-user"},[n("div",{staticClass:"xh-user__hd"},[e._v("\n 员工\n ")]),e._v(" "),n("div",{staticClass:"xh-user__bd"},[n("el-input",{staticClass:"search-input",attrs:{placeholder:"搜索成员",size:"small","prefix-icon":"el-icon-search"},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"search-list"},[n("el-checkbox",{staticClass:"all-check",attrs:{indeterminate:e.isIndeterminate,disabled:e.radio},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),n("el-checkbox-group",{ref:"checkboxGroup",attrs:{max:e.max},on:{change:e.changeCheckout},model:{value:e.selectIds,callback:function(t){e.selectIds=t},expression:"selectIds"}},e._l(e.showList,function(t,i){return n("el-checkbox",{key:t.id,staticClass:"colleagues-list",attrs:{label:t.id}},[n("xr-avatar",{staticClass:"user-img",attrs:{name:t.realname,size:24,src:t.img||t.thumb_img}}),e._v(" "),n("span",[e._v(e._s(t.realname))])],1)}))],1)],1),e._v(" "),n("div",{staticClass:"xh-user__ft"},[n("span",{staticClass:"select-info"},[e._v("已选择"),n("span",{staticClass:"select-info--num"},[e._v(e._s(e.selectIds.length))]),e._v("项")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:e.clearAll}},[e._v("清空")])],1)])},[],!1,null,"67b35196",null);u.options.__file="XhUser.vue";t.a=u.exports},"0iCk":function(e,t,n){"use strict";var i=n("IY2h");n.n(i).a},"0iqW":function(e,t,n){"use strict";var i=n("x09X");n.n(i).a},"0pT4":function(e,t,n){},"0vx0":function(e,t,n){"use strict";var i=n("7116");n.n(i).a},1:function(e,t,n){n("201c"),e.exports=n("Vtdi")},"117M":function(e,t,n){"use strict";var i=n("K2OQ");n.n(i).a},"1DpC":function(e,t,n){"use strict";n.d(t,"j",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"a",function(){return o}),n.d(t,"i",function(){return r}),n.d(t,"g",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"k",function(){return h}),n.d(t,"h",function(){return m});var i=n("t3Un");function a(e){var t=e.id?"update":"save";return Object(i.a)({url:"crm/receivables/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"crm/receivables/index",method:"post",data:e})}function o(e){return Object(i.a)({url:"crm/receivables/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"crm/receivables/read",method:"post",data:e})}function c(e){return Object(i.a)({url:"crm/receivables_plan/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(i.a)({url:"admin/file/index",method:"post",data:e})}function u(e){return Object(i.a)({url:"crm/receivables/count",method:"post",data:e})}function d(e){return Object(i.a)({url:"crm/receivables/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob",timeout:6e4})}function p(e){return Object(i.a)({url:"crmReceivables/allExportExcel",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i.a)({url:"crm/receivables/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){var t=e.id?"update":"save";return Object(i.a)({url:"crm/receivables_plan/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},"1KQC":function(e,t,n){"use strict";var i=n("0QEV");n.n(i).a},"1lV3":function(e,t,n){},"1n5n":function(e,t,n){},"1puQ":function(e,t,n){},"21Uy":function(e,t,n){},"2TZz":function(e,t,n){},"2X1c":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return o});var i=n("t3Un");function a(e){return Object(i.a)({url:"work/trash/index",method:"post",data:e})}function s(e){return Object(i.a)({url:"work/trash/delete",method:"post",data:e})}function o(e){return Object(i.a)({url:"work/trash/recover",method:"post",data:e})}},"2n8H":function(e,t,n){},"2nGb":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s});var i=n("t3Un");function a(e){return Object(i.a)({url:"admin/index/sort",method:"post",data:e})}function s(e){return Object(i.a)({url:"admin/index/updatesort",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},"2w4b":function(e,t,n){"use strict";var i=n("kzw0");n.n(i).a},"2y4s":function(e,t,n){},"2yjV":function(e,t,n){},"3iNF":function(e,t,n){"use strict";var i=n("krL/");n.n(i).a},"3qbY":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var i=n("t3Un");function a(e){return Object(i.a)({url:"admin/system/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"admin/system/index",method:"post",data:e})}},"44s6":function(e,t,n){},"45On":function(e,t,n){},"4XAY":function(e,t,n){"use strict";n.d(t,"x",function(){return a}),n.d(t,"y",function(){return s}),n.d(t,"A",function(){return o}),n.d(t,"B",function(){return r}),n.d(t,"z",function(){return c}),n.d(t,"C",function(){return l}),n.d(t,"E",function(){return u}),n.d(t,"D",function(){return d}),n.d(t,"s",function(){return p}),n.d(t,"u",function(){return h}),n.d(t,"t",function(){return m}),n.d(t,"w",function(){return f}),n.d(t,"q",function(){return g}),n.d(t,"r",function(){return v}),n.d(t,"v",function(){return b}),n.d(t,"j",function(){return y}),n.d(t,"n",function(){return k}),n.d(t,"i",function(){return w}),n.d(t,"m",function(){return _}),n.d(t,"h",function(){return C}),n.d(t,"l",function(){return A}),n.d(t,"k",function(){return x}),n.d(t,"g",function(){return j}),n.d(t,"c",function(){return T}),n.d(t,"b",function(){return I}),n.d(t,"d",function(){return D}),n.d(t,"a",function(){return S}),n.d(t,"e",function(){return F}),n.d(t,"p",function(){return O}),n.d(t,"o",function(){return R}),n.d(t,"f",function(){return E}),n.d(t,"F",function(){return U}),n.d(t,"G",function(){return L});var i=n("t3Un");n("ZoMv");function a(e){return Object(i.a)({url:"admin/field/getField",method:"post",data:e})}function s(e){return Object(i.a)({url:"admin/field/getField",method:"post",data:e})}function o(e){return Object(i.a)({url:"admin/field/getField",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){e.label;return Object(i.a)({url:"crm/common/quickEdit",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(i.a)({url:"admin/field/getField",method:"post",data:e})}function l(e){return Object(i.a)({url:"admin/field/validates",method:"post",data:e})}function u(e){return Object(i.a)({url:"admin/index/fields",method:"post",data:e})}function d(e){return Object(i.a)({url:"admin/index/fields",method:"post",data:e})}function p(e){return Object(i.a)({url:"admin/scene/index",method:"post",data:e})}function h(e){return Object(i.a)({url:"admin/scene/index",method:"post",data:e})}function m(e){return Object(i.a)({url:"admin/scene/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i.a)({url:"admin/scene/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(i.a)({url:"admin/scene/defaults",method:"post",data:e})}function v(e){return Object(i.a)({url:"admin/scene/delete",method:"post",data:e})}function b(e){return Object(i.a)({url:"admin/scene/sort",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function y(e){return Object(i.a)({url:"admin/field/configIndex",method:"post",data:e})}function k(e){return Object(i.a)({url:"admin/field/configIndex",method:"post",data:e})}function w(e){return Object(i.a)({url:"admin/field/config",method:"post",data:e})}function _(e){return Object(i.a)({url:"admin/field/config",method:"post",data:e})}function C(e){return Object(i.a)({url:"admin/field/columnWidth",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function A(e){return Object(i.a)({url:"crmField/setPoolFieldStyle",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function x(e){return Object(i.a)({url:"admin/index/fieldRecord",method:"post",data:e})}function j(e){return Object(i.a)({url:"oa/examine/myExamine",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function T(e){return Object(i.a)({url:"crm/activity/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function I(e){return Object(i.a)({url:"crm/activity/delete",method:"post",data:e})}function D(e){return Object(i.a)({url:"crmActivity/deleteOutworkSign",method:"post",data:e})}function S(e){return Object(i.a)({url:"crm/activity/save",method:"post",data:e})}function F(e){return Object(i.a)({url:"crm/activity/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function O(e){return Object(i.a)({url:"admin/index/importNum",method:"post",data:e})}function R(e){return Object(i.a)({url:"admin/index/importInfo",method:"post",data:e})}function E(e){return Object(i.a)({url:"admin/file/download",method:"post",data:e,responseType:"blob"})}function U(e){return Object(i.a)({url:"crm/activity/getPhrase",method:"post",data:e})}function L(e){return Object(i.a)({url:"crm/activity/setPhrase",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},"4yv3":function(e,t,n){},"5lrv":function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("GQeE"),o=n.n(s),r=n("4XAY"),c=n("zhwh"),l=n("gVZb"),u=n("EP+0"),d=n("UGe0"),p=n("8GhS"),h=(n("ZoMv"),n("IEYw")),m=n("7Qib"),f={name:"VisitCreate",components:{XrCreate:l.a,CreateSections:u.a,CrmRelativeCell:p.a,WkForm:d.a},mixins:[h.a],props:{action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{}}},computed:{title:function(){return"update"===this.action.type?"编辑回访":"新建回访"}},watch:{},created:function(){this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_visit",module:"crm",controller:"visit",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.id),Object(r.x)(t).then(function(t){var n=t.data||[],i=[],a={},s={};n.forEach(function(t){var o={};o.field=t.field,o.formType=t.form_type,o.fieldId=t.fieldId,o.inputTips=t.input_tips,o.name=t.name,o.setting=t.setting,o.value=t.value;var r=e.getItemIsCanEdit(t,e.action.type);if(r)if(1==t.autoGeneNumber){o.placeholder="根据编号规则自动生成,支持手动输入";var c=Object(m.t)(t);c.isNull=0,a[o.field]=e.getRules(c)}else a[o.field]=e.getRules(t);if(o.disabled=!r,"contacts"==o.formType||"contract"==o.formType||"customer"==o.formType)if("relative"==e.action.type){var l={customer:{customer:!0},contract:{customer:!0,contract:!0}}[e.action.crmType];l&&(o.disabled=l[t.form_type]||!1)}else"save"==e.action.type&&(o.disabled="contract"===t.form_type||"contacts"===t.form_type);if("relative"==e.action.type||"update"==e.action.type){var u=e.getItemRelatveInfo(n,"customer");u&&("contacts"==t.form_type?(u.moduleType="customer",o.relation=u):"contract"==t.form_type&&(u.moduleType="customer",u.params={check_status:2},o.relation=u))}e.getItemRadio(t,o),s[o.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(o)}),e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loading=!0;var t=this.$refs.crmForm.instance;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var i=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(i.action_id=e.action.id),e.submiteParams(i)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id,e.batchId=this.action.batchId),this.action.relativeData&&o()(this.action.relativeData).length&&(e=a()({},e,this.action.relativeData)),Object(c.e)(e).then(function(e){t.loading=!1,t.$message.success("update"==t.action.type?"编辑成功":"添加成功"),t.close(),t.$emit("save-success",{type:"visit"})}).catch(function(){t.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){var n=this;"customer"===t.formType&&this.fieldList.forEach(function(t){if("contract"===t.formType||"contacts"===t.formType)if(e.value.length>0){t.disabled=!1;var i=e.value[0];i.moduleType="customer",t.relation=i}else t.disabled=!0,t.relation={},n.fieldForm[t.field]=[]}),this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},close:function(){this.$emit("close")}}},g=(n("e1Ry"),n("KHd+")),v=Object(g.a)(f,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[i&&"customer"==i.formType?n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],disabled:i.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e(),e._v(" "),!i||"contract"!=i.formType&&"contacts"!=i.formType?e._e():n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],disabled:i.disabled,relation:i.relation,"relative-type":i.formType},on:{"value-change":function(t){e.otherChange(t,i)}}}),e._v(" "),i&&"product"==i.formType?n("xh-product",{attrs:{value:e.fieldForm[i.field]},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e()]}}])})],1)],1)},[],!1,null,"d0627ab2",null);v.options.__file="Create.vue";t.a=v.exports},"6V3D":function(e,t,n){"use strict";var i=n("rfXi"),a=n.n(i),s=n("KTTK"),o=n("7Qib"),r={name:"DetailImg",components:{},props:{detail:{type:Object,default:function(){return{}}}},data:function(){return{primaryList:[],detailList:[],type:"main",loading:!1}},watch:{detail:{handler:function(e){e&&(this.primaryList=e.mainFile||[],this.detailList=e.detailFile||[])},immediate:!0}},mounted:function(){},methods:{upLoadImg:function(e){this.type=e,"main"===e?this.$refs.primaryImgInput.click():this.$refs.detailImgInput.click()},selectImg:function(e){var t=this;Object(o.g)(e).then(function(n){var i=e.split(".").slice(-1)||"png",a=e.split("/").slice(-1),s={target:{files:[new File([n],a,{type:"image/"+i})]}};t.upLoad(s)})},upLoad:function(e){var t=this,n=a()(e.target.files);"main"===this.type&&n.length+this.primaryList.length>9?(n=n.slice(0,9-this.primaryList.length),this.$message.error("最多只能上传9张图片")):n.length+this.detailList.length>9&&(n=n.slice(0,9-this.detailList.length),this.$message.error("最多只能上传9张图片"));for(var i=0;i<n.length;i++){var o=n[i];this.loading=!0,Object(s.f)({type:"img",file:o}).then(function(e){var n=e.data||{};"main"===t.type?(t.primaryList.push(n),t.loading=!1,t.$emit("change","mainFile",t.primaryList)):(t.detailList.push(n),t.loading=!1,t.$emit("change","detailFile",t.detailList))}).catch(function(){t.loading=!1})}},deleteImg:function(e,t){var n=this,i={};"main"==e?(i.file_id=this.primaryList[t].file_id,i.save_name=this.primaryList[t].save_name):(i.file_id=this.detailList[t].file_id,i.save_name=this.detailList[t].save_name),this.$confirm("此操作将永久删除该图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){n.loading=!0,Object(s.c)(i).then(function(i){n.$message.success("删除成功"),"main"==e?(n.primaryList.splice(t,1),n.$emit("change","mainFile",n.primaryList),n.$emit("delete","mainFile",n.primaryList)):(n.detailList.splice(t,1),n.$emit("change","detailFile",n.detailList),n.$emit("delete","detailFile",n.detailList)),n.loading=!1}).catch(function(){n.loading=!1})}).catch(function(){})},previewImage:function(e,t){this.$bus.emit("preview-image-bus",{index:t,data:e.map(function(e){return e.url=e.path,e})})}}},c=(n("vAiE"),n("KHd+")),l=Object(c.a)(r,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"b-cont"},[n("div",{staticClass:"detail-box"},[n("div",{staticClass:"detail-item"},[n("label",{staticClass:"detail-label"},[e._v(" 产品图片")]),e._v(" "),n("div",{staticClass:"detail"},[n("flexbox",{staticClass:"detail-images"},[e._l(e.primaryList,function(t,i){return n("div",{key:i,staticClass:"show-img"},[n("img",{directives:[{name:"src",rawName:"v-src",value:t.path||t.file_path,expression:"item.path||item.file_path"}],key:t.path}),e._v(" "),n("div",{staticClass:"img-model"},[n("i",{staticClass:"el-icon-zoom-in set-img-zoom",on:{click:function(t){t.stopPropagation(),e.previewImage(e.primaryList,i)}}}),e._v(" "),n("i",{staticClass:"el-icon-delete set-img-delete",on:{click:function(t){t.stopPropagation(),e.deleteImg("main",i)}}})])])}),e._v(" "),e.primaryList.length<9?n("div",{staticClass:"content-cross",on:{click:function(t){e.upLoadImg("main")}}},[n("input",{ref:"primaryImgInput",staticClass:"file-input",attrs:{accept:"image/*",type:"file",multiple:""},on:{change:e.upLoad}}),e._v(" "),n("el-button",{staticClass:"cross",attrs:{type:"text",icon:"el-icon-plus"}})],1):e._e()],2),e._v(" "),n("div",{staticClass:"detail-tip"},[e._v("图片建议上传290 * 220(高) (最多只能上传"),n("span",[e._v(e._s(9-e.primaryList.length))]),e._v("张图片)")])],1)])]),e._v(" "),n("div",{staticClass:"detail-box"},[n("div",{staticClass:"detail-item"},[n("label",{staticClass:"detail-label"},[e._v(" 产品详情图片")]),e._v(" "),n("div",{staticClass:"detail"},[n("flexbox",{staticClass:"detail-images"},[e._l(e.detailList,function(t,i){return n("div",{key:i,staticClass:"show-img"},[n("img",{directives:[{name:"src",rawName:"v-src",value:t.path||t.file_path,expression:"item.path||item.file_path"}],key:t.path,staticClass:"cross-two"}),e._v(" "),n("div",{staticClass:"img-model"},[n("i",{staticClass:"el-icon-zoom-in set-img-zoom",on:{click:function(t){t.stopPropagation(),e.previewImage(e.detailList,i)}}}),e._v(" "),n("i",{staticClass:"el-icon-delete set-img-delete",on:{click:function(t){t.stopPropagation(),e.deleteImg("detail",i)}}})])])}),e._v(" "),e.detailList.length<9?n("div",{staticClass:"content-cross cross-two",on:{click:function(t){e.upLoadImg("detail")}}},[n("input",{ref:"detailImgInput",staticClass:"file-input",attrs:{accept:"image/*",type:"file",multiple:""},on:{change:e.upLoad}}),e._v(" "),n("el-button",{staticClass:"cross",attrs:{type:"text",icon:"el-icon-plus"}})],1):e._e()],2),e._v(" "),n("div",{staticClass:"detail-tip"},[e._v("图片建议上传750(宽) * 600(高)(最多只能上传"),n("span",[e._v(e._s(9-e.primaryList.length))]),e._v("张图片)")])],1)])])])},[],!1,null,"372b4b29",null);l.options.__file="DetailImg.vue";t.a=l.exports},"6VB+":function(e,t,n){"use strict";var i=n("gDS+"),a=n.n(i),s=n("GQeE"),o=n.n(s),r=n("QbLZ"),c=n.n(r),l=n("HHBN"),u=n("EBQf"),d={name:"Repeat",props:{repeatType:{type:Number,default:0},detail:{type:Object,default:function(){return{}}}},data:function(){return{form:{repeatTime:"",repeatRate:"",endType:"1",endTypeConfig:"",repetitionType:0},endDate:"",endCount:"",repeatList:[{label:"从不重复",value:1},{label:"每天",value:2},{label:"每周",value:3},{label:"每月",value:4},{label:"每年",value:5}],timeList:["","","天","周","月","年"],checkedRepeatTime:[],repeatTimeList:[{label:"一",value:"1"},{label:"二",value:"2"},{label:"三",value:"3"},{label:"四",value:"4"},{label:"五",value:"5"},{label:"六",value:"6"},{label:"日",value:"7"}],dayList:[],rules:{repeatRate:[{required:!0,message:"重复频率不能为空",trigger:"blur"}],endTypeConfig:[{required:!0,message:"请输入重复次数或结束日期",trigger:"change"}],repeatTime:[{required:!0,message:"请选择重复时间",trigger:"change"}]}}},watch:{endDate:function(e){this.form.endTypeConfig=e,this.$refs.ruleForm.validateField("endTypeConfig")},endCount:function(e){this.form.endTypeConfig=e,this.$refs.ruleForm.validateField("endTypeConfig")}},mounted:function(){this.dayList=[],this.changeEndDate(1),this.form.repetitionType=this.repeatType,o()(this.detail).length&&(this.form.repetitionType=this.detail.repetitionType,this.form.repeatTime=this.detail.repeatTime||"",this.form.repeatRate=this.detail.repeatRate||"",this.form.endType=this.detail.endType+""||"",2==this.detail.endType?(this.endCount=this.detail.endTypeConfig,this.endDate=""):3==this.detail.endType&&(this.endDate=this.detail.endTypeConfig,this.endCount=""),this.form.endTypeConfig=this.detail.endTypeConfig,1!=this.form.endType&&this.form.endType||(this.form.endTypeConfig=this.detail.endTypeConfig||"useless"));for(var e=1;e<=31;e++)this.dayList.push(e)},methods:{summaryText:function(){return 1===this.form.repetitionType?"从不重复":2===this.form.repetitionType?"每"+this.form.repeatRate+"天":3===this.form.repetitionType?"每"+this.form.repeatRate+"周, 周"+this.checkedRepeatTime.join("、"):4===this.form.repetitionType?"每"+this.form.repeatRate+"月,第"+this.form.repeatTime+"天":5===this.form.repetitionType?"每"+this.form.repeatRate+"年":void 0},changeEndDate:function(e){1==e?(this.form.endTypeConfig="useless",this.endDate="",this.endCount=""):2==e?(this.endDate="",this.form.endTypeConfig=""):3==e&&(this.endCount="",this.form.endTypeConfig=""),this.$refs.ruleForm.validateField("endTypeConfig")},changeRepeat:function(e){this.form={repetitionType:e,repeatTime:"",repeatRate:"",endType:"1",endTypeConfig:""},this.changeEndDate(1)},changeRepeatTime:function(){var e=this;if(this.checkedRepeatTime.length){var t=[];this.repeatTimeList.forEach(function(n){e.checkedRepeatTime.forEach(function(e){n.label===e&&t.push(n.value)})}),this.form.repeatTime=t.join(","),this.$refs.ruleForm.validateField("repeatTime")}else this.form.repeatTime="",this.$refs.ruleForm.validateField("repeatTime")}}},p=(n("Lc3V"),n("KHd+")),h=Object(p.a)(d,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"repeat-box"},[n("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.form,"label-width":"80px","label-position":"left"}},[n("el-form-item",{attrs:{label:"重复"}},[n("el-select",{attrs:{placeholder:"选择重复类型"},on:{change:e.changeRepeat},model:{value:e.form.repetitionType,callback:function(t){e.$set(e.form,"repetitionType",t)},expression:"form.repetitionType"}},e._l(e.repeatList,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),1!=e.form.repetitionType?[n("el-form-item",{staticClass:"form_1",staticStyle:{whiteSpace:"nowrap"},attrs:{label:"重复频率",prop:"repeatRate"}},[n("el-input",{attrs:{type:"number",min:"0",autocomplete:"off"},model:{value:e.form.repeatRate,callback:function(t){e.$set(e.form,"repeatRate",e._n(t))},expression:"form.repeatRate"}}),e._v(" "),n("span",[e._v(e._s(e.timeList[e.form.repetitionType]))])],1),e._v(" "),2!=e.form.repetitionType&&5!=e.form.repetitionType?n("el-form-item",{staticClass:"form_1",attrs:{label:"重复时间",prop:"repeatTime"}},[3==e.form.repetitionType?n("el-checkbox-group",{on:{change:e.changeRepeatTime},model:{value:e.checkedRepeatTime,callback:function(t){e.checkedRepeatTime=t},expression:"checkedRepeatTime"}},e._l(e.repeatTimeList,function(e){return n("el-checkbox",{key:e.value,attrs:{label:e.label,value:e.value}})})):n("el-select",{model:{value:e.form.repeatTime,callback:function(t){e.$set(e.form,"repeatTime",t)},expression:"form.repeatTime"}},e._l(e.dayList,function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})}))],1):e._e(),e._v(" "),n("el-form-item",{staticClass:"form_radio",attrs:{label:"结束",prop:"endTypeConfig"}},[n("el-radio-group",{on:{change:e.changeEndDate},model:{value:e.form.endType,callback:function(t){e.$set(e.form,"endType",t)},expression:"form.endType"}},[n("el-radio",{attrs:{label:"1"}},[e._v("从不")]),e._v(" "),n("el-radio",{attrs:{label:"2"}},[e._v("重复\n "),n("el-input",{staticClass:"radio_input",attrs:{disabled:!(2==e.form.endType),type:"number"},model:{value:e.endCount,callback:function(t){e.endCount=t},expression:"endCount"}}),e._v(" 次以后\n ")],1),e._v(" "),n("el-radio",{attrs:{label:"3"}},[n("span",{staticClass:"date_span"},[e._v(" 结束日期")]),e._v(" "),n("el-date-picker",{staticClass:"form_date",attrs:{disabled:!(3==e.form.endType),"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:e.endDate,callback:function(t){e.endDate=t},expression:"endDate"}})],1)],1)],1)]:e._e(),e._v(" "),n("el-form-item",{staticClass:"form_bottom",attrs:{label:"摘要"}},[n("div",{staticClass:"bottom-text",domProps:{textContent:e._s(e.summaryText())}})])],2)],1)},[],!1,null,"57ba8d50",null);h.options.__file="Repeat.vue";var m=h.exports,f=n("L2JU"),g=n("mXRo"),v={components:{XhUserCell:l.a,RelatedBusiness:u.a,Repeat:m},props:{showCreate:{type:Boolean,default:!1},title:{type:String,default:"新增日程"},selectDiv:{type:String,default:""},colorList:{type:Array,default:function(){return[]}},cusCheck:{type:Array,default:function(){return[]}},todayDetailData:{type:Object,default:function(){return{}}},editAll:{type:Boolean,default:!0}},data:function(){return{visible:!1,showRepeat:!1,repeatForm:{},form:{title:"",schedule_id:"",owner_user_ids:0,repetitionType:1,start_time:"",end_time:""},notice:[{value:5,type:1}],allData:{},businessRelation:{},colorItem:"",choseMore:!1,checkedUser:[],repeatList:[{label:"从不重复",value:1}],timeList:["",[5,10,15,20,25,30,35,40,45,50,55],[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]],rules:{title:[{required:!0,message:"日程内容不能为空",trigger:"blur"}],schedule_id:[{required:!0,message:"请选择日程类型",trigger:"change"}],start_time:[{required:!0,message:"请选择开始时间",trigger:"blur"}],end_time:[{required:!0,message:"请选择结束时间",trigger:"blur"}],owner_user_ids:[{required:!0,message:"请选择参与人",trigger:"change"}]},disabled:!1,pickerOptions:{disabledDate:function(e){return e.getTime()<=Date.now()-864e5}}}},computed:c()({},Object(f.b)(["userInfo"])),watch:{showCreate:function(e){this.visible=e,e&&(this.form={title:"",schedule_id:"",owner_user_ids:"",repetitionType:1,start_time:"",end_time:""},this.notice=[{value:5,type:1}],this.checkedUser=[{id:this.userInfo.id,realname:this.userInfo.realname}],this.form.owner_user_ids=[this.userInfo.id],this.selectDiv?(this.form.start_time=this.selectDiv+" 08:00:00",this.changeStartTime(this.form.start_time)):this.form.start_time="",this.allData={},this.getDetail(),this.choseMore=!1)},allData:{handler:function(e){var t=this;o()(e).forEach(function(e){var n=[];(t.allData[e]||[]).forEach(function(t){n.push(t[e+"_id"])}),t.businessRelation[e+"_ids"]=n})},deep:!0}},mounted:function(){},methods:{beforeClose:function(e){this.showRepeat?this.showRepeat=!1:(this.$refs.ruleForm.resetFields(),this.$emit("close"),e())},getDetail:function(){var e=this;if(0!==o()(this.todayDetailData).length)this.form={title:this.todayDetailData.title,schedule_id:this.todayDetailData.type_id||this.todayDetailData.schedule_id,owner_user_ids:this.todayDetailData.owner_user_info,repetitionType:this.todayDetailData.repetitionType||"",start_time:this.todayDetailData.start_time||"",end_time:this.todayDetailData.end_time||"",event_id:this.todayDetailData.event_id},this.allData={customer:(this.todayDetailData.customerList||[]).map(function(e){return e.id&&(e.customerId=e.id),e}),contacts:(this.todayDetailData.contactsList||[]).map(function(e){return e.id&&(e.contactsId=e.id),e}),contract:(this.todayDetailData.contractList||[]).map(function(e){return e.id&&(e.contractId=e.id),e}),business:(this.todayDetailData.businessList||[]).map(function(e){return e.id&&(e.businessId=e.id),e})},this.notice=this.todayDetailData.notice,this.form.repeatTime=this.todayDetailData.repeatTime,this.form.repeatRate=this.todayDetailData.repeatRate,this.form.endTypeConfig=this.todayDetailData.endTypeConfig,this.form.endType=this.todayDetailData.endType||"",this.checkedUser=this.todayDetailData.owner_user_info,this.cusCheck.forEach(function(t){t.type_id!==e.form.schedule_id||(e.colorItem=t.color)});else{var t=[];this.cusCheck.forEach(function(e){2===e.type&&t.push(e)}),this.colorItem=t[0].color,this.form.schedule_id=t[0].type_id,this.businessRelation={}}},changeType:function(e){this.colorItem=e.color},selectUser:function(e){this.checkedUser=[],this.checkedUser=e.value,e.value.length?this.form.owner_user_ids=e.value.map(function(e){return e.id}):this.form.owner_user_ids=""},checkInfos:function(e,t){var n=this;this.allData=t,o()(e).forEach(function(t){n.businessRelation[t]=e[t].length?e[t]:""}),this.businessRelation=JSON.parse(a()(this.businessRelation))},unbindRelatedInfo:function(e,t,n){var i=this;this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){var t=JSON.parse(a()(i.allData));t[e].splice(n,1),i.allData=t}).catch(function(){i.$message.info("已取消操作")})},selectRepeat:function(e){this.showRepeat=!0},cancle:function(){this.showRepeat?(this.showRepeat=!1,this.repeatForm={},this.form.repetitionType=1,this.$refs.repeat.$refs.ruleForm.resetFields()):(this.form={},this.$refs.ruleForm.resetFields(),this.$emit("close"))},sure:function(){var e=this;this.showRepeat?(this.repeatForm=this.$refs.repeat.form,this.$refs.repeat.$refs.ruleForm.validate(function(t){if(!t)return!1;e.$refs.repeat.endDate?e.repeatForm.endTypeConfig=e.$refs.repeat.endDate:e.repeatForm.endTypeConfig=e.$refs.repeat.endCount,e.form=c()({},e.form,e.repeatForm),e.showRepeat=!1})):this.$refs.ruleForm.validate(function(t){if(!t)return!1;e.createSchedule()})},createSchedule:function(){var e=this,t={};this.disabled=!0,t=c()({},this.form,{owner_user_ids:"number"==typeof this.form.owner_user_ids[0]?this.form.owner_user_ids:this.form.owner_user_ids.map(function(e){return e.id})});var n=function(n){t[n+"_ids"]=e.allData[n].map(function(e){return e[n+"_id"]||e[n+"_id"]})};for(var i in this.allData)n(i);var a=o()(this.todayDetailData).length,s=this.getRequest();t.notice=this.notice,a&&(t.time=new Date(this.todayDetailData.start_time).getTime(),this.editAll?t.type=3:(t.type=2,t.event.repetitionType=1)),s(t).then(function(t){e.$message.success("新建或编辑日程成功"),e.disabled=!1,e.$emit("createSuccess")}).catch(function(){e.disabled=!1})},getRequest:function(){return o()(this.todayDetailData).length?g.n:g.h},addNewNotice:function(){this.notice.push({value:5,type:1})},deleteNotice:function(e){this.notice.splice(e,1)},changeTimeType:function(e,t){this.notice[t].value=1==e?5:1},changeStartTime:function(e){this.form.end_time="";var t=new Date(e).getTime();this.pickerOptions={disabledDate:function(e){return e.getTime()<=t-864e5}}}}},b=(n("n0pr"),Object(p.a)(v,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:e.visible,"close-on-click-modal":!1,"before-close":e.beforeClose,title:e.title,"append-to-body":"",width:"580px"},on:{"update:visible":function(t){e.visible=t}}},[e.showRepeat?n("repeat",{ref:"repeat",attrs:{detail:e.todayDetailData,"repeat-type":e.form.repetitionType,"margin-left":"80px"}}):n("div",[n("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,"label-position":"left"}},[n("el-form-item",{attrs:{prop:"title",label:"日程内容"}},[n("el-input",{staticStyle:{width:"430px"},attrs:{maxlength:"100",placeholder:"请输入日程内容","show-word-limit":""},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"日程类型",prop:"schedule_id"}},[n("div",{staticClass:"color_change"},[n("span",{staticClass:"custom_left",style:{backgroundColor:e.colorItem}})]),e._v(" "),n("el-select",{staticClass:"select_color",attrs:{placeholder:"选择日程类型"},model:{value:e.form.schedule_id,callback:function(t){e.$set(e.form,"schedule_id",t)},expression:"form.schedule_id"}},e._l(e.cusCheck,function(t){return 2==t.type?n("el-option",{key:t.schedule_id,attrs:{value:t.schedule_id,label:t.name},nativeOn:{click:function(n){e.changeType(t)}}},[n("span",{staticClass:"custom_left",style:{backgroundColor:t.color}}),e._v(" "),n("span",{staticClass:"custom_right"},[e._v(e._s(t.name))])]):e._e()}))],1),e._v(" "),n("el-form-item",{attrs:{label:"开始时间",prop:"start_time"}},[n("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime","default-time":"09:00:00",placeholder:"选择日期"},on:{change:e.changeStartTime},model:{value:e.form.start_time,callback:function(t){e.$set(e.form,"start_time",t)},expression:"form.start_time"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"结束时间",prop:"end_time"}},[n("el-date-picker",{attrs:{"picker-options":e.pickerOptions,type:"datetime","default-time":"09:00:00","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},model:{value:e.form.end_time,callback:function(t){e.$set(e.form,"end_time",t)},expression:"form.end_time"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"参与人员",prop:"owner_user_ids"}},[n("xh-user-cell",{attrs:{value:e.checkedUser,radio:!1},on:{"value-change":e.selectUser}})],1),e._v(" "),e.choseMore?e._e():n("el-form-item",{staticStyle:{"margin-top":"-10px"}},[n("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"text"},on:{click:function(t){e.choseMore=!0}}},[e._v("添加更多选项")])],1),e._v(" "),e.choseMore?[e._l(e.notice,function(t,i){return[n("el-form-item",{key:i,attrs:{label:"提前"}},[n("el-select",{staticClass:"time_select",attrs:{placeholder:"选择时间"},model:{value:e.notice[i].value,callback:function(t){e.$set(e.notice[i],"value",t)},expression:"notice[index].value"}},e._l(e.timeList[e.notice[i].type||1],function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),e._v(" "),n("el-select",{staticClass:"time_select",on:{change:function(t){e.changeTimeType(e.notice[i].type,i)}},model:{value:e.notice[i].type,callback:function(t){e.$set(e.notice[i],"type",t)},expression:"notice[index].type"}},[n("el-option",{attrs:{value:1,label:"分钟"}}),e._v(" "),n("el-option",{attrs:{value:2,label:"小时"}}),e._v(" "),n("el-option",{attrs:{value:3,label:"天"}})],1),e._v(" "),0!=i?n("el-button",{attrs:{icon:"el-icon-delete",type:"text"},on:{click:function(t){e.deleteNotice(i)}}}):e._e()],1)]}),e._v(" "),n("div",{staticClass:"new_notice",on:{click:e.addNewNotice}},[e._v("+ 添加新提醒")]),e._v(" "),n("el-form-item",{attrs:{label:"相关信息"}},[n("related-business",{attrs:{"is-task":!0,"all-data":e.allData,"show-foot":"","margin-left":"80px"},on:{unbind:e.unbindRelatedInfo,checkInfos:e.checkInfos}})],1)]:e._e(),e._v(" "),e.choseMore?n("el-form-item",{staticStyle:{"margin-top":"-10px"}},[n("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"text"},on:{click:function(t){e.choseMore=!1}}},[e._v("隐藏更多选项")])],1):e._e()],2)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{disabled:e.disabled,type:"primary"},on:{click:e.sure}},[e._v("确 定")]),e._v(" "),n("el-button",{on:{click:e.cancle}},[e._v("取 消")])],1)],1)],1)},[],!1,null,"a0c9da28",null));b.options.__file="CreateEvent.vue";t.a=b.exports},"6b7q":function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},"6cK+":function(e,t,n){},"6iAj":function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"f",function(){return o}),n.d(t,"d",function(){return r}),n.d(t,"e",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"s",function(){return u}),n.d(t,"u",function(){return d}),n.d(t,"v",function(){return p}),n.d(t,"w",function(){return h}),n.d(t,"t",function(){return m}),n.d(t,"K",function(){return f}),n.d(t,"L",function(){return g}),n.d(t,"J",function(){return v}),n.d(t,"l",function(){return b}),n.d(t,"i",function(){return y}),n.d(t,"j",function(){return k}),n.d(t,"k",function(){return w}),n.d(t,"g",function(){return _}),n.d(t,"h",function(){return C}),n.d(t,"r",function(){return A}),n.d(t,"q",function(){return x}),n.d(t,"m",function(){return j}),n.d(t,"o",function(){return T}),n.d(t,"p",function(){return I}),n.d(t,"n",function(){return D}),n.d(t,"M",function(){return S}),n.d(t,"N",function(){return F}),n.d(t,"O",function(){return O}),n.d(t,"P",function(){return R}),n.d(t,"H",function(){return E}),n.d(t,"G",function(){return U}),n.d(t,"x",function(){return L}),n.d(t,"I",function(){return M}),n.d(t,"z",function(){return N}),n.d(t,"C",function(){return V}),n.d(t,"B",function(){return B}),n.d(t,"y",function(){return Z}),n.d(t,"F",function(){return Y}),n.d(t,"D",function(){return G}),n.d(t,"E",function(){return W}),n.d(t,"A",function(){return P});var i=n("t3Un");function a(e){return Object(i.a)({url:"crm/business_status/type",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"crm/business_status/save",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function o(e){return Object(i.a)({url:"crm/business_status/enables",method:"post",data:e})}function r(e){return Object(i.a)({url:"crm/business_status/read",method:"post",data:e})}function c(e){return Object(i.a)({url:"crm/business_status/update",method:"post",data:e})}function l(e){return Object(i.a)({url:"crm/business_status/delete",method:"post",data:e})}function u(e){return Object(i.a)({url:"admin/field/update",method:"post",data:e})}function d(e){return Object(i.a)({url:"admin/field/read",method:"post",data:e})}function p(e){return Object(i.a)({url:"admin/field/read",method:"post",data:e})}function h(e){return Object(i.a)({url:"admin/field/update",method:"post",data:e})}function m(e){return Object(i.a)({url:"admin/field/index",method:"post",data:e})}function f(e){return Object(i.a)({url:"crm/product_category/index",method:"post",data:e})}function g(e){var t=e.id?"update":"save";return Object(i.a)({url:"crm/product_category/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i.a)({url:"crm/product_category/delete",method:"post",data:e})}function b(e){return Object(i.a)({url:"crm/setting/configData",method:"post",data:e})}function y(e){return Object(i.a)({url:"crm/achievement/index",method:"post",data:e})}function k(e){return Object(i.a)({url:"crm/achievement/indexForuser",method:"post",data:e})}function w(e){return Object(i.a)({url:"crm/achievement/update",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function _(e){return Object(i.a)({url:"crm/achievement/save",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function C(e){return Object(i.a)({url:"crm/achievement/delete",method:"post",data:e})}function A(e){return Object(i.a)({url:"crm/setting/recordList",method:"post",data:e})}function x(e){return Object(i.a)({url:"crm/setting/recordEdit",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function j(e){return Object(i.a)({url:"crm/setting/contractDay",method:"post",data:e})}function T(e){return Object(i.a)({url:"crm/setting/customerConfigList",method:"post",data:e})}function I(e){return Object(i.a)({url:"crm/setting/customerConfigSave",method:"post",data:e})}function D(e){return Object(i.a)({url:"crm/setting/customerConfigDel",method:"post",data:e})}function S(e){return Object(i.a)({url:"crm/setting/getVisitDay",method:"post",data:e})}function F(e){return Object(i.a)({url:"crm/setting/setVisitDay",method:"post",data:e})}function O(e){return Object(i.a)({url:"crm/setting/numberSequenceList",method:"post",data:e})}function R(e){return Object(i.a)({url:"crm/setting/setNumber",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function E(e){return Object(i.a)({url:"admin/printing/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function U(e){return Object(i.a)({url:"crmPrint/queryPrintTemplateById",method:"post",data:e})}function L(e){return Object(i.a)({url:"admin/printing/create",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function M(e){return Object(i.a)({url:"admin/printing/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function N(e){return Object(i.a)({url:"admin/printing/delete",method:"post",data:e})}function V(e){return Object(i.a)({url:"admin/printing/field",method:"post",data:e})}function B(e){return Object(i.a)({url:"crmPrint/print",method:"post",data:e})}function Z(e){return Object(i.a)({url:"admin/printing/copy",method:"post",data:e})}function Y(e){return Object(i.a)({url:"crmPrint/savePrintRecord",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function G(e){return Object(i.a)({url:"crmPrint/queryPrintRecord",method:"post",data:e})}function W(e){return Object(i.a)({url:"crmPrint/queryPrintRecordById",method:"post",data:e})}function P(e){return Object(i.a)({url:"crmPrint/preview",method:"post",data:e})}},"6pZM":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG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A60HMiB6sVZYoMKzc1QxaDS2xia8WEBfxZaBazGVgUABBgAnqU8Wz9MmZkAAAAASUVORK5CYII="},"6tmM":function(e,t,n){},"7/dk":function(e,t,n){},7116:function(e,t,n){},"7AXb":function(e,t,n){"use strict";var i=n("0ioL"),a=n("gSIQ"),s=n("7Qib"),o={name:"WkUser",components:{},props:{radio:Boolean,headerShow:{type:Boolean,default:!0},options:Array,value:Array,props:{type:Object,default:function(){return{value:"id",label:"realname"}}},max:Number,disabled:{type:Boolean,default:!1}},data:function(){return{dataValue:[],searchInput:"",checkAll:!1,isIndeterminate:!1}},computed:{showOptions:function(){var e=this;return this.options.filter(function(t){return i.a.match(t[e.props.label],e.searchInput)})}},watch:{value:function(){if(this.options&&!this.radio){var e=this.options.filter(function(e){return!e.isHide}).length;this.value.length==e&&(this.value.length>0||e>0)?this.checkAll=!0:this.checkAll=!1,this.isIndeterminate=!(this.checkAll||!this.value.length)}Object(a.valueEquals)(this.value,this.dataValue)||(this.dataValue=Object(s.t)(this.value))}},created:function(){this.dataValue=Object(s.t)(this.value||[])},methods:{checkboxChange:function(e){this.radio?(this.$emit("input",e.length?[e[e.length-1]]:[]),this.$emit("close")):this.$emit("input",e),this.$emit("change",e)},handleCheckAllChange:function(e){var t=this;if(e){var n=[];this.options.forEach(function(e){e.isHide||n.push(e[t.props.value])}),this.$emit("input",n)}else this.$emit("input",[])},clearAll:function(){this.$emit("input",[])}}},r=(n("8HRM"),n("KHd+")),c=Object(r.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"xh-user"},[e.headerShow?n("div",{staticClass:"xh-user__hd"},[e._v("\n 员工\n ")]):e._e(),e._v(" "),n("div",{staticClass:"xh-user__bd"},[n("el-input",{staticClass:"search-input",attrs:{disabled:e.disabled,placeholder:"搜索成员",size:"small","prefix-icon":"el-icon-search"},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),n("div",{staticClass:"search-list"},[n("el-checkbox",{staticClass:"all-check",attrs:{indeterminate:e.isIndeterminate,disabled:e.radio||e.disabled},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),n("el-checkbox-group",{ref:"checkboxGroup",attrs:{max:e.max,disabled:e.disabled},on:{change:e.checkboxChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}},e._l(e.showOptions,function(t,i){return n("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!t.isHide,expression:"!item.isHide"}],key:i,staticClass:"colleagues-list",attrs:{label:t[e.props.value]}},[n("xr-avatar",{staticClass:"user-img",attrs:{name:t[e.props.label],size:24,src:t.img||t.thumb_img}}),e._v(" "),n("span",[e._v(e._s(t[e.props.label]))])],1)}))],1)],1),e._v(" "),n("div",{staticClass:"xh-user__ft"},[n("span",{staticClass:"select-info"},[e._v("已选择"),n("span",{staticClass:"select-info--num"},[e._v(e._s(e.value?e.value.length:0))]),e._v("项")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:e.clearAll}},[e._v("清空")])],1)])},[],!1,null,"463a29c8",null);c.options.__file="WkUser.vue";t.a=c.exports},"7Dod":function(e,t,n){"use strict";n.d(t,"F",function(){return o}),n.d(t,"k",function(){return r}),n.d(t,"c",function(){return c}),n.d(t,"t",function(){return l}),n.d(t,"p",function(){return u}),n.d(t,"u",function(){return d}),n.d(t,"D",function(){return p}),n.d(t,"n",function(){return h}),n.d(t,"w",function(){return m}),n.d(t,"M",function(){return f}),n.d(t,"g",function(){return g}),n.d(t,"f",function(){return v}),n.d(t,"h",function(){return b}),n.d(t,"s",function(){return y}),n.d(t,"e",function(){return k}),n.d(t,"r",function(){return w}),n.d(t,"q",function(){return _}),n.d(t,"v",function(){return C}),n.d(t,"d",function(){return A}),n.d(t,"E",function(){return x}),n.d(t,"y",function(){return j}),n.d(t,"C",function(){return T}),n.d(t,"x",function(){return I}),n.d(t,"z",function(){return D}),n.d(t,"B",function(){return S}),n.d(t,"A",function(){return F}),n.d(t,"J",function(){return O}),n.d(t,"I",function(){return R}),n.d(t,"L",function(){return E}),n.d(t,"N",function(){return U}),n.d(t,"i",function(){return L}),n.d(t,"H",function(){return M}),n.d(t,"b",function(){return N}),n.d(t,"G",function(){return V}),n.d(t,"a",function(){return B}),n.d(t,"j",function(){return Z}),n.d(t,"o",function(){return Y}),n.d(t,"K",function(){return G}),n.d(t,"l",function(){return W}),n.d(t,"m",function(){return P}),n.d(t,"O",function(){return Q}),n.d(t,"P",function(){return z});var i=n("GQeE"),a=n.n(i),s=n("t3Un");function o(e){var t=e.id&&e.name?"update":"save";return Object(s.a)({url:"crm/customer/"+t,method:"post",data:e})}function r(e){return Object(s.a)({url:"crm/customer/index",method:"post",data:e})}function c(e){return Object(s.a)({url:"crm/customer/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(s.a)({url:"crm/customer/pool",method:"post",data:e})}function u(e){return Object(s.a)({url:"crm/customer/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(s.a)({url:"crmCustomerPool/queryPoolNameListByAuth",method:"post",data:e})}function p(e){return Object(s.a)({url:"crm/customer/read",method:"post",data:e})}function h(e){return Object(s.a)({url:"crm/customer/lock",method:"post",data:e})}function m(e){return Object(s.a)({url:"crm/customer/putInPool",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(s.a)({url:"crm/customer/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(s.a)({url:"crm/customer/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function v(e){return Object(s.a)({url:"crm/customer/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){var t=new FormData;return a()(e).forEach(function(n){t.append(n,e[n])}),Object(s.a)({url:"crm/customer/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function y(e){var t=new FormData;return a()(e).forEach(function(n){t.append(n,e[n])}),Object(s.a)({url:"crmCustomerPool/uploadExcel",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}window.BASE_URL;function k(e){return Object(s.a)({url:"crm/customer/excelDownload",method:"get",data:e,responseType:"blob"})}function w(e){return Object(s.a)({url:"crm/customer/poolExcelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob",timeout:6e4})}function _(e){return Object(s.a)({url:"crm/customer/poolExcelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function C(e){return Object(s.a)({url:"crm/customer/poolAuthority",method:"post",data:e})}function A(e){return Object(s.a)({url:"crm/customer/distribute",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function x(e){return Object(s.a)({url:"crm/customer/receive",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function j(e){return Object(s.a)({url:"crm/contacts/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function T(e){return Object(s.a)({url:"crm/visit/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function I(e){return Object(s.a)({url:"crm/business/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function D(e){return Object(s.a)({url:"crm/contract/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function S(e){return Object(s.a)({url:"crm/receivables_plan/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function F(e){return Object(s.a)({url:"crm/receivables/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function O(e){return Object(s.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function R(e){return Object(s.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function E(e){return Object(s.a)({url:"crm/setting/team",method:"post",data:e})}function U(e){return Object(s.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function L(e){return Object(s.a)({url:"crm/setting/quitTeam",method:"post",data:e})}function M(e){return Object(s.a)({url:"crm/message/allDeal",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function N(e){return Object(s.a)({url:"crm/customer/deal_status",method:"post",data:e})}function V(e){return Object(s.a)({url:"crm/contacts/setPrimary",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function B(e){return Object(s.a)({url:"crm/index/queryRepeat",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function Z(e){return Object(s.a)({url:"admin/file/index",method:"post",data:e})}function Y(e){return Object(s.a)({url:"crm/customer/count",method:"post",data:e})}function G(e){e.crmTyep;return Object(s.a)({url:"crm/customer/star",method:"post",data:e})}function W(e){return Object(s.a)({url:"crm/invoice/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function P(e){return Object(s.a)({url:"crm/invoiceInfo/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function Q(e){return Object(s.a)({url:"crm/setting/config",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function z(e){return Object(s.a)({url:"crm/setting/configData",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},"7Qib":function(e,t,n){"use strict";(function(e){n.d(t,"r",function(){return v}),n.d(t,"h",function(){return b}),n.d(t,"q",function(){return y}),n.d(t,"t",function(){return k}),n.d(t,"o",function(){return w}),n.d(t,"a",function(){return _}),n.d(t,"A",function(){return C}),n.d(t,"n",function(){return A}),n.d(t,"z",function(){return x}),n.d(t,"x",function(){return T}),n.d(t,"w",function(){return I}),n.d(t,"v",function(){return D}),n.d(t,"b",function(){return S}),n.d(t,"u",function(){return F}),n.d(t,"j",function(){return O}),n.d(t,"m",function(){return R}),n.d(t,"y",function(){return E}),n.d(t,"k",function(){return U}),n.d(t,"p",function(){return L}),n.d(t,"d",function(){return M}),n.d(t,"s",function(){return N}),n.d(t,"i",function(){return V}),n.d(t,"c",function(){return B}),n.d(t,"e",function(){return Z}),n.d(t,"f",function(){return Y}),n.d(t,"l",function(){return G}),n.d(t,"g",function(){return W});var i=n("4d7F"),a=n.n(i),s=n("EJiy"),o=n.n(s),r=n("UShQ"),c=n("XJYT"),l=n("wd/R"),u=n.n(l),d=n("KTTK"),p=n("tbm1"),h=n("EUZL"),m=n.n(h),f=n("Iab2"),g=n.n(f);function v(e){if(e){var t=e.split(" ");return t.length>0?t[0]:""}return e}function b(e){if("string"==typeof e)return e;if(null==e||""==e)return"0 Bytes";var t,n=parseFloat(e);t=Math.floor(Math.log(n)/Math.log(1024));var i=n/Math.pow(1024,t);return(i=i.toFixed(2))+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}function y(){return r.PopupManager.nextZIndex()}function k(e){if("object"===(void 0===e?"undefined":o()(e))){var t=e instanceof Array?[]:{};for(var n in e)e[n]?t[n]="object"===o()(e[n])?k(e[n]):e[n]:t[n]=e[n];return t}return e}function w(e){if(-1!==e.type.indexOf("image"))return A("png");if(-1!==e.type.indexOf("audio"))return A("mp3");if(-1!==e.type.indexOf("video"))return A("mp4");var t=e.name.lastIndexOf(".");return A(e.name.substr(t+1)||"")}function _(e){var t=e?e.split("."):[];return t.length>0?t[t.length-1]:"",!1}function C(e,t){window.open(WKConfig.getLocationOrigin()+"/file/preview?url="+e+"?fullfilename="+(t||""))}function A(e){var t=j(e);return t?{image:n("kVVo"),tif:n("a/1z"),video:n("s5fA"),audio:n("Bg4r"),excel:n("vbWX"),word:n("qRjM"),archive:n("K2es"),pdf:n("+HqL"),ppt:n("qu7a"),text:n("9H1A")}[t]:n("eU/g")}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"excel",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!0;if(e){var a=e.lastIndexOf(".");j(e.substr(a+1)||"")!=t&&(i=!1)}else i=!1;return!i&&n&&Object(c.Message)({message:"请选择正确的文件类型",type:"error"}),i}function j(e){if(e){if(e=e.toLowerCase(),["jpg","png","jpeg","bmp","ico","gif"].includes(e))return"image";if("psd"===e)return"psd";if("tif"===e)return"tif";if(["mp4","m2v","mkv","rmvb","wmv","avi","flv","mov","3gp"].includes(e))return"video";if(["mp3","wma","wav"].includes(e))return"audio";if(["xlsx","xls"].includes(e))return"excel";if(["doc","docx"].includes(e))return"word";if(["rar","zip","7z","tar","iso","dmg"].includes(e))return"archive";if("pdf"===e)return"pdf";if(["ppt","pptx"].includes(e))return"ppt";if(["txt","text"].includes(e))return"text"}return""}function T(e){return!!/^([-+]?\d{1,15})(\.\d{0,4})?$/.test(e)}function I(e){return!!/^([-+]?\d{1,15})(\.\d{0,2})?$/.test(e)}function D(e){return!!/^(\+?0?\d{2,4}\-?)?\d{6,11}$/.test(e)}var S=/^1\d{10}$/;function F(e){return!!/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(e)}function O(e){var t=u()(e),n=u()(),i=n.diff(t,"seconds");return i<30?"刚刚":i<3600?Math.ceil(i/60)+"分钟前":i<86400?Math.ceil(i/3600)+"小时前":i<172800?"1天前":t.format("YYYY")==n.format("YYYY")?t.format("MM月DD日"):t.format("YY年MM月DD日")}function R(e){var t=0;return t=13===e.length?parseInt(e):1e3*parseInt(e),new Date(t)}function E(e,t){return e&&e.toString().length>=10?u()(R(e.toString())).format(t):""}function U(e){if(e&&e.length>0){var t=u()(e).valueOf().toString();return t.length>10?t.substr(0,10):t}return""}function L(e){return new a.a(function(t,n){(-1!==e.indexOf("adminFile/down/")?p.a:d.l)({path:e}).then(function(e){var n=new Blob([e.data],{type:""}),i=new FileReader;i.readAsDataURL(n),i.onload=function(e){t({blob:n,src:e.target.result})}}).catch(function(){n()})})}function M(e){Object(d.k)({save_name:e.save_name}).then(function(t){Z(new Blob([t.data],{type:""}),e.name||"文件")}).catch(function(){})}function N(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+e()+e()+e()+e()+e()+e()}function V(e,t){var n=void 0,i=void 0;try{n=e.toString().split(".")[1].length}catch(e){n=0}try{i=t.toString().split(".")[1].length}catch(e){i=0}var a=Math.pow(10,Math.max(n,i));return Math.round(e*a+t*a)/a}function B(e){var t=e.headers["content-disposition"].split("filename=")[1];t||(t=e.headers["content-disposition"].split("UTF-8''")[1]),t=t?t.replace(/\"/g,""):"file.xlsx",t=decodeURI(t)||"",Z(e.data,t,"application/vnd.ms-excel;charset=utf-8")}function Z(e,t,n){var i=new Blob([e],{type:n||""}),a=document.createElement("a"),s=window.URL.createObjectURL(i);a.href=s,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(s)}function Y(e,t){var n=document.querySelector(".el-table__fixed"),i=void 0;n?(i=m.a.utils.table_to_book(document.getElementById(t).removeChild(n)),document.getElementById(t).appendChild(n)):i=m.a.utils.table_to_book(document.getElementById(t));var a=m.a.write(i,{bookType:"xlsx",bookSST:!1,type:"binary"});g.a.saveAs(new Blob([function(e){var t,n;if("undefined"!=typeof ArrayBuffer){t=new ArrayBuffer(e.length);var i=new Uint8Array(t);for(n=0;n!==e.length;n++)i[n]=255&e.charCodeAt(n);return t}for(t=new Array(e.length),n=0;n!==e.length;++n)t[n]=255&e.charCodeAt(n);return t}(a)],{type:"application/octet-stream;charset=utf-8"}),e)}function G(){return e.BMap?e.BMap._preloader?e.BMap._preloader:a.a.resolve(e.BMap):(e.BMap={},e.BMap._preloader=new a.a(function(t,n){e._initBaiduMap=function(){t(e.BMap),e.document.body.removeChild(i),e.BMap._preloader=null,e._initBaiduMap=null};var i=document.createElement("script");e.document.body.appendChild(i),i.src="https://api.map.baidu.com/api?v=3.0&ak="+WKConfig.baiduKey+"&callback=_initBaiduMap"}),e.BMap._preloader)}function W(e){return new a.a(function(t,n){var i=new XMLHttpRequest;i.open("get",e,!0),i.responseType="blob",i.onload=function(){200==this.status?t(this.response):n()},i.send()})}}).call(this,n("yLpj"))},"7j8g":function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("GQeE"),o=n.n(s),r=n("4XAY"),c=n("Y4Le"),l=n("gVZb"),u=n("EP+0"),d=n("UGe0"),p=n("8GhS"),h=n("6V3D"),m=(n("ZoMv"),n("IEYw")),f={name:"ProductCreate",components:{XrCreate:l.a,CreateSections:u.a,XhProuctCate:p.j,DetailImg:h.a,WkForm:d.a},mixins:[m.a],props:{action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{},imageData:{mainFile:[],detailFile:[]}}},computed:{title:function(){return"update"===this.action.type?"编辑产品":"新建产品"}},watch:{"action.editDetail":function(e){e&&(this.imageData={mainFile:e.cover_images||[],detailFile:e.details_images||[]})}},created:function(){this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_product",module:"crm",controller:"product",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.id),Object(r.x)(t).then(function(t){var n=t.data||[],i=[],a={},s={};n.forEach(function(t){var n={};n.field=t.field,n.formType=t.form_type,n.fieldId=t.fieldId,n.inputTips=t.input_tips,n.name=t.name,n.setting=t.setting,n.value=t.value;var o=e.getItemIsCanEdit(t,e.action.type);o&&(a[n.field]=e.getRules(t)),n.disabled=!o,e.getItemRadio(t,n),s[n.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(n)}),e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm.instance;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var i=e.getSubmiteParams(e.baseFields,e.fieldForm);i.cover_images=e.imageData.mainFile?e.imageData.mainFile.map(function(e){return e.file_id}).join(","):"",i.details_images=e.imageData.detailFile?e.imageData.detailFile.map(function(e){return e.file_id}).join(","):"",e.submiteParams(i)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id,e.batchId=this.action.batchId),this.action.relativeData&&o()(this.action.relativeData).length&&(e=a()({},e,this.action.relativeData)),Object(c.k)(e).then(function(e){t.loading=!1,t.$message.success("update"==t.action.type?"编辑成功":"添加成功"),t.close(),t.$emit("save-success",{type:"product"})}).catch(function(){t.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},detailImgChange:function(e,t){"mainFile"===e?this.imageData.mainFileList=t:"detailFile"===e&&(this.imageData.detailFileList=t)},deleteImg:function(e,t){"mainFile"===e?this.action.editDetail.mainFileList=t:"detailFile"===e&&(this.action.editDetail.detailFileList=t)},close:function(){this.$emit("close")}}},g=(n("wcMZ"),n("KHd+")),v=Object(g.a)(f,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[i&&"category"==i.formType?n("xh-prouct-cate",{attrs:{value:e.fieldForm[i.field]},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e()]}}])})],1),e._v(" "),n("create-sections",{attrs:{title:"图片信息"}},[n("detail-img",{attrs:{detail:e.imageData},on:{change:e.detailImgChange,delete:e.deleteImg}})],1)],1)},[],!1,null,"2cbba438",null);v.options.__file="Create.vue";t.a=v.exports},"7jNW":function(e,t,n){},"7qmR":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"m",function(){return o}),n.d(t,"j",function(){return r}),n.d(t,"k",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"l",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"i",function(){return p}),n.d(t,"h",function(){return h}),n.d(t,"g",function(){return m}),n.d(t,"f",function(){return f}),n.d(t,"e",function(){return g});var i=n("t3Un");function a(e){return Object(i.a)({url:"oa/examine/categoryList",method:"post",data:e})}function s(e){return Object(i.a)({url:"oaExamineCategory/saveOrUpdateOaExamineSort",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(i.a)({url:"oa/examine/"+(e.id?"update":"save"),method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"oa/examine/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(i.a)({url:"oa/examine/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(i.a)({url:"oa/examine/delete",method:"post",data:e})}function u(e){return Object(i.a)({url:"oa/examine/read",method:"post",data:e})}function d(e){return Object(i.a)({url:"admin/examine_flow/stepList",method:"post",data:e})}function p(e){return Object(i.a)({url:"admin/field/getField",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i.a)({url:"admin/examine_flow/stepList",method:"post",data:e})}function m(e){return Object(i.a)({url:"admin/examine_flow/recordList",method:"post",data:e})}function f(e){var t="revoke"===e.type?"oa/examine/revokeCheck":"oa/examine/check";return Object(i.a)({url:t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(i.a)({url:"oa/examine/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}},"82NB":function(e,t,n){"use strict";var i=n("6XTx"),a={name:"WkSelectDropdown",componentName:"WkSelectDropdown",mixins:[n.n(i).a],props:{placement:{type:String,default:"bottom-start"},boundariesPadding:{type:Number,default:0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}},visibleArrow:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:"300px"}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{},mounted:function(){var e=this;this.referenceElm=this.$parent.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){e.$parent.visible&&e.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},s=n("KHd+"),o=Object(s.a)(a,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)},[],!1,null,null,null);o.options.__file="SelectDropdown.vue";t.a=o.exports},"87ek":function(e,t,n){"use strict";var i=n("twbI");n.n(i).a},"8GhS":function(e,t,n){"use strict";var i={data:function(){return{dataValue:""}},watch:{value:function(e){this.dataValue=e}},props:{value:{type:[String,Number],default:""},index:Number,item:Object,disabled:{type:Boolean,default:!1}},mounted:function(){this.dataValue=this.value},methods:{valueChange:function(e){this.$emit("value-change",{index:this.index,value:e})}}},a={name:"XhInput",components:{},mixins:[i],props:{},data:function(){return{}},computed:{type:function(){var e=this.item&&this.item.data?this.item.data:this.item;return this.item&&"password"==e.formType?e.formType:!this.item||"floatnumber"!=e.formType&&"number"!=e.formType?"text":"number"},inputLimitType:function(){var e=this.item&&this.item.data?this.item.data:this.item;return this.item&&"number"==e.formType?"number":null},isAutoNumber:function(){var e=this.item&&this.item.data?this.item.data:this.item;return!(!this.item||!e.autoGeneNumber)&&1==e.autoGeneNumber},placeholder:function(){return this.isAutoNumber?"根据编号规则自动生成,支持手动输入":""}},watch:{},mounted:function(){},methods:{}},s=(n("b7Nu"),n("KHd+")),o=Object(s.a)(a,function(){var e=this,t=e.$createElement,n=e._self._c||t;return"number"==e.type?n("el-input",{directives:[{name:"wk-number",rawName:"v-wk-number",value:e.inputLimitType,expression:"inputLimitType"}],attrs:{type:e.type,disabled:e.disabled,maxlength:100},on:{input:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}}):n("el-input",{attrs:{type:e.type,disabled:e.disabled,maxlength:100,placeholder:e.placeholder},on:{input:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}})},[],!1,null,"40edf7c6",null);o.options.__file="XhInput.vue";var r=o.exports,c={name:"XhTextarea",components:{},mixins:[i],props:{},data:function(){return{}},computed:{},watch:{},mounted:function(){},methods:{}},l=(n("llf0"),Object(s.a)(c,function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-input",{attrs:{autosize:{minRows:3},maxlength:800,disabled:e.disabled,type:"textarea",resize:"none","show-word-limit":""},on:{input:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}})},[],!1,null,"3f86fbf9",null));l.options.__file="XhTextarea.vue";var u=l.exports,d={name:"XhSelect",components:{},mixins:[i],props:{clearable:{type:Boolean,default:!0}},data:function(){return{option:[]}},computed:{},watch:{item:{handler:function(e){if(e&&(e.setting||e.data.setting)){var t=(e.setting?e:e.data).setting;if(t.length>0&&"string"==typeof t[0]){for(var n=[],i=0;i<t.length;i++){var a=t[i];n.push({name:a,value:a})}this.option=n}else t.length>0&&t[0].statusId&&!t[0].value?this.option=t.map(function(e,t,n){return e.value=e.statusId,e}):this.option=t}else this.option=[]},deep:!0,immediate:!0}},mounted:function(){},methods:{}},p=(n("PIPd"),Object(s.a)(d,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,clearable:e.clearable},on:{change:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}},e._l(e.option,function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.value}})}))},[],!1,null,"6721f740",null));p.options.__file="XhSelect.vue";var h=p.exports,m=n("EOKR"),f={name:"XhMultipleSelect",components:{},mixins:[m.a],props:{},data:function(){return{}},computed:{option:function(){var e=[];if(this.item&&this.item.data.setting)for(var t=0;t<this.item.data.setting.length;t++){var n=this.item.data.setting[t];e.push({value:n})}return e}},watch:{},mounted:function(){},methods:{}},g=(n("VBDL"),Object(s.a)(f,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,multiple:"",clearable:""},on:{change:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}},e._l(e.option,function(e){return n("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})}))},[],!1,null,"629a9a27",null));g.options.__file="XhMultipleSelect.vue";var v=g.exports,b={name:"XhInput",components:{},mixins:[i],props:{},data:function(){return{}},computed:{},watch:{},mounted:function(){},methods:{}},y=(n("YCv6"),Object(s.a)(b,function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}})},[],!1,null,"2b9e79de",null));y.options.__file="XhDate.vue";var k=y.exports,w=n("7Qib"),_=n("wd/R"),C=n.n(_),A={name:"XhInput",components:{},mixins:[i],props:{value:{type:String,default:""}},data:function(){return{}},computed:{},watch:{},mounted:function(){this.value&&10==this.value.toString().length&&(this.dataValue=C()(Object(w.m)(this.value)).format("YYYY-MM-DD HH:mm:ss"))},methods:{}},x=(n("NO/o"),Object(s.a)(A,function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,clearable:"",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},on:{change:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}})},[],!1,null,"46f9b2b3",null));x.options.__file="XhDateTime.vue";var j=x.exports,T=n("0hym"),I=n("HHBN"),D=n("UCfG"),S=n("KTTK"),F={name:"XhFiles",components:{},filters:{fileName:function(e){return(e.name&&e.name.length>10?e.name.substring(0,10)+"...":e.name)+"("+Object(w.h)(e.size)+")"}},mixins:[m.a],props:{},data:function(){return{batchId:""}},computed:{},watch:{dataValue:{handler:function(){!this.batchId&&this.dataValue&&this.dataValue.length&&(this.batchId=this.dataValue[0].batchId)},immediate:!0}},mounted:function(){},methods:{selectImage:function(){var e=this;this.disabled||this.$wkFile.select().then(function(t){e.xhUploadFile(t)})},xhUploadFile:function(e){var t=this,n=e.target.files,i=n[0];this.sendFileRequest(i,function(){for(var i=1;i<n.length;i++){var a=n[i];t.sendFileRequest(a)}e.target.value=""})},sendFileRequest:function(e,t){var n=this;this.$wkUploadFile.upload({file:e,params:{batchId:this.batchId,type:"file"}}).then(function(e){var i=e.res.data||{};""==n.batchId&&(n.batchId=i.batchId),i.size=Object(w.h)(i.size),n.dataValue.push(i),n.$emit("value-change",{index:n.index,value:n.dataValue}),t&&t()}).catch(function(){})},deleteFile:function(e,t){var n=this;this.$confirm("您确定要删除该文件吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(S.c)({id:e.file_id,module:"",save_name:e.save_name}).then(function(e){n.dataValue.splice(t,1),n.$emit("value-change",{index:n.index,value:n.dataValue}),n.$message.success("操作成功")}).catch(function(){})}).catch(function(){})}}},O=(n("PrJF"),Object(s.a)(F,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"xh-files-cont xh-form-border",class:[e.disabled?"is_disabled":"is_valid"]},[n("flexbox",{staticClass:"f-header",class:[e.disabled?"is_disabled":"is_valid"],nativeOn:{click:function(t){return e.selectImage(t)}}},[e.disabled?e._e():n("i",{staticClass:"wukong wukong-file f-logo"}),e._v(" "),n("div",{staticClass:"f-name"},[e._v("附件")])]),e._v(" "),n("div",{staticClass:"f-body"},e._l(e.dataValue,function(t,i){return n("flexbox",{key:i,staticClass:"f-item"},[n("i",{staticClass:"wukong wukong-file f-img"}),e._v(" "),n("div",{staticClass:"f-name"},[e._v(e._s(e._f("fileName")(t)))]),e._v(" "),e.disabled?e._e():n("div",{staticClass:"close-button",on:{click:function(n){e.deleteFile(t,i)}}},[e._v("×")])])}))],1)},[],!1,null,"38f40944",null));O.options.__file="XhFiles.vue";var R=O.exports,E=n("mkuN"),U={name:"CrmRelativeCell",components:{CrmRelative:E.a},mixins:[m.a],props:{relation:{type:Object,default:function(){return{}}},relativeType:String},data:function(){return{showPopover:!1,showSelectView:!1,radio:!0,relationAction:{type:"default"}}},computed:{isRelationShow:function(){return this.item&&this.item.data&&this.item.data.relation_id},selectedData:function(){var e={};return e[this.crmType]=this.dataValue,e},crmType:function(){return this.relativeType?this.relativeType:this.item.data.formType}},watch:{relation:function(e){e.moduleType?this.relationAction={type:"condition",data:e}:this.relationAction={type:"default"}}},mounted:function(){this.relation&&this.relation.moduleType?this.relationAction={type:"condition",data:this.relation}:this.relationAction={type:"default"}},methods:{checkInfos:function(e){this.dataValue=e.data?e.data:[],this.$emit("value-change",{index:this.index,value:e.data})},deleteinfo:function(e){this.disabled||(this.radio&&this.$refs.crmrelative&&this.$refs.crmrelative.clearAll(),1===this.dataValue.length?this.dataValue=[]:this.dataValue.splice(e,1),this.$emit("value-change",{index:this.index,value:this.dataValue}))},contentClick:function(){this.showSelectView=!0},getShowName:function(e){return"receivables"===this.crmType?e.number||e.name:"customer"===this.crmType?e.customer_name||e.name:"business"===this.crmType?e.business_name||e.name:"contract"===this.crmType?e.contractNum||e.num:e.name}}},L=(n("B9fj"),Object(s.a)(U,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",{attrs:{disabled:e.disabled,placement:"right-end",width:"700","popper-class":"no-padding-popover",trigger:"click"},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[!e.disabled&&e.showSelectView?n("crm-relative",{ref:"crmrelative",attrs:{"crm-type":e.crmType,action:e.relationAction,"selected-data":e.selectedData},on:{close:function(t){e.showPopover=!1},changeCheckout:e.checkInfos}}):e._e(),e._v(" "),n("flexbox",{staticClass:"user-container xh-form-border",class:[e.disabled?"is_disabled":"is_valid"],attrs:{slot:"reference",wrap:"wrap"},nativeOn:{click:function(t){return e.contentClick(t)}},slot:"reference"},[e._l(e.dataValue,function(t,i){return n("div",{key:i,staticClass:"user-item",on:{click:function(t){t.stopPropagation(),e.deleteinfo(i)}}},[e._v(e._s(e.getShowName(t))+"\n "),n("i",{staticClass:"delete-icon el-icon-close"})])}),e._v(" "),0==e.dataValue.length?n("div",{staticClass:"add-item"},[e._v("+添加")]):e._e()],2)],1)},[],!1,null,"90934fd4",null));L.options.__file="CrmRelativeCell.vue";var M=L.exports,N=n("6iAj"),V={name:"XhProducCate",components:{},mixins:[m.a],props:{},data:function(){return{options:[],defaultProps:{children:"children",label:"label",value:"category_id"}}},computed:{},watch:{},mounted:function(){this.getProductCategoryIndex()},methods:{getProductCategoryIndex:function(){var e=this;Object(N.K)({type:"tree"}).then(function(t){e.options=t.data}).catch(function(){})},valueChange:function(e){this.$emit("value-change",{index:this.index,item:this.item,value:e,valueContent:this.$refs.elCascader.getCheckedNodes()[0].label})}}},B=(n("87ek"),Object(s.a)(V,function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-cascader",{ref:"elCascader",staticStyle:{width:"100%"},attrs:{options:e.options,"show-all-levels":!1,props:e.defaultProps,disabled:e.disabled,"change-on-select":""},on:{change:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}})},[],!1,null,"02178d4c",null));B.options.__file="XhProuctCate.vue";var Z=B.exports,Y=n("Q4J0"),G={name:"XhProduct",components:{CrmRelative:E.a},mixins:[Y.a],props:{},data:function(){return{showPopover:!1,showSelectView:!1,productList:[],total_price:0,discount_rate:"",selectedData:{product:[]}}},computed:{},watch:{dataValue:function(e){this.refreshProductList()},productList:function(){this.selectedData={product:this.productList||[]}}},mounted:function(){this.refreshProductList()},methods:{refreshProductList:function(){this.productList=this.dataValue.product||[],this.total_price=this.dataValue.total_price||0,this.discount_rate=this.dataValue.discount_rate||""},selectInfos:function(e){var t=this;if(e.data){var n=[];e.data.forEach(function(e){var i=t.productList.find(function(t){return t.product_id==e.product_id});i?n.push(i):n.push(t.getShowItem(e))}),this.productList=n,this.calculateToal()}},getShowItem:function(e){var t={};return t.name=e.name,t.category_id_info=e.category_id_info,t.unit=e.unit,t.price=e.price||0,t.sales_price=e.price||0,t.num=1,t.discount=0,t.subtotal=e.price||0,t.product_id=e.product_id,t},salesPriceChange:function(e){var t=e.row,n=(t.price-t.sales_price||0)/t.price*100;n=n.toFixed(2),t.discount!==n&&(t.discount=n),this.calculateSubTotal(t),this.calculateToal()},numChange:function(e){var t=e.row;this.calculateSubTotal(t),this.calculateToal()},discountChange:function(e){var t=e.row,n=t.price*(100-parseFloat(t.discount||0))/100;n=n.toFixed(2),t.sales_price!==n&&(t.sales_price=n),this.calculateSubTotal(t),this.calculateToal()},calculateSubTotal:function(e){e.subtotal=(e.sales_price*parseFloat(e.num||0)).toFixed(2)},calculateToal:function(){var e=this.getProductTotal();e=e*(100-parseFloat(this.discount_rate||0))/100,this.total_price=e.toFixed(2),this.updateValue()},getProductTotal:function(){for(var e=0,t=0;t<this.productList.length;t++){var n=this.productList[t];e+=parseFloat(n.subtotal)}return e},rateChange:function(){this.calculateToal()},totalPriceChange:function(){var e=this.getProductTotal();e&&(this.discount_rate=(100-parseFloat(this.total_price)/e*100).toFixed(2)),this.updateValue()},removeItem:function(e){this.productList.splice(e,1),this.calculateToal()},updateValue:function(){this.valueChange({product:this.productList,total_price:this.total_price,discount_rate:this.discount_rate})}}},W=(n("s5mF"),Object(s.a)(G,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"handel-header"},[n("el-popover",{staticStyle:{padding:"0 !important"},attrs:{placement:"left-end",width:"700",trigger:"click"},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[e.showSelectView?n("crm-relative",{ref:"crmrelative",attrs:{radio:!1,show:e.showPopover,"selected-data":e.selectedData,"crm-type":"product"},on:{close:function(t){e.showPopover=!1},changeCheckout:e.selectInfos}}):e._e(),e._v(" "),n("el-button",{attrs:{slot:"reference",type:"primary"},on:{click:function(t){e.showSelectView=!0}},slot:"reference"},[e._v("添加产品")])],1)],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.productList}},[n("el-table-column",{attrs:{prop:"name","show-overflow-tooltip":"",label:"产品名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"category_id_info","show-overflow-tooltip":"",label:"产品类别"}}),e._v(" "),n("el-table-column",{attrs:{prop:"unit","show-overflow-tooltip":"",label:"单位"}}),e._v(" "),n("el-table-column",{attrs:{prop:"price","show-overflow-tooltip":"",label:"标准价格"}}),e._v(" "),n("el-table-column",{attrs:{label:"售价"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{directives:[{name:"wk-number",rawName:"v-wk-number"}],attrs:{placeholder:"请输入",type:"number"},on:{input:function(n){e.salesPriceChange(t)}},model:{value:t.row.sales_price,callback:function(n){e.$set(t.row,"sales_price",n)},expression:"scope.row.sales_price"}})]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{directives:[{name:"wk-number",rawName:"v-wk-number"}],attrs:{type:"number",placeholder:"请输入"},on:{input:function(n){e.numChange(t)}},model:{value:t.row.num,callback:function(n){e.$set(t.row,"num",n)},expression:"scope.row.num"}})]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"折扣(%"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-input",{directives:[{name:"wk-number",rawName:"v-wk-number"}],attrs:{placeholder:"请输入",type:"number"},on:{input:function(n){e.discountChange(t)}},model:{value:t.row.discount,callback:function(n){e.$set(t.row,"discount",n)},expression:"scope.row.discount"}})]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"subtotal",label:"合计"}}),e._v(" "),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{on:{click:function(n){e.removeItem(t.$index)}}},[e._v("删除")])]}}])})],1),e._v(" "),n("flexbox",{staticClass:"handle-footer"},[n("div",{staticClass:"discount-title"},[e._v("整单折扣(%")]),e._v(" "),n("el-input",{directives:[{name:"wk-number",rawName:"v-wk-number"}],staticStyle:{width:"80px"},attrs:{placeholder:"请输入",type:"number"},on:{input:e.rateChange},model:{value:e.discount_rate,callback:function(t){e.discount_rate=t},expression:"discount_rate"}}),e._v(" "),n("div",{staticClass:"total-info"},[e._v("已选中产品:\n "),n("span",{staticClass:"info-yellow"},[e._v(e._s(e.productList.length))]),e._v(" 种  总金额:\n "),n("el-input",{directives:[{name:"wk-number",rawName:"v-wk-number"}],staticStyle:{width:"120px"},attrs:{placeholder:"请输入",type:"number"},on:{input:e.totalPriceChange,blur:function(t){e.total_price||(e.total_price=0)}},model:{value:e.total_price,callback:function(t){e.total_price=t},expression:"total_price"}}),e._v(" 元\n ")],1)],1)],1)},[],!1,null,"1eee536d",null));W.options.__file="XhProduct.vue";var P=W.exports,Q=n("ERJp"),z={name:"XhBusinessStatus",components:{},mixins:[i],props:{options:Array},data:function(){return{}},computed:{},watch:{},mounted:function(){},methods:{getBusinessStatusList:function(){var e=this;Object(Q.t)({}).then(function(t){var n=t.data||[];(e.options=n.filter(function(e){return 1===e.status}),e.dataValue)&&(e.options.find(function(t){return t.type_id==e.dataValue})||(e.dataValue=""),e.$emit("value-change",{index:e.index,value:e.dataValue,data:e.options,type:"init"}))}).catch(function(){})},valueChange:function(e){this.$emit("value-change",{index:this.index,value:e,data:this.options})}}},q=(n("b3AG"),Object(s.a)(z,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,clearable:""},on:{change:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}},e._l(e.options,function(e){return n("el-option",{key:e.type_id,attrs:{label:e.name,value:e.type_id,disabled:1!==e.is_display}})}))},[],!1,null,"6cc45937",null));q.options.__file="XhBusinessStatus.vue";var J=q.exports,X=n("gDS+"),K=n.n(X),H={name:"XhCustomerAddress",components:{VDistpicker:n("Woz+").a},props:{value:{type:Object,default:function(){return{}}},index:Number,item:Object},data:function(){return{map:null,searchInput:"",searchCopyInput:"",detail_address:"",pointAddress:null,addressSelect:{province:"",city:"",area:""},canExecute:!0}},computed:{},watch:{pointAddress:function(e){this.valueChange()},detail_address:function(e){this.valueChange()}},mounted:function(){var e=this;Object(w.l)().then(function(){var t=new BMap.Map("choicemap",{enableMapClick:!1});t.centerAndZoom(new BMap.Point(116.404,39.915),14),t.enableScrollWheelZoom(),e.map=t,e.value&&"{}"!==K()(e.value)&&e.initInfo(e.value)})},methods:{initInfo:function(e){if(this.searchInput=e.location,this.detail_address=e.detail_address,"[object Array]"==Object.prototype.toString.call(e.address)){for(var t={},n=0;n<e.address.length;n++)0===n&&(t.province=e.address[0]),1===n&&(t.city=e.address[1]),2===n&&(t.area=e.address[2]);this.addressSelect=t}0!=e.lng&&0!=e.lat&&(this.pointAddress=new BMap.Point(e.lng,e.lat),this.addMarkerLabel(this.pointAddress))},querySearchAsync:function(e,t){if(e){var n={onSearchComplete:function(e){if(i.getStatus()==BMAP_STATUS_SUCCESS){for(var n=[],a=0;a<e.getCurrentNumPois();a++)n.push(e.getPoi(a));t(n)}else t([])},pageCapacity:20},i=new BMap.LocalSearch(this.map,n);i.search(e)}else t([])},handleSelect:function(e){this.searchInput=e.address+e.title,this.searchCopyInput=this.searchInput,this.detail_address=this.searchInput,this.addMarkerLabel(e.point),this.pointAddress=e.point,this.mapSelectArea(e)},inputBlur:function(){this.searchCopyInput!==this.searchInput&&(this.searchInput=this.searchCopyInput)},inputFocus:function(){this.searchCopyInput=this.searchInput},addMarkerLabel:function(e){this.map.clearOverlays(),this.map.centerAndZoom(e,14),this.map.addOverlay(new BMap.Marker(e))},selectProvince:function(e){this.addressSelect.province=e.value,this.valueChange()},selectCity:function(e){this.addressSelect.city=e.value,this.valueChange()},selectArea:function(e){this.addressSelect.area=e.value,this.valueChange()},mapSelectArea:function(e){if(this.canExecute){this.canExecute=!1;var t=this;(new BMap.Geocoder).getLocation(new BMap.Point(e.point.lng,e.point.lat),function(e){e&&(t.pointAddress=e.point,t.addressSelect.province=e.addressComponents.province?e.addressComponents.province:"",t.addressSelect.city=e.addressComponents.city?e.addressComponents.city:"",t.addressSelect.area=e.addressComponents.district?e.addressComponents.district:"")}),setTimeout(function(){t.canExecute=!0},500)}},valueChange:function(){this.$emit("value-change",{index:this.index,value:{address:[this.addressSelect.province,this.addressSelect.city,this.addressSelect.area],location:this.searchInput,detail_address:this.detail_address,lat:this.pointAddress?this.pointAddress.lat:"",lng:this.pointAddress?this.pointAddress.lng:""}})}}},$=(n("yCFu"),Object(s.a)(H,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("flexbox",{attrs:{align:"stretch"}},[n("flexbox-item",{staticStyle:{"margin-right":"50px"}},[n("div",{staticClass:"area-title"},[e._v("定位")]),e._v(" "),n("el-autocomplete",{staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearchAsync,placeholder:"请输入详细位置名称"},on:{blur:e.inputBlur,focus:e.inputFocus,select:e.handleSelect},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item;return[n("div",{staticClass:"name"},[e._v(e._s(i.address+i.title))])]}}]),model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),n("div",{staticClass:"map",attrs:{id:"choicemap"}}),e._v(" "),n("div",{staticClass:"area-title"},[e._v("详细地址")]),e._v(" "),n("el-input",{attrs:{placeholder:""},model:{value:e.detail_address,callback:function(t){e.detail_address=t},expression:"detail_address"}})],1),e._v(" "),n("flexbox-item",[n("div",{staticClass:"area-title"},[e._v("省/市/区")]),e._v(" "),n("v-distpicker",{attrs:{province:e.addressSelect.province,city:e.addressSelect.city,area:e.addressSelect.area},on:{province:e.selectProvince,city:e.selectCity,area:e.selectArea}})],1)],1)},[],!1,null,"1753267c",null));$.options.__file="XhCustomerAddress.vue";var ee=$.exports,te={name:"XhStrucUserCell",components:{MembersDep:n("U8n8").a},props:{placeholder:{type:String,default:"请选择"},users:{type:Array,default:function(){return[]}},strucs:{type:Array,default:function(){return[]}},value:{type:Object,default:function(){return{users:[],strucs:[]}}},max:{type:Number,default:2},index:Number,item:Object},data:function(){return{showPopover:!1,dataUsers:[],dataStrucs:[]}},computed:{showDataValue:function(){return this.allData.length>this.max?this.allData.slice(0,this.max):this.allData},allData:function(){var e=this.dataUsers||[],t=this.dataStrucs||[];return e.concat(t)}},watch:{value:function(e){this.dataUsers=e.users,this.dataStrucs=e.strucs},users:function(e){this.dataUsers=e},strucs:function(e){this.dataStrucs=e}},created:function(){this.value?(this.dataUsers=this.value.users,this.dataStrucs=this.value.strucs):(this.dataUsers=this.users||[],this.dataStrucs=this.strucs||[])},methods:{popoverSubmit:function(e,t){this.dataUsers=e,this.dataStrucs=t,this.$emit("value-change",{index:this.index,value:{users:e,strucs:t}})},popoverShow:function(e){this.showPopover=e},deleteItem:function(e,t){e.id&&"user"==e.type?this.dataUsers.splice(t,1):this.dataStrucs.splice(t-this.dataUsers.length,1),this.$emit("value-change",{index:this.index,value:{users:this.dataUsers,strucs:this.dataStrucs}})},focusClick:function(){this.$emit("focus")}}},ne=(n("f9JD"),Object(s.a)(te,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("members-dep",{attrs:{"popover-display":"block","dep-checked-data":e.dataStrucs,"user-checked-data":e.dataUsers},on:{popoverSubmit:e.popoverSubmit,show:e.popoverShow}},[e.$slots.reference?e._t("reference",null,{slot:"reference"}):n("div",{attrs:{slot:"membersDep"},slot:"membersDep"},[n("flexbox",{staticClass:"structure-container xh-form-border",class:["is_valid",{is_focus:e.showPopover}],attrs:{wrap:"wrap"},nativeOn:{click:function(t){return e.focusClick(t)}}},[e._l(e.showDataValue,function(t,i){return n("div",{key:i,staticClass:"user-item",on:{click:function(n){n.stopPropagation(),e.deleteItem(t,i)}}},[e._v(e._s(t.name||t.realname)+"\n "),n("i",{staticClass:"delete-icon el-icon-close"})])}),e._v(" "),e.allData.length>e.max?n("i",{staticClass:"el-icon-more"}):e._e(),e._v(" "),n("i",{class:["el-icon-arrow-up",{"is-reverse":e.showPopover}]}),e._v(" "),0==e.allData.length?n("div",{staticClass:"add-item text-one-line"},[e._v(e._s(e.placeholder))]):e._e()],2)],1)],2)},[],!1,null,"0525c055",null));ne.options.__file="XhStrucUserCell.vue";var ie=ne.exports,ae=n("d9x6"),se={name:"XhReceivablesPlan",components:{},mixins:[i],props:{relation:{type:Object,default:function(){return{}}},receivablesId:[String,Number]},data:function(){return{option:[]}},computed:{},watch:{relation:function(e){e.moduleType?this.getPlanList():this.option=[]}},mounted:function(){this.relation.moduleType&&this.getPlanList()},methods:{getPlanList:function(){var e=this;this.loading=!0;var t={contract_id:this.relation.contract_id,pageType:"all",status:0};this.receivablesId&&(t.receivables_id=this.receivablesId),Object(ae.t)(t).then(function(t){e.loading=!1,e.option=t.data.list}).catch(function(){e.loading=!1})},valueChange:function(e){this.$emit("value-change",{index:this.index,value:e,data:this.option.find(function(t){return t.plan_id==e})})}}},oe=(n("eKkT"),Object(s.a)(se,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,clearable:""},on:{change:e.valueChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}},e._l(e.option,function(e,t){return n("el-option",{key:t,attrs:{label:e.num,value:e.plan_id}})}))},[],!1,null,"e330c2a4",null));oe.options.__file="XhReceivablesPlan.vue";var re=oe.exports;n.d(t,"g",function(){return r}),n.d(t,"o",function(){return u}),n.d(t,"l",function(){return h}),n.d(t,"h",function(){return v}),n.d(t,"d",function(){return k}),n.d(t,"e",function(){return j}),n.d(t,!1,function(){return T.a}),n.d(t,"p",function(){return I.a}),n.d(t,"n",function(){return D.a}),n.d(t,"f",function(){return R}),n.d(t,"a",function(){return M}),n.d(t,"j",function(){return Z}),n.d(t,"i",function(){return P}),n.d(t,"b",function(){return J}),n.d(t,"c",function(){return ee}),n.d(t,"m",function(){return ie}),n.d(t,"k",function(){return re})},"8HRM":function(e,t,n){"use strict";var i=n("Rijt");n.n(i).a},"8OTK":function(e,t,n){"use strict";n.r(t);var i=n("ROSF"),a=n("QbLZ"),s=n.n(a),o=n("GQeE"),r=n.n(o),c=n("4XAY"),l=n("7Dod"),u=n("gVZb"),d=n("EP+0"),p=n("UGe0"),h=n("8GhS"),m=n("ZoMv"),f=n("IEYw"),g=n("qpGn"),v=n("ehos"),b=n("a/5N"),y={name:"CustomerCreate",components:{XrCreate:u.a,CreateSections:d.a,WkForm:p.a,XhCustomerAddress:h.c,ContactsCreate:g.a},mixins:[f.a],props:{phone:String,action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{},contactsCreateAction:{type:"save",id:"",data:{}},contactsCreateShow:!1}},computed:{title:function(){return"update"===this.action.type?"编辑客户":"新建客户"}},watch:{},created:function(){this.debouncedSaveField=Object(v.debounce)(300,this.saveClick),this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_customer",module:"crm",controller:"customer",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.action_id),Object(c.x)(t).then(function(t){var n=t.data||[];Object(b.b)(e.phone)||n.forEach(function(t){"mobile"===t.formType&&(t.defaultValue=e.phone)});var i=[],a={},s={};n.forEach(function(t){var n={};n.field=t.field,n.formType=t.form_type,n.fieldId=t.fieldId,n.inputTips=t.input_tips,n.name=t.name,n.setting=t.setting,n.value=t.value;var o=e.getItemIsCanEdit(t,e.action.type);o&&(a[n.field]=e.getRules(t)),n.disabled=!o,e.getItemRadio(t,n),s[n.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(n)}),e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loading=!0;var n=this.$refs.crmForm.instance;n.validate(function(i){if(!i)return e.loading=!1,e.getFormErrorMessage(n),!1;var a=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(a.id=e.action.action_id),e.submiteParams(a,t)})},submiteParams:function(e,t){var n=this;"update"==this.action.type&&(e.action_id=this.action.id),this.action.relativeData&&r()(this.action.relativeData).length&&(e=s()({},e,this.action.relativeData)),Object(l.F)(e).then(function(e){n.loading=!1,n.$store.dispatch("GetMessageNum"),t?(n.contactsCreateAction={type:"relative",crmType:"customer",data:{customer:e.data||{}}},n.contactsCreateShow=!0):(n.$message.success("update"==n.action.type?"编辑成功":"添加成功"),n.close()),n.$emit("save-success",{type:"customer",data:e.data||{}})}).catch(function(){n.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},close:function(){this.contactsCreateShow=!1,this.$emit("close")}}},k=(n("ueb0"),n("KHd+")),w=Object(k.a)(y,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[i&&"map_address"==i.formType?n("xh-customer-address",{attrs:{value:e.fieldForm[i.field]},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e()]}}])})],1),e._v(" "),"save"==e.action.type?n("el-button",{staticClass:"handle-button",attrs:{slot:"footer",type:"primary"},on:{click:function(t){e.debouncedSaveField(!0)}},slot:"footer"},[e._v("保存并新建联系人")]):e._e(),e._v(" "),e.contactsCreateShow?n("contacts-create",{attrs:{action:e.contactsCreateAction},on:{close:e.close,"save-success":e.close}}):e._e()],1)},[],!1,null,"582111a7",null);w.options.__file="Create.vue";var _=w.exports,C=n("t8Uk"),A=n("8amk"),x=n("ABTB"),j=n("SWvK"),T=n("1DpC"),I={name:"ReceivablesPlanCreate",components:{XrCreate:u.a,CreateSections:d.a,CrmRelativeCell:h.a,WkForm:p.a},mixins:[f.a],props:{action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{}}},computed:{title:function(){return"update"===this.action.type?"编辑回款计划":"新建回款计划"}},watch:{},created:function(){this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:m.a.receivables_plan,module:"crm",controller:"receivables_plan",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.id),Object(c.x)(t).then(function(t){var n=t.data||[],i=[],a={},s={};n.forEach(function(t){var o={};o.field=t.field,o.formType=t.form_type,o.fieldId=t.fieldId,o.inputTips=t.input_tips,o.name=t.name,o.setting=t.setting;var r=e.getItemIsCanEdit(t,e.action.type);if(r&&(a[o.field]=e.getRules(t)),o.disabled=!r,("contract"==o.formType||"customer"==o.formType)&&"relative"==e.action.type){var c={contract:{customer:!0,contract:!0},customer:{customer:!0}}[e.action.crmType];c&&(o.disabled=c[t.form_type]||!1)}if(("relative"==e.action.type||"update"==e.action.type)&&"contract"==t.form_type){var l=e.getItemRelatveInfo(n,"customer");l&&(l.moduleType="customer",l.params={check_status:2},o.relation=l)}e.getItemRadio(t,o),s[o.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(o)}),e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm.instance;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var i=e.getSubmiteParams(e.baseFields,e.fieldForm);e.submiteParams(i)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id),this.action.relativeData&&r()(this.action.relativeData).length&&(e=s()({},e,this.action.relativeData)),Object(T.h)(e).then(function(e){t.loading=!1,t.$message.success("update"==t.action.type?"编辑成功":"添加成功"),t.close(),t.$emit("save-success",{type:"receivables_plan"})}).catch(function(){t.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},close:function(){this.$emit("close")}}},D=(n("RqNB"),Object(k.a)(I,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[!i||"customer"!=i.formType&&"contract"!=i.formType?e._e():n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],"relative-type":i.formType,disabled:i.disabled,relation:i.relation},on:{"value-change":function(t){e.otherChange(t,i)}}})]}}])})],1)],1)},[],!1,null,"f1803d9a",null));D.options.__file="PlanCreate.vue";var S=D.exports,F=n("5lrv"),O=n("7j8g"),R={name:"CRMAllCreate",components:{InvoiceCreate:i.a,CustomerCreate:_,ContactsCreate:g.a,BusinessCreate:A.a,ContractCreate:x.a,ReceivablesCreate:j.a,ReceivablesPlanCreate:S,VisitCreate:F.a,LeadsCreate:C.a,ProductCreate:O.a},inheritAttrs:!1,props:{crmType:String},data:function(){return{}},computed:{componentName:function(){return{invoice:"InvoiceCreate",customer:"CustomerCreate",contacts:"ContactsCreate",leads:"LeadsCreate",business:"BusinessCreate",contract:"ContractCreate",receivables:"ReceivablesCreate",visit:"VisitCreate",product:"ProductCreate",receivables_plan:"ReceivablesPlanCreate"}[this.crmType]}},watch:{},mounted:function(){},destroyed:function(){},methods:{hiddenView:function(){this.$emit("close")},createSaveSuccess:function(e){this.$emit("save-success",e)}}},E=(n("vtCG"),Object(k.a)(R,function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentName,e._g(e._b({tag:"component",on:{"save-success":e.createSaveSuccess,"hiden-view":e.hiddenView,close:e.hiddenView}},"component",e.$attrs,!1),e.$listeners))},[],!1,null,"8ca93f32",null));E.options.__file="CRMAllCreate.vue";t.default=E.exports},"8amk":function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("GQeE"),o=n.n(s),r=n("4XAY"),c=n("ERJp"),l=n("gVZb"),u=n("EP+0"),d=n("UGe0"),p=n("8GhS"),h=(n("ZoMv"),n("IEYw")),m=n("a/5N"),f={name:"BusinessCreate",components:{XrCreate:l.a,CreateSections:u.a,CrmRelativeCell:p.a,XhBusinessStatus:p.b,XhProduct:p.i,WkForm:d.a},mixins:[h.a],props:{action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{}}},computed:{title:function(){return"update"===this.action.type?"编辑商机":"新建商机"}},watch:{},created:function(){this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_business",module:"crm",controller:"business",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.id),Object(r.x)(t).then(function(t){var n=t.data||[],i=[],a={},s={};n.forEach(function(t){var n={};n.field=t.field,n.formType=t.form_type,n.fieldId=t.fieldId,n.inputTips=t.input_tips,n.name=t.name,n.setting=t.setting,n.value=t.value;var o=e.getItemIsCanEdit(t,e.action.type);if(o&&(a[n.field]=e.getRules(t)),n.disabled=!o,"customer"==n.formType&&"relative"==e.action.type){var r={customer:{customer:!0},contacts:{customer:!0}}[e.action.crmType];r&&(n.disabled=r[t.form_type]||!1)}"update"==e.action.type&&"business_status"==n.formType&&(n.disabled=!0),e.getItemRadio(t,n),s[n.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(n)}),e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm.instance;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var i=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(i.id=e.action.id),e.submiteParams(i)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id,e.batchId=this.action.batchId),this.action.relativeData&&o()(this.action.relativeData).length&&(e=a()({},e,this.action.relativeData)),Object(c.n)(e).then(function(e){t.loading=!1,t.$message.success("update"==t.action.type?"编辑成功":"添加成功"),t.close(),t.$emit("save-success",{type:"business"})}).catch(function(){t.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){if("business_type"===t.formType){var n=this.fieldList.find(function(e){return"business_status"===e.formType});if(n)if(Object(m.b)(e.value))this.fieldForm[t.field]="";else{"init"!=e.type&&(this.fieldForm[t.field]="");var i=e.data.find(function(t){return t.type_id==e.value});n.setting=i.statusList||[],this.$set(this.fieldForm,n.field,n.setting.length>0?n.setting[0].status_id:"")}}else"product"===t.formType&&(this.fieldForm.money=e.value.total_price||"");this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},close:function(){this.$emit("close")}}},g=(n("eCQT"),n("KHd+")),v=Object(g.a)(f,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[i&&"customer"==i.formType?n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],disabled:i.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e(),e._v(" "),i&&"business_type"==i.formType?n("xh-business-status",{attrs:{value:e.fieldForm[i.field],options:i.setting},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e(),e._v(" "),i&&"product"==i.formType?n("xh-product",{attrs:{value:e.fieldForm[i.field]},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e(),e._v(" "),i&&"business_status"==i.formType?n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:i.disabled},model:{value:e.fieldForm[i.field],callback:function(t){e.$set(e.fieldForm,i.field,t)},expression:"fieldForm[data.field]"}},e._l(i.setting,function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.status_id}})})):e._e()]}}])})],1)],1)},[],!1,null,"322700e9",null);v.options.__file="Create.vue";t.a=v.exports},"8uO1":function(e,t,n){"use strict";var i=n("fdYH");n.n(i).a},91:function(e,t){},92:function(e,t){},"936R":function(e,t,n){"use strict";var i=n("Rw8k");n.n(i).a},"9H1A":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDU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RIrzIRKrDATKrHCTKjECjOhEivMhEqsMBMqscJMqMQKM6ESK8yESqwwEyqxwkyoxAozoRIrzIRKrDATKrHCTKjECjOhEivMhEqsMBMqsRKqmVCJlVDNhEqshJq29LyJlVCJFYRKrEhkqMRKqMQKQiVWJDZUYiVUc7H+w1tLqFZi7ePtJVQrse7mLSZUK7F2u+lf3mpCtRDrMTe9y9tNqFaOBmx20x7edpOhnkpCqLmx6hGBNje9o6+fBEyFuiIJoebGmg32BTctclOXm4676SJJBCmdtFBVanBwkLfeoP5zMre2RtLud9Pca/D2nwADAM+gaY1IoC7vAAAAAElFTkSuQmCC"},"9u/D":function(e,t,n){"use strict";var i=n("7/dk");n.n(i).a},"A0++":function(e,t,n){"use strict";var i=n("TOJS");n.n(i).a},A5WD:function(e,t,n){"use strict";var i=n("6tmM");n.n(i).a},A7Qi:function(e,t,n){"use strict";var i=n("6b7q");n.n(i).a},AAeT:function(e,t,n){"use strict";n.d(t,"l",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"a",function(){return c}),n.d(t,"j",function(){return l}),n.d(t,"n",function(){return u}),n.d(t,"i",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"e",function(){return m}),n.d(t,"b",function(){return f}),n.d(t,"k",function(){return g}),n.d(t,"o",function(){return v}),n.d(t,"f",function(){return b}),n.d(t,"h",function(){return y}),n.d(t,"m",function(){return k});var i=n("GQeE"),a=n.n(i),s=n("t3Un");function o(e){var t=e.id?"update":"save";return Object(s.a)({url:"crm/contacts/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(s.a)({url:"crm/contacts/index",method:"post",data:e})}function c(e){return Object(s.a)({url:"crm/contacts/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(s.a)({url:"crm/contacts/read",method:"post",data:e})}function u(e){return Object(s.a)({url:"crm/contacts/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(s.a)({url:"crm/business/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(s.a)({url:"crm/contacts/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function h(e){return Object(s.a)({url:"crm/contacts/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){var t=new FormData;return a()(e).forEach(function(n){t.append(n,e[n])}),Object(s.a)({url:"crm/contacts/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}window.BASE_URL;function f(e){return Object(s.a)({url:"crm/contacts/excelDownload",method:"get",data:e,responseType:"blob"})}function g(e){return Object(s.a)({url:"crm/contacts/relation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(s.a)({url:"crm/contacts/relation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(s.a)({url:"admin/file/index",method:"post",data:e})}function y(e){return Object(s.a)({url:"crm/contacts/count",method:"post",data:e})}function k(e){e.crmTyep;return Object(s.a)({url:"crm/contacts/star",method:"post",data:e})}},ABTB:function(e,t,n){"use strict";var i=n("4d7F"),a=n.n(i),s=n("QbLZ"),o=n.n(s),r=n("GQeE"),c=n.n(r),l=n("4XAY"),u=n("d9x6"),d=n("ERJp"),p=n("gVZb"),h=n("EP+0"),m=n("UGe0"),f=n("8GhS"),g=n("lcu+"),v=(n("ZoMv"),n("IEYw")),b=n("ehos"),y=n("7Qib"),k={name:"ContractCreate",components:{XrCreate:p.a,CreateSections:h.a,CrmRelativeCell:f.a,XhProduct:f.i,CreateExamineInfo:g.a,WkForm:m.a},mixins:[v.a],props:{action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{},examineInfo:{}}},computed:{title:function(){return this.action.title?this.action.title:"update"===this.action.type?"编辑合同":"新建合同"},isOpenExamine:function(){return!!this.examineInfo&&(!(c()(this.examineInfo).length>0)||this.examineInfo.examineStatus)},sureBtnTitle:function(){return this.isOpenExamine?"提交审核":"保存"}},watch:{},created:function(){this.debouncedSaveField=Object(b.debounce)(300,this.saveClick),this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_contract",module:"crm",controller:"contract",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.id),Object(l.x)(t).then(function(t){var n=t.data||[],i=[],a={},s={};if(n.forEach(function(t){var o={};o.field=t.field,o.formType=t.form_type,o.fieldId=t.fieldId,o.inputTips=t.input_tips,o.name=t.name,o.setting=t.setting,o.value=t.value;var r=e.getItemIsCanEdit(t,e.action.type);if(r)if(1==t.autoGeneNumber){o.placeholder="根据编号规则自动生成,支持手动输入";var c=Object(y.t)(t);c.isNull=0,a[o.field]=e.getRules(c)}else a[o.field]=e.getRules(t);if(o.disabled=!r,"contacts"==o.formType||"customer"==o.formType||"business"==o.formType)if("relative"==e.action.type){var l={contacts:{customer:!0},customer:{customer:!0},business:{customer:!0,business:!0}}[e.action.crmType];l&&(o.disabled=l[t.form_type]||!1)}else"update"!=e.action.type&&(o.disabled="business"===t.form_type||"contacts"===t.form_type);if(!("relative"!=e.action.type&&"update"!=e.action.type||"business"!=t.form_type&&"contacts"!=t.form_type&&"contract"!=t.form_type)){var u=e.getItemRelatveInfo(n,"customer");u&&("business"==t.form_type||"contacts"==t.form_type?(u.moduleType="customer",o.relation=u):"contract"==t.formType&&(u.moduleType="customer",u.params={checkStatus:2},o.relation=u))}e.getItemRadio(t,o),"update"!=e.action.type&&"order_date"===t.field?s[o.field]=e.$moment().format("YYYY-MM-DD"):s[o.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(o)}),"relative"==e.action.type){var o=e.action.data.business;o&&e.getBusinessProduct(o.business_id).then(function(e){var t=e||{};s.product={product:t.list,total_price:t.total_price,discount_rate:t.discount_rate},s.money=t.total_price||""}).catch(function(){})}e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loading=!0;var n=this.$refs.crmForm.instance;n.validate(function(i){if(!i)return e.loading=!1,e.getFormErrorMessage(n),!1;if(e.isOpenExamine)if(t){var a=e.getSubmiteParams(e.baseFields,e.fieldForm);0===e.examineInfo.config&&e.examineInfo.hasOwnProperty("value")&&e.examineInfo.value.length&&(a.check_user_id=e.examineInfo.value[0].id),a.is_draft=1,e.submiteParams(a)}else e.$refs.examineInfo.validateField(function(t){if(t){var n=e.getSubmiteParams(e.baseFields,e.fieldForm);0===e.examineInfo.config&&(n.check_user_id=e.examineInfo.value[0].id),n.examineStatus=e.examineInfo.examineStatus,e.submiteParams(n)}else e.loading=!1});else{var s=e.getSubmiteParams(e.baseFields,e.fieldForm);t&&(s.is_draft=1),e.submiteParams(s)}})},submiteParams:function(e){var t=this;"update"!=this.action.type||this.action.isCopy||(e.id=this.action.id,e.batchId=this.action.batchId),this.action.relativeData&&c()(this.action.relativeData).length&&(e=o()({},e,this.action.relativeData)),Object(u.n)(e).then(function(e){t.loading=!1,t.action.isCopy?t.$message.success("操作成功"):t.$message.success("update"==t.action.type?"编辑成功":"添加成功"),t.close(),t.$emit("save-success",{type:"contract"})}).catch(function(){t.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){var n=this;if("customer"===t.formType){for(var i=0,a=0;a<this.fieldList.length;a++){var s=this.fieldList[a],o=["business_id","contacts_id","order_user_id"],r=["business_id","contacts_id"],c={contacts_id:function(e){return e.contacts_id?[{name:e.contactsName||"",contacts_id:e.contacts_id}]:[]},order_user_id:function(e){return e.ownerUserId?[{realname:e.owner_user_name||"",id:e.owner_user_id}]:[]}};if(o.includes(s.field)){if(e.value.length>0){s.disabled=!1;var l=e.value[0];r.includes(s.field)&&(l.moduleType="customer",s.relation=l),c[s.field]?this.fieldForm[s.field]=c[s.field](l):this.fieldForm[s.field]=[]}else s.disabled=!!["business_id","contacts_id"].includes(s.field),r.includes(s.field)&&(s.relation={}),this.fieldForm[s.field]=[];if(++i==o.length)break}}this.fieldForm.product={product:[],total_price:"",discount_rate:""},this.fieldForm.money=""}else"business"===t.formType?e.value.length>0&&this.getBusinessProduct(e.value[0].business_id).then(function(e){var t=e||{};n.fieldForm.product={product:t.list,total_price:t.total_price,discount_rate:t.discount_rate},n.fieldForm.money=t.total_price||""}).catch(function(){}):"product"===t.formType&&(this.fieldForm.money=e.value.total_price||"");this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},getBusinessProduct:function(e){return new a.a(function(t,n){Object(d.i)({business_id:e,pageType:0}).then(function(e){t(e.data)}).catch(function(e){n(e)})})},examineValueChange:function(e){this.examineInfo=e},close:function(){this.$emit("close")}}},w=(n("9u/D"),n("KHd+")),_=Object(w.a)(k,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title,"confirm-button-text":e.sureBtnTitle},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[i&&"customer"==i.formType?n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],disabled:i.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e(),e._v(" "),!i||"business"!=i.formType&&"contacts"!=i.formType?e._e():n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],disabled:i.disabled,relation:i.relation,"relative-type":i.formType},on:{"value-change":function(t){e.otherChange(t,i)}}}),e._v(" "),i&&"product"==i.formType?n("xh-product",{attrs:{value:e.fieldForm[i.field]},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e()]}}])})],1),e._v(" "),e.isOpenExamine?n("create-sections",{attrs:{title:"审核信息"}},[n("template",{slot:"header"},[1===e.examineInfo.config||0===e.examineInfo.config?n("div",{staticClass:"examine-type"},[e._v(e._s(1===e.examineInfo.config?"固定审批流":"授权审批人"))]):e._e(),e._v(" "),e.examineInfo&&e.examineInfo.remark?n("el-tooltip",{attrs:{content:e.examineInfo.remark,effect:"dark",placement:"top"}},[n("i",{staticClass:"wk wk-help wk-help-tips",staticStyle:{height:"13px"}})]):e._e()],1),e._v(" "),n("create-examine-info",{ref:"examineInfo",attrs:{"types-id":e.action.id,types:"crm_contract"},on:{"value-change":e.examineValueChange}})],2):e._e(),e._v(" "),n("el-button",{attrs:{slot:"footer",type:"primary",plain:""},nativeOn:{click:function(t){e.debouncedSaveField(!0)}},slot:"footer"},[e._v("保存草稿")])],1)},[],!1,null,"0fb325ec",null);_.options.__file="Create.vue";t.a=_.exports},Ajln:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return r}),n.d(t,"f",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"g",function(){return u});var i=n("t3Un");function a(e){return Object(i.a)({url:"work/tasklable/index",method:"post",data:e})}function s(e){return Object(i.a)({url:"work/tasklable/read",method:"post",data:e})}function o(e){return Object(i.a)({url:"work/tasklable/delete",method:"post",data:e})}function r(e){return Object(i.a)({url:"work/tasklable/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(i.a)({url:"work/tasklable/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(i.a)({url:"work/tasklable/getWokList",method:"post",data:e})}function u(e){return Object(i.a)({url:"taskLabel/updateOrder",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},B9fj:function(e,t,n){"use strict";var i=n("qX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BKBlcBKBFYisBJYicBKBFYCKxFYicBKYCUCKxFYCaxEYCUCK4GVCKxEYCWwEoGVwEoEViKwUoRqD36JMQ8FsuqU10l83lpxap4Ru7RGfaCAnlrfdWTgah1YjVcak6Kn35L4/FdErAI8UPru32I5KyRZ2w5Wk3MSUrzqA3FmNBbm9zcKKntWwwtW1KhABavRe9RH1R51fWSggtXggpMpsazIQAWrydvVmmcjBRWsJm8DSmdGCipYjdYajxRUsJIxUMFKxkAFK+Ub6gsPChWslF+oIm3j2qYzc2QCVLCSMVDBSsZABSsZAxWsZAxUsJIxUMFKxkAFKxkDFaxkDFSwkjFQwUrGQAUrGQMVrGQMVLCSMVDBSsZABSsZAxWsZAxUsJIxUMFKxkAFKxkDFaxkDFSwkjFQwUrGQAUrGQMVrGQMVLCSMVDBSsZABSsZAxWsZAxUsALVGKhgBaoxUMEK1DaTvmywAhWsBFSwUiShghWoYCWggpUiCxWsQDUOa4ZnFqimYL3MswtUU7Ae4hkGqilY96rh8kwD1QSsZ9XYzbMNVFOuBmxT4zDPupFQO6IAdTTW4IrAq2p8oYaHAKOgrogC1NFYR8C+q0aDGjvVaFUjjYhQ1hY1qEGW7/s89SY2cPUxSda2qd/N/j6StQ/8qf8IMACLl69W4P4WCwAAAABJRU5ErkJggg=="},CPtR:function(e,t,n){"use strict";var i=n("lhZU");n.n(i).a},CnhX:function(e,t,n){},CoO1:function(e,t,n){"use strict";var i=n("EVh6");n.n(i).a},DwHe:function(e,t,n){"use strict";var i=n("XV2P");n.n(i).a},EBQf:function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("mkuN"),o=n("/407"),r=n("L2JU"),c={name:"RelatedBusiness",components:{CrmRelative:s.a,RelatedBusinessCell:o.a},props:{marginLeft:{type:String,default:"20px"},allData:{type:Object,default:function(){return{contacts:[],customer:[],business:[],contract:[]}}},showFoot:{type:Boolean,default:!1},showAdd:{type:Boolean,default:!0}},data:function(){return{showTypes:["customer","contacts","business","contract"],showPopover:!1,relevanceAll:{customerIds:[],contractIds:[],contactsIds:[],businessIds:[]},relatedListData:{},showRelative:!1}},computed:a()({},Object(r.b)(["crm"]),{showCRMPermission:function(){return this.crm}}),watch:{allData:function(){this.relatedListData=this.allData}},mounted:function(){this.relatedListData=this.allData},methods:{crmrelativeClose:function(){this.showPopover=!1},checkInfos:function(e){var t=this;this.showPopover=!1,this.relatedListData=e.data;var n=function(n){var i=e.data[n];t.relevanceAll[n+"Ids"]=i.map(function(e){return e[n+"_id"]})};for(var i in e.data)n(i);this.$emit("checkInfos",this.relevanceAll,e.data)},delRelevance:function(e,t,n){this.$emit("unbind",e,n,t)},checkRelatedDetail:function(e,t){t.key=t[e+"Id"]||t.id,this.$emit("checkRelatedDetail",e,t)}}},l=(n("ho7T"),n("KHd+")),u=Object(l.a)(c,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"related-business",style:{"margin-left":e.marginLeft}},[e.showAdd?n("el-popover",{attrs:{placement:"right-end",width:"800","popper-class":"no-padding-popover",trigger:"click"},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[e.showRelative?n("crm-relative",{ref:"crmrelative",attrs:{show:e.showPopover,radio:!1,"selected-data":e.relatedListData,"show-types":e.showTypes},on:{close:e.crmrelativeClose,changeCheckout:e.checkInfos}}):e._e(),e._v(" "),e.showCRMPermission?n("span",{staticClass:"add-btn",attrs:{slot:"reference"},on:{click:function(t){e.showRelative=!0}},slot:"reference"},[n("i",{staticClass:"wk wk-l-plus"}),e._v(" "),n("span",{staticClass:"label"},[e._v("关联业务")])]):e._e()],1):e._e(),e._v(" "),e._l(e.relatedListData,function(t,i){return n("div",{key:i,staticStyle:{"margin-top":"10px"}},e._l(t,function(t,a){return n("related-business-cell",{key:a,attrs:{data:t,"cell-index":a,type:i,"show-foot":e.showFoot},on:{unbind:e.delRelevance,detail:function(n){e.checkRelatedDetail(i,t)}}})}))})],2)},[],!1,null,"5cd365f7",null);u.options.__file="RelatedBusiness.vue";t.a=u.exports},EOKR:function(e,t,n){"use strict";t.a={data:function(){return{dataValue:[]}},watch:{value:function(e){this.dataValue=e}},props:{value:{type:Array,default:function(){return[]}},index:Number,item:Object,disabled:{type:Boolean,default:!1}},mounted:function(){this.dataValue=this.value},methods:{valueChange:function(e){this.$emit("value-change",{index:this.index,value:e})}}}},EOSc:function(e,t,n){},"EP+0":function(e,t,n){"use strict";var i={name:"CreateSections",components:{},props:{title:{type:String,default:""},mColor:{type:String,default:"#2362FB"},dropdownItems:Array},data:function(){return{}},computed:{},mounted:function(){},methods:{handleTypeClick:function(e){this.$emit("command-select",e)}}},a=(n("xpQc"),n("KHd+")),s=Object(a.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"section create-sections"},[e.title&&e.title.length>0?n("div",{staticClass:"section-header"},[n("div",{staticClass:"section-mark",style:{"border-left-color":e.mColor}}),e._v(" "),n("div",{staticClass:"section-title"},[e._v(e._s(e.title))]),e._v(" "),e.dropdownItems&&e.dropdownItems.length>0?n("el-dropdown",{staticClass:"create-sections__more",attrs:{trigger:"click"},on:{command:e.handleTypeClick}},[n("i",{staticClass:"el-icon-more",staticStyle:{cursor:"pointer"}}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.dropdownItems,function(t,i){return n("el-dropdown-item",{key:i,attrs:{icon:t.icon,command:t.command}},[e._v(e._s(t.label))])}))],1):e._e(),e._v(" "),e._t("header")],2):e._e(),e._v(" "),n("div",{staticClass:"content create-sections-content"},[e._t("default")],2)])},[],!1,null,"39b1590a",null);s.options.__file="CreateSections.vue";t.a=s.exports},ERJp:function(e,t,n){"use strict";n.d(t,"n",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"t",function(){return r}),n.d(t,"s",function(){return c}),n.d(t,"l",function(){return l}),n.d(t,"v",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"i",function(){return p}),n.d(t,"k",function(){return h}),n.d(t,"q",function(){return m}),n.d(t,"p",function(){return f}),n.d(t,"u",function(){return g}),n.d(t,"x",function(){return v}),n.d(t,"e",function(){return b}),n.d(t,"m",function(){return y}),n.d(t,"w",function(){return k}),n.d(t,"j",function(){return w}),n.d(t,"o",function(){return _}),n.d(t,"f",function(){return C}),n.d(t,"h",function(){return A}),n.d(t,"d",function(){return x}),n.d(t,"c",function(){return j}),n.d(t,"r",function(){return T});var i=n("t3Un");function a(e){var t=e.id?"update":"save";return Object(i.a)({url:"crm/business/"+t,method:"post",data:e})}function s(e){return Object(i.a)({url:"crm/business/index",method:"post",data:e})}function o(e){return Object(i.a)({url:"crm/business/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"crm/business/statusList",method:"post",data:e})}function c(e){return Object(i.a)({url:"crm/business/statusList",method:"post",data:e})}function l(e){return Object(i.a)({url:"crm/business/read",method:"post",data:e})}function u(e){return Object(i.a)({url:"crm/business/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(i.a)({url:"crm/business/advance",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i.a)({url:"crm/business/product",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i.a)({url:"crm/contract/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(i.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(i.a)({url:"crm/setting/team",method:"post",data:e})}function v(e){return Object(i.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(i.a)({url:"crm/setting/quitTeam",method:"post",data:e})}function y(e){return Object(i.a)({url:"crm/contacts/relation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function k(e){return Object(i.a)({url:"crm/contacts/relation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function w(e){return Object(i.a)({url:"crm/contacts/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function _(e){return Object(i.a)({url:"crm/business/setPrimary",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function C(e){return Object(i.a)({url:"admin/file/index",method:"post",data:e})}function A(e){return Object(i.a)({url:"crm/business/count",method:"post",data:e})}function x(e){return Object(i.a)({url:"crm/business/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob",timeout:6e4})}function j(e){return Object(i.a)({url:"crm/business/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function T(e){e.crmTyep;return Object(i.a)({url:"/crm/business/star",method:"post",data:e})}},EVh6:function(e,t,n){},EYTu:function(e,t,n){"use strict";var i=n("1n5n");n.n(i).a},"EhN/":function(e,t,n){"use strict";var i=n("1puQ");n.n(i).a},Es7h:function(e,t,n){"use strict";var i=n("qGmm");n.n(i).a},EsIn:function(e,t,n){},Ew9n:function(e,t,n){"use strict";var i=n("7Qib"),a={name:"SlideView",componentName:"SlideView",components:{},props:{showClose:{type:Boolean,default:!0},bodyStyle:{type:Object,default:function(){return{padding:0}}},listenerIDs:{type:Array,default:function(){return[]}},noListenerIDs:{type:Array,default:function(){return[]}},noListenerClass:{type:Array,default:function(){return[]}},appendToBody:{type:Boolean,default:!1}},data:function(){return{zIndex:Object(i.q)(),isEditClose:!1,dialogVisible:!1,targetData:{isMoveClick:!1,pageX:0,pageY:0}}},computed:{},watch:{},created:function(){var e=this;this.$on("setEditClose",function(t){e.isEditClose=t})},mounted:function(){this.appendToBody&&document.body.appendChild(this.$el),document.getElementById("app").addEventListener("click",this.handleDocumentClick,!1),document.getElementById("app").addEventListener("mousedown",this.handleDocumentMousedown,!1),document.getElementById("app").addEventListener("mouseup",this.handleDocumentMouseup,!1)},beforeDestroy:function(){this.dialogVisible=!1,this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.getElementById("app").removeEventListener("click",this.handleDocumentClick,!1),document.getElementById("app").removeEventListener("mousedown",this.handleDocumentMousedown,!1),document.getElementById("app").removeEventListener("mouseup",this.handleDocumentMouseup,!1)},methods:{handleDocumentClick:function(e){if(this.targetData.isMoveClick)this.targetData.isMoveClick=!1;else{var t=!0;this.noListenerIDs.forEach(function(n){document.getElementById(n)&&document.getElementById(n).contains(e.target)&&(t=!1)}),this.noListenerClass.forEach(function(n){var i=document.getElementsByClassName(n);if(i&&t)for(var a=0;a<i.length;a++){if(i[a].contains(e.target)){t=!1;break}}}),document.getElementById("slide")&&document.getElementById("slide").contains(e.target)&&(t=!1),t&&this.close()}},handleDocumentMousedown:function(e){this.targetData.pageX=e.pageX,this.targetData.pageY=e.pageY},handleDocumentMouseup:function(e){Math.abs(this.targetData.pageX-e.pageX)>30||Math.abs(this.targetData.pageY-e.pageY)>30?this.targetData.isMoveClick=!0:this.targetData.isMoveClick=!1},afterEnter:function(){this.$emit("afterEnter")},close:function(){this.isEditClose?this.dialogVisible=!0:this.$emit("close")},dialogSure:function(){this.dialogVisible=!1,this.$emit("close")}}},s=(n("117M"),n("KHd+")),o=Object(s.a)(a,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"slide-fade"},on:{"after-enter":e.afterEnter}},[n("el-card",{ref:"slide",staticClass:"slide-detail-card-container",style:{"z-index":e.zIndex},attrs:{id:"slide","body-style":e.bodyStyle}},[e.showClose?n("el-button",{staticClass:"close-btn",attrs:{type:"primary",icon:"el-icon-close"},on:{click:e.close}}):e._e(),e._v(" "),e._t("default"),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogVisible,"append-to-body":!0,"close-on-click-modal":!1,"custom-class":"no-padding-dialog",title:"提示",top:"30vh",width:"420px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",{staticClass:"el-message-box__container",staticStyle:{padding:"10px 15px 15px"}},[n("div",{staticClass:"el-message-box__status el-icon-warning"}),e._v(" "),n("div",{staticClass:"el-message-box__message"},[e._v("确定离开?正在编辑的内容将会丢失。")])]),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.dialogSure}},[e._v("确 定")])],1)])],2)],1)},[],!1,null,"b63dca56",null);o.options.__file="SlideView.vue";t.a=o.exports},ExKg:function(e,t,n){"use strict";var i=n("O3aB");n.n(i).a},F18x:function(e,t,n){},Flj7:function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"f",function(){return o}),n.d(t,"n",function(){return r}),n.d(t,"d",function(){return c}),n.d(t,"p",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"j",function(){return d}),n.d(t,"o",function(){return p}),n.d(t,"i",function(){return h}),n.d(t,"l",function(){return m}),n.d(t,"k",function(){return f}),n.d(t,"m",function(){return g}),n.d(t,"a",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"b",function(){return y});var i=n("t3Un");function a(e){return Object(i.a)({url:"work/taskclass/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"work/task/delete",method:"post",data:e})}function o(e){return Object(i.a)({url:"work/taskclass/rename",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"work/task/taskOver",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(i.a)({url:"work/task/taskOver",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(i.a)({url:"work/task/updateName",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(i.a)({url:"work/task/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(i.a)({url:"work/task/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i.a)({url:"work/task/updateStoptime",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i.a)({url:"work/task/updateLable",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(i.a)({url:"work/task/updateOwner",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i.a)({url:"work/task/delOwnerById",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(i.a)({url:"work/task/updatePriority",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i.a)({url:"work/task/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(i.a)({url:"work/task/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function y(e){return Object(i.a)({url:"work/task/delete",method:"post",data:e})}},FoeY:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return o});var i=n("t3Un");function a(e){var t=e.announcement_id?"update":"save";return Object(i.a)({url:"oa/announcement/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"oa/announcement/delete",method:"post",data:e})}function o(e){return Object(i.a)({url:"oa/announcement/read",method:"post",data:e})}},G1gW:function(e,t,n){},GBkM:function(e,t,n){"use strict";var i=n("X0Ro");n.n(i).a},HHBN:function(e,t,n){"use strict";var i=n("0hym"),a=n("EOKR"),s={name:"XhUserCell",components:{XhUser:i.a},mixins:[a.a],inheritAttrs:!1,props:{radio:{type:Boolean,default:!0},placeholder:{type:String,default:"选择员工"},placement:{type:String,default:"bottom"},max:{type:Number,default:2}},data:function(){return{showPopover:!1}},computed:{showDataValue:function(){return this.dataValue&&this.dataValue.length>this.max?this.dataValue.slice(0,this.max):this.dataValue}},watch:{},mounted:function(){},updated:function(){this.$refs.reference&&(this.$parent.popperElm=this.$refs.reference.$el)},methods:{checkUsers:function(e){this.radio&&e&&e.length&&(this.showPopover=!1),this.dataValue=e,this.$emit("value-change",{item:this.item,index:this.index,value:e})},deleteuser:function(e){this.dataValue.splice(e,1),this.$emit("value-change",{item:this.item,index:this.index,value:this.dataValue})},focusClick:function(){this.$emit("focus")},handleClose:function(){this.$parent.popperElm&&(this.showPopover=!1)}}},o=(n("ExKg"),n("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",{attrs:{disabled:e.disabled,placement:e.placement,width:"300","popper-class":"no-padding-popover",trigger:"click"},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[e.disabled?e._e():n("xh-user",e._b({directives:[{name:"elclickoutside",rawName:"v-elclickoutside",value:e.handleClose,expression:"handleClose"}],ref:"xhuser",attrs:{show:e.showPopover,"selected-data":e.dataValue,radio:e.radio},on:{changeCheckout:e.checkUsers}},"xh-user",e.$attrs,!1)),e._v(" "),e.$slots.reference?e._t("reference",null,{slot:"reference"}):n("flexbox",{ref:"reference",staticClass:"user-container xh-form-border",class:[e.disabled?"is_disabled":"is_valid",{is_focus:e.showPopover}],attrs:{slot:"reference",wrap:"wrap"},nativeOn:{click:function(t){return e.focusClick(t)}},slot:"reference"},[e._l(e.showDataValue,function(t,i){return n("div",{key:i,staticClass:"user-item text-one-line"},[e._v(e._s(t.realname)+"\n "),e.disabled?e._e():n("i",{staticClass:"delete-icon el-icon-close",on:{click:function(t){t.stopPropagation(),e.deleteuser(i)}}})])}),e._v(" "),e.dataValue.length>e.max?n("i",{staticClass:"el-icon-more"}):e._e(),e._v(" "),n("i",{class:["el-icon-arrow-up",{"is-reverse":e.showPopover}]}),e._v(" "),0==e.dataValue.length?n("div",{staticClass:"add-item text-one-line"},[e._v(e._s(e.placeholder))]):e._e()],2)],2)},[],!1,null,"43faba95",null);r.options.__file="XhUserCell.vue";t.a=r.exports},HslM:function(e,t,n){"use strict";var i=n("FyfS"),a=n.n(i),s={props:{newTagTitle:String,newTagInput:String,bgColorProps:String},data:function(){return{colorList:["#53D397","#20C1BD","#58DADA","#0FC9E7","#3498DB","#4586FF","#8983F3","#AEA1EA","#FF6699","#F24D70","#FF6F6F"],input:this.newTagInput,showBgColor:""}},watch:{bgColorProps:function(e){this.showBgColor=e||"#53D397"}},mounted:function(){this.showBgColor=this.bgColorProps||"#53D397"},methods:{back:function(){this.$emit("back")},close:function(){this.$emit("close")},changeColor:function(e){this.$emit("changeColor",e)},tagCreateSubmit:function(){this.$emit("tagCreateSubmit",this.input,this.showBgColor)},tagCancel:function(){this.$emit("tagCancel")}}},o=(n("OWIW"),n("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"new-tag-dialog"},[n("div",{staticClass:"title"},[n("span",{staticClass:"el-icon-arrow-left",on:{click:e.back}}),e._v(" "),n("span",[e._v(e._s(e.newTagTitle))]),e._v(" "),n("span",{staticClass:"el-icon-close rt",on:{click:e.close}})]),e._v(" "),n("div",{staticClass:"search"},[n("el-input",{attrs:{maxlength:10,size:"mini",placeholder:"输入标签名,最多十个字符"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}}),e._v(" "),n("span",{staticClass:"checked-color",style:{background:e.showBgColor}})],1),e._v(" "),n("div",{staticClass:"color-box"},e._l(e.colorList,function(t,i){return n("span",{key:i,style:{background:t},on:{click:function(n){e.changeColor(t)}}})})),e._v(" "),n("div",{staticClass:"footer"},[n("el-button",{directives:[{name:"debounce",rawName:"v-debounce",value:e.tagCreateSubmit,expression:"tagCreateSubmit"}],attrs:{type:"primary",size:"medium"}},[e._v("保存")]),e._v(" "),n("el-button",{attrs:{size:"medium"},on:{click:e.tagCancel}},[e._v("取消")])],1)])},[],!1,null,"2756a05c",null);r.options.__file="NewTag.vue";var c=r.exports,l={props:{editTagList:Array},data:function(){return{searchInput:""}},computed:{list:function(){var e=this;return this.editTagList.filter(function(t){return t.name.indexOf(e.searchInput)>-1})}},watch:{},methods:{back:function(){this.$emit("back")},close:function(){this.$emit("close")},deleteBtn:function(e){this.$emit("deleteBtn",e)},editBtn:function(e){this.$emit("editBtn",e)}}},u=(n("936R"),Object(o.a)(l,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"edit-tag-dialog"},[n("div",{staticClass:"title"},[n("span",{staticClass:"el-icon-arrow-left",on:{click:e.back}}),e._v(" "),n("span",[e._v("标签管理")]),e._v(" "),n("span",{staticClass:"el-icon-close rt",on:{click:e.close}})]),e._v(" "),n("div",{staticClass:"search"},[n("el-input",{attrs:{maxlength:10,size:"mini",placeholder:"输入标签名,最多十个字符"},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),e._v(" "),n("div",{staticClass:"content"},e._l(e.list,function(t,i){return n("div",{key:i,staticClass:"tag-list"},[n("span",{staticClass:"tag-name",style:{background:t.color?t.color:"#ccc"}},[e._v("\n "+e._s(t.name.length>10?t.name.substring(0,10)+"...":t.name)+"\n ")]),e._v(" "),n("div",{staticClass:"rt"},[n("span",{staticClass:"el-icon-edit",on:{click:function(n){e.editBtn(t)}}}),e._v(" "),n("span",{staticClass:"el-icon-delete",on:{click:function(n){e.deleteBtn(t)}}})])])}))])},[],!1,null,"d1e776f2",null));u.options.__file="EditTag.vue";var d=u.exports,p=(n("zsVz"),n("Ajln")),h=n("Flj7"),m={components:{NewTag:c,EditTag:d},props:{taskData:{type:Object,default:function(){return{}}},placement:String},data:function(){return{tagShow:!1,tagContent:0,tagSearch:"",tagList:[],newTagTitle:"",newTagInput:"",bgColorProps:"",editTagId:""}},computed:{showTagList:function(){for(var e=[],t=0;t<this.tagList.length;t++){var n=this.tagList[t];n.name.indexOf(this.tagSearch)>-1&&e.push(n)}return e},popoverWidth:function(){return 1==this.tagContent?330:2==this.tagContent?400:220}},watch:{},mounted:function(){},methods:{createTagClick:function(){this.newTagTitle="创建新标签",this.newTagInput="",this.tagContent=1},editTagClick:function(e){this.editTagId=e.lable_id,this.newTagTitle="编辑标签",this.tagContent=1,this.bgColorProps=e.color,this.newTagInput=e.name},managementTag:function(){this.tagContent=2},tagSelectClick:function(e,t){var n=this;if(this.$listeners.change)e.check=!e.check,this.$emit("change",this.tagList.filter(function(e){return e.check}));else if(e.check)Object(h.i)({task_id:this.taskData.task_id,lable_id_del:e.lable_id,type:"lable_id_del"}).then(function(t){e.check=!1,n.updateDetailList(e,"delete")}).catch(function(){e.check=!0});else{var i=this.tagList.filter(function(e){return e.check}).concat(e);Object(h.i)({type:"lable_id_add",task_id:this.taskData.task_id,lable_id_add:i.map(function(e){return e.lable_id})}).then(function(t){e.check=!0;var i=[];n.tagList.forEach(function(e){e.check&&(e.labelName=e.name,i.push(e))}),n.taskData.lable_list=i}).catch(function(){e.check=!1})}},updateDetailList:function(e,t){if(this.taskData&&this.taskData.lable_list){for(var n=-1,i=0;i<this.taskData.lable_list.length;i++){if(this.taskData.lable_list[i].lable_id==e.lable_id){n=i;break}}n>=0&&("delete"==t?this.taskData.lable_list.splice(n,1):this.taskData.lable_list.splice(n,1,e))}},changeColor:function(e){this.bgColorProps=e},tagClose:function(){this.tagShow=!1},tagCreateSubmit:function(e,t){var n=this;"创建新标签"==this.newTagTitle?Object(p.e)({name:e,color:t}).then(function(e){n.getTagList(),n.back(),n.$message.success("创建成功")}):Object(p.f)({name:e,lable_id:this.editTagId,color:t}).then(function(i){var s=!0,o=!1,r=void 0;try{for(var c,l=a()(n.tagList);!(s=(c=l.next()).done);s=!0){var u=c.value;u.lable_id==n.editTagId&&(u.name=e,u.color=t,u.labelName=u.name,n.updateDetailList(u,"update"))}}catch(e){o=!0,r=e}finally{try{!s&&l.return&&l.return()}finally{if(o)throw r}}n.tagContent=2})},tagCancel:function(){"创建新标签"==this.newTagTitle?(this.tagClose(),this.$message.info("已取消创建")):this.tagContent=2},back:function(){1==this.tagContent?this.tagContent="创建新标签"==this.newTagTitle?0:2:2==this.tagContent&&(this.tagContent=0)},deleteBtn:function(e){var t=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){Object(p.a)({lable_id:e.lable_id}).then(function(n){for(var i in t.tagList)if(t.tagList[i].lable_id==e.lable_id){t.tagList.splice(i,1);break}t.$message({type:"success",message:"删除成功!"}),t.tagShow=!0}).catch(function(){t.tagShow=!0})}).catch(function(){t.$message({type:"info",message:"已取消删除"}),t.tagShow=!0})},getTagList:function(){var e=this;Object(p.c)().then(function(t){var n=t.data.list||[],i=(e.taskData&&e.taskData.lable_list||[]).map(function(e){return e.lable_id}),s=!0,o=!1,r=void 0;try{for(var c,l=a()(n);!(s=(c=l.next()).done);s=!0){var u=c.value;u.check=i.includes(u.lable_id)}}catch(e){o=!0,r=e}finally{try{!s&&l.return&&l.return()}finally{if(o)throw r}}e.tagList=n}).catch(function(){})},referenceFun:function(){this.tagContent=0,this.tagList&&!this.tagList.length&&this.getTagList()}}},f=(n("QHYT"),Object(o.a)(m,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",{attrs:{placement:e.placement,width:e.popoverWidth,trigger:"click"},model:{value:e.tagShow,callback:function(t){e.tagShow=t},expression:"tagShow"}},[0==e.tagContent?n("div",{staticClass:"tag-popover-box"},[n("div",{staticClass:"tag-top"},[n("span",[e._v("选择标签")]),e._v(" "),n("span",{staticClass:"el-icon-close rt cursor-pointer",on:{click:function(t){e.tagShow=!1}}})]),e._v(" "),n("el-input",{attrs:{placeholder:"搜索标签","prefix-icon":"el-icon-search",size:"small"},model:{value:e.tagSearch,callback:function(t){e.tagSearch=t},expression:"tagSearch"}}),e._v(" "),n("div",{staticClass:"tag-content"},e._l(e.showTagList,function(t,i){return n("div",{key:i,staticClass:"tag-list",on:{click:function(n){e.tagSelectClick(t,i)}}},[n("i",{staticClass:"wukong wukong-black-label",style:{color:t.color}}),e._v(" "),n("span",{staticClass:"item-label"},[e._v(e._s(t.name))]),e._v(" "),t.check?n("span",{staticClass:"el-icon-check rt"}):e._e()])})),e._v(" "),n("div",{staticClass:"tag-footer"},[n("p",{staticClass:"footer-row cursor-pointer",on:{click:e.createTagClick}},[n("span",{staticClass:"el-icon-plus"}),e._v(" "),n("span",[e._v("创建新标签")])]),e._v(" "),n("p",{staticClass:"footer-row cursor-pointer",on:{click:e.managementTag}},[n("span",{staticClass:"el-icon-setting"}),e._v(" "),n("span",[e._v("标签管理")])])])],1):1==e.tagContent||3==e.tagContent?n("new-tag",{attrs:{"new-tag-title":e.newTagTitle,"new-tag-input":e.newTagInput,"bg-color-props":e.bgColorProps},on:{changeColor:e.changeColor,close:e.tagClose,tagCreateSubmit:e.tagCreateSubmit,tagCancel:e.tagCancel,back:e.back}}):2==e.tagContent?n("editTag",{attrs:{"edit-tag-list":e.tagList},on:{back:e.back,close:e.tagClose,editBtn:e.editTagClick,deleteBtn:e.deleteBtn}}):e._e(),e._v(" "),n("span",{attrs:{slot:"reference"},on:{click:e.referenceFun},slot:"reference"},[e._t("editIndex")],2)],1)},[],!1,null,"353630a6",null));f.options.__file="TagIndex.vue";t.a=f.exports},IEYw:function(e,t,n){"use strict";var i=n("4d7F"),a=n.n(i),s=n("4XAY"),o=n("a/5N"),r=n("7Qib"),c={methods:{UniquePromise:function(e){return new a.a(function(e){e()})},getRules:function(e){var t=this,n=[];if(1==e.is_null&&n.push({required:!0,message:e.name+"不能为空",trigger:["blur","change"]}),1==e.is_unique&&this.UniquePromise){n.push({validator:function(n,i,a){Object(o.b)(i)?a():t.UniquePromise({field:e,rule:n,value:i}).then(function(){a()}).catch(function(e){a(new Error(e||"验证出错"))})},item:e,trigger:"checkbox"==e.formType||"select"==e.formType||"checkbox"==e.form_type||"select"==e.form_type?["change"]:["blur"]})}if("number"===e.formType||"number"===e.form_type){n.push({validator:function(e,t,n){Object(o.b)(t)||Object(r.x)(t)?n():n(new Error("数字的整数部分须少于15位小数部分须少于4位"))},item:e,trigger:["blur"]})}else if("floatnumber"===e.formType||"floatnumber"===e.form_type){n.push({validator:function(e,t,n){Object(o.b)(t)||Object(r.w)(t)?n():n(new Error("货币的整数部分须少于15位小数部分须少于2位"))},item:e,trigger:["blur"]})}else if("mobile"===e.formType||"mobile"===e.form_type){n.push({validator:function(e,t,n){Object(o.b)(t)||Object(r.v)(t)?n():n(new Error("手机格式有误"))},item:e,trigger:["blur"]})}else if("email"===e.formType||"email"===e.form_type){n.push({validator:function(e,t,n){Object(o.b)(t)||Object(r.u)(t)?n():n(new Error("邮箱格式有误"))},item:e,trigger:["blur"]})}return n}}};t.a={mixins:[c],props:{},methods:{getItemValue:function(e,t,n){if(t=t||{},"contacts"==(e.formType||e.form_type)||"customer"==(e.formType||e.form_type)||"contract"==(e.formType||e.form_type)||"business"==(e.formType||e.form_type)){if("update"===n)return e.value?Object(r.t)(e.value):[];var i=t[e.form_type];return i?[i]:[]}return"category"==e.form_type||"category"==e.form_type?e.value?e.value.map(function(e){return parseInt(e)}):[]:"product"==e.form_type||"product"==e.form_type?e.value:"map_address"==e.form_type||"map_address"==e.form_type?"update"==n?(e.value.address&&(e.value.address=0==e.value.address.length?"":e.value.address),e.value):{}:"single_user"==e.form_type?"update"===n?Object(o.c)(e.value)&&e.value.userId?e.value.userId:"":Object(o.a)(e.default_value)&&e.default_value.length>0?Object(r.t)(e.default_value[0]).userId:"":"user"==e.form_type||"structure"==e.form_type||"file"==e.form_type?"update"===n?e.value?Object(r.t)(e.value):[]:e.default_value&&e.default_value?Object(r.t)(e.default_value):[]:"update"==n?e.value||"":e.default_value||""},getUniquePromise:function(e,t,n){return new a.a(function(i,a){var r={};if(r.fieldId=e.fieldId,Object(o.a)(t)){var c="";t.length>0&&("user"==e.formType||"structure"==e.formType?c=t.map(function(t){return"user"==e.formType?t.userId:t.id}).join(","):"categoryId"==e.fieldName?c=t&&t.length?t[t.length-1]:"":"checkbox"==e.formType&&(c=t.join(","))),r.val=c}else r.val=t,r.types=e.types,r.field=e.field;"update"==n.type&&(r.id=n.action_id||n.id),Object(s.C)(r).then(function(t){var n=t||{};200===t.code?i():n.ownerUserName?a(e.name+"已存在,负责人为“"+n.ownerUserName+"”"):n.poolNames&&n.poolNames.length>0?a(e.name+"已存在,当前位于公海“"+n.poolNames.join("")+"”"):a(e.name+"已存在")}).catch(function(){a(e.name+"已存在")})})},getItemIsCanEdit:function(e,t){return 1===e.writeStatus},getItemRadio:function(e,t){"user"==e.formType||"structure"==e.formType||"user"==e.form_type||"structure"==e.form_type?t.radio=!1:"single_user"==e.formType&&(t.radio=!0)},getFormErrorMessage:function(e){if(e.fields)for(var t=0;t<e.fields.length;t++){var n=e.fields[t];if("error"==n.validateState){this.$message.error(n.validateMessage);break}}},getItemRelatveInfo:function(e,t){var n=null;if("relative"==this.action.type)n=this.action.data[t];else{var i=e.find(function(e){return e.form_type===t});i&&i.value&&i.value.length>0&&(n=i.value[0])}return n},getSubmiteParams:function(e,t){for(var n={address:[]},i=0;i<e.length;i++){var a=e[i];if("product"==a.form_type)this.getProductParams(n,t[a.field]);else if("map_address"==a.form_type)this.getCustomerAddressParams(n,t[a.field]);else if(1==a.field_type){var s=this.getRealParams(a,t[a.field]);n[a.field]=Object(o.b)(s)?"":s}else a.value=this.getRealParams(a,t[a.field],t),n[a.field]=a.value}return n},getProductParams:function(e,t){t?(e.product=t.product?t.product.map(function(e){return e.sales_price=""==e.sales_price?0:e.sales_price,e.num=""==e.num?0:e.num,e.discount=""==e.discount?0:e.discount,e.product_id=e.product_id||"",e.category_id_info=e.categoryName||"默认",e}):[],e.total_price=t.total_price?t.total_price:0,e.discount_rate=t.discount_rate?t.discount_rate:0):(e.product=[],e.total_price="",e.discount_rate="")},getCustomerAddressParams:function(e,t){e.address=t.address?t.address:"",e.detail_address=t.detail_address,e.location=t.location,e.lng=t.lng,e.lat=t.lat},getRealParams:function(e,t,n){return"customer_id"==e.field||"contacts_id"==e.field||"business_id"==e.field||"leads_id"==e.field||"contract_id"==e.field?t&&t.length?t[0][e.field]:"":"user"==e.form_type||"structure"==e.form_type?t?t.join(","):"":"file"==e.form_type?t&&t.length>0?t.map(function(e){return e.file_id}):[]:"category"==e.form_type?t&&t.length>0?t[t.length-1]:"":"checkbox"==e.form_type?t&&t.length>0?t.join(","):"":"date"==e.form_type?t||void delete n[e.field]:t}}}},IQEA:function(e,t,n){"use strict";var i=n("aQ3C");n.n(i).a},IY2h:function(e,t,n){},Ialk:function(e,t,n){},"Ir+r":function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n("t3Un");function a(e){return Object(i.a)({url:"work/taskcomment/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"oa/log/commentSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(i.a)({url:"work/taskcomment/delete",method:"post",data:e})}function r(e){return Object(i.a)({url:"oa/log/commentList",method:"post",data:e})}},Ivvq:function(e,t,n){},J1me:function(e,t,n){"use strict";var i=n("sesI");n.n(i).a},JF0c:function(e,t,n){"use strict";var i=n("2yjV");n.n(i).a},JqEL:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)},a=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}},K2OQ:function(e,t,n){},K2es:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAAGzlLJTAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6AB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X+VbrL8PpgCWDfHK3ueLQERunKoh3qo8j+P2CmY/X8/FbIAAAAAElFTkSuQmCC"},K8Pg:function(e,t,n){"use strict";var i=n("P/wC");n.n(i).a},KQfp:function(e,t,n){},KS45:function(e,t,n){"use strict";var i=n("CnhX");n.n(i).a},KTTK:function(e,t,n){"use strict";n.d(t,"w",function(){return c}),n.d(t,"x",function(){return l}),n.d(t,"j",function(){return u}),n.d(t,"n",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"m",function(){return h}),n.d(t,"h",function(){return m}),n.d(t,"f",function(){return f}),n.d(t,"y",function(){return g}),n.d(t,"g",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"e",function(){return y}),n.d(t,"i",function(){return k}),n.d(t,"d",function(){return w}),n.d(t,"a",function(){return _}),n.d(t,"r",function(){return C}),n.d(t,"o",function(){return A}),n.d(t,"u",function(){return x}),n.d(t,"s",function(){return j}),n.d(t,"t",function(){return T}),n.d(t,"v",function(){return I}),n.d(t,"p",function(){return D}),n.d(t,"q",function(){return S}),n.d(t,"k",function(){return F}),n.d(t,"l",function(){return O});var i=n("QbLZ"),a=n.n(i),s=n("GQeE"),o=n.n(s),r=n("t3Un");function c(e){return Object(r.a)({url:"admin/users/getUserList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(r.a)({url:"admin/users/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(r.a)({url:"admin/structures/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(r.a)({url:"admin/structures/listDialog",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(r.a)({url:"adminDept/queryDeptByAuth",method:"post",data:e})}function h(e){return Object(r.a)({url:"adminUser/queryUserByDeptId",method:"post",data:e})}var m=window.BASE_URL+"admin/file/save";function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new FormData;return o()(e).forEach(function(t){n.append(t,e[t])}),Object(r.a)(a()({url:"admin/file/save",method:"post",data:n},t,{headers:{"Content-Type":"multipart/form-data"}}))}function g(e){var t=new FormData;return o()(e).forEach(function(n){t.append(n,e[n]),t.append("isPublic","1")}),Object(r.a)({url:"adminFile/upload",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function v(e){var t=new FormData;return o()(e).forEach(function(n){t.append(n,e[n])}),Object(r.a)({url:"admin/file/save",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function b(e){return Object(r.a)({url:"admin/file/delete",method:"post",data:e})}function y(e){return Object(r.a)({url:"admin/file/deleteAll",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function k(e){return Object(r.a)({url:"admin/file/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function w(e){return Object(r.a)({url:"crmPrint/down",method:"post",data:e,responseType:"blob"})}function _(e){return Object(r.a)({url:"admin/index/authList",method:"post",data:e})}function C(e){return Object(r.a)({url:"admin/message/messageList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function A(e){return Object(r.a)({url:"admin/index/importList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function x(e){return Object(r.a)({url:"admin/message/unreadCount",method:"post",data:e})}function j(e){return Object(r.a)({url:"admin/message/updateMessage",method:"post",data:e})}function T(e){return Object(r.a)({url:"admin/message/readAllMessage",method:"post",data:e})}function I(e){return Object(r.a)({url:"admin/users/read",method:"post",data:e})}function D(e){return Object(r.a)({url:"admin/message/clear",method:"post",data:e})}function S(e){return Object(r.a)({url:"admin/message/delete",method:"post",data:e})}function F(e){return Object(r.a)({url:"admin/file/download",method:"post",data:e,responseType:"blob"})}function O(e){return Object(r.a)({url:"admin/file/downloadImage",method:"post",data:e,responseType:"blob"})}},KhIf:function(e,t,n){"use strict";var i=n("NASp");n.n(i).a},Ki5h:function(e,t,n){},L1o4:function(e,t,n){},LAru:function(e,t,n){"use strict";var i=n("rcqw");n.n(i).a},LWkM:function(e,t,n){"use strict";n.d(t,"d",function(){return o}),n.d(t,"x",function(){return r}),n.d(t,"r",function(){return c}),n.d(t,"y",function(){return l}),n.d(t,"o",function(){return u}),n.d(t,"z",function(){return d}),n.d(t,"p",function(){return p}),n.d(t,"u",function(){return h}),n.d(t,"h",function(){return m}),n.d(t,"i",function(){return f}),n.d(t,"l",function(){return g}),n.d(t,"s",function(){return v}),n.d(t,"w",function(){return b}),n.d(t,"v",function(){return y}),n.d(t,"f",function(){return k}),n.d(t,"e",function(){return w}),n.d(t,"k",function(){return _}),n.d(t,"j",function(){return C}),n.d(t,"m",function(){return A}),n.d(t,"t",function(){return x}),n.d(t,"q",function(){return j}),n.d(t,"A",function(){return T}),n.d(t,"g",function(){return I}),n.d(t,"b",function(){return D}),n.d(t,"c",function(){return S}),n.d(t,"a",function(){return F}),n.d(t,"n",function(){return O});var i=n("GQeE"),a=n.n(i),s=n("t3Un");function o(e){return Object(s.a)({url:"work/task/archList",method:"post",data:e})}function r(e){return Object(s.a)({url:"work/work/read",method:"post",data:e})}function c(e){return Object(s.a)({url:"work/work/delete",method:"post",data:e})}function l(e){return Object(s.a)({url:"work/work/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(s.a)({url:"work/work/arRecover",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(s.a)({url:"work/work/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(s.a)({url:"work/work/archive",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(s.a)({url:"work/work/leave",method:"post",data:e})}function m(e){return Object(s.a)({url:"work/task/index",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function f(e){return Object(s.a)({url:"work/task/ownerTaskList",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function g(e){return Object(s.a)({url:"work/taskclass/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(s.a)({url:"work/work/fileList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(s.a)({url:"work/work/ownerList",method:"post",data:e})}function y(e){return Object(s.a)({url:"work/work/ownerDel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function k(e){return Object(s.a)({url:"work/task/archiveTask",method:"post",data:e})}function w(e){return Object(s.a)({url:"work/task/archiveTask",method:"post",data:e})}function _(e){return Object(s.a)({url:"work/task/updateOrder",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function C(e){return Object(s.a)({url:"work/task/updateClassOrder",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function A(e){return Object(s.a)({url:"work/work/ownerAdd",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function x(e){return Object(s.a)({url:"work/work/groupList",method:"post",data:e})}function j(e){return Object(s.a)({url:"work/work/follow",method:"post",data:e})}function T(e){return Object(s.a)({url:"work/work/updateWorkOrder",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function I(e){return Object(s.a)({url:"work/task/excelExport",method:"post",data:e,responseType:"blob"})}function D(e){return Object(s.a)({url:"work/task/excelDownload",method:"get",data:e,responseType:"blob"})}function S(e){var t=new FormData;return a()(e).forEach(function(n){t.append(n,e[n])}),Object(s.a)({url:"work/task/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function F(e){return Object(s.a)({url:"work/work/downloadErrorExcel",method:"post",data:e,responseType:"blob"})}function O(e){return Object(s.a)({url:"work/work/addUserGroup",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}},Lc3V:function(e,t,n){"use strict";var i=n("PBV5");n.n(i).a},Le4E:function(e,t,n){"use strict";var i=n("on6s");n.n(i).a},Lkl6:function(e,t,n){},NASp:function(e,t,n){},"NO/o":function(e,t,n){"use strict";var i=n("l1nQ");n.n(i).a},NQ67:function(e,t,n){"use strict";var i=n("YNXL");n.n(i).a},NfXs:function(e,t,n){"use strict";var i=n("UE98");n.n(i).a},Nsgs:function(e,t,n){},O3aB:function(e,t,n){},OWIW:function(e,t,n){"use strict";var i=n("gWfY");n.n(i).a},"P/wC":function(e,t,n){},P4SL:function(e,t,n){"use strict";var i=n("x893");n.n(i).a},PBV5:function(e,t,n){},PIPd:function(e,t,n){"use strict";var i=n("BHUF");n.n(i).a},Pqxw:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},PrJF:function(e,t,n){"use strict";var i=n("oZyZ");n.n(i).a},Q2AE:function(e,t,n){"use strict";var i=n("Kw5r"),a=n("L2JU"),s=n("4d7F"),o=n.n(s),r=n("gDS+"),c=n.n(r),l=n("fe1z"),u=n("KTTK"),d=n("oYx3"),p=n("ef+5"),h=n("X4fA"),m=n("4peS"),f=n.n(m),g={state:{userInfo:null,allAuth:null,crm:{},bi:{},manage:{},oa:{},project:{}},mutations:{SET_USERINFO:function(e,t){e.userInfo=t,localStorage.setItem("loginUserInfo",c()(t))},SET_ALLAUTH:function(e,t){e.allAuth=t},SET_CRM:function(e,t){e.crm=t},SET_BI:function(e,t){e.bi=t},SET_MANAGE:function(e,t){e.manage=t},SET_OA:function(e,t){e.oa=t},SET_PROJECT:function(e,t){e.project=t},SET_AUTH:function(e,t){var n=t.authKey,i=t.sessionId;f.a.set("authKey",n),f.a.set("sessionId",i),Object(h.a)(n,i)}},actions:{Login:function(e,t){var n=e.commit,i=e.dispatch;return new o.a(function(e,a){Object(l.b)(t).then(function(t){var a=t.data||a;a.hasOwnProperty("companyList")||(n("SET_AUTH",a),i("GetUserInfo")),e(t)}).catch(function(e){i("LogOut"),a(e)})})},getAuth:function(e){var t=e.commit;return new o.a(function(e,n){Object(u.a)().then(function(n){var i=n.data;f.a.set("authList",i),i.wkFirstModel=i.firstModel,t("SET_ALLAUTH",i),t("SET_CRM",i.crm),t("SET_BI",i.bi),t("SET_MANAGE",i.manage),t("SET_OA",i.oa),t("SET_PROJECT",i.project),e(i)}).catch(function(e){n(e)})})},GetUserInfo:function(e){var t=e.commit;e.state;return new o.a(function(e,n){Object(p.a)().then(function(n){t("SET_USERINFO",n.data),e(n)}).catch(function(e){n(e)})})},LogOut:function(e){e.commit;return new o.a(function(e,t){Object(l.c)().then(function(){Object(h.c)(),Object(d.c)(),e()}).catch(function(e){t(e)})})}}},v=n("QbLZ"),b=n.n(v),y=n("jVVe");var k=function(e,t){for(var n=0;n<e.length;n++){if(!(t=t[e[n]]))return!1;if(e.length-1===n)return!0}},w=function e(t,n){var i=[];return t.forEach(function(t){var a=b()({},t);(function(e,t){if(e.meta){var n=e.meta;if(!n.requiresAuth)return!0;if(n.permissions)return t=b()({},t),k(n.permissions,t);if(n.permissionList){for(var i=0;i<n.permissionList.length;i++)if(t=b()({},t),k(n.permissionList[i],t))return!0;return!1}}return!0})(a,n)&&(a.children&&(a.children=e(a.children,n)),i.push(a))}),i},_=function e(t){var n=[];return t.forEach(function(t){var i=b()({},t);i.ignore||(i.children&&(i.children=e(i.children)),n.push(i))}),n},C=function(e,t){!function(e,t){e&&e.manage&&e.manage.permission?Object(y.a)().then(function(e){t&&t({requiresAuth:!0,list:e.data||[]})}).catch(function(){}):t&&t({requiresAuth:!1})}(e,function(n){for(var i={},a=[],s="",o="",r=0;r<d.a.length;r++){for(var c=d.a[r],l=w(c.router,e),u=0;u<l.length;u++){var p=l[u];if("manage"==c.type&&n.requiresAuth){var h=l.find(function(e){return"manage-role-auth"==e.name}),m=n.list.map(function(e){return{name:"role-auth",path:"role-auth/"+e.pid+"/"+encodeURI(e.name),ignore:!0,meta:{title:e.name}}});if(m&&m.length>0)h.children[0].meta.redirect=m[0].path,h.children=h.children.concat(m)}if(p.children&&p.children.length>0){var f=p.children[0],g=f.meta&&f.meta.redirect||f.path;p.redirect=p.path+"/"+g}if(p.redirect){if(s||(s=p.redirect),e.wkFirstModel&&!o)({crm:"crm",taskExamine:"taskExamine",log:"workLog",book:"addressBook",project:"project",bi:"bi",calendar:"calendar"})[e.wkFirstModel]==c.type&&(o=p.redirect);l.push({path:"/"+c.type,name:c.type,redirect:p.redirect,hidden:!0});break}}i[c.type]=l,a=a.concat(_(l))}(s||o)&&a.push({path:"/",redirect:o||s,hidden:!0}),t&&t({router:i,addRouter:a})})};var A={state:{addRouters:[],crmRouters:[],taskExamineRouters:[],workLogRouters:[],addressBookRouters:[],projectRouters:[],biRouters:[],manageRouters:[]},mutations:{SET_ROUTERS:function(e,t){e.addRouters=t.addRouter,e.crmRouters=t.router.crm||[],e.workLogRouters=t.router.workLog||[],e.taskExamineRouters=t.router.taskExamine||[],e.addressBookRouters=t.router.addressBook||[],e.projectRouters=t.router.project||[],e.biRouters=t.router.bi||[],e.manageRouters=t.router.manage||[]},SET_CRMROUTERSNUM:function(e,t){var n=e.crmRouters[1];n.children[0].meta.num=t,i.default.set(e.crmRouters,1,n)},SET_GROUPSLIST:function(e,t){e.groupsList=t}},actions:{GenerateRoutes:function(e,t){var n=e.commit;e.state;return new o.a(function(e){C(t,function(t){n("SET_ROUTERS",t),e()})})}}},x=n("3qbY"),j=n("6iAj"),T=n("2nGb"),I={state:{logo:"",name:"",lang:localStorage.lang||"cn",sidebar:{activeIndex:"",collapse:f.a.get("sideBarCollapse")||!1},navbar:{activeIndex:""},CRMConfig:{},imageCache:{},headerModule:null},mutations:{SET_ACTIVEINDEX:function(e,t){e.sidebar.activeIndex=t},SET_COLLAPSE:function(e,t){e.sidebar.collapse=t,f.a.set("sideBarCollapse",t)},SET_NAVACTIVEINDEX:function(e,t){e.navbar.activeIndex=t},SET_APPLOGO:function(e,t){e.logo=t},SET_APPNAME:function(e,t){e.name=t},SET_LANG:function(e,t){e.lang=t,window.app.$i18n.locale=t,localStorage.setItem("lang",t),window.location.reload()},SET_CRMCONFIG:function(e,t){e.CRMConfig=t},SET_IMAGECACHE:function(e,t){e.imageCache=t}},actions:{SystemLogoAndName:function(e){var t=e.commit;return new o.a(function(e,n){Object(x.a)().then(function(n){t("SET_APPNAME",n.data.name),t("SET_APPLOGO",n.data.logo),f.a.set("systemLogo",n.data.logo),f.a.set("systemName",n.data.name),e(n)}).catch(function(e){n(e)})})},CRMSettingConfig:function(e){var t=e.commit;return new o.a(function(e,n){Object(j.l)().then(function(n){t("SET_CRMCONFIG",n.data),e(n)}).catch(function(e){n(e)})})},WKHeaderModule:function(e){e.commit;var t=e.state;return new o.a(function(e,n){Object(T.a)().then(function(n){t.headerModule=n.data||[],e(n)}).catch(function(e){t.headerModule=[],n(e)})})}}},D=n("Ra/C"),S={state:{messageNum:{todayCustomer:0,followLeads:0,followCustomer:0,checkContract:0,checkReceivables:0,remindReceivablesPlan:0,endContract:0,totalNum:0}},mutations:{SET_MESSAGENUM:function(e,t){var n=0;for(var i in t)"totalNum"!=i&&(n+=t[i]||0);t.totalNum=n,e.messageNum=t}},actions:{GetMessageNum:function(e){var t=e.state,n=e.commit;return new o.a(function(e,i){Object(D.c)().then(function(i){n("SET_MESSAGENUM",i.data),n("SET_CRMROUTERSNUM",t.messageNum.totalNum),e(i)}).catch(function(e){i(e)})})}}},F={userInfo:function(e){return e.user.userInfo},lang:function(e){return e.app.lang},app:function(e){return e.app},logo:function(e){return e.app.logo?e.app.logo:n("T/0B")},name:function(e){return e.app.name?e.app.name:"悟空CRM"},collapse:function(e){return e.app.sidebar.collapse},activeIndex:function(e){return e.app.sidebar.activeIndex},navActiveIndex:function(e){return e.app.navbar.activeIndex},headerModule:function(e){return e.app.headerModule},allAuth:function(e){return e.user.allAuth},crm:function(e){return e.user.crm},bi:function(e){return e.user.bi},manage:function(e){return e.user.manage},oa:function(e){return e.user.oa},project:function(e){return e.user.project},addRouters:function(e){return e.permission.addRouters},crmRouters:function(e){return e.permission.crmRouters},taskExamineRouters:function(e){return e.permission.taskExamineRouters},workLogRouters:function(e){return e.permission.workLogRouters},addressBookRouters:function(e){return e.permission.addressBookRouters},projectRouters:function(e){return e.permission.projectRouters},biRouters:function(e){return e.permission.biRouters},manageRouters:function(e){return e.permission.manageRouters},messageNum:function(e){return e.crm.messageNum},CRMConfig:function(e){return e.app.CRMConfig},imageCache:function(e){return e.app.imageCache}};i.default.use(a.a);var O=new a.a.Store({modules:{app:I,permission:A,user:g,crm:S},getters:F});t.a=O},Q3cC:function(e,t,n){},Q4J0:function(e,t,n){"use strict";t.a={data:function(){return{dataValue:{}}},watch:{value:function(e){this.dataValue=e}},props:{value:{type:Object,default:function(){return{}}},index:Number,item:Object,disabled:{type:Boolean,default:!1}},created:function(){this.dataValue=this.value},methods:{valueChange:function(e){this.$emit("value-change",{index:this.index,value:e})}}}},QHYT:function(e,t,n){"use strict";var i=n("7jNW");n.n(i).a},"R+T8":function(e,t,n){},ROSF:function(e,t,n){"use strict";var i=n("GQeE"),a=n.n(i),s=n("VcMt"),o=n("7Dod"),r=n("gVZb"),c=n("EP+0"),l=n("lcu+"),u=n("8GhS"),d=n("mkuN"),p={name:"InvoiceCreate",components:{XrCreate:r.a,CreateSections:c.a,CreateExamineInfo:l.a,XhInput:u.g,XhTextarea:u.o,XhSelect:u.l,XhDate:u.d,CrmRelativeCell:u.a,CrmRelative:d.a},filters:{typeToComponent:function(e){return"text"==e||"floatnumber"==e?"XhInput":"select"==e?"XhSelect":"contract"==e||"customer"==e?"CrmRelativeCell":"date"==e?"XhDate":"textarea"==e?"XhTextarea":void 0}},props:{detail:Object},data:function(){return{loading:!1,baseFields:[],rules:{customer_id:[{required:!0,message:"请选择客户名称",trigger:"change"}],contract_id:[{required:!0,message:"请选择合同编号",trigger:"change"}],invoice_money:[{required:!0,message:"请输入开票金额",trigger:["blur","change"]}],invoice_type:[{required:!0,message:"请选择开票类型",trigger:"change"}]},baseFrom:{},showPopover:!1,titleAction:{type:"default"},showSelectView:!1,otherFields:[],otherRules:{title_type:[{required:!0,message:"请选择抬头类型",trigger:"change"}]},otherFrom:{title_type:1},mailFields:[],mailRules:{},mailFrom:{},examineInfo:{}}},computed:{editId:function(){return this.detail?this.detail.invoice_id:""},title:function(){return this.isEdit?"编辑发票":"新建发票"},isEdit:function(){return!!this.editId},isOpenExamine:function(){return!!this.examineInfo&&(!(a()(this.examineInfo).length>0)||this.examineInfo.examineStatus)},confirmButtonText:function(){return this.isOpenExamine?"提交审核":"保存"}},watch:{},created:function(){if(this.getInvoiceNumberConfig(),this.detail&&this.detail.customerId&&(this.baseFrom={customer_id:[{name:this.detail.customerName,customer_id:this.detail.customerId}],contract_id:this.detail.contract_id?[{num:this.detail.contract_number,contract_id:this.detail.contract_id}]:[]}),this.detail){var e={};e.invoice_apple_number=this.detail.essential&&this.detail.essential.invoice_apple_number,e.customer_id=this.detail.essential&&this.detail.essential.customer_id?[{name:this.detail.essential.customer_name,customer_id:this.detail.essential.customer_id}]:[],this.detail.essential&&this.detail.essential.customer_id?this.titleAction={type:"default",request:o.m,showScene:!1,showSearch:!1,showCreate:!1,canShowDetail:!0,params:{customer_id:this.detail.essential.customer_id}}:this.detail.customerId&&(this.titleAction={type:"default",request:o.m,showScene:!1,showSearch:!1,showCreate:!1,canShowDetail:!0,params:{customer_id:this.detail.customerId}}),this.detail.essential&&(e.contract_id=this.detail.essential.contract_id?[{num:this.detail.essential.contract_number,contract_id:this.detail.essential.contract_id}]:[],e.contract_money=this.detail.essential.contract_money,e.invoice_money=this.detail.essential.invoice_money,e.invoice_date=this.detail.essential.invoice_date,e.invoice_type=this.detail.essential.invoice_type,e.remark=this.detail.essential.remark,this.baseFrom=e);var t={};this.detail.invoice&&(t.title_type=this.detail.invoice.title_type,t.invoice_title=this.detail.invoice.invoice_title,t.tax_number=this.detail.invoice.tax_number,t.deposit_bank=this.detail.invoice.deposit_bank,t.deposit_account=this.detail.invoice.deposit_account,t.deposit_address=this.detail.invoice.deposit_address,t.phone=this.detail.invoice.phone,this.otherFrom=t);var n={};this.detail.posting&&(n.contacts_name=this.detail.posting.contacts_name,n.contacts_mobile=this.detail.posting.contacts_mobile,n.contacts_address=this.detail.posting.contacts_address,this.mailFrom=n)}},mounted:function(){},beforeDestroy:function(){},methods:{getInvoiceNumberConfig:function(){var e=this;Object(s.f)({type:"crm_invoice"}).then(function(t){e.getField(t.data.status)}).catch(function(){})},getField:function(e){e||this.$set(this.rules,"invoice_apple_number",[{required:!0,message:"请输入发票申请编号",trigger:["blur","change"]}]),this.baseFields=[{name:"发票申请编号",field:"invoice_apple_number",formType:"text",autoGeneNumber:e,setting:[]},{name:"客户名称",field:"customer_id",formType:"customer",setting:[]},{name:"合同编号",field:"contract_id",formType:"contract",disabled:!(this.detail&&(this.detail.customer_id||this.detail.customerId)),relation:this.detail&&(this.detail.customer_id||this.detail.customerId)?{moduleType:"customer",params:{check_status:2},customerName:this.detail.customer_name,customer_id:this.detail.customer_id||this.detail.customerId}:null,setting:[]},{name:"合同金额",field:"contract_money",formType:"text",disabled:!0,setting:[]},{name:"开票金额(元)",field:"invoice_money",formType:"floatnumber",setting:[]},{name:"开票日期",field:"invoice_date",formType:"date",setting:[]},{name:"开票类型",field:"invoice_type",formType:"select",setting:[{name:"增值税专用发票",value:1},{name:"增值税普通发票",value:2},{name:"国税通用机打发票",value:3},{name:"地税通用机打发票",value:4},{name:"收据",value:5}]},{name:"备注",field:"remark",formType:"textarea",setting:[]}],this.otherFields=[{name:"抬头类型",field:"title_type",formType:"select",setting:[{name:"单位",value:1},{name:"个人",value:2}]},{name:"开票抬头",field:"invoice_title",formType:"text",setting:[]},{name:"纳税人识别号",field:"tax_number",formType:"text",hidden:!1,setting:[]},{name:"开户行",field:"deposit_bank",formType:"text",hidden:!1,setting:[]},{name:"开户账号",field:"deposit_account",formType:"text",hidden:!1,setting:[]},{name:"开票地址",field:"deposit_address",formType:"text",hidden:!1,setting:[]},{name:"电话",field:"phone",formType:"text",setting:[]}],this.mailFields=[{name:"联系人",field:"contacts_name",formType:"text",setting:[]},{name:"联系方式",field:"contacts_mobile",formType:"text",setting:[]},{name:"邮寄地址",field:"contacts_address",formType:"text",setting:[]}]},titleSelectChange:function(e){var t=e.data;if(t&&t.length){for(var n=t[0],i=0;i<this.otherFields.length;i++){var a=this.otherFields[i];this.$set(this.otherFrom,a.field,n[a.field])}var s=2==n.titleType;this.otherFields[2].hidden=s,this.otherFields[3].hidden=s,this.otherFields[4].hidden=s,this.otherFields[5].hidden=s}},fieldValueChange:function(e){var t=this.baseFields[e.index],n=e.value;if(this.$set(this.baseFrom,t.field,n),"customer"==t.formType){var i=this.baseFields[e.index+1];if(n.length){i.disabled=!1;var a=n[0];a.moduleType="customer",a.params={check_status:2},i.relation=a,this.$set(this.mailFrom,"contactsName",a.contactsName),this.$set(this.mailFrom,"contactsMobile",a.contactsMobile),this.$set(this.mailFrom,"contactsAddress",a.contactsAddress),this.titleAction={type:"default",request:o.m,showScene:!1,showSearch:!1,showCreate:!1,canShowDetail:!0,params:{customer_id:a.customer_id}}}else i.disabled=!0,i.relation={};this.$set(this.baseFrom,"contract_id",[]),this.$set(this.baseFrom,"invoice_money",""),this.$set(this.baseFrom,"contract_money",""),this.$refs.crmForm.validateField(t.field)}else if("contract"==t.formType){var s=n&&n.length?n[0]:null;this.$set(this.baseFrom,"contract_money",s?s.money:""),this.$set(this.baseFrom,"invoice_money",s?s.money:""),this.$refs.crmForm.validateField(t.field)}},otherFieldValueChange:function(e){var t=this.otherFields[e.index],n=e.value;if("title_type"==t.field){var i=2==n;this.otherFields[2].hidden=i,this.otherFields[3].hidden=i,this.otherFields[4].hidden=i,this.otherFields[5].hidden=i}this.$set(this.otherFrom,t.field,n)},mailFieldValueChange:function(e){var t=this.mailFields[e.index],n=e.value;this.$set(this.mailFrom,t.field,n)},examineValueChange:function(e){this.examineInfo=e},close:function(){this.$emit("close")},saveClick:function(){var e=this;this.$refs.crmForm.validate(function(t){if(t){for(var n={examineStatus:e.examineInfo.examineStatus},i=0;i<e.baseFields.length;i++){var a=e.baseFields[i];if(!a.disabled)if("customer"==a.formType){var o=e.baseFrom.customer_id&&e.baseFrom.customer_id.length?e.baseFrom.customer_id[0]:null;n[a.field]=o?o.customer_id:""}else if("contract"==a.formType){var r=e.baseFrom.contract_id&&e.baseFrom.contract_id.length?e.baseFrom.contract_id[0]:null;n[a.field]=r?r.contract_id:""}else n[a.field]=e.baseFrom[a.field]}for(var c=0;c<e.otherFields.length;c++){var l=e.otherFields[c];l.disabled||(n[l.field]=e.otherFrom[l.field])}for(var u=0;u<e.mailFields.length;u++){var d=e.mailFields[u];d.disabled||(n[d.field]=e.mailFrom[d.field])}e.isEdit&&(n.invoice_id=e.detail.invoice_id,n.batchId=e.detail.batchId),e.getExamineValidateResult(function(t){if(t){0===e.examineInfo.config&&(n.check_user_id=e.examineInfo.value[0].id);var i=e.isEdit?s.m:s.h;e.loading=!0,i(n).then(function(t){e.loading=!1,e.close(),e.$emit("save-success")}).catch(function(){e.loading=!1})}})}})},getExamineValidateResult:function(e){this.isOpenExamine?this.$refs.examineInfo.validateField(function(t){e(t)}):e(!0)}}},h=(n("EhN/"),n("KHd+")),m=Object(h.a)(p,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,"confirm-button-text":e.confirmButtonText},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("el-form",{ref:"crmForm",attrs:{model:e.baseFrom,rules:e.rules,"label-position":"top"}},e._l(e.baseFields,function(t,i){return n("el-form-item",{key:t.key,attrs:{prop:t.field}},[n("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(t.name)+"\n "),n("span",{staticStyle:{color:"#999"}},[e._v("\n "+e._s(t.tips||"")+"\n ")])]),e._v(" "),n(e._f("typeToComponent")(t.formType),{tag:"component",attrs:{value:e.baseFrom[t.field],index:i,item:t,relation:t.relation,"relative-type":t.formType,disabled:t.disabled,clearable:!1},on:{"value-change":e.fieldValueChange}})],1)}))],1),e._v(" "),n("create-sections",{attrs:{title:"发票信息"}},[n("div",{staticStyle:{padding:"10px 20px","text-align":"right"}},[n("el-popover",{staticStyle:{padding:"0 !important"},attrs:{placement:"top",width:"700",trigger:"click"},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[e.showSelectView?n("crm-relative",{ref:"crmrelative",attrs:{show:e.showPopover,action:e.titleAction,radio:"","crm-type":"invoiceTitle"},on:{close:function(t){e.showPopover=!1},changeCheckout:e.titleSelectChange}}):e._e(),e._v(" "),n("el-button",{attrs:{slot:"reference",disabled:!e.baseFrom.customer_id,type:"primary"},on:{click:function(t){e.showSelectView=!0}},slot:"reference"},[e._v("选择发票信息")])],1)],1),e._v(" "),n("el-form",{ref:"otherFrom",attrs:{model:e.otherFrom,rules:e.otherRules,"label-position":"top"}},e._l(e.otherFields,function(t,i){return n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!t.hidden,expression:"!item.hidden"}],key:t.key,attrs:{prop:t.field}},[n("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(t.name)+"\n "),n("span",{staticStyle:{color:"#999"}},[e._v("\n "+e._s(t.tips||"")+"\n ")])]),e._v(" "),n(e._f("typeToComponent")(t.formType),{tag:"component",attrs:{value:e.otherFrom[t.field],index:i,item:t,"relative-type":t.formType,disabled:t.disabled,clearable:!1},on:{"value-change":e.otherFieldValueChange}})],1)}))],1),e._v(" "),n("create-sections",{attrs:{title:"邮寄信息"}},[n("el-form",{ref:"mailFrom",attrs:{model:e.mailFrom,rules:e.mailRules,"label-position":"top"}},e._l(e.mailFields,function(t,i){return n("el-form-item",{key:t.key,attrs:{prop:t.field}},[n("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(t.name)+"\n "),n("span",{staticStyle:{color:"#999"}},[e._v("\n "+e._s(t.tips||"")+"\n ")])]),e._v(" "),n(e._f("typeToComponent")(t.formType),{tag:"component",attrs:{value:e.mailFrom[t.field],index:i,item:t,"relative-type":t.formType,disabled:t.disabled,clearable:!1},on:{"value-change":e.mailFieldValueChange}})],1)}))],1),e._v(" "),e.isOpenExamine?n("create-sections",{attrs:{title:"审核信息"}},[0===e.examineInfo.config||1===e.examineInfo.config?n("div",{staticClass:"examine-type",attrs:{slot:"header"},slot:"header"},[e._v(e._s(1===e.examineInfo.config?"固定审批流":"授权审批人"))]):e._e(),e._v(" "),n("create-examine-info",{ref:"examineInfo",attrs:{"types-id":e.editId,types:"crm_invoice"},on:{"value-change":e.examineValueChange}})],1):e._e()],1)},[],!1,null,"69836690",null);m.options.__file="Create.vue";t.a=m.exports},RVjX:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT4AAADiCAYAAADXs6vQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkNCOUEyRTc4MjUxRTExR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lj1dX5N/Nzc2pHeP/CzAAzay4DN/IlEgAAAAASUVORK5CYII="},"Ra/C":function(e,t,n){"use strict";n.d(t,"g",function(){return a}),n.d(t,"i",function(){return s}),n.d(t,"m",function(){return o}),n.d(t,"n",function(){return r}),n.d(t,"l",function(){return c}),n.d(t,"k",function(){return l}),n.d(t,"j",function(){return u}),n.d(t,"b",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return m}),n.d(t,"f",function(){return f}),n.d(t,"h",function(){return g}),n.d(t,"a",function(){return v}),n.d(t,"o",function(){return b});var i=n("t3Un");function a(e){return Object(i.a)({url:"crm/message/checkContract",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"crm/message/checkReceivables",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(i.a)({url:"crm/message/todayCustomer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"crm/message/todayLeads",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(i.a)({url:"crm/message/todayBusiness",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(i.a)({url:"crm/message/followLeads",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(i.a)({url:"crm/message/followCustomer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(i.a)({url:"crm/message/endContract",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i.a)({url:"crm/message/remindreceivablesplan",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i.a)({url:"crm/message/num",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(i.a)({url:"crm/message/remindCustomer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(i.a)({url:"crm/message/visitContract",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(i.a)({url:"crm/message/checkInvoice",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i.a)({url:"crm/message/allDeal",method:"post",data:e})}function b(e){return Object(i.a)({url:"crm/message/allDeal",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},Rb0w:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return o}),n.d(t,"b",function(){return r});var i=n("t3Un");function a(e){return Object(i.a)({url:"admin/work/roles",method:"post",data:e})}function s(e){return Object(i.a)({url:"admin/work/rules",method:"post",data:e})}function o(e){return Object(i.a)({url:"admin/work/"+(e.id?"updateRole":"saveRole"),method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function r(e){return Object(i.a)({url:"admin/work/deleteRole",method:"post",data:e})}},Rijt:function(e,t,n){},RnhZ:function(e,t,n){var i={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn-bd":"loYQ","./bn-bd.js":"loYQ","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-mx":"tbfe","./es-mx.js":"tbfe","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tk":"Wv91","./tk.js":"Wv91","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function a(e){var t=s(e);return n(t)}function s(e){var t=i[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(i)},a.resolve=s,e.exports=a,a.id="RnhZ"},RqNB:function(e,t,n){"use strict";var i=n("rE9t");n.n(i).a},Rw8k:function(e,t,n){},SApG:function(e,t,n){"use strict";var i=n("mXRo"),a=n("/407"),s=n("pKm3"),o=n("6VB+"),r=n("dAOq"),c=n("wd/R"),l=n.n(c),u={name:"TodayListDetail",components:{RelatedBusinessCell:a.a,CreateEvent:o.a,TaskDetail:s.a,CRMFullScreenDetail:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-10ff")]).then(n.bind(null,"3z7q"))}},filters:{dealIcon:function(e){return"已成交"==e?"wk wk-success deal-suc":"wk wk-close deal-un"},dealName:function(e){return"已成交"==e?"已成交":"未成交"}},mixins:[r.a],props:{id:{type:[String,Number],default:""},showTodayDetail:{type:Boolean,default:!1},todayDetailData:{type:Object,default:function(){return{customerList:[]}}},cusCheck:{type:Array,default:function(){return[]}}},data:function(){return{showFullDetail:!1,crmType:"customer",relationID:0,taskDetailShow:!1,taskID:0,detailIndex:-1,dialogVisible:!1,detail:{customerList:[]},fieldList:[],list:[],loading:!1,currentPage:1,pageSize:15,pageSizes:[15,30,45,60],total:0,moreTypes:[{title:"只删除本次",type:"delete"},{title:"删除此系列",type:"deleteAll"},{title:"只编辑本次",type:"edit"},{title:"编辑本系列",type:"editAll"}],showCreate:!1,editAll:!1,repeatText:"",blockColor:"",noticeList:[],timeList:["","分钟","小时","天"]}},computed:{relatedCount:function(){var e=this,t=0;return["customerList","contactsList","contractList","businessList"].forEach(function(n){e.detail[n]&&(t+=e.detail[n].length)}),t}},watch:{showTodayDetail:function(e){this.dialogVisible=e,e&&(-1==this.id?(this.getFieldList(),this.blockColor=this.todayDetailData.backgroundColor,this.detail={customerList:[]}):this.getDetail())},detail:{handler:function(e){1!==e.repetitionType?this.moreTypes=[{title:"删除",type:"delete"},{title:"编辑",type:"edit"}]:this.moreTypes=[{title:"只编辑本次",type:"edit"},{title:"编辑当前及以后",type:"editAll"},{title:"只删除本次",type:"delete"},{title:"删除此系列",type:"deleteAll"}]},deep:!0,immediate:!0}},methods:{getDetail:function(){var e=this;this.loading=!0;new Date(this.todayDetailData.startTime).getTime(),new Date(this.todayDetailData.endTime).getTime();Object(i.d)({event_id:this.id}).then(function(t){var n=t.data||{};n.contactsList=(n.contacts||[]).map(function(e){return e.contacts_id&&(e.contactsId=e.contacts_id),e}),n.customerList=(n.customer||[]).map(function(e){return e.customer_id&&(e.customerId=e.customer_id),e}),n.businessList=(n.business||[]).map(function(e){return e.business_id&&(e.businessId=e.business_id),e}),n.contractList=(n.contract||[]).map(function(e){return e.contract_id&&(e.contractId=e.contract_id),e}),e.detail=n,e.noticeList=t.data.notice,e.blockColor=e.detail.color,e.loading=!1}).catch(function(){e.loading=!1,e.close()})},getFieldList:function(){"customer"===this.todayDetailData.crmType?this.fieldList=[{label:"客户名称",prop:"name",width:105},{label:"下次联系时间",prop:"next_time",width:135},{label:"最后跟进时间",prop:"last_time",width:135},{label:"负责人",prop:"owner_user_name",width:80},{label:"创建时间 ",prop:"create_time",width:105}]:"leads"===this.todayDetailData.crmType?this.fieldList=[{label:"线索名称",prop:"name",width:105},{label:"下次联系时间",prop:"next_time",width:135},{label:"最后跟进时间",prop:"last_time",width:135},{label:"负责人",prop:"owner_user_name",width:80},{label:"创建时间 ",prop:"create_time",width:105}]:"business"===this.todayDetailData.crmType?this.fieldList=[{label:"商机名称",prop:"name",width:105},{label:"下次联系时间",prop:"next_time",width:135},{label:"最后跟进时间",prop:"last_time",width:135},{label:"负责人",prop:"owner_user_name",width:80},{label:"创建时间 ",prop:"create_time",width:105}]:"dealBusiness"===this.todayDetailData.crmType?this.fieldList=[{label:"商机名称",prop:"name",width:105},{label:"预计成交时间",prop:"deal_date",width:135},{label:"最后跟进时间",prop:"last_time",width:135},{label:"负责人",prop:"owner_user_name",width:80},{label:"创建时间 ",prop:"create_time",width:105}]:"receiveContract"===this.todayDetailData.crmType?this.fieldList=[{label:"合同编号",prop:"contract_num",width:105},{label:"客户名称",prop:"name",width:105},{label:"计划回款期数",prop:"plan_num",width:135},{label:"计划回款日期",prop:"return_date",width:135},{label:"计划回款方式",prop:"return_type",width:135}]:this.fieldList=[{label:"合同编号",prop:"num",width:105},{label:"合同名称",prop:"contract_name",width:105},{label:"客户名称",prop:"name",width:105},{label:"合同金额",prop:"money",width:105},{label:"开始日期",prop:"start_time",width:105},{label:"结束日期",prop:"end_time",width:105},{label:"负责人",prop:"owner_user_name",width:80}],this.getList()},summaryText:function(){if(1===this.detail.repetitionType)return"从不重复";if(2===this.detail.repetitionType){return"每"+(1==this.detail.repeatRate?"":this.detail.repeatRate)+"天"}return 3===this.detail.repetitionType?"每"+this.detail.repeatRate+"周,每周"+this.detail.repeatTime:4===this.detail.repetitionType?"每"+this.detail.repeatRate+"月,第"+this.detail.repeatTime+"天":5===this.detail.repetitionType?"每"+this.detail.repeatRate+"年":void 0},handelFieldList:function(e){for(var t=0;t<e.length;t++){var n=e[t],i=0;i=n.width?n.width:n.name&&n.name.length<=6?15*n.name.length+45:140,this.fieldList.push({prop:n.fieldName,label:n.name,width:i})}},getList:function(){var e=this,t=this.getIndexRequest(),n=new Date(this.todayDetailData.startTime).getTime(),i=new Date(this.todayDetailData.endTime).getTime(),a={page:this.currentPage,limit:this.pageSize,start_time:n,end_time:i,isSub:1,type:1};this.todayDetailData.userId&&(a.user_id=this.todayDetailData.userId),"receiveContract"===this.todayDetailData.crmType?a.type=2:"contract"===this.todayDetailData.crmType&&(a.type=1),this.loading=!0,t(a).then(function(t){e.list=t.data.list,e.total=t.data.countData,e.loading=!1}).catch(function(){e.loading=!1})},getIndexRequest:function(){return"customer"===this.todayDetailData.crmType?i.k:"leads"==this.todayDetailData.crmType?i.m:"business"==this.todayDetailData.crmType?i.i:"dealBusiness"==this.todayDetailData.crmType?i.l:i.j},close:function(){this.$emit("close")},fieldFormatter:function(e,t,n){if("priority"===t.property){return["无","低","中","高"][n]}return""===n||null===n?"--":n},handleRowClick:function(e,t,n){"customer"===this.todayDetailData.crmType?"name"===t.property?(this.relationID=e.customer_id,this.crmType="customer",this.showFullDetail=!0):this.showFullDetail=!1:"leads"===this.todayDetailData.crmType?"name"===t.property?(this.relationID=e.leads_id,this.crmType="leads",this.showFullDetail=!0):this.showFullDetail=!1:"business"===this.todayDetailData.crmType||"dealBusiness"===this.todayDetailData.crmType?"name"===t.property?(this.relationID=e.business_id,this.crmType="business",this.showFullDetail=!0):this.showFullDetail=!1:"receiveContract"===this.todayDetailData.crmType?"name"===t.property?(this.relationID=e.customer_id,this.crmType="customer",this.showFullDetail=!0):"num"===t.property||"contract_num"===t.property?(this.relationID=e.contract_id,this.crmType="contract",this.showFullDetail=!0):this.showFullDetail=!1:"name"===t.property?(this.relationID=e.customer_id,this.crmType="customer",this.showFullDetail=!0):"businessName"===t.property?e.business_id?(this.relationID=e.business_id,this.crmType="business",this.showFullDetail=!0):this.showFullDetail=!1:"contactsName"===t.property?(this.relationID=e.contactsId,this.crmType="contacts",this.showFullDetail=!0):"num"===t.property?(this.relationID=e.contract_id,this.crmType="contract",this.showFullDetail=!0):this.showFullDetail=!1},handleSizeChange:function(e){this.pageSize=e,this.getList()},handleCurrentChange:function(e){this.currentPage=e,this.getList()},formattedTime:function(e){var t=new Date(e);return l()(t).format("MMMDo HH:mm:ss")},timeFormatted:function(e){if(!e)return"";var t=new Date(e);return l()(t).format("YYYY-MM-DD")},checkRelatedDetail:function(e,t){this.crmType=t,this.relationID=e[t+"Id"],this.showFullDetail=!0},handleTypeDrop:function(e){"delete"===e?this.delete(e):"deleteAll"===e?this.delete(e):"edit"===e?this.edit(e):"editAll"===e&&this.edit(e)},delete:function(e){var t=this;this.$confirm("此操作将永久删除该日程, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){new Date(t.detail.startTime).getTime();var n={event_id:t.id};"delete"===e?n.type=1:"deleteAll"===e&&(n.type=2),Object(i.a)(n).then(function(e){t.$message.success("删除成功"),t.$emit("deleteSuccess")}).catch(function(){})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},edit:function(e){this.editAll=!0,this.showCreate=!0},handleSure:function(){this.showCreate=!1,this.$emit("createSuccess")},getStatusStyle:function(e){return{backgroundColor:this.getStatusColor(e)}},cellClassName:function(e){e.row;var t=e.column;e.rowIndex,e.columnIndex;return"name"===t.property||"leadsName"===t.property||"businessName"===t.property||"num"===t.property||"contract_num"===t.property?"can-visit--underline":"businessCheck"===t.property?"can-visit":""}}},d=(n("rc0k"),n("KHd+")),p=Object(d.a)(u,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{visible:e.dialogVisible,"close-on-click-modal":!1,"lock-scroll":!0,"modal-append-to-body":"","append-to-body":"",width:"950px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("span",{staticClass:"block",style:{backgroundColor:e.blockColor}}),e._v(" "),n("span",{staticClass:"title-text"},[e._v(e._s(e.detail.typeName||e.todayDetailData.title))]),e._v(" "),-1!=e.id?n("span",{staticClass:"title-message"},[e._v(e._s(e.detail.create_user_name)+" 创建于 "+e._s(e.timeFormatted(e.detail.create_time))+"\n "),n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleTypeDrop}},[n("el-button",{attrs:{icon:"el-icon-more"}}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.moreTypes,function(t,i){return n("el-dropdown-item",{key:i,attrs:{command:t.type}},[e._v(e._s(t.title))])}))],1)],1):e._e()]),e._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"scroll_content"},[-1==e.id?[n("el-table",{staticClass:"n-table--border",staticStyle:{width:"100%"},attrs:{id:"crm-table",data:e.list,"cell-class-name":e.cellClassName,height:"450",stripe:"",border:"","highlight-current-row":""},on:{"row-click":e.handleRowClick}},[e._l(e.fieldList,function(t,i){return n("el-table-column",{key:i,attrs:{prop:t.prop,label:t.label,"min-width":t.width,formatter:e.fieldFormatter,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(i){return["deal_status"==t.prop?[n("i",{class:e._f("dealIcon")(i.row[t.prop])}),e._v(" "),n("span",[e._v(e._s(e._f("dealName")(i.row[t.prop])))])]:"status"==t.prop&&"customer"===e.crmType?[2==i.row.status?n("i",{staticClass:"wk wk-circle-password customer-lock"}):e._e()]:"check_status"==t.prop?[n("span",{staticClass:"status-mark",style:e.getStatusStyle(i.row.check_status)}),e._v(" "),n("span",[e._v(e._s(e.getStatusName(i.row.check_status)))])]:[e._v("\n "+e._s(i.row[t.prop])+"\n ")]]}}])})}),e._v(" "),n("el-table-column",{attrs:{resizable:!1}})],2),e._v(" "),n("div",{staticClass:"p-contianer"},[n("el-pagination",{staticClass:"p-bar",attrs:{"current-page":e.currentPage,"page-sizes":e.pageSizes,"page-size":e.pageSize,total:e.total,background:"",layout:"prev, pager, next, sizes, total, jumper"},on:{"update:pageSize":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)]:[n("div",{staticClass:"common-box"},[n("div",{staticClass:"common-title"},[e._v(e._s(e.todayDetailData.title||e.detail.title))]),e._v(" "),n("flexbox",{staticClass:"common-header"},[n("flexbox",{staticClass:"header-left"},[n("span",{staticClass:"time-circle"},[n("span",{staticClass:"wk wk-l-time"})]),e._v(" "),n("div",{staticClass:"time-text"},[n("div",{staticClass:"text-up"},[e._v(e._s(e.formattedTime(e.detail.start_time||e.todayDetailData.startTime)))]),e._v(" "),n("div",{staticClass:"time-time"},[e._v("开始时间")])])]),e._v(" "),n("flexbox",{staticClass:"header-right"},[n("i",{staticClass:"el-icon-remove"}),e._v(" "),n("div",{staticClass:"time-text"},[n("div",{staticClass:"text-up"},[e._v(e._s(e.formattedTime(e.detail.end_time||e.todayDetailData.endTime)))]),e._v(" "),n("div",{staticClass:"time-time"},[e._v("结束时间")])])])],1),e._v(" "),n("div",{staticClass:"common-content"},[n("div",{staticClass:"content-title"},[e._v("参与人")]),e._v(" "),n("flexbox",e._l(e.detail.owner_user_info,function(e){return n("xr-avatar",{key:e.id,staticClass:"user-img",attrs:{id:e.id,size:32,disabled:!1,name:e.realname,src:e.img||e.thumb_img,trigger:"hover"}})}))],1),e._v(" "),n("div",{staticClass:"common-bootom"},[n("div",{staticClass:"type_time"},[n("p",[e._v("提前提醒时间:")]),e._v(" "),e._l(e.noticeList,function(t,i){return n("span",{key:i},[0!=i?n("span",[e._v("、")]):e._e(),e._v("提前"+e._s(t.value)+e._s(e.timeList[t.type])+"提醒")])})],2)]),e._v(" "),n("div",{staticClass:"common-foot"},[e.relatedCount>0?n("div",{staticClass:"section__hd"},[n("i",{staticClass:"wukong wukong-relevance"}),e._v(" "),n("span",[e._v("相关信息("+e._s(e.relatedCount)+")")])]):n("p",[e._v("暂无相关信息")]),e._v(" "),n("div",{staticClass:"section_scroll"},[n("div",[e._l(e.detail.customerList,function(t,i){return n("related-business-cell",{key:t.customerId,attrs:{data:t,"cell-index":i,"show-foot":!1,type:"customer"},nativeOn:{click:function(n){e.checkRelatedDetail(t,"customer")}}})}),e._v(" "),e._l(e.detail.contactsList,function(t,i){return n("related-business-cell",{key:t.contactsId,attrs:{data:t,"cell-index":i,"show-foot":!1,type:"contacts"},nativeOn:{click:function(n){e.checkRelatedDetail(t,"contacts")}}})}),e._v(" "),e._l(e.detail.contractList,function(t,i){return n("related-business-cell",{key:t.contractId,attrs:{data:t,"cell-index":i,"show-foot":!1,type:"contract"},nativeOn:{click:function(n){e.checkRelatedDetail(t,"contract")}}})}),e._v(" "),e._l(e.detail.businessList,function(t,i){return n("related-business-cell",{key:t.businessId,attrs:{data:t,"cell-index":i,"show-foot":!1,type:"business"},nativeOn:{click:function(n){e.checkRelatedDetail(t,"business")}}})})],2)])])],1)]],2),e._v(" "),n("create-event",{attrs:{"show-create":e.showCreate,"edit-all":e.editAll,"cus-check":e.cusCheck,"today-detail-data":e.detail,title:"编辑日程"},on:{createSuccess:e.handleSure,handleSure:e.handleSure,close:function(t){e.showCreate=!1}}}),e._v(" "),n("c-r-m-full-screen-detail",{attrs:{visible:e.showFullDetail,"crm-type":e.crmType,id:e.relationID},on:{"update:visible":function(t){e.showFullDetail=t}}})],1)},[],!1,null,"08446121",null);p.options.__file="TodayListDetail.vue";t.a=p.exports},SWvK:function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("GQeE"),o=n.n(s),r=n("4XAY"),c=n("1DpC"),l=n("gVZb"),u=n("EP+0"),d=n("UGe0"),p=n("8GhS"),h=n("lcu+"),m=(n("ZoMv"),n("IEYw")),f=n("ehos"),g=n("7Qib"),v={name:"ReceivablesCreate",components:{XrCreate:l.a,CreateSections:u.a,CrmRelativeCell:p.a,XhReceivablesPlan:p.k,CreateExamineInfo:h.a,WkForm:d.a},mixins:[m.a],props:{action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{},examineInfo:{}}},computed:{title:function(){return"update"===this.action.type?"编辑回款":"新建回款"},editId:function(){return"update"==this.action.type?this.action.id:""},isOpenExamine:function(){return!!this.examineInfo&&(!(o()(this.examineInfo).length>0)||this.examineInfo.examineStatus)},sureBtnTitle:function(){return this.isOpenExamine?"提交审核":"保存"}},watch:{},created:function(){this.debouncedSaveField=Object(f.debounce)(300,this.saveClick),this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_receivables",module:"crm",controller:"receivables",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.id),Object(r.x)(t).then(function(t){var n=t.data||[],i=[],a={},s={};n.forEach(function(t){var o={};o.field=t.field,o.formType=t.form_type,o.fieldId=t.fieldId,o.inputTips=t.input_tips,o.name=t.name,o.setting=t.setting;var r=e.getItemIsCanEdit(t,e.action.type);if(r)if(1==t.autoGeneNumber){o.placeholder="根据编号规则自动生成,支持手动输入";var c=Object(g.t)(t);c.isNull=0,a[o.field]=e.getRules(c)}else a[o.field]=e.getRules(t);if(o.disabled=!r,"receivables_plan"==o.formType||"contract"==o.formType||"customer"==o.formType)if("relative"==e.action.type){var l={contacts:{customer:!0},customer:{customer:!0},business:{customer:!0},contract:{customer:!0,contract:!0}}[e.action.crmType];l&&(o.disabled=l[t.form_type]||!1)}else"update"!=e.action.type&&(o.disabled="contract"===t.form_type||"receivables_plan"===t.form_type);if("relative"==e.action.type||"update"==e.action.type)if("receivables_plan"===t.form_type){var u=e.getItemRelatveInfo(n,"contract");u&&(u.moduleType="contract",o.relation=u)}else if("contract"==t.form_type){var d=e.getItemRelatveInfo(n,"customer");d&&(d.moduleType="customer",d.params={check_status:2},o.relation=d)}e.getItemRadio(t,o),s[o.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(o)}),e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loading=!0;var n=this.$refs.crmForm.instance;n.validate(function(i){if(!i)return e.loading=!1,e.getFormErrorMessage(n),!1;if(e.isOpenExamine)if(t){var a=e.getSubmiteParams(e.baseFields,e.fieldForm);0===e.examineInfo.config&&e.examineInfo.hasOwnProperty("value")&&e.examineInfo.value.length&&(a.check_user_id=e.examineInfo.value[0].id),a.is_draft=1,e.submiteParams(e.fieldForm)}else e.$refs.examineInfo.validateField(function(t){if(t){var n=e.getSubmiteParams(e.baseFields,e.fieldForm);n.examineStatus=e.examineInfo.examineStatus,n.check_user_id=e.examineInfo.value[0].id,e.submiteParams(n)}else e.loading=!1});else{var s=e.getSubmiteParams(e.baseFields,e.fieldForm);t&&(s.is_draft=1),e.submiteParams(s)}})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id,e.batchId=this.action.batchId),this.action.relativeData&&o()(this.action.relativeData).length&&(e=a()({},e,this.action.relativeData)),Object(c.j)(e).then(function(e){t.loading=!1,t.$message.success("update"==t.action.type?"编辑成功":"添加成功"),t.close(),t.$emit("save-success",{type:"receivables"})}).catch(function(){t.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){var n=this;if("customer"===t.formType)this.fieldList.forEach(function(t){if("contract"===t.formType){if(e.value.length>0){t.disabled=!1;var i=e.value[0];i.moduleType="customer",i.params={check_status:2},t.relation=i}else t.disabled=!0,t.relation={};n.fieldForm[t.field]=[]}else"receivables_plan"===t.formType&&(t.disabled=!0,t.relation={},n.fieldForm[t.field]="")});else if("contract"===t.formType){var i=this.fieldList.find(function(e){return"receivables_plan"===e.formType});if(i){if(e.value.length>0){i.disabled=!1;var a=e.value[0];a.moduleType="contract",i.relation=a}else i.disabled=!0,i.relation={};this.fieldForm[i.field]=""}}else if("receivables_plan"===t.formType){var s=e.data||{};this.fieldForm.return_time=s.return_date,this.fieldForm.money=s.money,this.fieldForm.return_type=s.return_type}this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},examineValueChange:function(e){this.examineInfo=e},close:function(){this.$emit("close")}}},b=(n("SoRZ"),n("KHd+")),y=Object(b.a)(v,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title,"confirm-button-text":e.sureBtnTitle},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[i&&"customer"==i.formType?n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],disabled:i.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e(),e._v(" "),i&&"contract"==i.formType?n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],disabled:i.disabled,relation:i.relation,"relative-type":i.formType},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e(),e._v(" "),i&&"receivables_plan"==i.formType?n("xh-receivables-plan",{attrs:{value:e.fieldForm[i.field],"receivables-id":e.editId,relation:i.relation},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e()]}}])})],1),e._v(" "),e.isOpenExamine?n("create-sections",{attrs:{title:"审核信息"}},[n("template",{slot:"header"},[1===e.examineInfo.config||0===e.examineInfo.config?n("div",{staticClass:"examine-type"},[e._v(e._s(1===e.examineInfo.config?"固定审批流":"授权审批人"))]):e._e(),e._v(" "),e.examineInfo&&e.examineInfo.remark?n("el-tooltip",{attrs:{content:e.examineInfo.remark,effect:"dark",placement:"top"}},[n("i",{staticClass:"wk wk-help wk-help-tips",staticStyle:{height:"13px"}})]):e._e()],1),e._v(" "),n("create-examine-info",{ref:"examineInfo",attrs:{"types-id":e.action.id,types:"crm_receivables"},on:{"value-change":e.examineValueChange}})],2):e._e(),e._v(" "),n("el-button",{attrs:{slot:"footer",type:"primary",plain:""},nativeOn:{click:function(t){e.debouncedSaveField(!0)}},slot:"footer"},[e._v("保存草稿")])],1)},[],!1,null,"215c587e",null);y.options.__file="Create.vue";t.a=y.exports},SoRZ:function(e,t,n){"use strict";var i=n("XGIK");n.n(i).a},Ss3G:function(e,t,n){"use strict";var i=n("L1o4");n.n(i).a},"T/0B":function(e,t,n){e.exports=n.p+"static/img/logo.5560563.png"},TEXM:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvI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BxcLun7drGmu+1PlMLijowzPz4+hng8ru+oHY6m4GAwKCO2wU91t7VHl2UjTjabNV6p0YCjoyOVCLbcOkweTjCkQK/ZdLOdnKjsVdLm0djBXpTOLhoNW8YYgLTNk9DFbh9fTdNUp1jU2C1JgQ5ivV4XevW5XE5F6KzGmbkUqlXxZL1UKqkInSGhE7LWbrdbeKzP51MROkFC/dLpTigEo6OjpuPC4bDQOAP4lXZ5y5l7PB7dMUNDQxAIBNQPJDKveqKnpqbA6XT+d43+m5yctMNx5Elo0g7308kFUZzvdAMSSGpcd0vh9PQU8vk8RCKRjhGKEpREIgHFYlHIjRlg38Xl6n0rVpQlpVKpZtZkBorzrVg/PDzc3NNer9eq0D2NayPxDgI67mg0KiTyPOjJHh4eNn8tYouEblO2Juq0k0m1LU1xPxaLCSUzjN9UoZLQCvK1iAW9bsUE49/eTqfTosOpfqq0jupzEQs6HHbBQkh90V7cfUO+M7NQPLmW81jWtHO+uKPK78uAFXfX2SudKZep/7MOg4N1aOv0nW+S+XrYbzL0m/C3SVzSa0DQBeqqpfooMsV1Usms90Stv3vkn/sgsshrH5j1nlqgIHCbqo0eiszwmtt6aR4YiF3gQ9Zt0Bo39USaCSX8YrFr7C664YLWeI19s8TZtLWEXGGftmmjyE2ec4XXAFWh7S6DPjZcQ76ibo6EuBzbzvFce6KGDhs/iF2Czh/EfoINH8T+CDAAQ2YfaFZ8NPkAAAAASUVORK5CYII="},TOJS:function(e,t,n){},U8n8:function(e,t,n){"use strict";var i={components:{EmployeeDepartment:n("jWYy").a},inheritAttrs:!1,props:{contentBlock:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"}},data:function(){return{popoverVisible:!1,data:{},popoverContentShow:!1}},computed:{popoverWidth:function(){return this.isRadio?"300":"600"},activeTabName:function(){return this.$refs.employeeDepartment?this.$refs.employeeDepartment.activeTabName:""},isRadio:function(){return this.$attrs.radio||!1}},watch:{popoverVisible:function(e){this.$emit("show",e)}},methods:{popoverSubmit:function(){this.popoverVisible=!1,this.$emit("popoverSubmit",this.$refs.employeeDepartment.checkedUserDepList.filter(function(e){return"user"==e.type}),this.$refs.employeeDepartment.checkedUserDepList.filter(function(e){return"dep"==e.type}))},showContentClick:function(){this.popoverContentShow||(this.popoverContentShow=!0)}}},a=(n("NfXs"),n("KHd+")),s=Object(a.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",{ref:"popover",attrs:{placement:e.placement,width:e.popoverWidth,"popper-class":"no-padding-popover",trigger:"click"},model:{value:e.popoverVisible,callback:function(t){e.popoverVisible=t},expression:"popoverVisible"}},[e.popoverContentShow?n("div",[n("employee-department",e._b({ref:"employeeDepartment",on:{select:e.popoverSubmit}},"employee-department",e.$attrs,!1)),e._v(" "),n("div",{staticClass:"popover-footer"},["user"===e.activeTabName?e._t("user-footer"):e._t("dep-footer"),e._v(" "),n("el-button",{on:{click:function(t){e.popoverVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isRadio?e._e():n("el-button",{attrs:{type:"primary"},on:{click:e.popoverSubmit}},[e._v("确 定")])],2)],1):e._e(),e._v(" "),n("div",{style:{display:e.contentBlock?"block":"inline-block"},attrs:{slot:"reference"},on:{click:e.showContentClick},slot:"reference"},[e._t("membersDep")],2)])},[],!1,null,"cd891ace",null);s.options.__file="MembersDep.vue";t.a=s.exports},UCfG:function(e,t,n){"use strict";var i=n("KTTK"),a=n("0ioL"),s={name:"XhStructure",components:{},props:{show:{type:Boolean,default:!0},value:{type:Array,default:function(){return[]}},radio:{type:Boolean,default:!1},selectedData:{type:Array,default:function(){return[]}}},data:function(){return{breadcrumbList:[],selectItems:[],dataList:[],loading:!1,searchInput:""}},computed:{showDataList:function(){var e=this;return this.dataList.filter(function(t){return a.a.match(t.name,e.searchInput)})}},watch:{selectedData:function(){this.selectItems=this.selectedData,this.dataList=this.handelCheck(this.dataList)},show:function(e){this.dataList&&0==this.dataList.length&&this.getStructureList()}},mounted:function(){this.selectItems=this.selectedData,this.show&&this.getStructureList()},methods:{getStructureList:function(){var e=this;this.loading=!0,Object(i.j)({type:"tree"}).then(function(t){var n=e.handelCheck(e.addIsCheckProp(t.data));e.dataList=n,e.breadcrumbList.push({label:"全部",data:n}),e.loading=!1}).catch(function(){e.loading=!1})},breadcrumbBtn:function(e,t){this.radio&&1==this.selectItems.length||(t+1<=this.breadcrumbList.length-1&&this.breadcrumbList.splice(t+1,this.breadcrumbList.length-1),this.dataList=[],this.dataList=this.handelCheck(e.data))},checkChange:function(e,t){this.$set(this.dataList,t,e);for(var n=-1,i=0;i<this.selectItems.length;i++){var a=this.selectItems[i];e.id==a.id&&(n=i)}-1==n&&e.isCheck?this.selectItems.push(e):-1!=n&&this.selectItems.splice(n,1),this.radio&&(e.isCheck?this.dataList=this.dataList.map(function(t,n,i){return t.id==e.id?t.disabled=!1:t.disabled=!0,t}):this.dataList=this.dataList.map(function(e,t,n){return e.disabled=!1,e})),this.$emit("changeCheckout",this.selectItems)},handelCheck:function(e){var t=this,n=!1;return this.radio&&(n=this.selectItems.length>0),e=e.map(function(e,i,a){return e.isCheck=t.selectItemsHasItem(e),t.radio&&e.isCheck?e.disabled=!1:e.disabled=n,e})},selectItemsHasItem:function(e){if(0==this.selectItems.length)return!1;for(var t=!1,n=0;n<this.selectItems.length;n++){var i=this.selectItems[n];if(e.id==i.id){t=!0;break}}return t},enterChildren:function(e){!e.children||this.radio&&1==this.selectItems.length||(this.dataList=[],this.dataList=this.handelCheck(this.addIsCheckProp(e.children)),this.breadcrumbList.push({label:e.label,data:this.dataList}))},addIsCheckProp:function(e){return e.length>0?e[0].hasOwnProperty("isCheck")?e:e.map(function(e,t,n){return e.disabled=!1,e.isCheck=!1,e.show=!0,e}):e},clearAll:function(){this.selectItems=[],this.dataList=this.dataList.map(function(e){return e.isCheck=!1,e}),this.$emit("changeCheckout",this.selectItems)}}},o=(n("Es7h"),n("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"xh-stru"},[n("div",{staticClass:"xh-stru__hd"},[e._v("\n 部门\n ")]),e._v(" "),n("div",{staticClass:"xh-stru__bd"},[n("el-input",{staticClass:"search-input",attrs:{placeholder:"搜索部门名称",size:"small","prefix-icon":"el-icon-search"},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"search-list"},[n("el-breadcrumb",{staticStyle:{padding:"5px 0"},attrs:{"separator-class":"el-icon-arrow-right"}},e._l(e.breadcrumbList,function(t,i){return n("el-breadcrumb-item",{key:i},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){e.breadcrumbBtn(t,i)}}},[e._v(e._s(t.label))])])})),e._v(" "),e._l(e.showDataList,function(t,i){return n("flexbox",{key:i,staticClass:"stru-list"},[n("el-checkbox",{staticClass:"stru-check",attrs:{disabled:t.disabled},on:{change:function(n){e.checkChange(t,i)}},model:{value:t.isCheck,callback:function(n){e.$set(t,"isCheck",n)},expression:"item.isCheck"}}),e._v(" "),n("div",{staticClass:"stru-name",on:{click:function(n){e.enterChildren(t)}}},[e._v(e._s(t.name))]),e._v(" "),t.children?n("div",{staticClass:"el-icon-arrow-right stru-enter"}):e._e()],1)})],2)],1),e._v(" "),n("div",{staticClass:"xh-stru__ft"},[n("span",{staticClass:"select-info"},[e._v("已选择"),n("span",{staticClass:"select-info--num"},[e._v(e._s(e.selectItems.length))]),e._v("项")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:e.clearAll}},[e._v("清空")])],1)])},[],!1,null,"f46b29ba",null);r.options.__file="XhStructure.vue";var c={name:"XhStructureCell",components:{XhStructure:r.exports},mixins:[n("EOKR").a],props:{placeholder:{type:String,default:"选择部门"},radio:{type:Boolean,default:!0},max:{type:Number,default:2}},data:function(){return{showPopover:!1}},computed:{showDataValue:function(){return this.dataValue&&this.dataValue.length>this.max?this.dataValue.slice(0,this.max):this.dataValue}},watch:{},mounted:function(){},methods:{checkStructure:function(e){this.radio&&e&&e.length&&(this.showPopover=!1),this.dataValue=e,this.$emit("value-change",{item:this.item,index:this.index,value:e})},deletestru:function(e,t){this.dataValue.splice(t,1),this.$emit("value-change",{item:this.item,index:this.index,value:this.dataValue})},focusClick:function(){this.$emit("focus")}}},l=(n("DwHe"),Object(o.a)(c,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",{attrs:{disabled:e.disabled,placement:"bottom",width:"300","popper-class":"no-padding-popover",trigger:"click"},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[e.disabled?e._e():n("xh-structure",{ref:"structure",attrs:{show:e.showPopover,radio:e.radio,"selected-data":e.dataValue},on:{changeCheckout:e.checkStructure}}),e._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[n("flexbox",{staticClass:"structure-container xh-form-border",class:[e.disabled?"is_disabled":"is_valid",{is_focus:e.showPopover}],attrs:{wrap:"wrap"},nativeOn:{click:function(t){return e.focusClick(t)}}},[e._l(e.showDataValue,function(t,i){return n("div",{key:i,staticClass:"user-item"},[e._v(e._s(t.name)+"\n "),e.disabled?e._e():n("i",{staticClass:"delete-icon el-icon-close",on:{click:function(n){n.stopPropagation(),e.deletestru(t,i)}}})])}),e._v(" "),e.dataValue.length>e.max?n("i",{staticClass:"el-icon-more"}):e._e(),e._v(" "),n("i",{class:["el-icon-arrow-up",{"is-reverse":e.showPopover}]}),e._v(" "),0==e.dataValue.length?n("div",{staticClass:"add-item text-one-line"},[e._v(e._s(e.placeholder))]):e._e()],2)],1)],1)},[],!1,null,"49add6d9",null));l.options.__file="XhStructureCell.vue";t.a=l.exports},UE98:function(e,t,n){},UGe0:function(e,t,n){"use strict";var i=n("XAon"),a=n("KTTK"),s=n("82NB"),o=n("b5rP"),r=n("0BDH"),c=n.n(r),l=n("gSIQ"),u=n("7Qib"),d={name:"WkDepSelect",components:{WkSelectDropdown:s.a,WkDep:o.a},mixins:[c.a],props:{radio:Boolean,max:{type:Number,default:2},props:{type:Object,default:function(){return{value:"id",label:"name"}}},limit:Number,placeholder:{type:String,default:function(){return"请选择"}},value:{required:!0},request:Function,params:Object,options:Array,disabled:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{visible:!1,dataValue:[],loading:!1,optionsList:[]}},computed:{showSelects:function(){return this.selects&&this.selects.length>this.max?this.selects.slice(0,this.max):this.selects},selects:function(){return this.optionsList.length?this.getSelectList():[]}},watch:{visible:function(e){e?this.broadcast("WkSelectDropdown","updatePopper"):this.broadcast("WkSelectDropdown","destroyPopper"),this.$emit("visible-change",e)},value:function(){this.verifyValue()},options:{handler:function(){this.verifyOptions()},immediate:!0},dataValue:function(e,t){Object(l.valueEquals)(e,t)||(this.radio?this.$emit("input",this.dataValue&&this.dataValue.length?this.dataValue[0]:""):this.$emit("input",this.dataValue))}},created:function(){this.verifyValue()},methods:{getSelectList:function(){var e=[];return this.recursionOptions(this.optionsList,this.dataValue,e),e},recursionOptions:function(e,t,n){var i=this;e.forEach(function(e){t.includes(e[i.props.value])&&n.push(e),e.children&&i.recursionOptions(e.children,t,n)})},verifyValue:function(){var e=this;(this.radio||Array.isArray(this.value)||this.$emit("input",[]),this.radio&&(Array.isArray(this.value)||null===this.value||void 0===this.value)&&this.$emit("input",""),this.radio)?this.value!==this.dataValue&&(this.value?this.dataValue=[parseInt(this.value)]:this.dataValue=[]):Object(l.valueEquals)(this.value,this.dataValue)||(this.value&&this.value.length?this.value[0][this.props.value]?this.dataValue=this.value.map(function(t){return t[e.props.value]}):this.dataValue=Object(u.t)(this.value):this.dataValue=[])},verifyOptions:function(){this.options?this.optionsList=this.options:this.requestDepList()},requestDepList:function(){var e=this;this.loading=!0;var t=a.j;this.request?t=this.request:this.props.request&&(t=this.props.request);var n={type:"tree"};this.params&&(n=this.params),t(n).then(function(t){e.optionsList=t.data||[],e.loading=!1}).catch(function(){e.loading=!1})},handleClose:function(){this.visible=!1},handleMenuEnter:function(){},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},deleteDep:function(e){var t=Object(u.t)(this.dataValue);t.splice(e,1),this.dataValue=t,this.wkDepChange()},focusClick:function(){this.$emit("focus")},wkDepChange:function(){var e=this;this.$nextTick(function(){e.radio?e.dispatch("ElFormItem","el.form.change",e.dataValue&&e.dataValue.length?e.dataValue[0]:""):e.dispatch("ElFormItem","el.form.change",e.dataValue),e.$emit("change",e.dataValue,e.selects)})},containerClick:function(){this.disabled||(this.visible=!0)}}},p=(n("g9Zy"),n("KHd+")),h=Object(p.a)(d,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"elclickoutside",rawName:"v-elclickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"wk-dep-select xh-form-border",class:[e.disabled?"is_disabled":"is_valid",{is_focus:e.visible}],attrs:{wrap:"wrap"},on:{click:e.containerClick}},[n("div",{staticClass:"el-select__tags"},e._l(e.showSelects,function(t,i){return n("span",{key:i,staticClass:"user-item text-one-line"},[e._v(e._s(t.name)+"\n "),n("i",{staticClass:"delete-icon el-icon-close",on:{click:function(t){t.stopPropagation(),e.deleteDep(i)}}})])})),e._v(" "),e.selects.length>e.max?n("i",{staticClass:"el-icon-more"}):e._e(),e._v(" "),n("i",{class:["el-icon-arrow-up",{"is-reverse":e.visible}]}),e._v(" "),0==e.selects.length?n("div",{staticClass:"user-placeholder text-one-line"},[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("wk-select-dropdown",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!e.disabled,expression:"visible && !disabled"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{ref:"scrollbar",attrs:{tag:"div"}},[n("wk-dep",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{options:e.optionsList,props:e.props,radio:e.radio,disabled:e.disabled,max:e.limit},on:{change:e.wkDepChange,close:function(t){e.visible=!1}},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}})],1)],1)],1)],1)},[],!1,null,"4e23146e",null);h.options.__file="index.vue";var m=h.exports,f=n("Woz+"),g=n("8GhS"),v={methods:{isTrimInput:function(e){return["mobile","email"].includes(e)},depOrUserChange:function(e,t,n,i){this.$emit("change",e,t,n,i)},commonChange:function(e,t,n){this.$emit("change",e,t,n)},isEmptyValue:function(e){return null===e||void 0==e},oldChange:function(e,t,n){this.$set(this.fieldFrom,t.field,e.value),this.$emit("change",t,n,e.value),this.$refs.form.validateField(t.field)},selectProvince:function(e,t,n){this.fieldFrom[t.field].province=e.value,this.addressChange(t,n,e,this.fieldFrom[t.field])},selectCity:function(e,t,n){this.fieldFrom[t.field].city=e.value,this.addressChange(t,n,e,this.fieldFrom[t.field])},selectArea:function(e,t,n){this.fieldFrom[t.field].area=e.value,this.addressChange(t,n,e,this.fieldFrom[t.field])},addressChange:function(e,t,n){this.$emit("change",e,t,n)},getTips:function(e){var t=e.tips||e.inputTips;return t?""+t+"":""}}},b={name:"WkForm",components:{WkUserSelect:i.a,WkDepSelect:m,VDistpicker:f.a,XhFiles:g.f},mixins:[v],inheritAttrs:!1,props:{fieldFrom:{type:Object,default:function(){return{}}},fieldList:{type:Array,default:function(){return[]}},customClass:{type:String,default:"is-two-columns"}},data:function(){return{instance:null}},computed:{},watch:{},mounted:function(){var e=this;this.$nextTick(function(){e.instance=e.$refs.form})},beforeDestroy:function(){},methods:{}},y=(n("mYM5"),n("vyIb"),Object(p.a)(b,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form",e._g(e._b({ref:"form",staticClass:"wk-form",class:e.customClass},"el-form",e.$attrs,!1),e.$listeners),[e._l(e.fieldList,function(t,i){return n("el-form-item",{key:i,class:[t.className||"","is-"+t.formType],attrs:{prop:t.field}},[n("template",{slot:"label"},[e._v("\n "+e._s(t.name)+"\n "),n("span",{staticStyle:{color:"#999"}},[e._v("\n "+e._s(e.getTips(t))+"\n ")])]),e._v(" "),"text"==t.formType?n("el-input",{attrs:{disabled:t.disabled,maxlength:100,placeholder:t.placeholder,type:t.formType},on:{input:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):e._e(),e._v(" "),e.isTrimInput(t.formType)?n("el-input",{attrs:{disabled:t.disabled,maxlength:100,placeholder:t.placeholder,type:"text"},on:{input:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,"string"==typeof n?n.trim():n)},expression:"fieldFrom[item.field]"}}):"number"==t.formType?n("el-input-number",{attrs:{placeholder:t.placeholder,disabled:t.disabled,controls:!1},on:{input:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):"floatnumber"==t.formType?n("el-input-number",{attrs:{placeholder:t.placeholder,disabled:t.disabled,controls:!1},on:{change:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):"textarea"==t.formType?n("el-input",{attrs:{disabled:t.disabled,rows:3,autosize:{minRows:3},maxlength:800,placeholder:t.placeholder,type:t.formType,resize:"none"},on:{input:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):["checkbox","select"].includes(t.formType)?n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,clearable:t.clearable,placeholder:t.placeholder,multiple:"checkbox"===t.formType},on:{change:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}},e._l(t.setting,function(t,i){return n("el-option",{key:i,attrs:{label:e.isEmptyValue(t.value)?t:t.label||t.name,value:e.isEmptyValue(t.value)?t:t.value}})})):"checkbox"==t.formType?n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,clearable:t.clearable,placeholder:t.placeholder,multiple:""},on:{change:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}},e._l(t.setting,function(t,i){return n("el-option",{key:i,attrs:{label:e.isEmptyValue(t.value)?t:t.label||t.name,value:e.isEmptyValue(t.value)?t:t.value}})})):"date"==t.formType?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):"dateRange"==t.formType?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,type:t.dateType||"daterange","value-format":t.dateValueFormat||"yyyy-MM-dd",clearable:"","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):"datetime"==t.formType?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,clearable:"",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},on:{change:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):"structure"==t.formType?n("wk-dep-select",{staticStyle:{width:"100%"},attrs:{request:t.request,props:t.props,params:t.params,disabled:t.disabled,radio:!!e.isEmptyValue(t.radio)||t.radio},on:{change:function(n){e.depOrUserChange(t,i,arguments[0],arguments[1])}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):["single_user","user"].includes(t.formType)?n("wk-user-select",{staticStyle:{width:"100%"},attrs:{request:t.request,props:t.props,params:t.params,disabled:t.disabled,radio:!!e.isEmptyValue(t.radio)||t.radio},on:{change:function(n){e.depOrUserChange(t,i,arguments[0],arguments[1])}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}}):"radio"==t.formType?n("el-radio-group",{attrs:{disabled:t.disabled,placeholder:t.placeholder},on:{change:function(n){e.commonChange(t,i,n)}},model:{value:e.fieldFrom[t.field],callback:function(n){e.$set(e.fieldFrom,t.field,n)},expression:"fieldFrom[item.field]"}},e._l(t.setting,function(t,i){return n("el-radio",{key:i,attrs:{label:e.isEmptyValue(t.value)?t:t.value}},[e._v("\n "+e._s(e.isEmptyValue(t.value)?t:t.label||t.name)+"\n ")])})):e._e(),e._v(" "),"address"==t.formType?n("v-distpicker",{attrs:{province:e.fieldFrom[t.field].province,city:e.fieldFrom[t.field].city,area:e.fieldFrom[t.field].area},on:{province:function(n){e.selectProvince(n,t,i)},city:function(n){e.selectCity(n,t,i)},area:function(n){e.selectArea(n,t,i)}}}):e._e(),e._v(" "),"file"==t.formType?n("xh-files",{attrs:{value:e.fieldFrom[t.field],disabled:t.disabled},on:{"value-change":function(n){e.oldChange(n,t,i)}}}):[e._t("default",null,{data:t})]],2)}),e._v(" "),e._t("suffix")],2)},[],!1,null,"8253d9ac",null));y.options.__file="index.vue";t.a=y.exports},VBDL:function(e,t,n){"use strict";var i=n("F18x");n.n(i).a},"VFx+":function(e,t,n){"use strict";var i=n("/epS");n.n(i).a},VYvA:function(e,t,n){},VcMt:function(e,t,n){"use strict";n.d(t,"h",function(){return a}),n.d(t,"m",function(){return s}),n.d(t,"k",function(){return o}),n.d(t,"j",function(){return r}),n.d(t,"d",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"l",function(){return p}),n.d(t,"a",function(){return h}),n.d(t,"f",function(){return m}),n.d(t,"i",function(){return f}),n.d(t,"n",function(){return g}),n.d(t,"b",function(){return v});var i=n("t3Un");function a(e){return Object(i.a)({url:"crm/invoice/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"crm/invoice/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(i.a)({url:"crm/invoice/setInvoice",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"crm/invoice/resetInvoiceStatus",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(i.a)({url:"crm/invoice/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(i.a)({url:"crm/invoice/read",method:"post",data:e})}function u(e){return Object(i.a)({url:"crm/invoice/count",method:"post",data:e})}function d(e){return Object(i.a)({url:"admin/file/index",method:"post",data:e})}function p(e){return Object(i.a)({url:"crm/invoice/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i.a)({url:"crm/invoice/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(i.a)({url:"crm/index/autoNumberStatus",method:"post",data:e})}function f(e){return Object(i.a)({url:"crm/invoiceInfo/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(i.a)({url:"crm/invoiceInfo/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(i.a)({url:"crm/invoiceInfo/delete",method:"post",data:e})}},VflR:function(e,t,n){e.exports={xrColorPrimary:"#2362FB",menuText:"#bebec0",menuActiveText:"#fff",subMenuActiveText:"#f4f4f5",menuBg:"#001529",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},ViDN:function(e,t,n){"use strict";var i=n("7Qib"),a={name:"CreateView",components:{},props:{bodyStyle:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#F5F6F9"},width:{type:String,default:"900px"},padding:{type:String,default:"40px"}},data:function(){return{zIndex:Object(i.q)(),loadingObj:null}},computed:{},watch:{},mounted:function(){},methods:{afterEnter:function(){this.$emit("afterEnter")}}},s=(n("zlvj"),n("KHd+")),o=Object(s.a)(a,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"opacity-fade"},on:{"after-enter":e.afterEnter}},[n("div",{staticClass:"c-view",style:{"background-color":e.backgroundColor,padding:e.padding+" 0","z-index":e.zIndex}},[n("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"crm-create-card-container",style:{width:e.width},attrs:{"body-style":e.bodyStyle}},[e._t("header"),e._v(" "),e._t("default")],2)],1)])},[],!1,null,"22a96dfc",null);o.options.__file="CreateView.vue";t.a=o.exports},Vtdi:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"formatTime",function(){return m.j}),n.d(i,"filterTimestampToFormatTime",function(){return Fe}),n.d(i,"filterFormatTimeToTimestamp",function(){return Oe}),n.d(i,"filterUserLazyImg",function(){return Re}),n.d(i,"wkIconPre",function(){return Ee});var a=n("GQeE"),s=n.n(a),o=(n("201c"),n("Kw5r")),r=(n("9d8Q"),{version:"V11.1.0",companyName:"悟空CRM",getLocationOrigin:function(){return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")},baiduKey:"百度key"}),c=n("XJYT"),l=n.n(c),u=(n("D66Q"),n("jEqg"),n("sg+I"),n("QbLZ")),d=n.n(u),p=n("FyfS"),h=n.n(p),m=n("7Qib"),f=n("KTTK"),g={name:"VuePictureViewer",props:{imgData:{type:Array,default:function(){return[]}},background:{type:String,default:"rgba(0,0,0,0.4)"},selectIndex:{type:Number,default:-1}},data:function(){return{leftArrowShow:!1,rightArrowShow:!1,rotateDeg:0,bigShowType:{isImage:!0,icon:""},bigImgName:"",imgLength:0,imgIndex:0,showTips:!1,tipsText:"",bigImgConWidth:"",bigImgConHeight:"",maskContainer:{width:"100%",height:"100%",background:this.background,position:"fixed",top:0,left:0,right:0,bottom:0},imgContainer:{width:"auto",height:"auto",position:"absolute",top:"50%",left:"50%","z-index":100,transform:"translate(-50%, -50%)"},bigImgStyle:{display:"block",width:"80px",height:"80px",position:"absolute",top:"50%",left:"50%",marginLeft:"",marginTop:"",userSelect:"none"}}},computed:{title:function(){return this.bigImgName.slice(0,this.bigImgName.indexOf("."))+" "+(this.imgIndex+1)+" / "+this.imgLength+""},currentFile:function(){return this.imgData[this.imgIndex]},bigImgUrl:function(){return this.currentFile.url},showPreviewBtn:function(){return Object(m.a)(this.currentFile.name)}},mounted:function(){var e=this;document.getElementById("vue-picture-viewer").addEventListener("click",function(e){e.stopPropagation()}),this.imgLength=this.imgData.length,this.imgIndex=this.selectIndex,this.$nextTick(function(){(e.bigImgName=e.imgData[e.imgIndex].name,e.getShowTypeInfo(e.bigImgName),e.imgLength>1)&&(e.$refs.thumbnailItem[e.imgIndex].className="borderActive")});var t=this;this.$refs.bigImg.onload=function(){t.init()},this.maskContainer["z-index"]=Object(m.q)()},beforeDestroy:function(){document.getElementById("vue-picture-viewer")&&document.getElementById("vue-picture-viewer").removeEventListener("click",function(e){e.stopPropagation()})},methods:{init:function(){var e=document.documentElement.offsetWidth||document.body.offsetWidth,t=document.documentElement.scrollHeight||document.body.scrollHeight;this.$nextTick(function(){var n=!0,i=!1,a=void 0;try{for(var s,o=h()([.1,.2,.3,.4,.5,.7,.8,.9]);!(n=(s=o.next()).done);n=!0){var r=s.value;this.$refs.bigImg.naturalWidth*r<e&&this.$refs.bigImg.naturalHeight*r<t-200&&(this.bigImgConWidth=this.$refs.bigImg.naturalWidth*r,this.bigImgConHeight=this.$refs.bigImg.naturalHeight*r,this.imgContainer.width=this.bigImgConWidth+"px",this.imgContainer.height=this.bigImgConHeight+"px",this.bigImgStyle.width=this.bigImgConWidth+"px",this.bigImgStyle.height=this.bigImgConHeight+"px",this.bigImgStyle.marginLeft=-this.bigImgConWidth/2+"px",this.bigImgStyle.marginTop=-this.bigImgConHeight/2+"px")}}catch(e){i=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}})},rotateInit:function(){var e=document.documentElement.scrollHeight||document.body.scrollHeight,t=!0,n=!1,i=void 0;try{for(var a,s=h()([.1,.2,.3,.4,.5,.7,.8,.9]);!(t=(a=s.next()).done);t=!0){var o=a.value;this.$refs.bigImg.naturalWidth*o<e-160&&(this.bigImgConWidth=this.$refs.bigImg.naturalWidth*o,this.bigImgConHeight=this.$refs.bigImg.naturalHeight*o,this.imgContainer.width=this.bigImgConWidth+"px",this.imgContainer.height=this.bigImgConHeight+"px",this.bigImgStyle.width=this.bigImgConWidth+"px",this.bigImgStyle.height=this.bigImgConHeight+"px",this.bigImgStyle.marginLeft=-this.bigImgConWidth/2+"px",this.bigImgStyle.marginTop=-this.bigImgConHeight/2+"px")}}catch(e){n=!0,i=e}finally{try{!t&&s.return&&s.return()}finally{if(n)throw i}}},enlarge:function(){this.$nextTick(function(){var e=document.documentElement.offsetWidth||document.body.offsetWidth,t=document.documentElement.scrollHeight||document.body.scrollHeight;(this.$refs.bigImg.offsetWidth>=this.$refs.bigImg.offsetHeight&&2*this.$refs.bigImg.offsetHeight<2*t||this.$refs.bigImg.offsetHeight>=this.$refs.bigImg.offsetWidth&&2*this.$refs.bigImg.offsetWidth<2*e)&&(this.$refs.bigImg.style.width=1.3*this.$refs.bigImg.offsetWidth+"px",this.$refs.bigImg.style.height=1.3*this.$refs.bigImg.offsetHeight+"px",this.$refs.bigImg.style.left="50%",this.$refs.bigImg.style.top="50%",this.bigImgStyle.marginLeft=-this.$refs.bigImg.offsetWidth/2+"px",this.bigImgStyle.marginTop=-this.$refs.bigImg.offsetHeight/2+"px")})},reduce:function(){this.$refs.bigImg.offsetWidth>80&&(this.$refs.bigImg.style.width=.7*this.$refs.bigImg.offsetWidth+"px",this.$refs.bigImg.style.height=.7*this.$refs.bigImg.offsetHeight+"px",this.$refs.bigImg.style.left="50%",this.$refs.bigImg.style.top="50%",this.bigImgStyle.marginLeft=-this.$refs.bigImg.offsetWidth/2+"px",this.bigImgStyle.marginTop=-this.$refs.bigImg.offsetHeight/2+"px")},rotate:function(){0===this.rotateDeg?(this.$refs.bigImg.style.transform="rotate(90deg)",this.rotateInit(),this.rotateDeg++):1===this.rotateDeg?(this.$refs.bigImg.style.transform="rotate(180deg)",this.init(),this.rotateDeg++):2===this.rotateDeg?(this.$refs.bigImg.style.transform="rotate(270deg)",this.rotateInit(),this.rotateDeg++):3===this.rotateDeg&&(this.$refs.bigImg.style.transform="rotate(360deg)",this.init(),this.rotateDeg=0)},switchImgUrl:function(e,t){this.$refs.thumbnailItem.forEach(function(e){e.className=""}),this.imgIndex=e,this.bigImgName=this.imgData[e].name,this.getShowTypeInfo(this.bigImgName),t.currentTarget.className="borderActive",this.bigShowType.isImage&&this.init()},handlePrev:function(){if(this.imgIndex<=0)this.tips("已经是第一张了!"),this.imgIndex=0;else{this.$refs.bigImg&&(this.$refs.bigImg.style.transform="rotate(0deg)",this.rotateDeg=0),this.imgIndex--,this.bigImgName=this.imgData[this.imgIndex].name,this.getShowTypeInfo(this.bigImgName);var e=this.$refs.thumbnailItem;e.forEach(function(e){e.className=""}),e[this.imgIndex].className="borderActive",this.bigShowType.isImage&&this.init()}},handleNext:function(){if(this.imgIndex+1>=this.imgData.length)this.tips("已经是最后一张了!");else{this.$refs.bigImg&&(this.$refs.bigImg.style.transform="rotate(0deg)",this.rotateDeg=0),this.imgIndex++,this.bigImgName=this.imgData[this.imgIndex].name,this.getShowTypeInfo(this.bigImgName);var e=this.$refs.thumbnailItem;e.forEach(function(e){e.className=""}),e[this.imgIndex].className="borderActive",this.bigShowType.isImage&&this.init()}},tips:function(e){this.showTips=!0,this.tipsText=e;var t=this;setTimeout(function(){t.showTips=!1},1e4)},enterLeft:function(){this.leftArrowShow=!0},outLeft:function(){this.leftArrowShow=!1},enterRight:function(){this.rightArrowShow=!0},outRight:function(){this.rightArrowShow=!1},closeViewer:function(){this.$emit("close-viewer")},downloadFile:function(){var e=this;Object(f.k)({save_name:this.currentFile.save_name}).then(function(t){var n=new Blob([t.data],{type:""});Object(m.e)(n,e.currentFile.name)}).catch(function(){})},previewFile:function(){this.currentFile.url&&Object(m.A)(this.currentFile.url,this.currentFile.name)},getShowTypeInfo:function(e){var t=e?e.split("."):[],n="";n=t.length>0?t[t.length-1]:"";var i=Object(m.n)(n),a=["jpg","png","gif","jpeg"].includes(n.toLowerCase());this.bigShowType={isImage:a,icon:i}},getFileTypeIconWithSuffix:function(e){var t=e?e.split("."):[],n="";return n=t.length>0?t[t.length-1]:"",Object(m.n)(n)},isShowImage:function(e){var t=e?e.split("."):[],n="";return n=t.length>0?t[t.length-1]:"",["jpg","png","gif","jpeg"].includes(n.toLowerCase())},arrayContain:function(e,t){return e.some(function(e){return e===t})}}},v=(n("rJsn"),n("KHd+")),b=Object(v.a)(g,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.maskContainer,attrs:{id:"vue-picture-viewer"}},[n("div",{staticClass:"perview-header"},[n("span",[e._v(e._s(e.title))])]),e._v(" "),n("div",{ref:"imgContainer",staticClass:"imgContainer",style:e.imgContainer},[e.bigShowType.isImage?n("img",{directives:[{name:"src",rawName:"v-src",value:e.bigImgUrl,expression:"bigImgUrl"}],ref:"bigImg",style:e.bigImgStyle,attrs:{alt:""}}):e._e(),e._v(" "),e.bigShowType.isImage?e._e():n("div",{staticClass:"file-show"},[e.showPreviewBtn?e._e():n("div",{staticClass:"title"},[e._v("该附件格式不支持预览,请下载后查看")]),e._v(" "),n("i",{staticClass:"el-icon-close",on:{click:e.closeViewer}}),e._v(" "),n("div",{staticClass:"content"},[n("img",{staticClass:"file-icon",attrs:{src:e.bigShowType.icon}}),e._v(" "),n("div",{staticClass:"file-handle"},[e.showPreviewBtn?n("el-button",{attrs:{type:"primary",plain:""},nativeOn:{click:function(t){return e.previewFile(t)}}},[e._v("预览")]):e._e(),e._v(" "),n("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){return e.downloadFile(t)}}},[e._v("下载")])],1)])]),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showTips,expression:"showTips"}],staticClass:"tips"},[e._v(e._s(e.tipsText))])])],1),e._v(" "),n("div",{staticClass:"fixedHandle"},[e.bigShowType.isImage?n("flexbox",{staticClass:"handleContainer"},[n("div",{staticClass:"handle-box"},[n("i",{staticClass:"wk wk-zoom-in",on:{click:e.enlarge}}),e._v(" "),n("i",{staticClass:"wk wk-zoom-on",on:{click:e.reduce}}),e._v(" "),n("i",{staticClass:"wk wk-rotate",on:{click:e.rotate}}),e._v(" "),n("i",{staticClass:"wk wk-download",on:{click:e.downloadFile}})]),e._v(" "),n("div",{staticClass:"icon-btn",on:{click:e.closeViewer}},[n("i",{staticClass:"el-icon-close"})])]):e._e(),e._v(" "),e.imgLength>1?n("div",{staticClass:"thumbnailContainer"},[n("ul",e._l(e.imgData,function(t,i){return n("li",{key:i,ref:"thumbnailItem",refInFor:!0,on:{click:function(t){e.switchImgUrl(i,t)}}},[e.isShowImage(t.name)?n("img",{directives:[{name:"src",rawName:"v-src",value:t.url,expression:"item.url"}],attrs:{alt:""}}):n("img",{attrs:{src:e.getFileTypeIconWithSuffix(t.name),alt:""}})])}))]):e._e()],1),e._v(" "),n("div",{staticClass:"leftArrowCon",on:{click:e.handlePrev,mouseenter:e.enterLeft,mouseout:e.outLeft}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.leftArrowShow,expression:"leftArrowShow"}],staticClass:"icon-btn leftArrow"},[n("i",{staticClass:"el-icon-arrow-left"})])]),e._v(" "),n("div",{staticClass:"rightArrowCon",on:{click:e.handleNext,mouseenter:e.enterRight,mouseout:e.outRight}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.rightArrowShow,expression:"rightArrowShow"}],staticClass:"icon-btn rightArrow"},[n("i",{staticClass:"el-icon-arrow-right"})])])])},[],!1,null,"10c3faa4",null);b.options.__file="index.vue";var y=b.exports,k={name:"XrImport",components:{},props:{processStatus:{type:String,default:"wait"}},data:function(){return{}},computed:{loading:function(){return"process"==this.processStatus},processLabel:function(){return this.loading?"导入中":"导入完成"}},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{}},w=(n("lhtO"),Object(v.a)(k,function(){var e=this.$createElement,t=this._self._c||e;return t("flexbox",{staticClass:"xr-import"},[this.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:this.loading,expression:"loading"}],staticClass:"xr-import__icon"}):t("i",{staticClass:"wk wk-success xr-import__icon"}),this._v(" "),t("p",{staticClass:"xr-import__label",class:{"is-loading":this.loading}},[this._v(this._s(this.processLabel))])])},[],!1,null,"1ecb0019",null));w.options.__file="index.vue";var _=w.exports,C=n("4XAY"),A=n("4peS"),x=n.n(A),j={data:function(){return{showCRMImport:!1,crmType:"",crmProps:null,crmImportStatus:"",cacheShow:!1,cacheDone:!1}},created:function(){this.addImportBus();var e=x.a.get("crmImportInfo");e&&e.messageId?(this.crmType=e.crmType,this.crmProps=e.crmProps,this.secondQueryNum(e.messageId),this.cacheShow=!0):this.cacheShow=!1},computed:{showFixImport:function(){return!this.showCRMImport&&this.crmImportStatus&&"wait"!=this.crmImportStatus}},watch:{},methods:{addImportBus:function(){var e=this;this.$bus.on("import-crm-bus",function(t,n){e.crmType!=t&&e.showFixImport?e.$message.error("请先处理当前导入的数据"):(e.crmType=t,e.crmProps=n,e.showCRMImport=!0)})},crmImportChange:function(e){this.crmImportStatus=this.showCRMImport&&"finish"==e?"":e},fixImportClick:function(){this.showCRMImport=!0},crmImportClose:function(e){"finish"==e&&(this.crmImportStatus="")},secondQueryNum:function(e){var t=this;Object(C.p)({messageId:e}).then(function(e){null===e.data?(t.crmImportStatus="finish",t.cacheDone=!0):(t.cacheDone=!1,t.crmImportStatus="process"),t.showCRMImport=!1}).catch(function(){x.a.rm("crmImportInfo")})}}},T=n("7Dod"),I=n("c2Co"),D=n("AAeT"),S=n("Y4Le"),F=n("8GhS"),O={name:"CRMImportHistory",components:{},props:{show:{type:Boolean,default:!1},crmType:{type:String,default:""},props:Object},data:function(){return{loading:!1,tableList:[]}},computed:{},watch:{show:function(e){e&&this.getList()}},mounted:function(){},beforeDestroy:function(){},methods:{getList:function(){var e=this;this.loading=!0,Object(f.o)({page:1,limit:9999,type:"crm_"+this.crmType}).then(function(t){e.loading=!1,e.tableList=t.data.list}).catch(function(){e.loading=!1})},downloadError:function(e){Object(C.f)({path:e,name:"导入错误数据"}).then(function(e){Object(m.c)(e)}).catch(function(){})},getImportContent:function(e,t){},getErrorNum:function(e){var t=e.split(",")||[],n=Number(t[0]||"0");return parseInt(n)},closeClick:function(){this.$emit("close")}}},R=(n("0iCk"),Object(v.a)(O,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"import-history"},[n("div",{staticClass:"import-history__hd"},[n("span",{staticClass:"import-history__title"},[e._v("查看历史导入记录")]),e._v(" "),n("span",{staticClass:"import-history__des"},[e._v("(错误数据只保存七天,七天后将自动失效)")]),e._v(" "),n("el-button",{staticClass:"xr-icon-close-btn",attrs:{icon:"el-icon-close"},on:{click:e.closeClick}})],1),e._v(" "),n("el-table",{staticClass:"import-history__bd",staticStyle:{width:"100%"},attrs:{data:e.tableList,height:"250"}},[n("el-table-column",{attrs:{prop:"create_time",label:"导入时间",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.create_time)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"user_name",label:"操作人",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{prop:"address",label:"导入结果"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("导入总数据"+t.row.total+"条,覆盖"+t.row.cover+"条,导入成功"+(t.row.total-t.row.error)+"条,导入失败"+t.row.error+"条。")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"option",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.done>0?[1==t.row.valid?n("el-button",{attrs:{type:"text"},on:{click:function(n){e.downloadError(t.row.error_data_file_path)}}},[e._v("下载错误数据")]):0==t.row.valid?n("span",{staticClass:"invalid-tips"},[e._v("已失效")]):e._e()]:e._e()]}}])})],1),e._v(" "),n("div",{staticClass:"import-history__ft"},[n("el-button",{attrs:{type:"primary"},on:{click:e.closeClick}},[e._v("关闭")])],1)],1)},[],!1,null,"11475d1b",null));R.options.__file="CRMImportHistory.vue";var E=R.exports,U=n("L2JU"),L=n("ZoMv"),M=n("jtZb"),N={typeName:"",ownerSelectShow:!0,poolSelectShow:!1,repeatHandleShow:!0,repeatRuleShow:!0,importRequest:null,templateRequest:null},V={name:"CRMImport",components:{XhUserCell:F.p,CRMImportHistory:E},props:{show:{type:Boolean,default:!1},crmType:{type:String,default:""},props:{type:Object,default:function(){return{}}},cacheShow:{type:Boolean,default:!1},cacheDone:{type:Boolean,default:!1}},data:function(){return{loading:!1,fieldList:[],repeatHandling:1,file:{name:""},user:[],poolId:"",poolList:[],stepsActive:1,stepList:[{icon:"wk wk-upload",title:"上传文件",status:"wait"},{icon:"wk wk-data-import",title:"导入数据",status:"wait"},{icon:"wk wk-success",title:"导入完成",status:"wait"}],resultData:null,processData:{count:0,status:""},messageId:null,intervalTimer:null,historyPopoverShow:!1}},computed:d()({},Object(U.b)(["userInfo"]),{crmTypeName:function(){return this.props&&this.props.typeName?this.props.typeName:{customer:"客户",leads:"线索",contacts:"联系人",product:"产品"}[this.crmType]||""},importLoadingText:function(){return this.processData.count?"数据导入中(当前已导入"+this.processData.count+"条)":"数据导入中"},sureTitle:function(){return{1:"立即导入",2:"最小化",3:"确定"}[this.stepsActive]},showCancel:function(){return 2!=this.stepsActive},fieldUniqueInfo:function(){return this.fieldList.filter(function(e){return 1==e.is_unique}).map(function(e){return e.name}).join("/")||"无"},config:function(){return Object(M.a)(d()({},N),this.props||{})}}),watch:{cacheShow:{handler:function(e){if(e){this.$emit("update:cacheShow",!1);var t=x.a.get("crmImportInfo");t&&t.messageId&&(this.loading=!0,this.messageId=t.messageId,this.stepList[0].status="finish",this.cacheDone?(this.stepList[1].status="finish",this.stepsActive=3,this.thirdQueryResult()):(this.stepsActive=2,this.stepList[1].status="process"),this.loopSecondQueryNum())}},immediate:!0},show:function(e){e?1==this.stepsActive&&(this.userInfo&&(this.user=[this.userInfo]),this.config.poolSelectShow&&this.getPoolList(),this.config.repeatRuleShow&&this.config.repeatHandleShow&&this.getField()):(3==this.stepsActive&&this.resetData(),this.fieldList=[])},stepsActive:function(){this.$emit("status",{1:"wait",2:"process",3:"finish"}[this.stepsActive])}},created:function(){},methods:{sureClick:function(){var e=this;1==this.stepsActive?"finish"==this.stepList[0].status?(this.stepList[1].status="process",this.stepsActive=2,this.firstUpdateFile(function(t){e.messageId=t.data,x.a.set("crmImportInfo",{messageId:e.messageId,crmProps:e.config,crmType:e.crmType}),e.loopSecondQueryNum()})):this.file.name?!this.config.ownerSelectShow||this.user&&0!=this.user.length||this.$message.error("请选择负责人"):this.$message.error("请选择导入文件"):this.closeView()},firstUpdateFile:function(e){var t=this,n={};n.config=this.repeatHandling,n.file=this.file,n.owner_user_id=this.user.length>0?this.user[0].id:"",this.config.poolSelectShow&&(n.poolId=this.poolId);var i=this.config.importRequest||{customer:this.config.poolSelectShow?T.s:T.h,leads:I.e,contacts:D.e,product:S.e}[this.crmType];this.loading=!0,i(n).then(function(t){e&&e(t)}).catch(function(){e&&e(!1),t.loading=!1})},loopSecondQueryNum:function(){var e=this;this.secondQueryNum(),this.intervalTimer=setInterval(function(){"end"==e.processData.status?(clearInterval(e.intervalTimer),e.intervalTimer=null,e.thirdQueryResult()):e.secondQueryNum()},2e3)},secondQueryNum:function(){var e=this;Object(C.p)({messageId:this.messageId}).then(function(t){""===t.data?e.processData.status="end":(e.processData.status="",e.processData.count=t.data)}).catch(function(){})},thirdQueryResult:function(){var e=this;Object(C.o)({messageId:this.messageId}).then(function(t){e.loading=!1,e.stepList[1].status="finish",e.stepsActive=3,e.$emit("status","finish"),t&&(e.resultData=t.data,t.data.error>0?e.stepList[2].status="error":e.stepList[2].status="finish")}).catch(function(){})},downloadErrData:function(){var e=this;this.loading=!0,Object(C.f)({name:"导入错误数据",path:this.resultData.error_file_path}).then(function(t){Object(m.c)(t),e.loading=!1}).catch(function(){e.loading=!1})},download:function(){(this.config.templateRequest||{customer:T.e,leads:I.b,contacts:D.b,product:S.b}[this.crmType])().then(function(e){Object(m.c)(e)}).catch(function(){})},selectFile:function(){document.getElementById("importInputFile").click()},uploadFile:function(e){var t=e.target.files[0];Object(m.z)(t.name)&&(this.file=t,this.getFirstStepStatus()),e.target.value=""},userSelect:function(e){e.value&&e.value.length>0?this.user=e.value:this.user=[],this.getFirstStepStatus()},getFirstStepStatus:function(){var e=this.file&&this.file.size,t=this.user&&this.user.length>0;this.config.ownerSelectShow?this.stepList[0].status=e&&t?"finish":"wait":this.stepList[0].status=e?"finish":"wait"},getPoolList:function(){this.poolList=[{poolId:1,poolName:"系统默认公海",adminUserId:null,memberUserId:null,memberDeptId:null,status:null,preOwnerSetting:null,preOwnerSettingDay:null,receiveSetting:null,receiveNum:null,remindSetting:null,remindDay:null,putInRule:null,createUserId:null,createTime:null,companyId:null}],this.poolId=1},closeView:function(){this.$emit("update:show",!1),3==this.stepsActive&&(this.$bus.emit("import-crm-done-bus",this.crmType),x.a.rm("crmImportInfo")),this.$emit("close",3==this.stepsActive?"finish":"")},resetData:function(){this.repeatHandling=1,this.file={name:""},this.user=[],this.stepsActive=1,this.stepList=[{icon:"wk wk-upload",title:"上传文件",status:"wait"},{icon:"wk wk-data-import",title:"导入数据",status:"wait"},{icon:"wk wk-success",title:"导入完成",status:"wait"}],this.resultData=null,this.processData={count:0,status:""},this.messageId=null},getField:function(){var e=this,t={types:L.a[this.crmType],module:"crm",action:"save",controller:this.crmType};Object(C.x)(t).then(function(t){e.fieldList=t.data}).catch(function(){})}}},B=(n("A5WD"),Object(v.a)(V,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{visible:e.show,title:"导入"+e.crmTypeName,"append-to-body":!0,"close-on-click-modal":!1,width:"750px"},on:{close:e.closeView}},[n("div",{staticClass:"dialog-body"},[n("el-steps",{attrs:{active:e.stepsActive,simple:""}},e._l(e.stepList,function(e,t){return n("el-step",{key:t,attrs:{title:e.title,icon:e.icon,status:e.status}})})),e._v(" "),1==e.stepsActive?n("div",{staticClass:"step-section"},[n("div",{staticClass:"sections"},[n("div",{staticClass:"sections__title"},[e._v("一、请按照数据模板的格式准备要导入的数据。"),n("span",{staticClass:"download",on:{click:e.download}},[e._v("点击下载《"+e._s(e.crmTypeName)+"导入模板》")])]),e._v(" "),n("div",{staticClass:"sections__tips"},[e._v("导入文件请勿超过2MB约10,000条数据")])]),e._v(" "),e.config.repeatHandleShow?n("div",{staticClass:"sections"},[n("div",{staticClass:"sections__title"},[e._v("二、请选择数据重复时的处理方式"+e._s(e.config.repeatRuleShow?"(查重规则:【"+e.fieldUniqueInfo+"】)":""))]),e._v(" "),e.config.repeatRuleShow?n("div",{staticClass:"sections__tips"},[e._v("查重规则为:添加"+e._s(e.crmTypeName)+"时所需填写的所有唯一字段,当前设置唯一字段为:"+e._s(e.fieldUniqueInfo))]):e._e(),e._v(" "),n("div",{staticClass:"content"},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.repeatHandling,callback:function(t){e.repeatHandling=t},expression:"repeatHandling"}},e._l([{name:"覆盖系统原有数据",value:1},{name:"跳过",value:0}],function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.value}})}))],1)]):e._e(),e._v(" "),n("div",{staticClass:"sections"},[n("div",{staticClass:"sections__title"},[e._v(e._s(e.config.repeatHandleShow?"三":"二")+"、请选择需要导入的文件")]),e._v(" "),n("div",{staticClass:"content"},[n("flexbox",{staticClass:"file-select"},[n("el-input",{attrs:{disabled:!0},model:{value:e.file.name,callback:function(t){e.$set(e.file,"name",t)},expression:"file.name"}}),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.selectFile}},[e._v("选择文件")])],1)],1)]),e._v(" "),e.config.ownerSelectShow?n("div",{staticClass:"sections"},[n("div",{staticClass:"sections__title"},[e._v("四、请选择负责人(负责人为必填字段,若不填写,则会导致导入失败)")]),e._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"user-cell"},[n("xh-user-cell",{attrs:{value:e.user},on:{"value-change":e.userSelect}})],1)])]):e._e(),e._v(" "),e.config.poolSelectShow?n("div",{staticClass:"sections"},[n("div",{staticClass:"sections__title"},[e._v("四、请选择公海")]),e._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"user-cell"},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.poolId,callback:function(t){e.poolId=t},expression:"poolId"}},e._l(e.poolList,function(e){return n("el-option",{key:e.poolId,attrs:{label:e.poolName,value:e.poolId}})}))],1)])]):e._e()]):2==e.stepsActive?n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"step-section",attrs:{"element-loading-text":e.importLoadingText,"element-loading-spinner":"el-icon-loading"}},[n("div",{staticClass:"step-section__tips"},[e._v("当前数据正在导入,您可以点击【最小化】隐藏该页面,数据导入不受影响。")])]):3==e.stepsActive?n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"step-section"},[n("div",{staticClass:"result-info"},[n("i",{staticClass:"wk wk-success result-info__icon"}),e._v(" "),n("p",{staticClass:"result-info__des"},[e._v("数据导入完成")]),e._v(" "),e.resultData?n("p",{staticClass:"result-info__detail"},[e._v("导入总数据"),n("span",{staticClass:"result-info__detail--all"},[e._v(e._s(e.resultData.total))]),e._v("条,"),e.resultData.cover?[e._v("覆盖"),n("span",{staticClass:"result-info__detail--suc"},[e._v(e._s(e.resultData.done))]),e._v("条,")]:e._e(),e._v("导入成功"),n("span",{staticClass:"result-info__detail--suc"},[e._v(e._s(e.resultData.total-e.resultData.error))]),e._v("条,导入失败"),n("span",{staticClass:"result-info__detail--err"},[e._v(e._s(e.resultData.error))]),e._v("条")],2):e._e(),e._v(" "),e.resultData&&e.resultData.error>0?n("el-button",{staticClass:"result-info__btn--err",attrs:{type:"text"},on:{click:e.downloadErrData}},[e._v("下载错误数据")]):e._e()],1)]):e._e(),e._v(" "),n("input",{attrs:{id:"importInputFile",type:"file"},on:{change:e.uploadFile}})],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-popover",{attrs:{placement:"top",width:"800","popper-class":"no-padding-popover",trigger:"click"},model:{value:e.historyPopoverShow,callback:function(t){e.historyPopoverShow=t},expression:"historyPopoverShow"}},[n("c-r-m-import-history",{attrs:{show:e.historyPopoverShow,"crm-type":e.crmType,props:e.props},on:{close:function(t){e.historyPopoverShow=!1}}}),e._v(" "),n("el-button",{staticClass:"history-btn",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看历史导入记录")])],1),e._v(" "),n("el-button",{class:{"is-hidden":!e.showCancel},on:{click:e.closeView}},[e._v("取消")]),e._v(" "),e.sureTitle?n("el-button",{attrs:{type:"primary"},on:{click:e.sureClick}},[e._v(e._s(e.sureTitle))]):e._e()],1)])},[],!1,null,"092c6b86",null));B.options.__file="index.vue";var Z=B.exports,Y=n("a0Nf"),G={name:"App",components:{VuePictureViewer:y,XrImport:_,CRMImport:Z},mixins:[j],data:function(){return{showPreviewImg:!1,previewIndex:0,previewImgs:[]}},computed:d()({},Object(U.b)(["activeIndex","userInfo"])),watch:{$route:function(e,t){this.showPreviewImg=!1}},mounted:function(){this.addBus(),this.addDocumentVisibilityChange(),this.setMinHeight()},methods:{addDocumentVisibilityChange:function(){var e,t,n=this;void 0!==document.hidden?(t="visibilitychange",e="visibilityState"):void 0!==document.mozHidden?(t="mozvisibilitychange",e="mozVisibilityState"):void 0!==document.msHidden?(t="msvisibilitychange",e="msVisibilityState"):void 0!==document.webkitHidden&&(t="webkitvisibilitychange",e="webkitVisibilityState"),document.addEventListener(t,function(){"visible"==document[e]&&Y.a.updateAxiosHeaders(),n.$bus.emit("document-visibility",document[e])},!1)},addBus:function(){var e=this;this.$bus.on("preview-image-bus",function(t){e.previewIndex=t.index,e.previewImgs=t.data,e.showPreviewImg=!0})},setMinHeight:function(){this.$nextTick(function(){var e=window.devicePixelRatio||1,t=document.body.clientWidth,n=document.getElementById("app");1!==e&&t>1600?n.style.minHeight="800px":1===e&&t>1600?n.style.minWidth="1650px":n.style.minHeight="605px"})}}},W=(n("A0++"),Object(v.a)(G,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view",{staticClass:"router-view"}),e._v(" "),e.showPreviewImg?n("vue-picture-viewer",{attrs:{"img-data":e.previewImgs,"select-index":e.previewIndex},on:{"close-viewer":function(t){e.showPreviewImg=!1}}}):e._e(),e._v(" "),e.showFixImport?n("xr-import",{attrs:{"process-status":e.crmImportStatus},nativeOn:{click:function(t){return e.fixImportClick(t)}}}):e._e(),e._v(" "),n("c-r-m-import",{attrs:{show:e.showCRMImport,"crm-type":e.crmType,props:e.crmProps,"cache-show":e.cacheShow,"cache-done":e.cacheDone},on:{"update:show":function(t){e.showCRMImport=t},"update:cacheShow":function(t){e.cacheShow=t},status:e.crmImportChange,close:e.crmImportClose}})],1)},[],!1,null,null,null));W.options.__file="App.vue";var P=W.exports,Q=n("oYx3"),z=n("Q2AE"),q=n("Mj6V"),J=n.n(q),X=(n("pdi6"),n("X4fA")),K=!1,H=["/login","/welcome"];Q.b.beforeEach(function(e,t,n){e.meta.disabled?n(!1):(J.a.start(),Object(X.b)()?H.includes(e.path)?(n({path:"/"}),J.a.done()):K?n():(K=!0,z.a.getters.allAuth?z.a.dispatch("GenerateRoutes",z.a.getters.allAuth).then(function(){Q.b.addRoutes(z.a.getters.addRouters),"/404"===e.path?n({path:e.redirectedFrom||"/",replace:!0}):n(d()({},e,{replace:!0}))}):z.a.dispatch("getAuth").then(function(t){z.a.dispatch("GenerateRoutes",t).then(function(){Q.b.addRoutes(z.a.getters.addRouters),"/404"===e.path?n({path:e.redirectedFrom||"/",replace:!0}):n(d()({},e,{replace:!0}))})}).catch(function(e){K=!1,z.a.dispatch("LogOut").then(function(){c.Message.error(e.msg||"获取用户信息失败"),n({path:"/"})})})):-1!==H.indexOf(e.path)?n():(n("/login"),J.a.done()))}),Q.b.afterEach(function(){J.a.done()}),Q.b.onError(function(e){var t=e.message.match(/Loading chunk (\d)+ failed/g),n=Q.b.history.pending.fullPath;t&&Q.b.replace(n)});n("ndzN");var $=n("uCgg"),ee={name:"Flexbox",props:{gutter:{type:Number,default:8},orient:{type:String,default:"horizontal"},justify:String,align:String,wrap:String,direction:String},computed:{styles:function(){var e={"justify-content":this.justify,"-webkit-justify-content":this.justify,"align-items":this.align,"-webkit-align-items":this.align,"flex-wrap":this.wrap,"-webkit-flex-wrap":this.wrap,"flex-direction":this.direction,"-webkit-flex-direction":this.direction};return e}}},te=(n("c7Em"),Object(v.a)(ee,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"vux-flexbox",class:{"vux-flex-col":"vertical"===this.orient,"vux-flex-row":"horizontal"===this.orient},style:this.styles},[this._t("default")],2)},[],!1,null,null,null));te.options.__file="Flexbox.vue";var ne=te.exports,ie=["-moz-box-","-webkit-box-",""],ae={name:"FlexboxItem",props:{span:[Number,String],order:[Number,String]},data:function(){return{bodyWidth:0}},computed:{style:function(){var e={},t="horizontal"===this.$parent.orient?"marginLeft":"marginTop";if(1*this.$parent.gutter!=0&&(e[t]=this.$parent.gutter+"px"),this.span)for(var n=0;n<ie.length;n++)e[ie[n]+"flex"]="0 0 "+100*this.buildWidth(this.span)+"%";return void 0!==this.order&&(e.order=this.order),e}},beforeMount:function(){this.bodyWidth=document.documentElement.offsetWidth},methods:{buildWidth:function(e){return"number"==typeof e?e<1?e:e/12:"string"==typeof e?e.replace("px","")/this.bodyWidth:void 0}}},se=Object(v.a)(ae,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"vux-flexbox-item",style:this.style},[this._t("default")],2)},[],!1,null,null,null);se.options.__file="FlexboxItem.vue";var oe=se.exports,re=n("o0dq"),ce={name:"XrAvatar",components:{XrUserView:function(){return n.e("chunk-62c2").then(n.bind(null,"bE0L"))}},inheritAttrs:!1,props:{name:String,id:[Number,String],size:{type:[Number,String],default:38},src:String,disabled:{type:Boolean,default:!0},trigger:{type:String,default:"click"},background:{type:String,default:n.n(re).a.xrColorPrimary}},data:function(){return{popoverShow:!1,loading:!1,userData:null}},computed:d()({},Object(U.b)(["imageCache"]),{fontSize:function(){return this.size<=30?"12px":"14px"},showName:function(){return this.name&&this.name.length>2?this.name.slice(-2):this.name},popoverDisabled:function(){return!!this.disabled||!this.id}}),watch:{popoverShow:function(e){this.userData||this.getUserData()},src:{handler:function(){this.handleImage()},immediate:!0}},created:function(){},beforeDestroy:function(){},methods:{handleImage:function(){var e=this;this.src&&(this.imageCache.hasOwnProperty(this.src)||(this.$set(this.imageCache,this.src,""),this.$store.commit("SET_IMAGECACHE",this.imageCache),Object(m.p)(this.src).then(function(t){e.$set(e.imageCache,e.src,t.src),e.$store.commit("SET_IMAGECACHE",e.imageCache)}).catch(function(){delete e.imageCache[e.src],e.$store.commit("SET_IMAGECACHE",e.imageCache)})))},getUserData:function(){var e=this;Object(f.v)({id:this.id}).then(function(t){e.userData=t.data}).catch(function(){})}}},le=(n("KS45"),Object(v.a)(ce,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.disabled?n("el-avatar",e._b({key:e.src,class:{"cursor-pointer":!e.disabled},style:{fontSize:e.fontSize,background:e.background},attrs:{slot:"reference",src:e.imageCache[e.src],size:e.size,fit:"fill"},slot:"reference"},"el-avatar",e.$attrs,!1),[e._v(e._s(e.showName))]):n("el-popover",{attrs:{"visible-arrow":!1,trigger:e.trigger,disabled:e.popoverDisabled,placement:"bottom",width:"250","popper-class":"no-padding-popover"},model:{value:e.popoverShow,callback:function(t){e.popoverShow=t},expression:"popoverShow"}},[n("xr-user-view",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userData,src:e.imageCache[e.src]}}),e._v(" "),n("el-avatar",e._b({key:e.src,class:{"cursor-pointer":!e.disabled},style:{fontSize:e.fontSize,background:e.background},attrs:{slot:"reference",src:e.imageCache[e.src],size:e.size,fit:"fill"},slot:"reference"},"el-avatar",e.$attrs,!1),[e._v(e._s(e.showName))])],1)},[],!1,null,"e0b322d2",null));le.options.__file="index.vue";var ue=le.exports,de=n("4d7F"),pe=n.n(de),he=n("vDqi"),me=n.n(he),fe={name:"WkUploadCell",components:{},props:{file:{type:File,required:!0},index:Number,request:Function,complete:{type:Boolean,default:!1},params:Object},data:function(){return{percentage:0,cancel:null}},computed:{handleIcon:function(){return this.complete?"el-icon-check":"el-icon-close"},fileIcon:function(){return Object(m.o)(this.file)},fileSize:function(){return""+Object(m.h)(this.file.size)+""}},watch:{file:{handler:function(){this.file&&!this.complete&&0==this.percentage&&this.uploadFile()},immediate:!0}},mounted:function(){},beforeDestroy:function(){},methods:{uploadFile:function(){var e=this,t=this.request?this.request:f.f,n=this.params?this.params:{};n.file=this.file;var i=this;t(n,{onUploadProgress:function(t){var n=t.loaded/t.total*100|0;e.percentage=n},cancelToken:new(0,me.a.CancelToken)(function(e){i.cancel=e,i.$emit("cancelTokenChange",e,i.index)})}).then(function(t){e.$emit("completed",e.index,t)}).catch(function(){e.$emit("error",e.index)})},cancelRequest:function(){this.complete||(this.cancel(),this.$emit("delete",this.index))}}},ge=(n("IQEA"),Object(v.a)(fe,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("flexbox",{staticClass:"wk-upload-cell"},[n("img",{staticClass:"wk-upload-cell__header",attrs:{src:e.fileIcon}}),e._v(" "),n("div",{staticClass:"wk-upload-cell__body"},[n("div",{staticClass:"text-one-line"},[e._v(e._s(e.file.name)),n("span",{staticStyle:{color:"#999"}},[e._v(e._s(e.fileSize))])]),e._v(" "),n("el-progress",{attrs:{"stroke-width":3,"show-text":!1,percentage:e.complete?100:e.percentage}})],1),e._v(" "),n("div",{staticClass:"wk-upload-cell__footer"},[n("el-button",{attrs:{icon:e.handleIcon},on:{click:e.cancelRequest}})],1)])},[],!1,null,"9f2fd2f2",null));ge.options.__file="WkUploadCell.vue";var ve={name:"FileUpload",components:{WkUploadCell:ge.exports},props:{},data:function(){return{visible:!1,isUnfold:!0,uploadList:[]}},computed:{unfoldIcon:function(){return this.isUnfold?"el-icon-minus":"el-icon-plus"}},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{upload:function(e){var t=this;return this.visible=!0,new pe.a(function(n,i){t.uploadList.push(d()({},e,{complete:!1,resolve:n,reject:i}))})},close:function(){for(var e=this,t=!0,n=0;n<this.uploadList.length;n++){if(!this.uploadList[n].complete){t=!1;break}}t?(this.uploadList=[],this.visible=!1):this.$confirm("关闭窗口,将取消上传任务,是否继续?","提示",{confirmButtonText:"继续",cancelButtonText:"取消",type:"warning"}).then(function(){for(var t=0;t<e.uploadList.length;t++){var n=e.uploadList[t];n.cancelToken&&n.cancelToken()}e.uploadList=[],e.visible=!1}).catch(function(){e.isUnfold=!1})},unfoldClick:function(){this.isUnfold=!this.isUnfold},uploadCompleted:function(e,t){var n=this.uploadList[e];n.res=t,n.complete=!0,n.resolve&&n.resolve(n)},uploadDelete:function(e){this.uploadList.splice(e,1)},cancelTokenChange:function(e,t){var n=this.uploadList[t];this.$set(n,"cancelToken",e)}}},be=(n("XSoD"),Object(v.a)(ve,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"slide-fade"}},[e.visible?n("div",{staticClass:"file-upload"},[n("flexbox",{staticClass:"file-upload__header"},[n("div",{staticClass:"title"},[e._v("附件上传")]),e._v(" "),n("div",[n("el-button",{staticClass:"unfold-button",attrs:{icon:e.unfoldIcon},on:{click:e.unfoldClick}}),e._v(" "),n("el-button",{staticClass:"close-button",attrs:{icon:"el-icon-close"},on:{click:e.close}})],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isUnfold,expression:"isUnfold"}],staticClass:"file-upload__body"},e._l(e.uploadList,function(t,i){return n("wk-upload-cell",{key:i,attrs:{index:i,file:t.file,request:t.request,params:t.params,complete:t.complete},on:{completed:e.uploadCompleted,delete:e.uploadDelete,cancelTokenChange:e.cancelTokenChange}})}))],1):e._e()])},[],!1,null,"5829f16a",null));be.options.__file="main.vue";var ye=be.exports,ke={install:function(e){var t=new(e.extend(ye))({el:document.createElement("div")});document.body.appendChild(t.$el),e.prototype.$wkUploadFile=t}},we=ke,_e={name:"file",accept:"*.*",multiple:!0},Ce={name:"WkFile",components:{},props:{},data:function(){return{data:{},resolve:null}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{handleChange:function(e){this.resolve(e)},select:function(e){var t=this;return this.data=Object(M.a)(d()({},_e),e||{}),this.$refs.wkFileInput.value=null,this.$refs.wkFileInput.click(),new pe.a(function(e,n){t.resolve=e})}}},Ae=(n("rW5V"),Object(v.a)(Ce,function(){var e=this.$createElement;return(this._self._c||e)("input",{ref:"wkFileInput",staticStyle:{display:"none"},attrs:{name:this.data.name,multiple:this.data.multiple,accept:this.data.accept,type:"file"},on:{change:this.handleChange}})},[],!1,null,"057a7eaa",null));Ae.options.__file="main.vue";var xe=Ae.exports,je={install:function(e){var t=new(e.extend(xe))({el:document.createElement("div")});document.body.appendChild(t.$el),e.prototype.$wkFile=t}},Te=je;window.dataCache={};var Ie=function(e,t){var i=n("tpe7");if(De(e,t,i),!t.value||0!=t.value.indexOf("/file/downFile")&&0!=t.value.indexOf("/adminFile/down"))De(e,t,t.value);else{var a=""+window.BASE_URL+t.value;De(e,t,a.replace("//","/"))}},De=function(e,t,n){if(t.arg?e.style[t.arg]='url("'+n+'")':e.setAttribute("src",n),"IMG"!==e.tagName){var i=document.createEvent("HTMLEvents");i.initEvent("load",!1,!0),e.dispatchEvent(i)}},Se={name:"src",inserted:function(e,t){Ie(e,t)},update:function(e,t){t.oldValue!=t.value&&Ie(e,t)},unbind:function(e){}};function Fe(e,t){return t||(t="YYYY-MM-DD HH:mm"),e&&0!=e?Object(m.y)(e,t):""}function Oe(e){return Object(m.k)(e)}function Re(e){return{src:e,error:n("TEXM"),loading:n("+LJE")}}function Ee(e){return e.startsWith("wk")?e:"wk wk-"+e}var Ue=n("ZhIB"),Le=n.n(Ue),Me=(n("5WIN"),n("jHPx")),Ne={install:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).locale,n=void 0===t?"en-gb":t;Le.a.locale(n),e.filter("abbreviate",Me.a),e.filter("bytes",Me.b),e.filter("exponential",Me.d),e.filter("numeral",Me.e),e.filter("ordinal",Me.f),e.filter("percentage",Me.g),e.filter("separator",Me.h),e.filter("currency",Me.c)}},Ve=Ne;"undefined"!=typeof window&&window.Vue&&Vue.use(Ne);var Be=n("wd/R"),Ze=n.n(Be),Ye={install:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.directive("WkNumber",{update:function(e,t){var n=t.value,i=e.getElementsByTagName("input")[0],a=i.value;"positiveInt"==n?(i.value=i.value.replace(/[^\d]/g,""),i.value.indexOf(".")<0&&""!=i.value&&(i.value=parseInt(i.value))):"positive3Float"==n?(i.value=i.value.replace(/[^\d.]/g,""),i.value=i.value.replace(/^(\d+)\.(\d\d\d).*$/,"$1.$2")):"positive4Float"==n?(i.value=i.value.replace(/[^\d.]/g,""),i.value=i.value.replace(/^(\d+)\.(\d\d\d\d).*$/,"$1.$2")):(i.value=i.value.replace(/[^\-?\d.]/g,""),n||(i.value=i.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"))),i.value!=a&&i.dispatchEvent(new Event("input"))}})}},Ge={bind:function(e,t,n){function i(n){if(e.contains(n.target))return!1;t.expression&&t.value(n)}e.__vueClickOutside__=i,document.addEventListener("click",i)},unbind:function(e,t){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}},We=n("JqEL"),Pe=[],Qe="@@wkClickoutsideContext",ze=void 0,qe=0;function Je(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&a.target)||e.contains(i.target)||e.contains(a.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(a.target))||(t.expression&&e[Qe].methodName&&n.context[e[Qe].methodName]?n.context[e[Qe].methodName]():e[Qe].bindingFn&&e[Qe].bindingFn())}}!o.default.prototype.$isServer&&Object(We.b)(document,"mousedown",function(e){return ze=e}),!o.default.prototype.$isServer&&Object(We.b)(document,"mouseup",function(e){Pe.forEach(function(t){return t[Qe].documentHandler(e,ze)})});var Xe={bind:function(e,t,n){Pe.push(e);var i=qe++;e[Qe]={id:i,documentHandler:Je(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[Qe].documentHandler=Je(e,t,n),e[Qe].methodName=t.expression,e[Qe].bindingFn=t.value},unbind:function(e){for(var t=Pe.length,n=0;n<t;n++)if(Pe[n][Qe].id===e[Qe].id){Pe.splice(n,1);break}delete e[Qe]}},Ke={data:function(){return{text:null,background:null,visible:!1,icon:null,customClass:""}},computed:{iconUrl:function(){return this.icon?"none"===this.icon?"":"nopermission"===this.icon?n("RVjX"):n("tFzm"):n("tFzm")},showText:function(){return this.text?this.text:"没有找到数据"}},methods:{setText:function(e){e&&(this.text=e)},setIcon:function(e){this.icon=e}}},He=(n("EYTu"),Object(v.a)(Ke,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"empty-mask",class:[e.customClass],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"empty-content"},[e.iconUrl?n("img",{staticClass:"empty-icon",attrs:{src:e.iconUrl}}):e._e(),e._v(" "),e.showText?n("p",{staticClass:"empty-text"},[e._v(e._s(e.showText))]):e._e()])])},[],!1,null,"16dc44a6",null));He.options.__file="empty.vue";var $e=He.exports,et=n("Um8M"),tt=o.default.extend($e),nt={install:function(e){if(!e.prototype.$isServer){var t=function(t,i){"[object Array]"===Object.prototype.toString.call(i.value)&&0===i.value.length||"[object Array]"!==Object.prototype.toString.call(i.value)&&i.value?e.nextTick(function(){t.wkEmptyOriginalPosition=Object(et.b)(t,"position"),n(t,t,i)}):(t.wkEmptyVisible=!1,Object(et.c)(t,"xs-empty-parent--relative"),Object(et.c)(t,"xs-empty-parent--hidden"),t.wkEmptyInstance.visible=!1)},n=function(t,n,i){n.wkEmptyVisible||"none"===Object(et.b)(n,"display")||"hidden"===Object(et.b)(n,"visibility")||(s()(n.wkEmptyMaskStyle).forEach(function(e){n.wkEmptyMask.style[e]=n.wkEmptyMaskStyle[e]}),"absolute"!==n.wkEmptyOriginalPosition&&"fixed"!==n.wkEmptyOriginalPosition&&Object(et.a)(t,"xs-empty-parent--relative"),n.wkEmptyVisible=!0,t.appendChild(n.wkEmptyMask),e.nextTick(function(){n.wkEmptyInstance.visible=!0}),n.wkEmptyInserted=!0)};e.directive("empty",{bind:function(e,n,i){var a=e.getAttribute("xs-empty-text"),s=e.getAttribute("xs-empty-icon"),o=e.getAttribute("xs-empty-background"),r=e.getAttribute("xs-empty-custom-class"),c=i.context,l=new tt({el:document.createElement("div"),data:{text:c&&c[a]||a,icon:c&&c[s]||s,background:c&&c[o]||o,customClass:c&&c[r]||r}});e.wkEmptyInstance=l,e.wkEmptyMask=l.$el,e.wkEmptyMaskStyle={},n.value&&t(e,n)},update:function(e,n){e.wkEmptyInstance.setText(e.getAttribute("xs-empty-text")),e.wkEmptyInstance.setIcon(e.getAttribute("xs-empty-icon")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.wkEmptyInserted&&(e.wkEmptyMask&&e.wkEmptyMask.parentNode&&e.wkEmptyMask.parentNode.removeChild(e.wkEmptyMask),t(e,{value:!1,modifiers:n.modifiers}))}})}}},it=nt,at=n("ehos"),st=null,ot={name:"debounce",install:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultTime,n=void 0===t?300:t;e.directive("debounce",{bind:function(e,t){var i=t.value,a=t.arg;t.modifiers;st=Object(at.debounce)(a||n,i),Object(We.b)(e,"click",st)},unbind:function(e){st&&Object(We.a)(e,"click",st)}})}},rt=n("/f1G"),ct=n.n(rt),lt=n("sCIN"),ut={};ct()(lt.a).forEach(function(e){ut=d()({},ut,e)}),window.WKConfig=r,o.default.prototype.WKConfig=r,o.default.use(l.a),o.default.prototype.$message.success=function(e){return Object(c.Message)({message:e,duration:1500,type:"success"})},o.default.prototype.$message.error=function(e){return Object(c.Message)({message:e,duration:1500,type:"error"})},Y.a.loadingCache(),o.default.use($.a),o.default.component("flexbox",ne),o.default.component("flexbox-item",oe),o.default.component("xr-avatar",ue),o.default.use(we),o.default.use(Te),o.default.directive("src",Se),s()(i).forEach(function(e){o.default.filter(e,i[e])}),o.default.use(Ve,{locale:"chs"}),o.default.use(n("Lq01")),Ze.a.locale("zh_cn"),o.default.use(Ye),o.default.directive("clickoutside",Ge),o.default.directive("elclickoutside",Xe),o.default.use(it),o.default.use(ot),o.default.prototype.emoji=function(e){if(e)return s()(ut).forEach(function(t){e=e.replace(new RegExp(t,"g"),function(e){var t=ut[e];return"<img src=./static/img/emoji/"+t+' width="16px" height="16px">'}(t))}),e},o.default.config.productionTip=!1,window.app=new o.default({el:"#app",router:Q.b,store:z.a,data:{eventHub:new o.default},render:function(e){return e(P)}})},"Woz+":function(e,t,n){"use strict";var i=n("GQeE"),a=n.n(i),s=n("/f1G"),o=n.n(s),r={100000:{110000:"北京市",120000:"天津市",130000:"河北省",140000:"山西省",150000:"内蒙古自治区",210000:"辽宁省",220000:"吉林省",230000:"黑龙江省",310000:"上海市",320000:"江苏省",330000:"浙江省",340000:"安徽省",350000:"福建省",360000:"江西省",370000:"山东省",410000:"河南省",420000:"湖北省",430000:"湖南省",440000:"广东省",450000:"广西壮族自治区",460000:"海南省",500000:"重庆市",510000:"四川省",520000:"贵州省",530000:"云南省",540000:"西藏自治区",610000:"陕西省",620000:"甘肃省",630000:"青海省",640000:"宁夏回族自治区",650000:"新疆维吾尔自治区",710000:"台湾省",810000:"香港特别行政区",820000:"澳门特别行政区"},110000:{110100:"北京城区"},110100:{110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区"},120000:{120100:"天津城区"},120100:{120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区"},130000:{130100:"石家庄市",130200:"唐山市",130300:"秦皇岛市",130400:"邯郸市",130500:"邢台市",130600:"保定市",130700:"张家口市",130800:"承德市",130900:"沧州市",131000:"廊坊市",131100:"衡水市"},130100:{130102:"长安区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130109:"藁城区",130110:"鹿泉区",130111:"栾城区",130121:"井陉县",130123:"正定县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130171:"石家庄高新技术产业开发区",130172:"石家庄循环化工园区",130181:"辛集市",130183:"晋州市",130184:"新乐市"},130200:{130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130209:"曹妃甸区",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130271:"唐山市芦台经济技术开发区",130272:"唐山市汉沽管理区",130273:"唐山高新技术产业开发区",130274:"河北唐山海港经济开发区",130281:"遵化市",130283:"迁安市",130284:"滦州市"},130300:{130302:"海港区",130303:"山海关区",130304:"北戴河区",130306:"抚宁区",130321:"青龙满族自治县",130322:"昌黎县",130324:"卢龙县",130371:"秦皇岛市经济技术开发区",130372:"北戴河新区"},130400:{130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130407:"肥乡区",130408:"永年区",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130471:"邯郸经济技术开发区",130473:"邯郸冀南新区",130481:"武安市"},130500:{130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130571:"河北邢台经济开发区",130581:"南宫市",130582:"沙河市"},130600:{130602:"竞秀区",130606:"莲池区",130607:"满城区",130608:"清苑区",130609:"徐水区",130623:"涞水县",130624:"阜平县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130671:"保定高新技术产业开发区",130672:"保定白沟新城",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市"},130700:{130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130708:"万全区",130709:"崇礼区",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130771:"张家口市高新技术产业开发区",130772:"张家口市察北管理区",130773:"张家口市塞北管理区"},130800:{130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130871:"承德高新技术产业开发区",130881:"平泉市"},130900:{130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130971:"河北沧州经济开发区",130972:"沧州高新技术产业开发区",130973:"沧州渤海新区",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市"},131000:{131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131071:"廊坊经济技术开发区",131081:"霸州市",131082:"三河市"},131100:{131102:"桃城区",131103:"冀州区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131171:"河北衡水高新技术产业开发区",131172:"衡水滨湖新区",131182:"深州市"},140000:{140100:"太原市",140200:"大同市",140300:"阳泉市",140400:"长治市",140500:"晋城市",140600:"朔州市",140700:"晋中市",140800:"运城市",140900:"忻州市",141000:"临汾市",141100:"吕梁市"},140100:{140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140171:"山西转型综合改革示范区",140181:"古交市"},140200:{140212:"新荣区",140213:"平城区",140214:"云冈区",140215:"云州区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140271:"山西大同经济开发区"},140300:{140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县"},140400:{140403:"潞州区",140404:"上党区",140405:"屯留区",140406:"潞城区",140423:"襄垣县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140471:"山西长治高新技术产业园区"},140500:{140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市"},140600:{140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140671:"山西朔州经济开发区",140681:"怀仁市"},140700:{140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市"},140800:{140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市"},140900:{140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140971:"五台山风景名胜区",140981:"原平市"},141000:{141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市"},141100:{141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市"},150000:{150100:"呼和浩特市",150200:"包头市",150300:"乌海市",150400:"赤峰市",150500:"通辽市",150600:"鄂尔多斯市",150700:"呼伦贝尔市",150800:"巴彦淖尔市",150900:"乌兰察布市",152200:"兴安盟",152500:"锡林郭勒盟",152900:"阿拉善盟"},150100:{150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150171:"呼和浩特金海工业园区",150172:"呼和浩特经济技术开发区"},150200:{150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150271:"包头稀土高新技术产业开发区"},150300:{150302:"海勃湾区",150303:"海南区",150304:"乌达区"},150400:{150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗"},150500:{150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150571:"通辽经济技术开发区",150581:"霍林郭勒市"},150600:{150602:"东胜区",150603:"康巴什区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗"},150700:{150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市"},150800:{150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗"},150900:{150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市"},152200:{152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县"},152500:{152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152571:"乌拉盖管委会"},152900:{152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152971:"内蒙古阿拉善经济开发区"},210000:{210100:"沈阳市",210200:"大连市",210300:"鞍山市",210400:"抚顺市",210500:"本溪市",210600:"丹东市",210700:"锦州市",210800:"营口市",210900:"阜新市",211000:"辽阳市",211100:"盘锦市",211200:"铁岭市",211300:"朝阳市",211400:"葫芦岛市"},210100:{210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"浑南区",210113:"沈北新区",210114:"于洪区",210115:"辽中区",210123:"康平县",210124:"法库县",210181:"新民市"},210200:{210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210214:"普兰店区",210224:"长海县",210281:"瓦房店市",210283:"庄河市"},210300:{210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市"},210400:{210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县"},210500:{210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县"},210600:{210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市"},210700:{210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市"},210800:{210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市"},210900:{210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县"},211000:{211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市"},211100:{211102:"双台子区",211103:"兴隆台区",211104:"大洼区",211122:"盘山县"},211200:{211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市"},211300:{211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市"},211400:{211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市"},220000:{220100:"长春市",220200:"吉林市",220300:"四平市",220400:"辽源市",220500:"通化市",220600:"白山市",220700:"松原市",220800:"白城市",222400:"延边朝鲜族自治州"},220100:{220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220113:"九台区",220122:"农安县",220171:"长春经济技术开发区",220172:"长春净月高新技术产业开发区",220173:"长春高新技术产业开发区",220174:"长春汽车经济技术开发区",220182:"榆树市",220183:"德惠市"},220200:{220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220271:"吉林经济开发区",220272:"吉林高新技术产业开发区",220273:"吉林中国新加坡食品区",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市"},220300:{220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市"},220400:{220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县"},220500:{220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市"},220600:{220602:"浑江区",220605:"江源区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220681:"临江市"},220700:{220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220771:"吉林松原经济开发区",220781:"扶余市"},220800:{220802:"洮北区",220821:"镇赉县",220822:"通榆县",220871:"吉林白城经济开发区",220881:"洮南市",220882:"大安市"},222400:{222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县"},230000:{230100:"哈尔滨市",230200:"齐齐哈尔市",230300:"鸡西市",230400:"鹤岗市",230500:"双鸭山市",230600:"大庆市",230700:"伊春市",230800:"佳木斯市",230900:"七台河市",231000:"牡丹江市",231100:"黑河市",231200:"绥化市",232700:"大兴安岭地区"},230100:{230102:"道里区",230103:"南岗区",230104:"道外区",230108:"平房区",230109:"松北区",230110:"香坊区",230111:"呼兰区",230112:"阿城区",230113:"双城区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230183:"尚志市",230184:"五常市"},230200:{230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市"},230300:{230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市"},230400:{230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县"},230500:{230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县"},230600:{230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230671:"大庆高新技术产业开发区"},230700:{230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市"},230800:{230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230881:"同江市",230882:"富锦市",230883:"抚远市"},230900:{230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县"},231000:{231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231025:"林口县",231071:"牡丹江经济技术开发区",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"东宁市"},231100:{231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市"},231200:{231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市"},232700:{232701:"漠河市",232721:"呼玛县",232722:"塔河县",232761:"加格达奇区",232762:"松岭区",232763:"新林区",232764:"呼中区"},310000:{310100:"上海城区"},310100:{310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区"},320000:{320100:"南京市",320200:"无锡市",320300:"徐州市",320400:"常州市",320500:"苏州市",320600:"南通市",320700:"连云港市",320800:"淮安市",320900:"盐城市",321000:"扬州市",321100:"镇江市",321200:"泰州市",321300:"宿迁市"},320100:{320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320117:"溧水区",320118:"高淳区"},320200:{320205:"锡山区",320206:"惠山区",320211:"滨湖区",320213:"梁溪区",320214:"新吴区",320281:"江阴市",320282:"宜兴市"},320300:{320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320312:"铜山区",320321:"丰县",320322:"沛县",320324:"睢宁县",320371:"徐州经济技术开发区",320381:"新沂市",320382:"邳州市"},320400:{320402:"天宁区",320404:"钟楼区",320411:"新北区",320412:"武进区",320413:"金坛区",320481:"溧阳市"},320500:{320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320509:"吴江区",320571:"苏州工业园区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320585:"太仓市"},320600:{320602:"崇川区",320611:"港闸区",320612:"通州区",320623:"如东县",320671:"南通经济技术开发区",320681:"启东市",320682:"如皋市",320684:"海门市",320685:"海安市"},320700:{320703:"连云区",320706:"海州区",320707:"赣榆区",320722:"东海县",320723:"灌云县",320724:"灌南县",320771:"连云港经济技术开发区",320772:"连云港高新技术产业开发区"},320800:{320803:"淮安区",320804:"淮阴区",320812:"清江浦区",320813:"洪泽区",320826:"涟水县",320830:"盱眙县",320831:"金湖县",320871:"淮安经济技术开发区"},320900:{320902:"亭湖区",320903:"盐都区",320904:"大丰区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320971:"盐城经济技术开发区",320981:"东台市"},321000:{321002:"广陵区",321003:"邗江区",321012:"江都区",321023:"宝应县",321071:"扬州经济技术开发区",321081:"仪征市",321084:"高邮市"},321100:{321102:"京口区",321111:"润州区",321112:"丹徒区",321171:"镇江新区",321181:"丹阳市",321182:"扬中市",321183:"句容市"},321200:{321202:"海陵区",321203:"高港区",321204:"姜堰区",321271:"泰州医药高新技术产业开发区",321281:"兴化市",321282:"靖江市",321283:"泰兴市"},321300:{321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321371:"宿迁经济技术开发区"},330000:{330100:"杭州市",330200:"宁波市",330300:"温州市",330400:"嘉兴市",330500:"湖州市",330600:"绍兴市",330700:"金华市",330800:"衢州市",330900:"舟山市",331000:"台州市",331100:"丽水市"},330100:{330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330111:"富阳区",330112:"临安区",330122:"桐庐县",330127:"淳安县",330182:"建德市"},330200:{330203:"海曙区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330213:"奉化区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市"},330300:{330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330305:"洞头区",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330371:"温州经济技术开发区",330381:"瑞安市",330382:"乐清市"},330400:{330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市"},330500:{330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县"},330600:{330602:"越城区",330603:"柯桥区",330604:"上虞区",330624:"新昌县",330681:"诸暨市",330683:"嵊州市"},330700:{330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市"},330800:{330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市"},330900:{330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县"},331000:{331002:"椒江区",331003:"黄岩区",331004:"路桥区",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"玉环市"},331100:{331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市"},340000:{340100:"合肥市",340200:"芜湖市",340300:"蚌埠市",340400:"淮南市",340500:"马鞍山市",340600:"淮北市",340700:"铜陵市",340800:"安庆市",341000:"黄山市",341100:"滁州市",341200:"阜阳市",341300:"宿州市",341500:"六安市",341600:"亳州市",341700:"池州市",341800:"宣城市"},340100:{340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340124:"庐江县",340171:"合肥高新技术产业开发区",340172:"合肥经济技术开发区",340173:"合肥新站高新技术产业开发区",340181:"巢湖市"},340200:{340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340225:"无为县",340271:"芜湖经济技术开发区",340272:"安徽芜湖长江大桥经济开发区"},340300:{340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340371:"蚌埠市高新技术开发区",340372:"蚌埠市经济开发区"},340400:{340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"寿县"},340500:{340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"含山县",340523:"和县"},340600:{340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县"},340700:{340705:"铜官区",340706:"义安区",340711:"郊区",340722:"枞阳县"},340800:{340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340871:"安徽安庆经济开发区",340881:"桐城市",340882:"潜山市"},341000:{341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县"},341100:{341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341171:"苏滁现代产业园",341172:"滁州经济技术开发区",341181:"天长市",341182:"明光市"},341200:{341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341271:"阜阳合肥现代产业园区",341272:"阜阳经济技术开发区",341282:"界首市"},341300:{341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341371:"宿州马鞍山现代产业园区",341372:"宿州经济技术开发区"},341500:{341502:"金安区",341503:"裕安区",341504:"叶集区",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县"},341600:{341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县"},341700:{341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县"},341800:{341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341871:"宣城市经济开发区",341881:"宁国市"},350000:{350100:"福州市",350200:"厦门市",350300:"莆田市",350400:"三明市",350500:"泉州市",350600:"漳州市",350700:"南平市",350800:"龙岩市",350900:"宁德市"},350100:{350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350112:"长乐区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市"},350200:{350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区"},350300:{350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县"},350400:{350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市"},350500:{350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市"},350600:{350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市"},350700:{350702:"延平区",350703:"建阳区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市"},350800:{350802:"新罗区",350803:"永定区",350821:"长汀县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市"},350900:{350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市"},360000:{360100:"南昌市",360200:"景德镇市",360300:"萍乡市",360400:"九江市",360500:"新余市",360600:"鹰潭市",360700:"赣州市",360800:"吉安市",360900:"宜春市",361000:"抚州市",361100:"上饶市"},360100:{360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360112:"新建区",360121:"南昌县",360123:"安义县",360124:"进贤县"},360200:{360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市"},360300:{360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县"},360400:{360402:"濂溪区",360403:"浔阳区",360404:"柴桑区",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"共青城市",360483:"庐山市"},360500:{360502:"渝水区",360521:"分宜县"},360600:{360602:"月湖区",360603:"余江区",360681:"贵溪市"},360700:{360702:"章贡区",360703:"南康区",360704:"赣县区",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市"},360800:{360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市"},360900:{360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市"},361000:{361002:"临川区",361003:"东乡区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361030:"广昌县"},361100:{361102:"信州区",361103:"广丰区",361121:"上饶县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市"},370000:{370100:"济南市",370200:"青岛市",370300:"淄博市",370400:"枣庄市",370500:"东营市",370600:"烟台市",370700:"潍坊市",370800:"济宁市",370900:"泰安市",371000:"威海市",371100:"日照市",371200:"莱芜市",371300:"临沂市",371400:"德州市",371500:"聊城市",371600:"滨州市",371700:"菏泽市"},370100:{370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370114:"章丘区",370115:"济阳区",370124:"平阴县",370126:"商河县",370171:"济南高新技术产业开发区"},370200:{370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370215:"即墨区",370271:"青岛高新技术产业开发区",370281:"胶州市",370283:"平度市",370285:"莱西市"},370300:{370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县"},370400:{370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市"},370500:{370502:"东营区",370503:"河口区",370505:"垦利区",370522:"利津县",370523:"广饶县",370571:"东营经济技术开发区",370572:"东营港经济开发区"},370600:{370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370671:"烟台高新技术产业开发区",370672:"烟台经济技术开发区",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市"},370700:{370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370772:"潍坊滨海经济技术开发区",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市"},370800:{370811:"任城区",370812:"兖州区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370871:"济宁高新技术产业开发区",370881:"曲阜市",370883:"邹城市"},370900:{370902:"泰山区",370911:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市"},371000:{371002:"环翠区",371003:"文登区",371071:"威海火炬高技术产业开发区",371072:"威海经济技术开发区",371073:"威海临港经济技术开发区",371082:"荣成市",371083:"乳山市"},371100:{371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371171:"日照经济技术开发区"},371200:{371202:"莱城区",371203:"钢城区"},371300:{371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"兰陵县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371371:"临沂高新技术产业开发区",371372:"临沂经济技术开发区",371373:"临沂临港经济开发区"},371400:{371402:"德城区",371403:"陵城区",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371471:"德州经济技术开发区",371472:"德州运河经济开发区",371481:"乐陵市",371482:"禹城市"},371500:{371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市"},371600:{371602:"滨城区",371603:"沾化区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371625:"博兴县",371681:"邹平市"},371700:{371702:"牡丹区",371703:"定陶区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371728:"东明县",371771:"菏泽经济技术开发区",371772:"菏泽高新技术开发区"},410000:{410100:"郑州市",410200:"开封市",410300:"洛阳市",410400:"平顶山市",410500:"安阳市",410600:"鹤壁市",410700:"新乡市",410800:"焦作市",410900:"濮阳市",411000:"许昌市",411100:"漯河市",411200:"三门峡市",411300:"南阳市",411400:"商丘市",411500:"信阳市",411600:"周口市",411700:"驻马店市",419000:"省直辖县级行政区划"},410100:{410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410171:"郑州经济技术开发区",410172:"郑州高新技术产业开发区",410173:"郑州航空港经济综合实验区",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市"},410200:{410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410212:"祥符区",410221:"杞县",410222:"通许县",410223:"尉氏县",410225:"兰考县"},410300:{410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410311:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410371:"洛阳高新技术产业开发区",410381:"偃师市"},410400:{410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410471:"平顶山高新技术产业开发区",410472:"平顶山市新城区",410481:"舞钢市",410482:"汝州市"},410500:{410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410571:"安阳高新技术产业开发区",410581:"林州市"},410600:{410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410671:"鹤壁经济技术开发区"},410700:{410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410771:"新乡高新技术产业开发区",410772:"新乡经济技术开发区",410773:"新乡市平原城乡一体化示范区",410781:"卫辉市",410782:"辉县市"},410800:{410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410871:"焦作城乡一体化示范区",410882:"沁阳市",410883:"孟州市"},410900:{410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410971:"河南濮阳工业园区",410972:"濮阳经济技术开发区"},411000:{411002:"魏都区",411003:"建安区",411024:"鄢陵县",411025:"襄城县",411071:"许昌经济技术开发区",411081:"禹州市",411082:"长葛市"},411100:{411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411171:"漯河经济技术开发区"},411200:{411202:"湖滨区",411203:"陕州区",411221:"渑池县",411224:"卢氏县",411271:"河南三门峡经济开发区",411281:"义马市",411282:"灵宝市"},411300:{411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411371:"南阳高新技术产业开发区",411372:"南阳市城乡一体化示范区",411381:"邓州市"},411400:{411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411471:"豫东综合物流产业聚集区",411472:"河南商丘经济开发区",411481:"永城市"},411500:{411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411571:"信阳高新技术产业开发区"},411600:{411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411671:"河南周口经济开发区",411681:"项城市"},411700:{411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411771:"河南驻马店经济开发区"},419000:{419001:"济源市"},420000:{420100:"武汉市",420200:"黄石市",420300:"十堰市",420500:"宜昌市",420600:"襄阳市",420700:"鄂州市",420800:"荆门市",420900:"孝感市",421000:"荆州市",421100:"黄冈市",421200:"咸宁市",421300:"随州市",422800:"恩施土家族苗族自治州",429000:"省直辖县级行政区划"},420100:{420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区"},420200:{420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市"},420300:{420302:"茅箭区",420303:"张湾区",420304:"郧阳区",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市"},420500:{420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市"},420600:{420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市"},420700:{420702:"梁子湖区",420703:"华容区",420704:"鄂城区"},420800:{420802:"东宝区",420804:"掇刀区",420822:"沙洋县",420881:"钟祥市",420882:"京山市"},420900:{420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市"},421000:{421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421071:"荆州经济技术开发区",421081:"石首市",421083:"洪湖市",421087:"松滋市"},421100:{421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421171:"龙感湖管理区",421181:"麻城市",421182:"武穴市"},421200:{421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市"},421300:{421303:"曾都区",421321:"随县",421381:"广水市"},422800:{422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县"},429000:{429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区"},430000:{430100:"长沙市",430200:"株洲市",430300:"湘潭市",430400:"衡阳市",430500:"邵阳市",430600:"岳阳市",430700:"常德市",430800:"张家界市",430900:"益阳市",431000:"郴州市",431100:"永州市",431200:"怀化市",431300:"娄底市",433100:"湘西土家族苗族自治州"},430100:{430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430112:"望城区",430121:"长沙县",430181:"浏阳市",430182:"宁乡市"},430200:{430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430212:"渌口区",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430271:"云龙示范区",430281:"醴陵市"},430300:{430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430371:"湖南湘潭高新技术产业园区",430372:"湘潭昭山示范区",430373:"湘潭九华示范区",430381:"湘乡市",430382:"韶山市"},430400:{430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430471:"衡阳综合保税区",430472:"湖南衡阳高新技术产业园区",430473:"湖南衡阳松木经济开发区",430481:"耒阳市",430482:"常宁市"},430500:{430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市"},430600:{430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430671:"岳阳市屈原管理区",430681:"汨罗市",430682:"临湘市"},430700:{430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430771:"常德市西洞庭管理区",430781:"津市市"},430800:{430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县"},430900:{430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430971:"益阳市大通湖管理区",430972:"湖南益阳高新技术产业园区",430981:"沅江市"},431000:{431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市"},431100:{431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431171:"永州经济技术开发区",431172:"永州市金洞管理区",431173:"永州市回龙圩管理区"},431200:{431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431271:"怀化市洪江管理区",431281:"洪江市"},431300:{431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市"},433100:{433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433172:"湖南吉首经济开发区",433173:"湖南永顺经济开发区"},440000:{440100:"广州市",440200:"韶关市",440300:"深圳市",440400:"珠海市",440500:"汕头市",440600:"佛山市",440700:"江门市",440800:"湛江市",440900:"茂名市",441200:"肇庆市",441300:"惠州市",441400:"梅州市",441500:"汕尾市",441600:"河源市",441700:"阳江市",441800:"清远市",441900:"东莞市",442000:"中山市",445100:"潮州市",445200:"揭阳市",445300:"云浮市"},440100:{440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440117:"从化区",440118:"增城区"},440200:{440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市"},440300:{440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"龙华区",440310:"坪山区",440311:"光明区"},440400:{440402:"香洲区",440403:"斗门区",440404:"金湾区"},440500:{440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县"},440600:{440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区"},440700:{440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市"},440800:{440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市"},440900:{440902:"茂南区",440904:"电白区",440981:"高州市",440982:"化州市",440983:"信宜市"},441200:{441202:"端州区",441203:"鼎湖区",441204:"高要区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441284:"四会市"},441300:{441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县"},441400:{441402:"梅江区",441403:"梅县区",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市"},441500:{441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市"},441600:{441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县"},441700:{441702:"江城区",441704:"阳东区",441721:"阳西县",441781:"阳春市"},441800:{441802:"清城区",441803:"清新区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441881:"英德市",441882:"连州市"},441900:{44900003:"东城街道",44900004:"南城街道",44900005:"万江街道",44900006:"莞城街道",44900101:"石碣镇",44900102:"石龙镇",44900103:"茶山镇",44900104:"石排镇",44900105:"企石镇",44900106:"横沥镇",44900107:"桥头镇",44900108:"谢岗镇",44900109:"东坑镇",44900110:"常平镇",44900111:"寮步镇",44900112:"樟木头镇",44900113:"大朗镇",44900114:"黄江镇",44900115:"清溪镇",44900116:"塘厦镇",44900117:"凤岗镇",44900118:"大岭山镇",44900119:"长安镇",44900121:"虎门镇",44900122:"厚街镇",44900123:"沙田镇",44900124:"道滘镇",44900125:"洪梅镇",44900126:"麻涌镇",44900127:"望牛墩镇",44900128:"中堂镇",44900129:"高埗镇",44900401:"松山湖管委会",44900402:"东莞港",44900403:"东莞生态园"},442000:{44000001:"石岐区街道",44000002:"东区街道",44000003:"火炬开发区街道",44000004:"西区街道",44000005:"南区街道",44000006:"五桂山街道",44000100:"小榄镇",44000101:"黄圃镇",44000102:"民众镇",44000103:"东凤镇",44000104:"东升镇",44000105:"古镇镇",44000106:"沙溪镇",44000107:"坦洲镇",44000108:"港口镇",44000109:"三角镇",44000110:"横栏镇",44000111:"南头镇",44000112:"阜沙镇",44000113:"南朗镇",44000114:"三乡镇",44000115:"板芙镇",44000116:"大涌镇",44000117:"神湾镇 "},445100:{445102:"湘桥区",445103:"潮安区",445122:"饶平县"},445200:{445202:"榕城区",445203:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市"},445300:{445302:"云城区",445303:"云安区",445321:"新兴县",445322:"郁南县",445381:"罗定市"},450000:{450100:"南宁市",450200:"柳州市",450300:"桂林市",450400:"梧州市",450500:"北海市",450600:"防城港市",450700:"钦州市",450800:"贵港市",450900:"玉林市",451000:"百色市",451100:"贺州市",451200:"河池市",451300:"来宾市",451400:"崇左市"},450100:{450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450110:"武鸣区",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县"},450200:{450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450206:"柳江区",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县"},450300:{450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450312:"临桂区",450321:"阳朔县",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450332:"恭城瑶族自治县",450381:"荔浦市"},450400:{450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市"},450500:{450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县"},450600:{450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市"},450700:{450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县"},450800:{450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市"},450900:{450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市"},451000:{451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451081:"靖西市"},451100:{451102:"八步区",451103:"平桂区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县"},451200:{451202:"金城江区",451203:"宜州区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县"},451300:{451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市"},451400:{451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市"},460000:{460100:"海口市",460200:"三亚市",460300:"三沙市",460400:"儋州市",469000:"省直辖县级行政区划"},460100:{460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区"},460200:{460202:"海棠区",460203:"吉阳区",460204:"天涯区",460205:"崖州区"},460300:{460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域"},460400:{46400100:"那大镇",46400101:"和庆镇",46400102:"南丰镇",46400103:"大成镇",46400104:"雅星镇",46400105:"兰洋镇",46400106:"光村镇",46400107:"木棠镇",46400108:"海头镇",46400109:"峨蔓镇",46400111:"王五镇",46400112:"白马井镇",46400113:"中和镇",46400114:"排浦镇",46400115:"东成镇",46400116:"新州镇",46400499:"洋浦经济开发区",46400500:"华南热作学院"},469000:{469001:"五指山市",469002:"琼海市",469005:"文昌市",469006:"万宁市",469007:"东方市",469021:"定安县",469022:"屯昌县",469023:"澄迈县",469024:"临高县",469025:"白沙黎族自治县",469026:"昌江黎族自治县",469027:"乐东黎族自治县",469028:"陵水黎族自治县",469029:"保亭黎族苗族自治县",469030:"琼中黎族苗族自治县"},500000:{500100:"市辖区",500200:"县"},500100:{500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区",500155:"梁平区",500156:"武隆区"},500200:{500229:"城口县",500230:"丰都县",500231:"垫江县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县"},510000:{510100:"成都市",510300:"自贡市",510400:"攀枝花市",510500:"泸州市",510600:"德阳市",510700:"绵阳市",510800:"广元市",510900:"遂宁市",511000:"内江市",511100:"乐山市",511300:"南充市",511400:"眉山市",511500:"宜宾市",511600:"广安市",511700:"达州市",511800:"雅安市",511900:"巴中市",512000:"资阳市",513200:"阿坝藏族羌族自治州",513300:"甘孜藏族自治州",513400:"凉山彝族自治州"},510100:{510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510116:"双流区",510117:"郫都区",510121:"金堂县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"简阳市"},510300:{510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县"},510400:{510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县"},510500:{510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县"},510600:{510603:"旌阳区",510604:"罗江区",510623:"中江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市"},510700:{510703:"涪城区",510704:"游仙区",510705:"安州区",510722:"三台县",510723:"盐亭县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市"},510800:{510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县"},510900:{510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县"},511000:{511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511071:"内江经济开发区",511083:"隆昌市"},511100:{511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市"},511300:{511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市"},511400:{511402:"东坡区",511403:"彭山区",511421:"仁寿县",511423:"洪雅县",511424:"丹棱县",511425:"青神县"},511500:{511502:"翠屏区",511503:"南溪区",511504:"叙州区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县"},511600:{511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市"},511700:{511702:"通川区",511703:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511771:"达州经济开发区",511781:"万源市"},511800:{511802:"雨城区",511803:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县"},511900:{511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511971:"巴中经济开发区"},512000:{512002:"雁江区",512021:"安岳县",512022:"乐至县"},513200:{513201:"马尔康市",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县"},513300:{513301:"康定市",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县"},513400:{513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县"},520000:{520100:"贵阳市",520200:"六盘水市",520300:"遵义市",520400:"安顺市",520500:"毕节市",520600:"铜仁市",522300:"黔西南布依族苗族自治州",522600:"黔东南苗族侗族自治州",522700:"黔南布依族苗族自治州"},520100:{520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520115:"观山湖区",520121:"开阳县",520122:"息烽县",520123:"修文县",520181:"清镇市"},520200:{520201:"钟山区",520203:"六枝特区",520221:"水城县",520281:"盘州市"},520300:{520302:"红花岗区",520303:"汇川区",520304:"播州区",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市"},520400:{520402:"西秀区",520403:"平坝区",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县"},520500:{520502:"七星关区",520521:"大方县",520522:"黔西县",520523:"金沙县",520524:"织金县",520525:"纳雍县",520526:"威宁彝族回族苗族自治县",520527:"赫章县"},520600:{520602:"碧江区",520603:"万山区",520621:"江口县",520622:"玉屏侗族自治县",520623:"石阡县",520624:"思南县",520625:"印江土家族苗族自治县",520626:"德江县",520627:"沿河土家族自治县",520628:"松桃苗族自治县"},522300:{522301:"兴义市",522302:"兴仁市",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县"},522600:{522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县"},522700:{522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县"},530000:{530100:"昆明市",530300:"曲靖市",530400:"玉溪市",530500:"保山市",530600:"昭通市",530700:"丽江市",530800:"普洱市",530900:"临沧市",532300:"楚雄彝族自治州",532500:"红河哈尼族彝族自治州",532600:"文山壮族苗族自治州",532800:"西双版纳傣族自治州",532900:"大理白族自治州",533100:"德宏傣族景颇族自治州",533300:"怒江傈僳族自治州",533400:"迪庆藏族自治州"},530100:{530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530114:"呈贡区",530115:"晋宁区",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市"},530300:{530302:"麒麟区",530303:"沾益区",530304:"马龙区",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530381:"宣威市"},530400:{530402:"红塔区",530403:"江川区",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县"},530500:{530502:"隆阳区",530521:"施甸县",530523:"龙陵县",530524:"昌宁县",530581:"腾冲市"},530600:{530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530681:"水富市"},530700:{530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县"},530800:{530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县"},530900:{530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县"},532300:{532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县"},532500:{532501:"个旧市",532502:"开远市",532503:"蒙自市",532504:"弥勒市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县"},532600:{532601:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县"},532800:{532801:"景洪市",532822:"勐海县",532823:"勐腊县"},532900:{532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县"},533100:{533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县"},533300:{533301:"泸水市",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县"},533400:{533401:"香格里拉市",533422:"德钦县",533423:"维西傈僳族自治县"},540000:{540100:"拉萨市",540200:"日喀则市",540300:"昌都市",540400:"林芝市",540500:"山南市",540600:"那曲市",542500:"阿里地区"},540100:{540102:"城关区",540103:"堆龙德庆区",540104:"达孜区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540127:"墨竹工卡县",540171:"格尔木藏青工业园区",540172:"拉萨经济技术开发区",540173:"西藏文化旅游创意园区",540174:"达孜工业园区"},540200:{540202:"桑珠孜区",540221:"南木林县",540222:"江孜县",540223:"定日县",540224:"萨迦县",540225:"拉孜县",540226:"昂仁县",540227:"谢通门县",540228:"白朗县",540229:"仁布县",540230:"康马县",540231:"定结县",540232:"仲巴县",540233:"亚东县",540234:"吉隆县",540235:"聂拉木县",540236:"萨嘎县",540237:"岗巴县"},540300:{540302:"卡若区",540321:"江达县",540322:"贡觉县",540323:"类乌齐县",540324:"丁青县",540325:"察雅县",540326:"八宿县",540327:"左贡县",540328:"芒康县",540329:"洛隆县",540330:"边坝县"},540400:{540402:"巴宜区",540421:"工布江达县",540422:"米林县",540423:"墨脱县",540424:"波密县",540425:"察隅县",540426:"朗县"},540500:{540502:"乃东区",540521:"扎囊县",540522:"贡嘎县",540523:"桑日县",540524:"琼结县",540525:"曲松县",540526:"措美县",540527:"洛扎县",540528:"加查县",540529:"隆子县",540530:"错那县",540531:"浪卡子县"},540600:{540602:"色尼区",540621:"嘉黎县",540622:"比如县",540623:"聂荣县",540624:"安多县",540625:"申扎县",540626:"索县",540627:"班戈县",540628:"巴青县",540629:"尼玛县",540630:"双湖县"},542500:{542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县"},610000:{610100:"西安市",610200:"铜川市",610300:"宝鸡市",610400:"咸阳市",610500:"渭南市",610600:"延安市",610700:"汉中市",610800:"榆林市",610900:"安康市",611000:"商洛市"},610100:{610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610117:"高陵区",610118:"鄠邑区",610122:"蓝田县",610124:"周至县"},610200:{610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县"},610300:{610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县"},610400:{610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"彬州市"},610500:{610502:"临渭区",610503:"华州区",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市"},610600:{610602:"宝塔区",610603:"安塞区",610621:"延长县",610622:"延川县",610623:"子长县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县"},610700:{610702:"汉台区",610703:"南郑区",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县"},610800:{610802:"榆阳区",610803:"横山区",610822:"府谷县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610881:"神木市"},610900:{610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县"},611000:{611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县"},620000:{620100:"兰州市",620200:"嘉峪关市",620300:"金昌市",620400:"白银市",620500:"天水市",620600:"武威市",620700:"张掖市",620800:"平凉市",620900:"酒泉市",621000:"庆阳市",621100:"定西市",621200:"陇南市",622900:"临夏回族自治州",623000:"甘南藏族自治州"},620100:{620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620171:"兰州新区"},620200:{62201100:"新城镇",62201101:"峪泉镇",62201102:"文殊镇",62201401:"雄关区",62201402:"镜铁区",62201403:"长城区"},620300:{620302:"金川区",620321:"永昌县"},620400:{620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县"},620500:{620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县"},620600:{620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县"},620700:{620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县"},620800:{620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620825:"庄浪县",620826:"静宁县",620881:"华亭市"},620900:{620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市"},621000:{621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县"},621100:{621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县"},621200:{621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县"},622900:{622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县"},623000:{623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县"},630000:{630100:"西宁市",630200:"海东市",632200:"海北藏族自治州",632300:"黄南藏族自治州",632500:"海南藏族自治州",632600:"果洛藏族自治州",632700:"玉树藏族自治州",632800:"海西蒙古族藏族自治州"},630100:{630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县"},630200:{630202:"乐都区",630203:"平安区",630222:"民和回族土族自治县",630223:"互助土族自治县",630224:"化隆回族自治县",630225:"循化撒拉族自治县"},632200:{632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县"},632300:{632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县"},632500:{632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县"},632600:{632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县"},632700:{632701:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县"},632800:{632801:"格尔木市",632802:"德令哈市",632803:"茫崖市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632857:"大柴旦行政委员会"},640000:{640100:"银川市",640200:"石嘴山市",640300:"吴忠市",640400:"固原市",640500:"中卫市"},640100:{640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市"},640200:{640202:"大武口区",640205:"惠农区",640221:"平罗县"},640300:{640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市"},640400:{640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县"},640500:{640502:"沙坡头区",640521:"中宁县",640522:"海原县"},650000:{650100:"乌鲁木齐市",650200:"克拉玛依市",650400:"吐鲁番市",650500:"哈密市",652300:"昌吉回族自治州",652700:"博尔塔拉蒙古自治州",652800:"巴音郭楞蒙古自治州",652900:"阿克苏地区",653000:"克孜勒苏柯尔克孜自治州",653100:"喀什地区",653200:"和田地区",654000:"伊犁哈萨克自治州",654200:"塔城地区",654300:"阿勒泰地区",659000:"自治区直辖县级行政区划"},650100:{650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650171:"乌鲁木齐经济技术开发区",650172:"乌鲁木齐高新技术产业开发区"},650200:{650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区"},650400:{650402:"高昌区",650421:"鄯善县",650422:"托克逊县"},650500:{650502:"伊州区",650521:"巴里坤哈萨克自治县",650522:"伊吾县"},652300:{652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县"},652700:{652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县"},652800:{652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652871:"库尔勒经济技术开发区"},652900:{652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县"},653000:{653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县"},653100:{653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县"},653200:{653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县"},654000:{654002:"伊宁市",654003:"奎屯市",654004:"霍尔果斯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县"},654200:{654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县"},654300:{654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县"},659000:{659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",659006:"铁门关市"},710000:{710100:"台北市",710200:"高雄市",710300:"台南市",710400:"台中市",710500:"金门县",710600:"南投县",710700:"基隆市",710800:"新竹市",710900:"嘉义市",711100:"新北市",711200:"宜兰县",711300:"新竹县",711400:"桃园县",711500:"苗栗县",711700:"彰化县",711900:"嘉义县",712100:"云林县",712400:"屏东县",712500:"台东县",712600:"花莲县",712700:"澎湖县",712800:"连江县"},710100:{710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710199:"其它区"},710200:{710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710299:"其它区"},710300:{710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710399:"其它区"},710400:{710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710499:"其它区"},710500:{710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡"},710600:{710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡"},710700:{710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710799:"其它区"},710800:{710801:"东区",710802:"北区",710803:"香山区",710899:"其它区"},710900:{710901:"东区",710902:"西区",710999:"其它区"},711100:{711130:"万里区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区"},711200:{711287:"宜兰市",711288:"头城镇",711289:"礁溪乡",711290:"壮围乡",711291:"员山乡",711292:"罗东镇",711293:"三星乡",711294:"大同乡",711295:"五结乡",711296:"冬山乡",711297:"苏澳镇",711298:"南澳乡",711299:"钓鱼台"},711300:{711387:"竹北市",711388:"湖口乡",711389:"新丰乡",711390:"新埔镇",711391:"关西镇",711392:"芎林乡",711393:"宝山乡",711394:"竹东镇",711395:"五峰乡",711396:"横山乡",711397:"尖石乡",711398:"北埔乡",711399:"峨眉乡"},711400:{711487:"中坜市",711488:"平镇市",711489:"龙潭乡",711490:"杨梅市",711491:"新屋乡",711492:"观音乡",711493:"桃园市",711494:"龟山乡",711495:"八德市",711496:"大溪镇",711497:"复兴乡",711498:"大园乡",711499:"芦竹乡"},711500:{711582:"竹南镇",711583:"头份镇",711584:"三湾乡",711585:"南庄乡",711586:"狮潭乡",711587:"后龙镇",711588:"通霄镇",711589:"苑里镇",711590:"苗栗市",711591:"造桥乡",711592:"头屋乡",711593:"公馆乡",711594:"大湖乡",711595:"泰安乡",711596:"铜锣乡",711597:"三义乡",711598:"西湖乡",711599:"卓兰镇"},711700:{711774:"彰化市",711775:"芬园乡",711776:"花坛乡",711777:"秀水乡",711778:"鹿港镇",711779:"福兴乡",711780:"线西乡",711781:"和美镇",711782:"伸港乡",711783:"员林镇",711784:"社头乡",711785:"永靖乡",711786:"埔心乡",711787:"溪湖镇",711788:"大村乡",711789:"埔盐乡",711790:"田中镇",711791:"北斗镇",711792:"田尾乡",711793:"埤头乡",711794:"溪州乡",711795:"竹塘乡",711796:"二林镇",711797:"大城乡",711798:"芳苑乡",711799:"二水乡"},711900:{711982:"番路乡",711983:"梅山乡",711984:"竹崎乡",711985:"阿里山乡",711986:"中埔乡",711987:"大埔乡",711988:"水上乡",711989:"鹿草乡",711990:"太保市",711991:"朴子市",711992:"东石乡",711993:"六脚乡",711994:"新港乡",711995:"民雄乡",711996:"大林镇",711997:"溪口乡",711998:"义竹乡",711999:"布袋镇"},712100:{712180:"斗南镇",712181:"大埤乡",712182:"虎尾镇",712183:"土库镇",712184:"褒忠乡",712185:"东势乡",712186:"台西乡",712187:"仑背乡",712188:"麦寮乡",712189:"斗六市",712190:"林内乡",712191:"古坑乡",712192:"莿桐乡",712193:"西螺镇",712194:"二仑乡",712195:"北港镇",712196:"水林乡",712197:"口湖乡",712198:"四湖乡",712199:"元长乡"},712400:{712467:"屏东市",712468:"三地门乡",712469:"雾台乡",712470:"玛家乡",712471:"九如乡",712472:"里港乡",712473:"高树乡",712474:"盐埔乡",712475:"长治乡",712476:"麟洛乡",712477:"竹田乡",712478:"内埔乡",712479:"万丹乡",712480:"潮州镇",712481:"泰武乡",712482:"来义乡",712483:"万峦乡",712484:"莰顶乡",712485:"新埤乡",712486:"南州乡",712487:"林边乡",712488:"东港镇",712489:"琉球乡",712490:"佳冬乡",712491:"新园乡",712492:"枋寮乡",712493:"枋山乡",712494:"春日乡",712495:"狮子乡",712496:"车城乡",712497:"牡丹乡",712498:"恒春镇",712499:"满州乡"},712500:{712584:"台东市",712585:"绿岛乡",712586:"兰屿乡",712587:"延平乡",712588:"卑南乡",712589:"鹿野乡",712590:"关山镇",712591:"海端乡",712592:"池上乡",712593:"东河乡",712594:"成功镇",712595:"长滨乡",712596:"金峰乡",712597:"大武乡",712598:"达仁乡",712599:"太麻里乡"},712600:{712686:"花莲市",712687:"新城乡",712688:"太鲁阁",712689:"秀林乡",712690:"吉安乡",712691:"寿丰乡",712692:"凤林镇",712693:"光复乡",712694:"丰滨乡",712695:"瑞穗乡",712696:"万荣乡",712697:"玉里镇",712698:"卓溪乡",712699:"富里乡"},712700:{712794:"马公市",712795:"西屿乡",712796:"望安乡",712797:"七美乡",712798:"白沙乡",712799:"湖西乡"},712800:{712896:"南竿乡",712897:"北竿乡",712898:"东引乡",712899:"莒光乡"},810000:{810100:"香港城区"},810100:{810101:"中西区",810102:"湾仔区",810103:"东区",810104:"南区",810105:"油尖旺区",810106:"深水埗区",810107:"九龙城区",810108:"黄大仙区",810109:"观塘区",810110:"荃湾区",810111:"屯门区",810112:"元朗区",810113:"北区",810114:"大埔区",810115:"西贡区",810116:"沙田区",810117:"葵青区",810118:"离岛区"},820000:{820100:"澳门城区"},820100:{820101:"花地玛堂区",820102:"花王堂区",820103:"望德堂区",820104:"大堂区",820105:"风顺堂区",820106:"嘉模堂区",820107:"路凼填海区",820108:"圣方济各堂区"}},c={name:"VDistpicker",props:{province:{type:[String,Number],default:""},city:{type:[String,Number],default:""},area:{type:[String,Number],default:""},type:{type:String,default:""},hideArea:{type:Boolean,default:!1},onlyProvince:{type:Boolean,default:!1},staticPlaceholder:{type:Boolean,default:!1},placeholders:{type:Object,default:function(){return{province:"",city:"",area:""}}},disabled:{type:Boolean,default:!1},provinceDisabled:{type:Boolean,default:!1},cityDisabled:{type:Boolean,default:!1},areaDisabled:{type:Boolean,default:!1},addressHeader:{type:String,default:"address-header"},addressContainer:{type:String,default:"address-container"},wrapper:{type:String,default:"distpicker-address-wrapper"}},data:function(){return{tab:1,showCityTab:!1,showAreaTab:!1,provinces:[],cities:[],areas:[],currentProvince:this.determineType(this.province)||this.placeholders.province,currentCity:this.determineType(this.city)||this.placeholders.city,currentArea:this.determineType(this.area)||this.placeholders.area}},watch:{currentProvince:function(e){this.$emit("province",this.setData(e)),this.onlyProvince&&this.emit("selected")},currentCity:function(e){this.$emit("city",this.setData(e,this.currentProvince)),e!=this.placeholders.city&&this.hideArea&&this.emit("selected")},currentArea:function(e){this.$emit("area",this.setData(e,this.currentProvince,!0)),this.emit("selected")},province:function(e){this.currentProvince=this.province||this.placeholders.province,this.cities=this.determineValue(this.currentProvince,this.placeholders.province)},city:function(e){this.currentCity=this.city||this.placeholders.city,this.areas=this.determineValue(this.currentCity,this.placeholders.city,this.currentProvince)},area:function(e){this.currentArea=this.area||this.placeholders.area}},created:function(){"mobile"!=this.type?(this.provinces=this.getDistricts(),this.cities=this.province?this.getDistricts(this.getAreaCode(this.determineType(this.province))):[],this.areas=this.city?this.getDistricts(this.getAreaCode(this.determineType(this.city),this.area)):[]):!this.area||this.hideArea||this.onlyProvince?this.city&&this.hideArea&&!this.onlyProvince?(this.tab=2,this.showCityTab=!0,this.cities=this.getDistricts(this.getAreaCode(this.determineType(this.province)))):this.provinces=this.getDistricts():(this.tab=3,this.showCityTab=!0,this.showAreaTab=!0,this.areas=this.getDistricts(this.getAreaCode(this.determineType(this.city),this.area)))},methods:{setData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{code:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.getCodeByArea(e):this.getAreaCode(e,t),value:e}},getCodeByArea:function(e){var t=this,n=void 0;return o()(this.areas).forEach(function(i,s){i===e&&(n=a()(t.areas)[s])}),n},emit:function(e){var t={province:this.setData(this.currentProvince)};this.onlyProvince||this.$set(t,"city",this.setData(this.currentCity)),this.onlyProvince&&!this.hideArea||this.$set(t,"area",this.setData(this.currentArea,this.currentCity)),this.$emit(e,t)},getCities:function(){this.currentCity=this.placeholders.city,this.currentArea=this.placeholders.area,this.cities=this.determineValue(this.currentProvince,this.placeholders.province),this.cleanList("areas"),0===this.cities.length&&(this.emit("selected"),this.tab=1,this.showCityTab=!1)},getAreas:function(){this.currentArea=this.placeholders.area,this.areas=this.determineValue(this.currentCity,this.placeholders.city,this.currentProvince),0===this.areas.length&&(this.emit("selected"),this.tab=2,this.showAreaTab=!1)},resetProvince:function(){this.tab=1,this.provinces=this.getDistricts(),this.showCityTab=!1,this.showAreaTab=!1},resetCity:function(){this.tab=2,this.showCityTab=!0,this.showAreaTab=!1,this.getCities()},chooseProvince:function(e){this.currentProvince=e,this.onlyProvince||(this.tab=2,this.showCityTab=!0,this.showAreaTab=!1,this.getCities())},chooseCity:function(e){this.currentCity=e,this.hideArea||(this.tab=3,this.showCityTab=!0,this.showAreaTab=!0,this.getAreas())},chooseArea:function(e){this.currentArea=e},getAreaCodeByPreCode:function(e,t){var n=[];for(var i in r)for(var a in r[i])e===r[i][a]&&n.push(a);if(n.length>1){var s=void 0;return n.forEach(function(e,n){e.slice(0,2)==t&&(s=n)}),n[s]}return n[0]},getAreaCode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";for(var n in r)for(var i in r[n])if(e===r[n][i]){if(t.length>0){var a=this.getAreaCodeByPreCode(t,i.slice(0,2));if(a&&i.slice(0,2)===a.slice(0,2))return i;continue}return i}},getCodeValue:function(e){for(var t in r)for(var n in r[t])if(e===parseInt(n))return r[t][n]},getDistricts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e5;return r[e]||[]},determineValue:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e===t?[]:this.getDistricts(this.getAreaCode(e,n))},determineType:function(e){return"number"==typeof e?this.getCodeValue(e):e},cleanList:function(e){this[e]=[]}}},l=(n("A7Qi"),n("KHd+")),u=Object(l.a)(c,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.wrapper},["mobile"!=e.type?[n("el-select",{attrs:{disabled:e.disabled||e.provinceDisabled,placeholder:"省"},on:{change:e.getCities},model:{value:e.currentProvince,callback:function(t){e.currentProvince=t},expression:"currentProvince"}},e._l(e.provinces,function(e,t){return n("el-option",{key:t,attrs:{value:e,label:e}})})),e._v(" "),e.onlyProvince?e._e():[n("el-select",{attrs:{disabled:e.disabled||e.cityDisabled,placeholder:"市"},on:{change:e.getAreas},model:{value:e.currentCity,callback:function(t){e.currentCity=t},expression:"currentCity"}},e._l(e.cities,function(e,t){return n("el-option",{key:t,attrs:{value:e,label:e}})})),e._v(" "),e.hideArea?e._e():n("el-select",{attrs:{disabled:e.disabled||e.areaDisabled,placeholder:"区"},model:{value:e.currentArea,callback:function(t){e.currentArea=t},expression:"currentArea"}},e._l(e.areas,function(e,t){return n("el-option",{key:t,attrs:{value:e,label:e}})}))]]:[n("div",{class:e.addressHeader},[n("ul",[n("li",{class:{active:1===e.tab},on:{click:e.resetProvince}},[e._v(e._s(e.currentProvince&&!e.staticPlaceholder?e.currentProvince:e.placeholders.province))]),e._v(" "),e.onlyProvince?e._e():[e.showCityTab?n("li",{class:{active:2===e.tab},on:{click:e.resetCity}},[e._v(e._s(e.currentCity&&!e.staticPlaceholder?e.currentCity:e.placeholders.city))]):e._e(),e._v(" "),e.showAreaTab&&!e.hideArea?n("li",{class:{active:3===e.tab}},[e._v(e._s(e.currentArea&&!e.staticPlaceholder?e.currentArea:e.placeholders.area))]):e._e()]],2)]),e._v(" "),n("div",{class:e.addressContainer},[1===e.tab?n("ul",e._l(e.provinces,function(t,i){return n("li",{key:i,class:{active:t===e.currentProvince},on:{click:function(n){e.chooseProvince(t)}}},[e._v("\n "+e._s(t)+"\n ")])})):e._e(),e._v(" "),e.onlyProvince?e._e():[2===e.tab?n("ul",e._l(e.cities,function(t,i){return n("li",{key:i,class:{active:t===e.currentCity},on:{click:function(n){e.chooseCity(t)}}},[e._v("\n "+e._s(t)+"\n ")])})):e._e(),e._v(" "),3!==e.tab||e.hideArea?e._e():n("ul",e._l(e.areas,function(t,i){return n("li",{key:i,class:{active:t===e.currentArea},on:{click:function(n){e.chooseArea(t)}}},[e._v("\n "+e._s(t)+"\n ")])}))]],2)]],2)},[],!1,null,null,null);u.options.__file="Distpicker.vue";var d=u.exports;t.a=d},X0Ro:function(e,t,n){},X23l:function(e,t,n){"use strict";var i=n("ykWn");n.n(i).a},X4fA:function(e,t,n){"use strict";n.d(t,"c",function(){return d}),n.d(t,"a",function(){return p}),n.d(t,"b",function(){return h});var i=n("4d7F"),a=n.n(i),s=n("vDqi"),o=n.n(s),r=n("a0Nf"),c=n("4peS"),l=n.n(c),u=n("Q2AE");function d(){return new a.a(function(e,t){r.a.rmAxiosCache(),u.a.commit("SET_ALLAUTH",null),delete o.a.defaults.headers.authKey,delete o.a.defaults.headers.sessionId,e(!0)})}function p(e,t){return new a.a(function(n,i){o.a.defaults.headers.authKey=e,o.a.defaults.headers.sessionId=t,n(!0)})}function h(){return l.a.get("authKey")&&!o.a.defaults.headers.authKey&&r.a.updateAxiosCache(),!!o.a.defaults.headers.authKey}},X7CW:function(e,t,n){},XAon:function(e,t,n){"use strict";var i=n("KTTK"),a=n("6XTx"),s={name:"WkSelectDropdown",componentName:"WkSelectDropdown",mixins:[n.n(a).a],props:{placement:{type:String,default:"bottom-start"},boundariesPadding:{type:Number,default:0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}},visibleArrow:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:"300px"}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{},mounted:function(){var e=this;this.referenceElm=this.$parent.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",function(){e.$parent.visible&&e.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)}},o=n("KHd+"),r=Object(o.a)(s,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)},[],!1,null,null,null);r.options.__file="SelectDropdown.vue";var c=r.exports,l=n("7AXb"),u=n("0BDH"),d=n.n(u),p=n("gSIQ"),h=n("7Qib"),m=n("a/5N"),f={name:"WkUserSelect",components:{WkSelectDropdown:c,WkUser:l.a},mixins:[d.a],props:{radio:Boolean,max:{type:Number,default:2},props:{type:Object,default:function(){return{value:"id",label:"realname"}}},limit:Number,placeholder:{type:String,default:function(){return"请选择"}},value:{required:!0},request:Function,params:Object,options:Array,disabled:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{visible:!1,dataValue:[],loading:!1,height:34,optionsList:[]}},computed:{showSelects:function(){return this.max&&this.max>0&&this.selects&&this.selects.length>this.max?this.selects.slice(0,this.max):this.selects},selects:function(){var e=this;return this.optionsList.length?this.optionsList.filter(function(t){return e.dataValue.includes(t[e.props.value])}):[]}},watch:{visible:function(e){e?this.broadcast("WkSelectDropdown","updatePopper"):this.broadcast("WkSelectDropdown","destroyPopper"),this.$emit("visible-change",e)},value:function(){this.verifyValue()},options:{handler:function(){this.verifyOptions()},immediate:!0},dataValue:function(){this.radio?this.$emit("input",this.dataValue&&this.dataValue.length?this.dataValue[0]:""):this.$emit("input",this.dataValue)},showSelects:{handler:function(){this.resetHeight()},immediate:!0}},created:function(){this.verifyValue()},methods:{resetHeight:function(){var e=this,t=this.$refs.tags;t?this.$nextTick(function(){e.height=t.clientHeight>34?t.clientHeight+6:34}):this.height=34},verifyValue:function(){var e=this;(this.radio||Array.isArray(this.value)||this.$emit("input",[]),this.radio&&(Array.isArray(this.value)||null===this.value||void 0===this.value)&&this.$emit("input",""),this.radio)?this.value!==this.dataValue&&(Object(m.b)(this.value)?this.dataValue=[]:this.dataValue=[parseInt(this.value)]):Object(p.valueEquals)(this.value,this.dataValue)||(this.value&&this.value.length?this.value[0][this.props.value]?this.dataValue=this.value.map(function(t){return t[e.props.value]}):this.dataValue=Object(h.t)(this.value):this.dataValue=[])},verifyOptions:function(){this.options?this.optionsList=this.options:this.requestUserList()},requestUserList:function(){var e=this;this.loading=!0;var t=i.w,n={pageType:0};this.request?(n={},t=this.request):this.props.request&&(t=this.props.request),this.params&&(n=this.params),t(n).then(function(t){e.optionsList=t.data.hasOwnProperty("list")?t.data.list||[]:t.data||[],e.loading=!1}).catch(function(){e.loading=!1})},handleClose:function(){this.visible=!1},handleMenuEnter:function(){},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},deleteuser:function(e){if(!e.disabled&&!this.disabled)for(var t=0;t<this.dataValue.length;t++){if(this.dataValue[t]==e[this.props.value]){this.dataValue.splice(t,1),this.wkUserChange();break}}},focusClick:function(){this.$emit("focus")},wkUserChange:function(){var e=this;this.$nextTick(function(){e.radio?e.dispatch("ElFormItem","el.form.change",e.dataValue&&e.dataValue.length?e.dataValue[0]:""):e.dispatch("ElFormItem","el.form.change",e.dataValue)}),this.$emit("change",this.dataValue,this.selects)},containerClick:function(){this.disabled||(this.visible=!0)}}},g=(n("ZMf7"),Object(o.a)(f,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"elclickoutside",rawName:"v-elclickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"wk-user-select xh-form-border",class:[e.disabled?"is_disabled":"is_valid",{is_focus:e.visible}],style:{height:e.height+"px"},attrs:{wrap:"wrap"},on:{click:e.containerClick}},[n("div",{ref:"tags",staticClass:"el-select__tags"},e._l(e.showSelects,function(t,i){return n("span",{key:i,staticClass:"user-item text-one-line",class:{"is-hide":t.isHide}},[e._v(e._s(t[e.props.label])+"\n "),t.disabled?e._e():n("i",{staticClass:"delete-icon el-icon-close",on:{click:function(n){n.stopPropagation(),e.deleteuser(t,i)}}})])})),e._v(" "),e.selects.length>e.max&&e.max>0?n("i",{staticClass:"el-icon-more"}):e._e(),e._v(" "),n("i",{class:["el-icon-arrow-up",{"is-reverse":e.visible}]}),e._v(" "),0==e.selects.length?n("div",{staticClass:"user-placeholder text-one-line"},[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("wk-select-dropdown",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!e.disabled,expression:"visible && !disabled"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{ref:"scrollbar",attrs:{tag:"div"}},[n("wk-user",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{disabled:e.disabled,options:e.optionsList,props:e.props,radio:e.radio,max:e.limit},on:{change:e.wkUserChange,close:function(t){e.visible=!1}},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}})],1)],1)],1)],1)},[],!1,null,"338e8333",null));g.options.__file="index.vue";t.a=g.exports},XGIK:function(e,t,n){},XNyR:function(e,t,n){"use strict";var i=n("Nsgs");n.n(i).a},XSoD:function(e,t,n){"use strict";var i=n("kZYV");n.n(i).a},XV2P:function(e,t,n){},XWzT:function(e,t,n){},Y4Le:function(e,t,n){"use strict";n.d(t,"k",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"j",function(){return c}),n.d(t,"i",function(){return l}),n.d(t,"l",function(){return u}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"e",function(){return h}),n.d(t,"b",function(){return m}),n.d(t,"f",function(){return f}),n.d(t,"h",function(){return g}),n.d(t,"m",function(){return v}),n.d(t,"a",function(){return b});var i=n("GQeE"),a=n.n(i),s=n("t3Un");function o(e){var t=e.id?"update":"save";return Object(s.a)({url:"crm/product/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(s.a)({url:"crm/product/index",method:"post",data:e})}function c(e){return Object(s.a)({url:"crm/product/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(s.a)({url:"crm/product/read",method:"post",data:e})}function u(e){return Object(s.a)({url:"crm/product/status",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(s.a)({url:"crm/product/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function p(e){return Object(s.a)({url:"crm/product/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){var t=new FormData;return a()(e).forEach(function(n){t.append(n,e[n])}),Object(s.a)({url:"crm/product/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}window.BASE_URL;function m(e){return Object(s.a)({url:"crm/product/excelDownload",method:"get",data:e,responseType:"blob"})}function f(e){return Object(s.a)({url:"admin/file/index",method:"post",data:e})}function g(e){return Object(s.a)({url:"crm/product/count",method:"post",data:e})}function v(e){return Object(s.a)({url:"crm/product/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(s.a)({url:"crm/product/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},YCv6:function(e,t,n){"use strict";var i=n("bHsw");n.n(i).a},YDfX:function(e,t,n){},YNXL:function(e,t,n){},YW1G:function(e,t,n){},Yb89:function(e,t,n){"use strict";var i=n("6cK+");n.n(i).a},Z1PZ:function(e,t,n){"use strict";var i=n("uuSy");n.n(i).a},ZMf7:function(e,t,n){"use strict";var i=n("1lV3");n.n(i).a},ZoMv:function(e,t,n){"use strict";t.a={leads:"crm_leads",customer:"crm_customer",contacts:"crm_contacts",product:"crm_product",business:"crm_business",contract:"crm_contract",receivables:"crm_receivables",receivables_plan:"crm_receivables_plan",pool:"crm_pool",visit:"crm_visit",invoice:"crm_invoice",keyToTypeData:{leads:1,customer:2,contacts:3,product:4,business:5,contract:6,receivables:7,receivables_plan:8,pool:9,visit:17,invoice:18},typeToKeyData:{1:"leads",2:"customer",3:"contacts",4:"product",5:"business",6:"contract",7:"receivables",8:"receivables_plan",9:"pool",17:"visit",18:"invoice"},typeToNameData:{1:"线索",2:"客户",3:"联系人",4:"产品",5:"商机",6:"合同",7:"回款",8:"回款计划",9:"公海",17:"回访",18:"发票"},keyToNameData:{leads:"线索",customer:"客户",contacts:"联系人",product:"产品",business:"商机",contract:"合同",receivables:"回款",receivables_plan:"回款计划",pool:"公海",visit:"回访",invoice:"发票"},labelToType:{1:"crmLeads",2:"crmCustomer",3:"crmContacts",4:"crmProduct",5:"crmBusiness",6:"crmContract",7:"crmReceivables",8:"crmReceivablesPlan",9:"crmPool",17:"crmReturnVisit",18:"crmInvoice"},convertKeyToType:function(e){return this.keyToTypeData[e]},convertTypeToKey:function(e){return this.typeToKeyData[e]},convertTypeToName:function(e){return"string"==typeof e&&(e=parseInt(e)),this.typeToNameData[e]},convertKeyToName:function(e){return this.keyToNameData[e]}}},"a/1z":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdG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GKlWxCFSvZhCpWsglVrGQTqljJJlSxkk2oYiWbUMVKNqGKlWxCFSvZhCpWsglVrGQTqljJJlSxkk2oYiWbUMUq1GxCFatQswlVrEIdzOnzFqtQxYpQxUpLhipWoYoVoYqVlg1VrELNLtZ/HFqh5hLreYdXqLnEeswhFmousR5J41+HWqg5xHomjY8dbqHmshpwII3jDnuWoV5qhVDHx1qsCPSm8VHx+CWQVajdrRDq+FjHgn0rjcfSOJTG2TSuS6KUBlst1ELbyMiIQ5+hoauxttIRg+n3rKXHULf/BBgASgXIZDhuDdkAAAAASUVORK5CYII="},"a/5N":function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n("GQeE"),a=n.n(i);function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){return"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null===e||(void 0===e||("[object Array]"===Object.prototype.toString.call(e)?0===e.length:"[object Object]"===Object.prototype.toString.call(e)?0===a()(e).length:"string"==typeof e&&""===e.trim()))}},a0Nf:function(e,t,n){"use strict";var i=n("Q2AE"),a=n("4peS"),s=n.n(a),o=n("vDqi"),r=n.n(o),c={loadingCache:function(){if(s.a.get("authKey")&&!r.a.defaults.headers.authKey){var e=s.a.get("loginUserInfo");e&&i.a.commit("SET_USERINFO",e)}i.a.commit("SET_APPNAME",s.a.get("systemName")),i.a.commit("SET_APPLOGO",s.a.get("systemLogo"))},updateAxiosCache:function(){r.a.defaults.headers.authKey=s.a.get("authKey"),r.a.defaults.headers.sessionId=s.a.get("sessionId"),i.a.dispatch("GetUserInfo"),i.a.dispatch("SystemLogoAndName")},updateAxiosHeaders:function(){r.a.defaults.headers.authKey=s.a.get("authKey"),r.a.defaults.headers.sessionId=s.a.get("sessionId")},rmAxiosCache:function(){s.a.rm("authKey"),s.a.rm("sessionId")}};t.a=c},aQ3C:function(e,t,n){},aYNI:function(e,t,n){"use strict";var i=n("X7CW");n.n(i).a},b3AG:function(e,t,n){"use strict";var i=n("qSqi");n.n(i).a},b5rP:function(e,t,n){"use strict";var i=n("0ioL"),a=n("gSIQ"),s=n("7Qib"),o={name:"WkDep",components:{},props:{headerShow:{type:Boolean,default:!0},options:Array,value:{type:Array,default:function(){return[]}},props:{type:Object,default:function(){return{value:"id",label:"name"}}},radio:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{dataValue:[],breadcrumbList:[],dataList:[],loading:!1,searchInput:""}},computed:{showDataList:function(){var e=this;return this.dataList.filter(function(t){return i.a.match(t[e.props.label],e.searchInput)})}},watch:{value:{handler:function(){Object(a.valueEquals)(this.value,this.dataValue)||(this.dataValue=Object(s.t)(this.value),this.handelCheck(this.dataList))},immediate:!0},options:{handler:function(){this.initInfo()},immediate:!0}},mounted:function(){},methods:{initInfo:function(){this.dataList=this.options,this.breadcrumbList=[{label:"全部",data:this.options}],this.dataValue=Object(s.t)(this.value),this.handelCheck(this.dataList)},breadcrumbBtn:function(e,t){t+1<=this.breadcrumbList.length-1&&this.breadcrumbList.splice(t+1,this.breadcrumbList.length-1),this.dataList=[],this.dataList=this.handelCheck(e.data)},checkChange:function(e,t){var n=this;if(this.radio)e.isCheck&&this.dataValue.length&&this.dataList.forEach(function(t){t[n.props.value]!==e[n.props.value]&&(t.isCheck=!1)}),this.dataValue=e.isCheck?[e[this.props.value]]:[];else{for(var i=-1,a=0;a<this.dataValue.length;a++){var s=this.dataValue[a];if(e[this.props.value]==s){i=a;break}}-1==i&&e.isCheck?this.dataValue.push(e[this.props.value]):-1!=i&&this.dataValue.splice(i,1)}this.$emit("change",this.dataValue),this.$emit("input",this.dataValue)},handelCheck:function(e){var t=this;return e.forEach(function(e){var n=t.valueHasItem(e);n!==e.isCheck&&(e.isCheck=n)}),e},valueHasItem:function(e){if(0==this.dataValue.length)return!1;for(var t=!1,n=0;n<this.dataValue.length;n++){var i=this.dataValue[n];if(e[this.props.value]==i){t=!0;break}}return t},enterChildren:function(e){e.children&&(this.dataList=[],this.dataList=this.handelCheck(this.addIsCheckProp(e.children)),this.breadcrumbList.push({label:e[this.props.label],data:this.dataList}))},addIsCheckProp:function(e){return e.length>0?e[0].hasOwnProperty("isCheck")?e:e.map(function(e,t,n){return e.disabled=!1,e.isCheck=!1,e.show=!0,e}):e},clearAll:function(){this.dataValue=[],this.dataList=this.dataList.map(function(e){return e.isCheck=!1,e}),this.$emit("input",this.dataValue)}}},r=(n("wmfQ"),n("KHd+")),c=Object(r.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"xh-stru"},[e.headerShow?n("div",{staticClass:"xh-stru__hd"},[e._v("\n 部门\n ")]):e._e(),e._v(" "),n("div",{staticClass:"xh-stru__bd"},[n("el-input",{staticClass:"search-input",attrs:{placeholder:"搜索部门名称",size:"small","prefix-icon":"el-icon-search"},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"search-list"},[n("el-breadcrumb",{staticStyle:{padding:"5px 0"},attrs:{"separator-class":"el-icon-arrow-right"}},e._l(e.breadcrumbList,function(t,i){return n("el-breadcrumb-item",{key:i},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){e.breadcrumbBtn(t,i)}}},[e._v(e._s(t.label))])])})),e._v(" "),e._l(e.showDataList,function(t,i){return n("flexbox",{key:i,staticClass:"stru-list"},[n("el-checkbox",{staticClass:"stru-check",attrs:{disabled:t.disabled},on:{change:function(n){e.checkChange(t,i)}},model:{value:t.isCheck,callback:function(n){e.$set(t,"isCheck",n)},expression:"item.isCheck"}}),e._v(" "),n("div",{staticClass:"stru-name",on:{click:function(n){e.enterChildren(t)}}},[e._v(e._s(t[e.props.label]))]),e._v(" "),t.children?n("div",{staticClass:"el-icon-arrow-right stru-enter"}):e._e()],1)})],2)],1),e._v(" "),n("div",{staticClass:"xh-stru__ft"},[n("span",{staticClass:"select-info"},[e._v("已选择"),n("span",{staticClass:"select-info--num"},[e._v(e._s(e.value.length))]),e._v("项")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:e.clearAll}},[e._v("清空")])],1)])},[],!1,null,"28e3c4fc",null);c.options.__file="WkDep.vue";t.a=c.exports},b7Nu:function(e,t,n){"use strict";var i=n("EsIn");n.n(i).a},bHsw:function(e,t,n){},"bSL/":function(e,t,n){"use strict";var i=n("wWym");n.n(i).a},bbyH:function(e,t,n){},c2Co:function(e,t,n){"use strict";n.d(t,"j",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"a",function(){return c}),n.d(t,"i",function(){return l}),n.d(t,"m",function(){return u}),n.d(t,"n",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"e",function(){return m}),n.d(t,"b",function(){return f}),n.d(t,"k",function(){return g}),n.d(t,"f",function(){return v}),n.d(t,"h",function(){return b}),n.d(t,"l",function(){return y});var i=n("GQeE"),a=n.n(i),s=n("t3Un");function o(e){var t=e.id&&e.name?"update":"save";return Object(s.a)({url:"crm/leads/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(s.a)({url:"crm/leads/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(s.a)({url:"crm/leads/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(s.a)({url:"crm/leads/read",method:"post",data:e})}function u(e){return Object(s.a)({url:"crm/leads/transfer",method:"post",data:e})}function d(e){return Object(s.a)({url:"crm/leads/transform",method:"post",data:e})}function p(e){return Object(s.a)({url:"crm/leads/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function h(e){return Object(s.a)({url:"crm/leads/excelExport",method:"post",data:e,responseType:"blob"})}function m(e){var t=new FormData;return a()(e).forEach(function(n){t.append(n,e[n])}),Object(s.a)({url:"crm/leads/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}window.BASE_URL;function f(e){return Object(s.a)({url:"crm/leads/excelDownload",method:"get",data:e,responseType:"blob"})}function g(e){return Object(s.a)({url:"crm/message/allDeal",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(s.a)({url:"admin/file/index",method:"post",data:e})}function b(e){return Object(s.a)({url:"crm/leads/count",method:"post",data:e})}function y(e){e.crmType;return Object(s.a)({url:"/crm/leads/star",method:"post",data:e})}},c7Em:function(e,t,n){"use strict";var i=n("mTxA");n.n(i).a},cEue:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjYzNEQ2RDE3MzRFNTExRTlCRjI5QUEzN0UzNDcxMUZDIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjYzNEQ2RDE4MzRFNTExRTlCRjI5QUEzN0UzNDcxMUZDIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NjM0RDZEMTUzNEU1MTFFOUJGMjlBQTM3RTM0NzExRkMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NjM0RDZEMTYzNEU1MTFFOUJGMjlBQTM3RTM0NzExRkMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4/GDLpAAABSElEQVR42oySvU4CURCFD/cVVHp+X0Cihp4QXkBXDBW/L0HCW0CgJGC0tSCEghJNtLDmr8ME9QUs0DPu3XXvLmaZ5BQ7d767c89M5LtehycUdUVdUxfUCfVOPVK31B21c4ojHjhO3VOn+D9eqEtq5fzJAWchIPT5TNf/wkq3E8VhEdX1SkCLyrhHrRYQi5nlySTQbHozUm8JXDIKBwOg0WBj8T+wWgWGQ38HJTFM3Dw20qkUUKkA4zGQzwPdLrBc+uE3FQAl5nNgMqGvNHY02gdKHAn8EUin00AuR1voS6EAJBL74E+BnwNguQx0OsB0CvR6QK1mv92MV4H7Rsqi+e02sF7b34uFfUGx6If7Yphc8GSMKzyk23Old1VmvT0Q3Or6nbOeYmdW7y5Cdjur693ddi44o+RxD9SG+pJ56u8bfe7O7UeAAQCsHFF+l0CFAgAAAABJRU5ErkJggg=="},"d+tI":function(e,t,n){},d0vG:function(e,t,n){},d5Rn:function(e,t,n){},d9x6:function(e,t,n){"use strict";n.d(t,"n",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"m",function(){return r}),n.d(t,"i",function(){return c}),n.d(t,"r",function(){return l}),n.d(t,"j",function(){return u}),n.d(t,"k",function(){return d}),n.d(t,"p",function(){return p}),n.d(t,"o",function(){return h}),n.d(t,"q",function(){return m}),n.d(t,"s",function(){return f}),n.d(t,"e",function(){return g}),n.d(t,"t",function(){return v}),n.d(t,"a",function(){return b}),n.d(t,"f",function(){return y}),n.d(t,"h",function(){return k}),n.d(t,"d",function(){return w}),n.d(t,"c",function(){return _}),n.d(t,"l",function(){return C});var i=n("t3Un");function a(e){var t=e.id?"update":"save";return Object(i.a)({url:"crm/contract/"+t,method:"post",data:e})}function s(e){return Object(i.a)({url:"crm/contract/index",method:"post",data:e})}function o(e){return Object(i.a)({url:"crm/contract/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"crm/contract/read",method:"post",data:e})}function c(e){return Object(i.a)({url:"crm/contract/product",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(i.a)({url:"crm/contract/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(i.a)({url:"crm/receivables/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(i.a)({url:"crm/receivables_plan/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(i.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(i.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(i.a)({url:"crm/setting/team",method:"post",data:e})}function f(e){return Object(i.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(i.a)({url:"crm/setting/quitTeam",method:"post",data:e})}function v(e){return Object(i.a)({url:"crm/receivables_plan/index",method:"post",data:e})}function b(e){return Object(i.a)({url:"crm/contract/cancel",method:"post",data:e})}function y(e){return Object(i.a)({url:"admin/file/index",method:"post",data:e})}function k(e){return Object(i.a)({url:"crm/contract/count",method:"post",data:e})}function w(e){return Object(i.a)({url:"crm/contract/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob",timeout:6e4})}function _(e){return Object(i.a)({url:"crm/contract/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function C(e){return Object(i.a)({url:"crm/visit/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},dAOq:function(e,t,n){"use strict";t.a={methods:{getCRMStatusColor:function(e){return 0==e?"#ffc539":1==e?"#398dff":2==e?"#20b559":3==e?"#f95a5a":4==e?"#dee8ff":5==e?"#d9d9d9":6==e?"#bfbfbf":void 0},getCRMStatusName:function(e){return 0==e?"待审核":1==e?"审核中":2==e?"通过":3==e?"拒绝":4==e?"撤回":5==e?"未提交":6==e?"已作废":""},getStatusColor:function(e){return 0==e?"#ffc539":1==e?"#20b559":2==e?"#f95a5a":3==e?"#398dff":4==e?"#999":5==e?"#d9d9d9":6==e?"#2362FB":8==e?"#bfbfbf":void 0},getStatusName:function(e){return 4==e?"待审核":1==e?"通过":0==e?"拒绝":300==e?"审核中":2==e?"撤回":5==e?"未提交":3==e?"创建":8==e?"已作废":""},getStatusIcon:function(e){return 0==e?"wk wk-time":1==e?"wk wk-success":2==e?"wk wk-close":3==e?"wk wk-time":4==e?"wk wk-reset":5==e?"wk wk-time":6==e?"wk wk-l-plus":8==e?"wk wk-invalid":""},getXhStatusList:function(){return[{label:"待审核",value:0},{label:"通过",value:1},{label:"拒绝",value:2},{label:"审核中",value:3},{label:"撤回",value:4}]},getStatusImageIcon:function(e){return 5==e||4==e?n("6pZM"):1==e?n("y4JV"):0==e?n("migV"):2==e?n("+xXq"):3==e?n("wu/m"):""},getTaskStatusName:function(e){return 0==e?"待审核":2==e?"通过":3==e?"失败":1==e?"审核中":4==e?"撤回":""},getTaskStatusColor:function(e){return 0==e?"#ffc539":1==e?"#398dff":2==e?"#20b559":3==e?"#f95a5a":4==e?"#dee8ff":5==e?"#d9d9d9":void 0}}}},dCH2:function(e,t,n){},dOsk:function(e,t,n){"use strict";var i=n("45On");n.n(i).a},dPzk:function(e,t,n){"use strict";var i=n("Xjjk"),a=n.n(i),s={name:"ReplyComment",components:{Emoji:n("u+Mw").a},data:function(){return{commentLoading:!1,blurIndex:0,commentsTextarea:"",showEmoji:!1,showNoFocus:!1}},methods:{blurFun:function(e){this.blurIndex=e.target.selectionEnd},selectEmoji:function(e){if(this.commentsTextarea&&this.commentsTextarea.length+e.length<=2e3||!this.commentsTextarea){var t=this.commentsTextarea.split("");t.splice(this.blurIndex,0,e),this.commentsTextarea=t.join(""),this.showEmoji=!1}},commentSubmit:function(){this.commentsTextarea?this.$emit("reply",a()(this.commentsTextarea)):this.$message.error("回复内容不能为空")},closeComment:function(){this.showEmoji=!1,this.$emit("close"),this.toggleFocus()},toggleFocus:function(e){this.showNoFocus="boolean"==typeof e?e:!this.showNoFocus,this.$emit("toggle",this.showNoFocus)}}},o=(n("szeO"),n("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.commentLoading,expression:"commentLoading"}],staticClass:"reply-comment"},[e.showNoFocus?n("div",{staticClass:"no-focus",on:{click:function(t){e.toggleFocus()}}},[e._v("\n 请输入回复内容\n ")]):[n("el-input",{attrs:{rows:3,maxlength:2e3,"show-word-limit":"",type:"textarea",placeholder:"请输入回复内容"},on:{blur:e.blurFun},model:{value:e.commentsTextarea,callback:function(t){e.commentsTextarea=t},expression:"commentsTextarea"}}),e._v(" "),n("div",{staticClass:"btn-group"},[n("el-popover",{attrs:{placement:"top",width:"400",trigger:"click"},model:{value:e.showEmoji,callback:function(t){e.showEmoji=t},expression:"showEmoji"}},[n("emoji",{on:{select:e.selectEmoji}}),e._v(" "),n("i",{staticClass:"wk wk-expression smiling-img",attrs:{slot:"reference"},slot:"reference"})],1),e._v(" "),n("div",{staticClass:"btn-box"},[n("el-button",{attrs:{type:"primary"},on:{click:e.commentSubmit}},[e._v("回复")]),e._v(" "),n("el-button",{on:{click:e.closeComment}},[e._v("取消")])],1)],1)]],2)},[],!1,null,"cdcf716e",null);r.options.__file="ReplyComment.vue";t.a=r.exports},dZj0:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjUwRkM2OUUyMUFFQzExRTlBRjkyODZDM0IxQ0M3MTRFIiB4bXBNTTpEb2N1bWVudElEPSJ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+z5rGKbUJ1RRKb2QxEVke6XXFCoXWZJy6naF8WmJfkSG38X8dQbsMbaYSf7qBE2ZGhPUx37AQx3yKuQsonNfkn+I/ukdCmikKO/7YT9BOOMSl+Y0MQ45xciRP05D8LUOG3xFBTzBCaeeIXUU9nAM6fIKBrv45ZZo+voSIgxsqrL7udtpK0mScdZ4Wpa3nuwUPVUSDgJbJZjx8YcyQxqrS+I5JlbyPNQYerI/GrA/HMI4RrHs6B12kH2WBO0hgkoYQc11td5I2cNE6EeOIrha+xYauLMC3pmz2zY/esskrk9jsOxu5HccTXaXruDwpJNxLP0+nb6bCu1xqshhFEg6zuk89RCR768GEmUG+GQDEiyT+li4oFC16stPVBVORXRFIjp9PzogCwbWnY+OVrhDKaJSQ5Bz8tZfqbaGT4r2KnA5EHR3rM1zI9urCPD868HFoxstIKFyF5V2KxzZzmSfonmDCREv5wFXUx4lTCaf405OE/OHBgupCYl166XunyXmL7ThlC02RE9Px+6R44oFz4Q67YGhuceiFmDI7MPxI6gyAMxUcHzlX8FGAADLZCrVjrXHwAAAABJRU5ErkJggg=="},e1Ry:function(e,t,n){"use strict";var i=n("gq7w");n.n(i).a},eCQT:function(e,t,n){"use strict";var i=n("2TZz");n.n(i).a},eKkT:function(e,t,n){"use strict";var i=n("d+tI");n.n(i).a},"eU/g":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICA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3IiKrOBGVGQFN6IiK7gRFVnBjajICm5ERVZwIyqyghtRkRXciIqs4EZUZAU3oiIruBEVWcGNqMiKqG5ERVZEPfb0pZEVUZEVEBVZoUlRkRVRkRUQFVmhWVGRFVHdyXrOfUVUL7L+w71FVC+y/sb9RVQvsj4O5YL7jKgeZP0rlJ+514jqZTTgYShPuOcu+a8FUbuyakTg61B+CuWS++9K1PstiNqV1YT9IZRPQ3kUyt+hvMKHIjluTVQxm8/n3HqHPHv27KOjo6Pj8On6OsI1DP67/wswAGaRUM7rPS0xAAAAAElFTkSuQmCC"},"ef+5":function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return r});var i=n("t3Un");function a(e){return Object(i.a)({url:"admin/users/updateImg",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}})}function s(e){return Object(i.a)({url:"admin/users/read",method:"post",data:e})}function o(e){return Object(i.a)({url:"admin/users/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"admin/users/resetPassword",method:"post",data:e})}},eqpj:function(e,t,n){"use strict";var i=n("Ialk");n.n(i).a},f9JD:function(e,t,n){"use strict";var i=n("R+T8");n.n(i).a},fdYH:function(e,t,n){},fe1z:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"f",function(){return r}),n.d(t,"d",function(){return c}),n.d(t,"a",function(){return l});var i=n("t3Un");function a(e){return Object(i.a)({url:"admin/base/login",method:"post",data:e})}function s(){return Object(i.a)({url:"admin/base/logout",method:"post"})}function o(e){return Object(i.a)({url:"cloud/sendSms",method:"post",data:e})}function r(e){return Object(i.a)({url:"verfyCode",method:"post",data:e})}function c(){return Object(i.a)({url:"adminUser/querySystemStatus",method:"post"})}function l(e){return Object(i.a)({url:"adminUser/initUser",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},fs3x:function(e,t,n){"use strict";var i=n("zsUE");n.n(i).a},g9Zy:function(e,t,n){"use strict";var i=n("zqKW");n.n(i).a},gVZb:function(e,t,n){"use strict";var i=n("ViDN"),a=n("ehos"),s={name:"XrCreate",components:{CreateView:i.a},props:{title:String,loading:Boolean,appendToBody:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},confirmButtonText:{type:String,default:"保存"}},data:function(){return{}},computed:{},watch:{},created:function(){this.debouncedSaveField=Object(a.debounce)(300,this.save)},mounted:function(){this.appendToBody&&document.body.appendChild(this.$el)},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{afterEnter:function(){this.$emit("afterEnter")},save:function(){this.$emit("save")},close:function(){this.$emit("close")}}},o=(n("X23l"),n("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("create-view",{attrs:{"body-style":{height:"100%"}},on:{afterEnter:e.afterEnter}},[n("flexbox",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"xr-create",attrs:{direction:"column",align:"stretch"}},[n("flexbox",{staticClass:"xr-create__header"},[e.$slots.title?e._e():n("div",{staticClass:"title"},[e._v(e._s(e.title))]),e._v(" "),e._t("title"),e._v(" "),n("i",{staticClass:"el-icon-close close",on:{click:e.close}})],2),e._v(" "),n("div",{staticClass:"xr-create__body"},[e._t("default")],2),e._v(" "),n("div",{staticClass:"xr-create__footer"},[e.showCancel?n("el-button",{nativeOn:{click:function(t){return e.close(t)}}},[e._v("取消")]):e._e(),e._v(" "),e._t("footer"),e._v(" "),e.showConfirm?n("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){e.debouncedSaveField(!1)}}},[e._v(e._s(e.confirmButtonText))]):e._e()],2)],1)],1)},[],!1,null,"07f87c1c",null);r.options.__file="index.vue";t.a=r.exports},gWfY:function(e,t,n){},gq7w:function(e,t,n){},hSIE:function(e,t,n){"use strict";n.d(t,"f",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"h",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return l}),n.d(t,"g",function(){return u}),n.d(t,"a",function(){return d});var i=n("t3Un");function a(e){return Object(i.a)({url:"work/task/myTask",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(){return Object(i.a)({url:"work/task/taskUsers",method:"post"})}function o(e){return Object(i.a)({url:"work/task/updateTop",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"work/work/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(i.a)({url:"work/task/search",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(i.a)({url:"work/task/archive",method:"post",data:e})}function u(e){return Object(i.a)({url:"work/task/recover",method:"post",data:e})}function d(e){return Object(i.a)({url:"oa/task/excelExport",method:"post",data:e,responseType:"blob"})}},ho7T:function(e,t,n){"use strict";var i=n("YW1G");n.n(i).a},hwzM:function(e,t,n){"use strict";var i=n("7Qib"),a=n("KTTK"),s={name:"FileCell",filters:{getFileSize:function(e){return Object(i.h)(e)}},props:{cellIndex:Number,data:Object,list:Array,showFoot:{type:Boolean,default:!0},cursorPointer:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!1},module_id:[String,Number]},data:function(){return{}},computed:{fileIcon:function(){var e=this.data.name?this.data.name.split("."):[],t="";return t=e.length>0?e[e.length-1]:"",Object(i.n)(t)},previewShow:function(){return this.list}},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{downloadClick:function(){Object(i.d)({path:this.data.filePath||this.data.url,save_name:this.data.save_name,name:this.data.name})},previewClick:function(){Object(i.a)(this.data.name)?Object(i.A)(this.data.filePath||this.data.url,this.data.name):this.$bus.emit("preview-image-bus",{index:this.cellIndex||0,data:this.list.map(function(e){return{url:e.filePath||e.url||e.file_path,name:e.name,save_name:e.save_name}})})},deleteClick:function(){var e=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.c)({id:e.data.file_id,save_name:e.data.save_name}).then(function(t){e.$message.success("操作成功"),e.$emit("delete",e.cellIndex,e.data)}).catch(function(){})}).catch(function(){e.$message({type:"info",message:"已取消删除"})})}}},o=(n("lylt"),n("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("flexbox",{staticClass:"cell"},[n("img",{staticClass:"cell-head",attrs:{src:e.fileIcon,alt:""}}),e._v(" "),n("div",{staticClass:"cell-body text-one-line",class:{"cursor-pointer":e.cursorPointer}},[n("span",[e._v(e._s(e.data.name.length>20?e.data.name.substring(0,20)+"...":e.data.name))])]),e._v(" "),n("div",{staticClass:"size"},[e._v("\n ("+e._s(e._f("getFileSize")(e.data.size))+")\n ")]),e._v(" "),n("div",{staticClass:"cell-foot"},[e.previewShow?n("span",{staticClass:"xr-text-btn primary",on:{click:e.previewClick}},[e._v("预览")]):e._e(),e._v(" "),n("span",{staticClass:"xr-text-btn primary",on:{click:e.downloadClick}},[e._v("下载")]),e._v(" "),e.showDelete?n("span",{staticClass:"xr-text-btn delete",on:{click:e.deleteClick}},[e._v("删除")]):e._e()])])},[],!1,null,"fa218802",null);r.options.__file="index.vue";t.a=r.exports},iJiE:function(e,t,n){},jAw3:function(e,t,n){"use strict";var i=n("+yfX");n.n(i).a},jHPx:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return r}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return d}),n.d(t,"c",function(){return p});var i=n("ZhIB"),a=n.n(i),s=function(e){return a()(e).format("0.0a")},o=function(e){return a()(e).format("0 b")},r=function(e,t){return a()(e).format(t)},c=function(e){return a()(e).format("0.[00]e+0")},l=function(e){return a()(e).format("Oo")},u=function(e){return a()(e).format("0.[00]%")},d=function(e){return a()(e).format("0,0.00")},p=function(e){return a()(e).format("$0,0.00")}},jM2j:function(e,t,n){"use strict";var i=n("ViDN"),a=n("8GhS"),s=n("FoeY"),o=n("7Qib"),r={components:{CreateView:i.a,XhStrucUserCell:a.m},props:{action:{type:Object,default:function(){return{type:"save"}}}},data:function(){var e=this,t=function(t,n,i){"startTime"==t.field&&!e.formData.startTime&&e.formData.endTime||"endTime"==t.field&&!e.formData.endTime&&e.formData.startTime?i(new Error("请完善时间")):e.formData.startTime&&e.formData.endTime&&Object(o.k)(e.formData.startTime)>=Object(o.k)(e.formData.endTime)&&i(new Error("开始时间必须小于结束时间")),i()};return{formList:[{label:"公告标题",field:"title"},{label:"通知范围",field:"dep",type:"plus"},{label:"公告正文",field:"content",type:"textarea"}],formData:{dep:{staff:[],dep:[]}},rules:{title:[{required:!0,message:"公告标题不能为空",trigger:"blur"},{max:50,message:"公告标题长度最多为50个字符",trigger:"blur"}],content:[{required:!0,message:"公告正文不能为空",trigger:"blur"}],startTime:[{required:!0,message:"不能为空",trigger:"blur"},{validator:t,trigger:"blur"}],endTime:[{required:!0,message:"不能为空",trigger:"blur"},{validator:t,trigger:"blur"}]},loading:!1}},computed:{title:function(){return"save"==this.action.type?"新建公告":"编辑公告"}},created:function(){"update"==this.action.type&&(this.formData={title:this.action.data.title,content:this.action.data.content,dep:{staff:this.action.data.ownerUserList,dep:this.action.data.deptList}})},methods:{onSubmit:function(){var e=this;this.$refs.form.validate(function(t){if(!t)return!1;e.loading=!0;var n={title:e.formData.title,content:e.formData.content,owner_structure_ids:e.formData.dep.dep&&e.formData.dep.dep.map(function(e){return e.id}),owner_user_ids:e.formData.dep.staff&&e.formData.dep.staff.map(function(e){return e.id})};"update"==e.action.type&&(n.announcement_id=e.action.id),Object(s.a)(n).then(function(t){e.$message.success(e.title+"成功"),e.$emit("onSubmit"),e.close(),e.loading=!1}).catch(function(){e.$message.error(e.title+"失败"),e.loading=!1})})},close:function(){this.$emit("close")},strcUserChange:function(e){this.$set(this.formData,"dep",{staff:e.value.users,dep:e.value.strucs})},deleteuser:function(e){this.formData.dep.staff.splice(e,1)},deleteDepuser:function(e){this.formData.dep.dep.splice(e,1)}}},c=(n("XNyR"),n("KHd+")),l=Object(c.a)(r,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("create-view",{attrs:{"body-style":{height:"100%"}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"details-box"},[n("div",{staticClass:"header",attrs:{slot:"header"},slot:"header"},[n("span",{staticClass:"text"},[e._v(e._s(e.title))]),e._v(" "),n("i",{staticClass:"el-icon-close rt",on:{click:e.close}})]),e._v(" "),n("div",{staticClass:"content"},[n("el-form",{ref:"form",attrs:{model:e.formData,rules:e.rules}},e._l(e.formList,function(t,i){return n("el-form-item",{key:i,class:"el-form-item"+t.field,attrs:{label:t.label,prop:t.field}},["date"==t.type?[n("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.formData[t.field],callback:function(n){e.$set(e.formData,t.field,n)},expression:"formData[item.field]"}})]:"textarea"==t.type?[n("el-input",{attrs:{autosize:{minRows:15},maxlength:2e3,"show-word-limit":"",type:"textarea",placeholder:"请输入内容"},model:{value:e.formData[t.field],callback:function(n){e.$set(e.formData,t.field,n)},expression:"formData[item.field]"}})]:"plus"==t.type?[n("xh-struc-user-cell",{staticStyle:{width:"100%"},attrs:{value:null,users:e.formData[t.field].staff,strucs:e.formData[t.field].dep},on:{"value-change":e.strcUserChange}})]:n("el-input",{model:{value:e.formData[t.field],callback:function(n){e.$set(e.formData,t.field,n)},expression:"formData[item.field]"}})],2)}))],1),e._v(" "),n("div",{staticClass:"btn-box"},[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("提交")]),e._v(" "),n("el-button",{on:{click:e.close}},[e._v("取消")])],1)])])},[],!1,null,"25f8f4bc",null);l.options.__file="NewDialog.vue";t.a=l.exports},jVVe:function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"g",function(){return o}),n.d(t,"m",function(){return r}),n.d(t,"e",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"l",function(){return d}),n.d(t,"a",function(){return p}),n.d(t,"h",function(){return h}),n.d(t,"k",function(){return m}),n.d(t,"i",function(){return f}),n.d(t,"j",function(){return g});var i=n("t3Un");function a(e){return Object(i.a)({url:"admin/groups/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"admin/groups/delete",method:"post",data:e})}function o(e){return Object(i.a)({url:"admin/groups/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"admin/groups/update",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function c(e){return Object(i.a)({url:"admin/groups/copy",method:"post",data:e})}function l(e){return Object(i.a)({url:"admin/users/copyRole",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function u(e){return Object(i.a)({url:"admin/users/groups",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function d(e){return Object(i.a)({url:"admin/users/groupsDel",method:"post",data:e})}function p(e){return Object(i.a)({url:"admin/groups/typeList",method:"post",data:e})}function h(e){return Object(i.a)({url:"admin/groups/index",method:"post",data:e})}function m(e){return Object(i.a)({url:"admin/rules/index",method:"post",data:e})}function f(e){return Object(i.a)({url:"admin/fieldGrant/index",method:"post",data:e})}function g(e){return Object(i.a)({url:"admin/fieldGrant/update",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}},jWYy:function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("KTTK"),o=n("0ioL"),r={props:{radio:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!1},userCheckedData:{type:Array,default:function(){return[]}},depCheckedData:{type:Array,default:function(){return[]}},closeUser:{type:Boolean,default:!1},closeDep:{type:Boolean,default:!1},userRequest:Function,userParams:Object},data:function(){return{activeTabName:"user",searchUserInput:"",searchDepInput:"",checkAll:!1,isIndeterminate:!1,popoverContentShow:!1,userLoading:!1,depLoading:!1,userList:[],depShowList:[],breadcrumbList:[],checkedUserDepList:[]}},computed:{userSelectCount:function(){return this.checkedUserDepList.filter(function(e){return"user"==e.type}).length},depSelectCount:function(){return this.checkedUserDepList.filter(function(e){return"dep"==e.type}).length}},watch:{userCheckedData:function(){this.updateCheckInfoByWatch()},depCheckedData:function(){this.updateCheckInfoByWatch()},userRequest:function(){this.getUserList()},userList:{handler:function(){var e=this.userList.filter(function(e){return e.isCheck});this.refreshAllCheck(e.length)},deep:!0,immediate:!0}},created:function(){this.initInfo()},methods:{initInfo:function(){this.checkedUserDepList=this.userCheckedData.map(function(e){return e.type="user",e}).concat(this.depCheckedData.map(function(e){return e.type="dep",e})),this.closeUser?this.closeDep||(this.activeTabName="dep",this.getDepList()):this.getUserList()},tabClick:function(){"dep"==this.activeTabName&&0==this.depShowList.length&&this.getDepList()},userSearchChange:function(e){this.userList=this.userList.map(function(t){return t.hidden=!o.a.match(t.realname,e),t})},depSearchChange:function(e){this.depShowList=this.depShowList.map(function(t){return t.hidden=!o.a.match(t.name,e),t})},getDepList:function(){var e=this;this.depLoading=!0,Object(s.j)({type:"tree"}).then(function(t){e.depShowList=t.data.map(function(t,n,i){return t.type="dep",t.isCheck=e.getItemCheckInfo(t,"dep"),t}),e.breadcrumbList.push({label:"全部",data:e.depShowList}),e.depLoading=!1}).catch(function(){e.depLoading=!1})},enterDepChildren:function(e){var t=this;e.children&&(this.depShowList=[],this.depShowList=e.children.map(function(e,n,i){return e.type="dep",e.hidden=!o.a.match(e.name,t.searchDepInput),e.isCheck=t.getItemCheckInfo(e,"dep"),e}),this.breadcrumbList.push({label:e.label,data:this.depShowList}))},breadcrumbBtn:function(e,t){var n=this;t+1<=this.breadcrumbList.length-1&&this.breadcrumbList.splice(t+1,this.breadcrumbList.length-1),this.depShowList=[],this.depShowList=e.data.map(function(e,t,i){return-1!=e.name.indexOf(n.searchDepInput)?e.hidden=!1:e.hidden=!0,e.isCheck=n.getItemCheckInfo(e,"dep"),e})},depCheckboxChange:function(e,t){this.radio&&(this.checkedUserDepList=e.isCheck?[a()({},e)]:[],this.handleAllCheckStatus(),this.valueChange()),this.radio||this.updateCheckedUserDepListByCheck(e,"dep")},getUserList:function(){var e=this;this.userLoading=!0;var t=s.w,n={};this.userRequest?(t=this.userRequest,n=this.userParams||{}):n={pageType:0},t(n).then(function(t){var n=t.data.list||t.data;e.userList=n.map(function(t){return t.type="user",t.isCheck=e.getItemCheckInfo(t,"user"),t}),e.userLoading=!1}).catch(function(){e.userLoading=!1})},userCheckboxChange:function(e,t){this.radio&&(this.checkedUserDepList=e.isCheck?[a()({},e)]:[],this.handleAllCheckStatus(),this.valueChange()),this.radio||this.updateCheckedUserDepListByCheck(e,"user")},refreshAllCheck:function(e){this.checkAll=e===this.userList.length,this.isIndeterminate=e>0&&e<this.userList.length},handleCheckAllChange:function(e){var t=this.checkedUserDepList.filter(function(e){return"dep"==e.type});this.userList=this.userList.map(function(t){return t.isCheck=e,t}),this.checkedUserDepList=e?t.concat(this.userList):t},updateCheckedUserDepListByCheck:function(e,t){for(var n=-1,i=0;i<this.checkedUserDepList.length;i++){var a=this.checkedUserDepList[i];"user"==a.type&&e.id==a.id&&"user"==t?n=i:"dep"==a.type&&e.id==a.id&&"dep"==t&&(n=i)}-1==n?this.checkedUserDepList.push(e):-1!=n&&this.checkedUserDepList.splice(n,1)},getItemCheckInfo:function(e,t){if(0==this.checkedUserDepList.length)return!1;for(var n=!1,i=0;i<this.checkedUserDepList.length;i++){var a=this.checkedUserDepList[i];if("user"==a.type&&e.id==a.id&&"user"==t){n=!0;break}if("dep"==a.type&&e.id==a.id&&"dep"==t){n=!0;break}}return n},selectDelete:function(e,t){var n=this;this.checkedUserDepList.splice(t,1),"dep"==e.type?this.depShowList=this.depShowList.map(function(e,t,i){return e.isCheck=n.getItemCheckInfo(e,"dep"),e}):this.userList=this.userList.map(function(e,t,i){return e.isCheck=n.getItemCheckInfo(e,"user"),e})},valueChange:function(){this.$emit("select",this.checkedUserDepList.filter(function(e){return"user"==e.type}),this.checkedUserDepList.filter(function(e){return"dep"==e.type}))},clearAll:function(){this.checkedUserDepList=[],this.userList=this.userList.map(function(e){return e.isCheck=!1,e}),this.depShowList=this.depShowList.map(function(e){return e.isCheck=!1,e})},updateCheckInfoByWatch:function(){this.checkedUserDepList=this.userCheckedData.map(function(e){return e.type="user",e}).concat(this.depCheckedData.map(function(e){return e.type="dep",e})),this.handleAllCheckStatus()},handleAllCheckStatus:function(){var e=this;this.depShowList.length&&this.depShowList.forEach(function(t){t.isCheck=e.getItemCheckInfo(t,"dep")}),this.userList.length&&this.userList.forEach(function(t){t.isCheck=e.getItemCheckInfo(t,"user")})}}},c=(n("CPtR"),n("KHd+")),l=Object(c.a)(r,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"employee-department"},[n("div",{staticClass:"select-input"},[e._t("tabs"),e._v(" "),n("el-tabs",{on:{"tab-click":e.tabClick},model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},[e.closeUser?e._e():n("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.userLoading,expression:"userLoading"}],attrs:{label:"员工",name:"user"}},[n("el-input",{staticClass:"search-input",attrs:{placeholder:"搜索员工",size:"small","prefix-icon":"el-icon-search"},on:{input:e.userSearchChange},model:{value:e.searchUserInput,callback:function(t){e.searchUserInput=t},expression:"searchUserInput"}}),e._v(" "),n("div",{staticClass:"search-list"},[n("el-checkbox",{staticClass:"all-check",attrs:{indeterminate:e.isIndeterminate,disabled:e.radio},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),n("div",{staticClass:"checkout-boxs"},e._l(e.userList,function(t,i){return t.hidden?e._e():n("div",{key:i,staticClass:"colleagues-list"},[n("el-checkbox",{on:{change:function(n){e.userCheckboxChange(t,i)}},model:{value:t.isCheck,callback:function(n){e.$set(t,"isCheck",n)},expression:"user.isCheck"}},[n("xr-avatar",{staticClass:"search-img",attrs:{name:t.realname,size:24,src:t.img}}),e._v(" "),n("span",[e._v(e._s(t.realname))])],1)],1)}))],1)],1),e._v(" "),e.closeDep?e._e():n("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.depLoading,expression:"depLoading"}],attrs:{label:"部门",name:"dep"}},[n("el-input",{staticClass:"search-input",staticStyle:{"margin-bottom":"10px"},attrs:{placeholder:"搜索部门",size:"small","prefix-icon":"el-icon-search"},on:{input:e.depSearchChange},model:{value:e.searchDepInput,callback:function(t){e.searchDepInput=t},expression:"searchDepInput"}}),e._v(" "),n("div",{staticClass:"search-list"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},e._l(e.breadcrumbList,function(t,i){return n("el-breadcrumb-item",{key:i},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){e.breadcrumbBtn(t,i)}}},[e._v(e._s(t.label))])])})),e._v(" "),n("div",{staticClass:"checkout-boxs"},e._l(e.depShowList,function(t,i){return t.hidden?e._e():n("div",{key:i,staticClass:"checkout-box"},[n("el-checkbox",{on:{change:function(n){e.depCheckboxChange(t,i)}},model:{value:t.isCheck,callback:function(n){e.$set(t,"isCheck",n)},expression:"depItem.isCheck"}}),e._v(" "),n("div",{on:{click:function(n){e.enterDepChildren(t)}}},[n("span",[e._v(e._s(t.name))]),e._v(" "),t.children?n("span",{staticClass:"el-icon-arrow-right"}):e._e()])],1)}))],1)],1)],1)],2),e._v(" "),!e.radio||e.showPreview?n("div",{staticClass:"checked-content"},[n("div",{staticClass:"checked-top"},[n("span",{staticClass:"select-info"},[e._v("已选择"),n("span",{staticClass:"select-info--num"},[e._v(e._s(e.userSelectCount+e.depSelectCount))]),e._v("项")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:e.clearAll}},[e._v("清空")])],1),e._v(" "),n("div",{staticClass:"select-content"},[n("flexbox",{attrs:{justify:"stretch",wrap:"wrap"}},e._l(e.checkedUserDepList,function(t,i){return n("div",{key:i,staticClass:"select-item text-one-line"},[e._v(e._s(t.realname||t.name)),n("i",{staticClass:"el-icon-close delete-icon",on:{click:function(n){e.selectDelete(t,i)}}})])}))],1)]):e._e()])},[],!1,null,"4825b835",null);l.options.__file="main.vue";t.a=l.exports},jtZb:function(e,t,n){"use strict";t.a=function(e){for(var t=1,n=arguments.length;t<n;t++){var i=arguments[t]||{};for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];void 0!==s&&(e[a]=s)}}return e}},kK4T:function(e,t,n){"use strict";t.a={data:function(){return{priorityList:[{id:3,label:"高",color:"#F95A5A"},{id:2,label:"中",color:"#F7AD3D"},{id:1,label:"低",color:"#67C23A"},{id:0,label:"无",color:"#D8D8D8"}]}},methods:{getPriorityColor:function(e){return 1==e?{color:"#67C23A",label:"低"}:2==e?{color:"#F7AD3D",label:"中"}:3==e?{color:"#F95A5A",label:"高"}:{color:"transparent",label:"无"}}}}},kVVo:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAAGzlLJTAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAq6ADAAQAAAABAAAA3QAAAAATJCntAAATqElEQVR4Ae2dC7QXRR3Hf3tBJJBCyhdKQXZMMctjFnnEk0ploEfLR3jspflGUxE7PTx1tLSsgLTELFNQyyx7mALa8ZX5SlNTC8Q3KKhJIYaIIvf+m9/93+G/d+/O7szuzO7s7nfOgdmdnfntdz/zvfv6784GJNKUWa0W57bSwhlBENgOKsV1yQnbOQJvJDp441Rk4rAPEx05MVIYM7v/7JhCUaRkPCiIb8ClqmDhFsrA4UrhQLcsbi9Z/Vq4xsDp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,t,n){},kkmX:function(e,t,n){"use strict";var i=n("KQfp");n.n(i).a},"krL/":function(e,t,n){},kzw0:function(e,t,n){},l1nQ:function(e,t,n){},lJkg:function(e,t,n){},"lcu+":function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("/861"),o=n("7qmR"),r=n("8GhS"),c=n("Ktth"),l=n.n(c),u={name:"CreateExamineInfo",components:{XhUserCell:r.p},filters:{detail:function(e){return 2==e.status?e.user_id_info.length+"人或签":3==e.status?e.user_id_info.length+"人会签":1==e.status?"负责人主管":4==e.status?"上一级审批人主管":void 0},step:function(e){return"第"+l.a.encodeS(e)+"级"},contentFilters:function(e){return e.map(function(e){return e.realname}).join("、")}},props:{types:{type:String,default:""},typesId:{type:[String,Number],default:""}},data:function(){return{form:{name:""},rules:{name:[{required:!0,message:"审批人不能为空",trigger:"blur"}]},examineInfo:{},draftUser:null}},computed:{},mounted:function(){this.getDetail()},methods:{getDetail:function(){var e=this,t={oa_examine:o.c,crm_contract:s.i,crm_invoice:s.i,crm_receivables:s.i}[this.types],n={};"oa_examine"==this.types?(n.types="oa_examine",n.action="save",n.types_id=this.typesId):(n.id=this.typesId,n.categoryType={crm_contract:1,crm_receivables:2,crm_invoice:3}[this.types],n.types=this.types),t(n).then(function(t){e.examineInfo=t.data||{},0==e.examineInfo.config&&e.examineInfo.examine_user?(e.draftUser={realname:e.examineInfo.examine_user[0].realname,id:e.examineInfo.examine_user[0].id},e.form.name=e.examineInfo.examine_user[0].realname,e.$emit("value-change",a()({},e.examineInfo,{value:[e.draftUser]}))):(e.form.name="",e.draftUser=null,e.$emit("value-change",a()({},e.examineInfo,{value:[]})))}).catch(function(){})},validateField:function(e){var t=this;0==this.examineInfo.config?this.$refs.form.validate(function(n){if(n)e(!0);else{for(var i=0;i<t.$refs.form.fields.length;i++){var a=t.$refs.form.fields[i];if("error"==a.validateState){t.$message.error(a.validateMessage);break}}e(!1)}}):e(!0)},fieldValueChange:function(e){e.value.length?(this.draftUser=e.value[0],this.form.name=this.draftUser.id):(this.draftUser=null,this.form.name=""),this.$emit("value-change",a()({},this.examineInfo,{value:e.value})),this.$refs.form.validateField("name")}}},d=(n("3iNF"),n("KHd+")),p=Object(d.a)(u,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[0==e.examineInfo.config?i("el-form",{ref:"form",staticClass:"crm-create-box",attrs:{model:e.form,rules:e.rules,"label-position":"top"}},[i("el-form-item",{staticClass:"crm-create-item",attrs:{prop:"name"}},[i("div",{staticStyle:{display:"inline-block"},attrs:{slot:"label"},slot:"label"},[i("div",{staticStyle:{margin:"5px 0","font-size":"12px","word-wrap":"break-word","word-break":"break-all"}},[e._v("\n 审核人\n "),i("span",{staticStyle:{color:"#999"}})])]),e._v(" "),i("xh-user-cell",{attrs:{"info-type":e.types,value:e.draftUser?[e.draftUser]:[]},on:{"value-change":e.fieldValueChange}})],1)],1):1==e.examineInfo.config?i("flexbox",{staticClass:"fixed-examine",attrs:{wrap:"wrap"}},e._l(e.examineInfo.stepList,function(t,a){return i("el-popover",{key:a,attrs:{disabled:0==t.user_id_info.length,content:e._f("contentFilters")(t.user_id_info),placement:"bottom",trigger:"hover"}},[i("div",{staticClass:"fixed-examine-item",attrs:{slot:"reference"},slot:"reference"},[i("img",{attrs:{src:n("dZj0")}}),e._v(" "),i("div",{staticClass:"detail"},[e._v(e._s(e._f("detail")(t)))]),e._v(" "),i("div",{staticClass:"step"},[e._v(e._s(e._f("step")(a+1)))])])])})):e._e()],1)},[],!1,null,"52ba0913",null);p.options.__file="CreateExamineInfo.vue";t.a=p.exports},lhZU:function(e,t,n){},lhtO:function(e,t,n){"use strict";var i=n("2n8H");n.n(i).a},llf0:function(e,t,n){"use strict";var i=n("z8ug");n.n(i).a},lylt:function(e,t,n){"use strict";var i=n("bbyH");n.n(i).a},mBRK:function(e,t,n){"use strict";var i=n("YDfX");n.n(i).a},mTxA:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},mXRo:function(e,t,n){"use strict";n.d(t,"h",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"n",function(){return r}),n.d(t,"d",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"o",function(){return u}),n.d(t,"j",function(){return d}),n.d(t,"k",function(){return p}),n.d(t,"m",function(){return h}),n.d(t,"i",function(){return m}),n.d(t,"l",function(){return f}),n.d(t,"f",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"p",function(){return y});var i=n("t3Un");function a(e){return Object(i.a)({url:"oa/event/save",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function s(e){return Object(i.a)({url:"oa/event/delete",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function o(e){return Object(i.a)({url:"oa/event/index",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function r(e){return Object(i.a)({url:"oa/event/update",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function c(e){return Object(i.a)({url:"oa/event/read",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function l(e){return Object(i.a)({url:"oa/event/schedule",method:"post",data:e})}function u(e){return Object(i.a)({url:"oa/event/saveSchedule",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function d(e){return Object(i.a)({url:"oa/event/eventContract",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function p(e){return Object(i.a)({url:"oa/event/eventCustomer",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function h(e){return Object(i.a)({url:"oa/event/eventLeads",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function m(e){return Object(i.a)({url:"oa/event/eventBusiness",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function f(e){return Object(i.a)({url:"oa/event/eventDealBusiness",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function g(e){return Object(i.a)({url:"oa/event/listStatus",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function v(e){return Object(i.a)({url:"oa/event/eventCrm",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function b(e){return Object(i.a)({url:"oa/event/eventTask",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function y(e){return Object(i.a)({url:"admin/users/subordinate",method:"post",data:e})}},mYM5:function(e,t,n){"use strict";var i=n("Pqxw");n.n(i).a},migV:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkJGNkIxREZBNDE2NTExRT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f=n("4XAY"),g={name:"CrmRelativeTable",components:{CRMAllCreate:function(){return Promise.resolve().then(n.bind(null,"8OTK"))}},props:{show:{type:Boolean,default:!1},radio:{type:Boolean,default:!0},crmType:{type:String,default:""},selectedData:{type:Object,default:function(){return{}}},action:{type:Object,default:function(){return{type:"default",data:{}}}}},data:function(){return{loading:!1,searchContent:"",isCreate:!1,scenesList:[],scene_id:"",list:[],fieldList:[],currentPage:1,totalPage:1,otherItems:[],selectedItem:[]}},computed:o()({},Object(r.b)(["crm"]),{canSave:function(){return this.action.hasOwnProperty("showCreate")?this.action.showCreate:this.crm&&this.crm[this.crmType]&&this.crm[this.crmType].save},showSearch:function(){return!this.action.hasOwnProperty("showSearch")||this.action.showSearch},canShowDetail:function(){return this.action.hasOwnProperty("canShowDetail")?this.action.canShowDetail:this.crm&&this.crm[this.crmType]&&this.crm[this.crmType].index},isRelationShow:function(){return"condition"===this.action.type},showScene:function(){return this.action.hasOwnProperty("showScene")?this.action.showScene:!this.isRelationShow&&"product"!=this.crmType}}),watch:{crmType:function(e,t){e!=t&&(this.fieldList=[],this.getFieldList())},action:function(e){this.scene_id="",this.list=[],this.fieldList=[],this.currentPage=1,this.totalPage=1,this.show&&(!this.isRelationShow&&this.showScene?this.getSceneList():this.getFieldList())},show:{handler:function(e){e&&0==this.fieldList.length&&(!this.isRelationShow&&this.showScene?this.getSceneList():this.getFieldList())},deep:!0,immediate:!0},selectedData:function(){this.checkItemsWithSelectedData()}},mounted:function(){},methods:{refreshList:function(){this.currentPage=1,this.getList()},getSceneList:function(){var e=this;this.canShowDetail&&(this.loading=!0,Object(f.s)({types:c.a[this.crmType]}).then(function(t){var n=t.data.list.filter(function(e,t){return 1===e.is_default});e.scenesList=t.data.list,n&&n.length>0?e.scene_id=n[0].scene_id:e.scene_id="",e.scenesList.unshift({scene_id:"",name:"全部"}),e.getFieldList()}).catch(function(){e.loading=!1}))},getFieldList:function(){this.canShowDetail&&(0==this.fieldList.length&&(this.fieldList=this.getDefaultField()),this.getList())},getDefaultField:function(){return"leads"===this.crmType?[{name:"线索名称",field:"name",formType:"leads"},{name:"下次联系时间",field:"next_time",formType:"datetime"},{name:"最后跟进时间",field:"update_time",formType:"datetime"},{name:"创建时间 ",field:"create_time",formType:"datetime"}]:"customer"===this.crmType?[{name:"客户名称",field:"name",formType:"customer"},{name:"邮箱",field:"email",formType:"text"},{name:"下次联系时间",field:"next_time",formType:"datetime"},{name:"最后跟进时间",field:"update_time",formType:"datetime"},{name:"创建时间 ",field:"create_time",formType:"datetime"}]:"contacts"===this.crmType?[{name:"姓名",field:"name",formType:"contacts"},{name:"手机",field:"mobile",formType:"mobile"},{name:"电话",field:"telephone",formType:"text"},{name:"是否关键决策人",field:"decision",formType:"text"},{name:"职务",field:"post",formType:"text"}]:"business"===this.crmType?[{name:"商机名称",field:"name",formType:"text"},{name:"商机金额",field:"money",formType:"text"},{name:"客户名称",field:"customer_name",formType:"text"},{name:"商机状态组 ",field:"type_id_info",formType:"text"},{name:"状态 ",field:"status_id_info",formType:"text"}]:"contract"===this.crmType?[{name:"合同名称",field:(this.isRelationShow,"name"),formType:"text"},{name:"合同编号",field:"num",formType:"text"},{name:"客户名称",field:"customer_name",formType:"text"},{name:"合同金额",field:"money",formType:"text"},{name:"开始日期",field:"start_time",formType:"text"},{name:"结束日期",field:"end_time",formType:"text"}]:"product"===this.crmType?[{name:"产品名称",field:"name",formType:"text"},{name:"单位",field:"unit",formType:"text"},{name:"价格",field:"price",formType:"text"},{name:"产品类别",field:"category_name",formType:"text"}]:"invoiceTitle"===this.crmType?[{field:"title_type",formType:"text",name:"抬头类型"},{field:"invoice_title",formType:"text",name:"开票抬头"},{field:"tax_number",formType:"text",name:"纳税人识别号"},{field:"deposit_bank",formType:"text",name:"开户行"},{field:"deposit_account",formType:"text",name:"开户账号"},{field:"deposit_address",formType:"text",name:"开票地址"},{field:"phone",formType:"text",name:"电话"}]:void 0},getList:function(){var e=this;this.loading=!0;var t=this.getIndexRequest(),n={search:this.searchContent};if(this.scene_id&&(n.scene_id=this.scene_id),this.isRelationShow){if(this.action.data.moduleType&&(t={customer:{business:u.x,contacts:u.y,contract:u.z},contacts:{business:d.i}}[this.action.data.moduleType][this.crmType],n[this.action.data.moduleType+"_id"]=this.action.data[this.action.data.moduleType+"Id"]||this.action.data[this.action.data.moduleType+"_id"],this.action.data.params))for(var i in this.action.data.params)n[i]=this.action.data.params[i]}else n.page=this.currentPage,n.limit=10;this.action.request&&(t=this.action.request),this.action.params&&(n=o()({},n,this.action.params)),"product"===this.crmType&&(n.is_status=1),t(n).then(function(t){e.list=t.data.list,e.selectedData[e.crmType]?e.checkItemsWithSelectedData():e.list=t.data.list,e.totalPage=Math.ceil(t.data.dataCount/10),e.loading=!1}).catch(function(){e.loading=!1})},checkItemsWithSelectedData:function(){var e=this,t=this.selectedData[this.crmType]?this.selectedData[this.crmType].map(function(e){return e.has=!1,e}):[],n=[];this.otherItems=[],this.list.forEach(function(i,a){t.forEach(function(t,a){i[e.crmType+"_id"]==t[e.crmType+"_id"]&&(t.has=!0,n.push(i))})}),t.forEach(function(t,n){t.has||e.otherItems.push(t)}),this.$nextTick(function(){e.$refs.relativeTable.clearSelection(),n.forEach(function(t){e.$refs.relativeTable.toggleRowSelection(t,!0)})})},getIndexRequest:function(){return"leads"===this.crmType?l.g:"customer"===this.crmType?u.k:"contacts"===this.crmType?d.g:"business"===this.crmType?p.g:"contract"===this.crmType?h.g:"product"===this.crmType?m.j:void 0},fieldFormatter:function(e,t,n){return"invoiceTitle"===this.crmType&&"title_type"==t.property?{1:"单位",2:"个人"}[e[t.property]]:""===e[t.property]||null===e[t.property]?"--":e[t.property]},sceneSelect:function(){this.getList()},handleRowClick:function(e,t,n){},handleSelectionChange:function(e){var t=this;this.radio?(e.forEach(function(n,i){i!==e.length-1&&t.$refs.relativeTable.toggleRowSelection(n,!1)}),0===e.length?this.selectedItem=[]:this.selectedItem=1===e.length?e:[e[e.length-1]]):this.selectedItem=this.otherItems.concat(e),this.$emit("changeCheckout",{data:this.selectedItem,type:this.crmType})},clearAll:function(){this.$refs.relativeTable.clearSelection()},selectAll:function(){},searchInput:function(){this.currentPage=1,this.totalPage=1,this.getList()},changePage:function(e){"up"==e?this.currentPage=this.currentPage-1:"down"==e&&(this.currentPage=this.currentPage+1),this.currentPage<=this.totalPage&&this.currentPage>=1&&this.getList()}}},v=(n("0vx0"),n("KHd+")),b=Object(v.a)(g,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],staticClass:"cr-body-content",attrs:{"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"}},[n("flexbox",{staticClass:"content-header"},[e.showScene?[n("div",[e._v("场景:")]),e._v(" "),n("el-select",{on:{change:e.getList},model:{value:e.scene_id,callback:function(t){e.scene_id=t},expression:"scene_id"}},e._l(e.scenesList,function(e){return n("el-option",{key:e.scene_id,attrs:{label:e.name,value:e.scene_id}})}))]:e._e(),e._v(" "),e.showSearch?n("el-input",{staticClass:"search-container",model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchInput(t)}},slot:"append"})],1):e._e(),e._v(" "),e.canSave?n("el-button",{staticClass:"xr-btn--orange",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(t){e.isCreate=!0}}},[e._v("新建")]):e._e()],2),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"relativeTable",staticStyle:{width:"100%"},attrs:{data:e.list,height:250,stripe:"",border:"","highlight-current-row":""},on:{"select-all":e.selectAll,"selection-change":e.handleSelectionChange,"row-click":e.handleRowClick}},[n("el-table-column",{attrs:{"show-overflow-tooltip":"",type:"selection",align:"center",width:"55"}}),e._v(" "),e._l(e.fieldList,function(t,i){return n("el-table-column",{key:i,attrs:{prop:t.field,label:t.name,width:150,formatter:e.fieldFormatter,"show-overflow-tooltip":""}})}),e._v(" "),n("el-table-column")],2),e._v(" "),n("div",{staticClass:"table-footer"},[n("el-button",{attrs:{disabled:e.currentPage<=1},nativeOn:{click:function(t){e.changePage("up")}}},[e._v("上一页")]),e._v(" "),n("el-button",{attrs:{disabled:e.currentPage>=e.totalPage},nativeOn:{click:function(t){e.changePage("down")}}},[e._v("下一页")])],1),e._v(" "),e.isCreate?n("c-r-m-all-create",{attrs:{"crm-type":e.crmType},on:{"save-success":e.getList,close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"21132e75",null);b.options.__file="CrmRelativeTable.vue";var y=b.exports,k=n("7Qib"),w={name:"CrmRelatieve",components:{CrmRelativeTable:y},props:{radio:{type:Boolean,default:!0},acceptEmail:{type:String,default:""},crmType:{type:String,default:""},showTypes:{type:Array,default:function(){return["customer","contacts","leads","business","contract","product"]}},selectedData:{type:Object,default:function(){return{}}},show:{type:Boolean,default:!0},action:{type:Object,default:function(){return{type:"default",data:{}}}}},data:function(){return{leftType:"customer",leftSides:[],currentSelectedData:{}}},computed:{},watch:{selectedData:function(e){this.handleCurrentSelectData(e)},show:function(e){e&&this.handleCurrentSelectData(this.selectedData)}},mounted:function(){var e={customer:{name:"客户",type:"customer"},contacts:{name:"联系人",type:"contacts"},leads:{name:"线索",type:"leads"},business:{name:"商机",type:"business"},contract:{name:"合同",type:"contract"},product:{name:"产品",type:"product"},invoiceTitle:{name:"发票抬头",type:"invoiceTitle"}};if(this.crmType)this.leftType=this.crmType,this.leftSides.push(e[this.crmType]);else for(var t=0;t<this.showTypes.length;t++){var n=this.showTypes[t];this.leftSides.push(e[n])}this.currentSelectedData=Object(k.t)(this.selectedData)},methods:{handleCurrentSelectData:function(e){if(e&&a()(e).length)this.currentSelectedData=Object(k.t)(e);else{var t={};if(this.crmType)t[this.crmType]=[],this.currentSelectedData=t;else{for(var n=0;n<this.showTypes.length;n++){t[this.showTypes[n]]=[]}this.currentSelectedData=t}}},refreshList:function(){this.$refs["crm"+this.crmType][0].refreshList()},sideClick:function(e){this.leftType=e.type},clearAll:function(){this.crmType&&this.$refs["crm"+this.crmType][0].clearAll()},selectAll:function(){},closeView:function(){this.$emit("close")},checkCrmTypeInfos:function(e){this.currentSelectedData[e.type]=e.data},confirmClick:function(){this.crmType?"receive"==this.acceptEmail?this.$emit("changeCheckout",{data:this.currentSelectedData[this.crmType],type:"receive"}):"sent"==this.acceptEmail?this.$emit("changeCheckout",{data:this.currentSelectedData[this.crmType],type:"sent"}):this.$emit("changeCheckout",{data:this.currentSelectedData[this.crmType]?this.currentSelectedData[this.crmType]:[]}):this.$emit("changeCheckout",{data:this.currentSelectedData}),this.$emit("close")},getMenuCrmNum:function(e){return this.currentSelectedData[e]?this.currentSelectedData[e].length:0},getTitle:function(){return"leads"==this.crmType?"关联线索模块":"customer"==this.crmType?"关联客户模块":"contacts"==this.crmType?"关联联系人模块":"business"==this.crmType?"关联商机模块":"product"==this.crmType?"关联产品模块":"contract"==this.crmType?"关联合同模块":"invoiceTitle"==this.crmType?"关联发票抬头":"关联相关信息"}}},_=(n("u63K"),Object(v.a)(w,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"cr-contianer"},[n("div",{staticClass:"title"},[e._v(e._s(e.getTitle()))]),e._v(" "),n("div",{staticStyle:{height:"100%",position:"relative"}},[""==e.crmType?n("div",{staticClass:"cr-body-side"},e._l(e.leftSides,function(t,i){return n("div",{key:i,staticClass:"side-item",class:e.leftType===t.type?"side-item-select":"side-item-default",on:{click:function(n){e.sideClick(t)}}},[e._v(e._s(t.name)+"\n "),e.getMenuCrmNum(t.type)?n("span",{staticClass:"side-item__num"},[e._v(e._s("("+e.getMenuCrmNum(t.type)+")"))]):e._e()])})):e._e(),e._v(" "),n("div",{style:{"padding-left":""==e.crmType?"150px":"0"}},e._l(e.leftSides,function(t,i){return n("crm-relative-table",{directives:[{name:"show",rawName:"v-show",value:t.type==e.leftType,expression:"item.type == leftType"}],key:i,ref:"crm"+t.type,refInFor:!0,attrs:{show:e.show&&t.type==e.leftType,radio:e.radio,"crm-type":t.type,"selected-data":e.currentSelectedData,action:e.action},on:{changeCheckout:e.checkCrmTypeInfos}})}))]),e._v(" "),n("div",{staticClass:"dialog-footer"},[n("el-button",{on:{click:e.closeView}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.confirmClick}},[e._v("确定")])],1)])},[],!1,null,"50b9b58a",null));_.options.__file="CrmRelative.vue";t.a=_.exports},mqBO:function(e,t,n){},mvNj:function(e,t,n){"use strict";var i=n("21Uy");n.n(i).a},n0pr:function(e,t,n){"use strict";var i=n("lJkg");n.n(i).a},n5d0:function(e,t,n){},o0dq:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},oYx3:function(e,t,n){"use strict";var i=n("Kw5r"),a=n("jE9Z"),s=n("QbLZ"),o=n.n(s),r=n("KTTK");n("t3Un");var c=n("4XAY"),l=n("SApG"),u=n("Ew9n"),d=n("jM2j"),p={name:"MessageCell",components:{},props:{data:Object,dataIndex:Number},data:function(){return{}},computed:{typeObj:function(){var e="";return this.data.label&&this.data.label<=5?e=["task","log","examine","announcement","schedule"][this.data.label-1]:[1,2,3].includes(this.data.type)?e="task":[4,5,34].includes(this.data.type)?e="log":[6,7,8,2500].includes(this.data.type)?e="examine":[9].includes(this.data.type)?e="announcement":[12,13,23,11,30,33].includes(this.data.type)?e="contract":[15,16,2700,14].includes(this.data.type)?e="receivables":[17,1500,21,29,32].includes(this.data.type)?e="customer":[18,1700].includes(this.data.type)?e="contacts":[19,1900].includes(this.data.type)?e="leads":[20,2100].includes(this.data.type)?e="product":[22,28,31].includes(this.data.type)?e="business":[25,26,24].includes(this.data.type)?e="invoice":[10].includes(this.data.type)&&(e="schedule"),{leads:{icon:"wk wk-leads",color:"#6995FF",type:"leads"},customer:{icon:"wk wk-customer",color:"#6995FF",type:"customer"},contacts:{icon:"wk wk-contacts",color:"#6995FF",type:"contacts"},business:{icon:"wk wk-business",color:"#6995FF",type:"business"},contract:{icon:"wk wk-contract",color:"#6995FF",type:"contract"},receivables:{icon:"wk wk-receivables",color:"#6995FF",type:"receivables"},product:{icon:"wk wk-product",color:"#6995FF",type:"product"},log:{icon:"wk wk-log",color:"#6995FF",type:"log"},examine:{icon:"wk wk-approve",color:"#6995FF",type:"examine"},task:{icon:"wk wk-o-task",color:"#6995FF",type:"task"},announcement:{icon:"wk wk-announcement",color:"#6995FF",type:"announcement"},schedule:{icon:"wk wk-schedule",color:"#6995FF",type:"schedule"},invoice:{icon:"wk wk-invoice",color:"#6995FF",type:"invoice"}}[e]},leftContent:function(){return{1:this.data.user_name+"将",2:this.data.user_name+"邀请您参与",3:this.data.user_name+"将",4:this.data.user_name+"回复了您的",5:this.data.user_name+"将日志",6:this.data.user_name+"提交 审批,请及时处理。",7:this.data.user_name+"拒绝您的",8:this.data.user_name+"已经审核通过您的",9:"您有一个新公告",10:this.data.user_name+"邀请您参与",12:this.data.user_name+"拒绝您的",13:this.data.user_name+"已经审核通过您的",14:this.data.user_name+"提交 ",15:this.data.user_name+"拒绝您的",16:this.data.user_name+"已经审核通过您的",17:this.data.user_name+"导入客户数据"+this.data.title+"条,"+this.getImportContent(this.data),1500:this.data.user_name+"取消导入客户数据,已导入"+this.data.title+"条,"+this.getImportContent(this.data),18:this.data.user_name+"导入联系人数据"+this.data.title+"条,"+this.getImportContent(this.data),1700:this.data.user_name+"取消导入联系人数据,已导入"+this.data.title+"条,"+this.getImportContent(this.data),19:this.data.user_name+"导入线索数据"+this.data.title+"条,"+this.getImportContent(this.data),1900:this.data.user_name+"取消导入线索数据,已导入"+this.data.title+"条,"+this.getImportContent(this.data),20:this.data.user_name+"导入产品数据"+this.data.title+"条,"+this.getImportContent(this.data),2100:this.data.user_name+"取消导入产品数据,已导入"+this.data.title+"条,"+this.getImportContent(this.data),22:this.data.user_name+"将您添加为商机",21:this.data.user_name+"将您添加为客户",23:this.data.user_name+"将您添加为合同",2500:this.data.user_name+"提交了",11:this.data.user_name+"提交了",2700:this.data.user_name+"提交了",28:this.data.user_name+"退出了您商机",29:this.data.user_name+"退出了您客户",30:this.data.user_name+"退出了您合同",31:this.data.user_name+"将您移出了商机",32:this.data.user_name+"将您移出了客户",33:this.data.user_name+"将您移出了合同",34:this.data.user_name+"回复了您评论的日志",25:this.data.user_name+"拒绝您的",26:this.data.user_name+"已经审核通过您的",24:this.data.user_name+"提交了",27:this.data.user_name+"项目任务导入"}[this.data.type]},centerCotent:function(){if(this.isImportType){var e=this.data.content.split(",")||[];return Number(e[0]||0)>0?0===this.data.valid?"已失效":"点击下载错误数据":""}return"《"+this.data.title+"》"},isInvalid:function(){return!!this.isImportType&&0==this.data.valid},isImportType:function(){return this.data.type>=17&&this.data.type<=20||27==this.data.type},rightContent:function(){return{1:"任务分配给您,请及时查看",2:"任务,请及时查看",3:"任务标记结束",4:"日志:“"+this.data.content+"”,请及时查看",5:"发送给您,请及时查看",6:",请及时查看",7:",拒绝理由:“"+this.data.content+"”,请及时处理",8:",请及时查看",9:",请及时查看",10:"的日程,"+this.getStartTime(this.data.content)+"请及时查看",12:"合同审批,拒绝理由:“"+this.data.content+"”,请及时处理",13:"合同,请及时查看",14:" 回款审批待您处理。",15:"回款审批,拒绝理由:“"+this.data.content+"”,请及时处理",16:"回款,请及时查看",17:"",1500:"",18:"",1700:"",19:"",1900:"",20:"",2100:"",22:"的成员",21:"的成员",23:"的成员",2500:",请及时处理",11:"合同审批,请及时处理",2700:"回款审批,请及时处理",28:"的团队",29:"的团队",30:"的团队",31:"的团队",32:"的团队",33:"的团队",34:":“"+this.data.content+"”,请及时查看",25:",拒绝理由:“"+this.data.content+"”,请及时处理",26:"发票,请及时查看",24:"发票审批,请及时处理",27:""}[this.data.type]}},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{enterDetail:function(){this.isInvalid||(this.isImportType?this.$emit("download",this.data,this.dataIndex):(0==this.data.is_read&&this.$emit("read",this.data.message_id,this.dataIndex),this.$emit("detail",this.typeObj.type,this.data.action_id,this.dataIndex,this.data)))},messageReadClick:function(){this.$emit("read",this.data.message_id,this.dataIndex)},messageDeleteClick:function(){this.$emit("delete",this.data.message_id,this.dataIndex)},getStartTime:function(e){if(10==this.data.type){var t=e||{type:0,value:""};return t.type?"将于"+t.value+["","分钟","小时","天"][t.type]+"后开始, ":""}},getImportContent:function(e){e.title;var t=e.content;if([17,1500,18,1700,19,1900,20,2100,50].includes(this.data.type)){var n=t.split(",")||[],i=(Number(n[0]||"0"),Number(n[1]||"0")),a=Number(n[0]||"0");return"覆盖"+i+"条,导入成功"+Number(n[2]||"0")+"条,导入失败"+a+"条。"}}}},h=(n("0iqW"),n("KHd+")),m=Object(h.a)(p,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("flexbox",{staticClass:"message-cell",class:{"is-unread":0==e.data.is_read},attrs:{align:"stretch"}},[n("div",{staticClass:"message-cell__hd"},[n("i",{class:e.typeObj.icon})]),e._v(" "),n("div",{staticClass:"message-cell__bd"},[n("span",[e._v(e._s(e.leftContent))]),e._v(" "),n("span",{class:[{"is-invalid":e.isInvalid},"click-content"],on:{click:e.enterDetail}},[e._v(e._s(e.centerCotent))]),e._v(" "),n("span",[e._v(e._s(e.rightContent))])]),e._v(" "),n("div",{staticClass:"message-cell__ft"},[n("div",[e._v(e._s(e._f("formatTime")(e.data.create_time))+" ")]),e._v(" "),n("div",{staticClass:"handle"},[n("span",{staticClass:"check",on:{click:e.messageReadClick}},[e._v("标记已读")]),e._v(" "),n("span",{staticClass:"delete",on:{click:e.messageDeleteClick}},[e._v("删除")])])])])},[],!1,null,"367ce02d",null);m.options.__file="MessageCell.vue";var f=m.exports,g=n("7Qib"),v=n("L2JU"),b={name:"SystemMessage",components:{SlideView:u.a,NewDialog:d.a,MessageCell:f,TodayListDetail:l.a,CRMFullScreenDetail:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-10ff")]).then(n.bind(null,"3z7q"))}},props:{visible:{type:Boolean,default:!1},onlyAnnouncement:{type:Boolean,default:!1},unreadNums:Object},data:function(){return{showTodayDetail:!1,todayDetailData:{},showDetail:!1,menuLabel:"all",announcementAddShow:!1,list:[],loading:!1,noMore:!1,scrollKey:Date.now(),page:1,isUnRead:!1,showFullDetail:!1,relationID:"",relationCrmType:""}},computed:o()({},Object(v.b)(["oa","crm","project"]),{permissionSave:function(){return this.oa&&this.oa.announcement&&this.oa.announcement.save},title:function(){return this.onlyAnnouncement?this.unreadNums.announceCount&&this.unreadNums.announceCount>0?"公告("+this.unreadNums.announceCount+"":"公告":this.unreadNums.allCunt>0?"通知("+this.unreadNums.allCunt+"":"通知"},scrollDisabled:function(){return this.loading||this.noMore},labelValue:function(){return this.onlyAnnouncement?4:"all"==this.menuLabel?"":this.menuLabel},contentHeight:function(){return this.menuList.length>7?"calc(100% - 110px)":"calc(100% - 155px)"},menuList:function(){var e=[{name:"全部",label:"all",countKey:"allCount"}];return this.oa&&this.oa.taskExamine&&e.push({name:"办公审批",label:3,countKey:"examineCount"}),(this.oa&&this.oa.taskExamine||this.project)&&e.push({name:"任务",label:1,countKey:"taskCount"}),this.oa&&this.oa.log&&e.push({name:"日志",label:2,countKey:"logCount"}),this.crm&&e.push({name:"客户管理",label:6,countKey:"crmCount"}),this.oa&&this.oa.calendar&&e.push({name:"日程",label:5,countKey:"eventCount"}),e},currentMenu:function(){var e=this;return this.menuList.find(function(t){return t.label===e.menuLabel})}}),watch:{visible:{handler:function(e){this.showDetail=e,e&&(this.$el.style.zIndex=Object(g.q)(),this.refreshList())},immediate:!0},showDetail:function(e){var t=this;e||setTimeout(function(){t.$emit("update:visible",!1)},350)}},mounted:function(){document.body.appendChild(this.$el),this.$el.addEventListener("click",this.handleDocumentClick,!1)},beforeDestroy:function(){this.$el&&this.$el.parentNode&&(this.$el.parentNode.removeChild(this.$el),this.$el.removeEventListener("click",this.handleDocumentClick,!1))},methods:{todayHandle:function(){this.$bus.emit("handleSuccess"),this.showTodayDetail=!1},createNotice:function(){this.announcementAddShow=!0},announcementSubmiteSuccess:function(){var e=this;setTimeout(function(){e.refreshList(),e.$emit("update-count")},1e3)},menuClick:function(e){this.menuLabel=e,this.refreshList()},refreshList:function(){this.page=1,this.list=[],this.noMore=!1,this.scrollKey=Date.now()},getList:function(){var e=this;this.loading=!0;var t={page:this.page,limit:15,label:this.labelValue};this.isUnRead&&(t.is_read=0),Object(r.r)(t).then(function(n){e.loading=!1,e.labelValue==t.label?(e.noMore||(1==e.page?e.list=n.data.page.list:e.list=e.list.concat(n.data.page.list),e.page++),e.noMore=n.data.page.lastPage):e.refreshList()}).catch(function(){e.noMore=!0,e.loading=!1})},checkCRMDetail:function(e,t,n,i){"schedule"===e?(this.relationID=t,i.content&&(this.todayDetailData=i.content),this.showTodayDetail=!0):(this.relationID=t,this.relationCrmType=e,this.showFullDetail=!0)},downloadError:function(e){Object(c.f)({name:"导入错误数据",path:e.error_file_path}).then(function(e){Object(g.c)(e)}).catch(function(){})},readMessageClick:function(e,t){var n=this;Object(r.s)({message_id:e}).then(function(e){n.list[t].is_read=1,n.$emit("update-count")}).catch(function(){})},deleteMessageClick:function(e,t){var n=this;this.$confirm("确定删除这条消息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r.q)({message_id:e}).then(function(e){n.list.splice(t,1),n.$emit("update-count"),n.$message.success("操作成功")}).catch(function(){})}).catch(function(){n.$message({type:"info",message:"已取消操作"})})},handleCommand:function(e){"delete"===e?this.allDeleteClick():this.allMarkDoneClick()},allMarkDoneClick:function(){var e=this;Object(r.t)({label:this.labelValue}).then(function(t){e.list.forEach(function(e){e.is_read=1}),e.$emit("update-count")}).catch(function(){})},allDeleteClick:function(){var e=this;if(this.currentMenu){var t="all"==this.currentMenu.label?"":this.currentMenu.name;this.$confirm("确定删除全部"+t+"已读消息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r.p)({label:e.labelValue}).then(function(t){e.refreshList(),e.$emit("update-count"),e.$message.success("操作成功")}).catch(function(){})}).catch(function(){e.$message({type:"info",message:"已取消操作"})})}},hiddenView:function(){this.showDetail=!1},handleDocumentClick:function(e){e.stopPropagation(),this.$el==e.target&&(this.showDetail=!1)}}},y=(n("8uO1"),Object(h.a)(b,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"full-container"},[e.showDetail?n("slide-view",{staticClass:"d-view",attrs:{"show-close":!1,"no-listener-class":["bell-message-hook"]},on:{close:e.hiddenView}},[n("div",{staticClass:"sm-main"},[n("div",{staticClass:"sm-main__hd"},[n("span",{staticClass:"title"},[e._v(e._s(e.title))]),e._v(" "),e.permissionSave&&e.onlyAnnouncement?n("el-button",{staticClass:"notice-btn",attrs:{icon:"el-icon-plus",type:"text"},on:{click:e.createNotice}},[e._v("新建公告")]):e._e()],1),e._v(" "),e.onlyAnnouncement?e._e():n("flexbox",{staticClass:"menu",attrs:{wrap:"wrap"}},e._l(e.menuList,function(t,i){return n("el-badge",{key:i,attrs:{value:e.unreadNums[t.countKey],hidden:!e.unreadNums[t.countKey]||0==e.unreadNums[t.countKey],max:99}},[n("el-button",{class:{"is-current":e.menuLabel==t.label},attrs:{type:"primary"},nativeOn:{click:function(n){e.menuClick(t.label)}}},[e._v(e._s(t.name))])],1)})),e._v(" "),n("div",{staticClass:"sm-main__bd",style:{height:e.contentHeight}},[n("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.getList,expression:"getList"}],key:e.scrollKey,attrs:{"infinite-scroll-distance":"100","infinite-scroll-disabled":"scrollDisabled"}},e._l(e.list,function(t,i){return n("message-cell",{key:i,attrs:{data:t,"data-index":i},on:{detail:e.checkCRMDetail,download:e.downloadError,read:e.readMessageClick,delete:e.deleteMessageClick}})})),e._v(" "),e.loading?n("p",{staticClass:"scroll-bottom-tips"},[e._v("加载中...")]):e._e(),e._v(" "),e.noMore?n("p",{staticClass:"scroll-bottom-tips"},[e._v("没有更多了")]):e._e()]),e._v(" "),n("flexbox",{staticClass:"sm-main__ft"},[n("div",{staticClass:"switch-read"},[n("el-switch",{on:{change:e.refreshList},model:{value:e.isUnRead,callback:function(t){e.isUnRead=t},expression:"isUnRead"}}),e._v(" "),n("span",{staticClass:"switch-read__title"},[e._v("仅显示未读消息")])],1),e._v(" "),n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[n("i",{staticClass:"el-icon-more more"}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{icon:"el-icon-check",command:"read"}},[e._v(e._s("全部"+("all"==e.currentMenu.label?"":e.currentMenu.name)+"标记为已读"))]),e._v(" "),n("el-dropdown-item",{attrs:{icon:"wk wk-s-delete",command:"delete"}},[e._v(e._s("删除"+e.currentMenu.name+"已读消息"))])],1)],1)],1)],1)]):e._e(),e._v(" "),e.announcementAddShow?n("new-dialog",{on:{onSubmit:e.announcementSubmiteSuccess,close:function(t){e.announcementAddShow=!1}}}):e._e(),e._v(" "),n("c-r-m-full-screen-detail",{attrs:{visible:e.showFullDetail,"crm-type":e.relationCrmType,id:e.relationID},on:{"update:visible":function(t){e.showFullDetail=t}}}),e._v(" "),n("today-list-detail",{attrs:{id:e.relationID,"show-today-detail":e.showTodayDetail,"today-detail-data":e.todayDetailData},on:{deleteSuccess:e.todayHandle,createSuccess:e.todayHandle,close:function(t){e.showTodayDetail=!1}}})],1)},[],!1,null,"b3de9b58",null));y.options.__file="SystemMessage.vue";var k=y.exports,w=n("2nGb"),_=n("t2rG"),C=n.n(_),A={name:"NavManager",components:{Draggable:C.a},props:{collapse:Boolean,topModule:Array},data:function(){return{zIndex:Object(g.q)(),loading:!1,isEdit:!1,topList:[],allList:[]}},computed:o()({},Object(v.b)(["userInfo","bi","crm","manage","oa","project","headerModule"]),{containerLeft:function(){return this.collapse?"79px":"215px"},topModules:function(){return this.topList.map(function(e){return e.module})},allItemsObj:function(){var e={};return this.crm&&(e.crm={title:"客户管理",type:1,module:"crm",path:"/crm",icon:"wk wk-customer",fontSize:"17px"}),this.oa&&this.oa.taskExamine&&(e.taskExamine={title:"任务/审批",type:4,module:"taskExamine",path:"/taskExamine",icon:"wk wk-office",fontSize:"16px"}),this.oa&&this.oa.log&&(e.log={title:"日志",type:3,module:"log",path:"/workLog",icon:"wk wk-log",fontSize:"17px"}),this.oa&&this.oa.book&&this.oa.book.index&&(e.book={title:"通讯录",type:6,module:"book",path:"/addressBook",icon:"wk wk-address-book",fontSize:"17px"}),this.project&&(e.project={title:"项目管理",type:2,module:"project",path:"/project",icon:"wk wk-project",fontSize:"15px"}),this.bi&&(e.bi={title:"商业智能",type:5,path:"/bi",module:"bi",icon:"wk wk-business-intelligence",fontSize:"18px"}),this.oa&&this.oa.calendar&&(e.calendar={title:"日历",type:8,module:"calendar",path:"/calendar/index",icon:"wk wk-calendar",fontSize:"20px"}),e}}),watch:{},created:function(){var e=[];for(var t in this.allItemsObj)e.push(this.allItemsObj[t]);this.allList=e,this.getHeaderModelSortList()},mounted:function(){},beforeDestroy:function(){},methods:{getHeaderModelSortList:function(){if(this.headerModule.length){for(var e=[],t=0;t<this.headerModule.length;t++){var n=this.headerModule[t],i=this.allItemsObj[n];i&&e.length<8&&e.push(i)}this.topList=e}else{var a=[];for(var s in this.allItemsObj)a.length<8&&a.push(this.allItemsObj[s]);this.topList=a}},saveClick:function(){var e=this,t=this.topList.map(function(e){return e.module});this.loading=!0,Object(w.b)(t).then(function(t){e.isEdit=!1,e.$store.dispatch("WKHeaderModule").then(function(t){e.$message.success("操作成功"),e.loading=!1,e.$emit("change")}).catch(function(){e.loading=!1})}).catch(function(){e.loading=!1})},isHasSelect:function(e){return this.topModules.includes(e)},topModuleDelete:function(e,t){this.topList.length>1&&this.topList.splice(t,1)},moduleTopClick:function(e,t){this.topList.length<8&&this.topList.push(e)},selectClick:function(e){e.future||this.isEdit||this.$emit("select",e)}}},x=(n("aYNI"),Object(h.a)(A,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"nav-manager",style:{"z-index":e.zIndex,left:e.containerLeft}},[n("div",{staticClass:"nav-manager__content"},[n("div",{staticClass:"nav-section"},[n("div",{staticClass:"nav-section__title",attrs:{title:"123123"}},[e._v("全部应用")]),e._v(" "),n("flexbox",{staticClass:"nav-section__content",attrs:{wrap:"wrap"}},e._l(e.allList,function(t,i){return n("div",{key:i,staticClass:"nav-section-item",class:{"is-future":t.future},on:{click:function(n){e.selectClick(t)}}},[n("div",{staticClass:"nav-section-item__icon"},[n("i",{class:t.icon})]),e._v(" "),n("div",{staticClass:"nav-section-item__label"},[e._v(e._s(t.title))]),e._v(" "),e.isEdit&&e.topList.length<8&&!t.future&&!e.isHasSelect(t.module)?n("i",{staticClass:"el-icon-circle-plus is-handle",on:{click:function(n){n.stopPropagation(),e.moduleTopClick(t,i)}}}):e._e(),e._v(" "),t.future?n("span",{staticClass:"span-future"},[e._v(e._s(t.futureLabel))]):e._e()])}))],1),e._v(" "),n("div",{staticClass:"nav-section"},[n("div",{staticClass:"nav-section__title"},[e._v("置顶应用"),n("span",{staticClass:"nav-section__tips"},[e._v("最多可设置8个置顶应用可通过拖拽进行排列")]),e._v(" "),e.isEdit?n("el-button",{attrs:{type:"primary"},on:{click:e.saveClick}},[e._v("保存")]):n("el-button",{on:{click:function(t){e.isEdit=!e.isEdit}}},[e._v("编辑")])],1),e._v(" "),n("draggable",{staticClass:"vux-flexbox nav-section__content",staticStyle:{"flex-wrap":"wrap"},attrs:{options:{dragClass:"sortable-drag",forceFallback:!1,disabled:!e.isEdit}},model:{value:e.topList,callback:function(t){e.topList=t},expression:"topList"}},e._l(e.topList,function(t,i){return n("div",{key:i,staticClass:"nav-section-item",on:{click:function(n){e.selectClick(t)}}},[n("div",{staticClass:"nav-section-item__icon"},[n("i",{class:t.icon})]),e._v(" "),n("div",{staticClass:"nav-section-item__label"},[e._v(e._s(t.title))]),e._v(" "),e.isEdit?n("i",{staticClass:"el-icon-remove is-handle",on:{click:function(n){n.stopPropagation(),e.topModuleDelete(t,i)}}}):e._e()])}))],1)])])])},[],!1,null,"345c6c52",null));x.options.__file="NavManager.vue";var j=x.exports,T=n("XJYT"),I=n("JqEL"),D={components:{SystemMessage:k,NavManager:j},props:{navIndex:{type:[Number,String],default:0}},data:function(){return{unreadNums:{allCount:0,announceCount:0,crmCount:0,examineCount:0,eventCount:0,logCount:0,taskCount:0},mesOnlyAnnouncement:!1,sysMessageShow:!1,intervalId:null,type:0,items:[],showItems:[],hiddenItems:[],navManagerShow:!1,isNewest:!1}},computed:o()({},Object(v.b)(["userInfo","lang","logo","crm","bi","manage","oa","project","navActiveIndex","collapse","headerModule"]),{moreMenu:function(){return[{command:"baseInfo",divided:!1,label:"基本信息",icon:"wk wk-user"},{command:"help",divided:!0,label:"帮助中心",icon:"wk wk-help"},{command:"logOut",divided:!1,label:"退出登录",icon:"wk wk-logout"},{command:"version",divided:!1,label:"版本 "+WKConfig.version,icon:"wk wk-version",disabled:!0}]},allItemsObj:function(){var e={};return this.crm&&(e.crm={title:"客户管理",type:1,module:"crm",path:"/crm",icon:"wk wk-customer",fontSize:"17px"}),this.oa&&this.oa.taskExamine&&(e.taskExamine={title:"任务/审批",type:4,module:"taskExamine",path:"/taskExamine",icon:"wk wk-office",fontSize:"16px"}),this.oa&&this.oa.log&&(e.log={title:"日志",type:3,module:"log",path:"/workLog",icon:"wk wk-log",fontSize:"17px"}),this.oa&&this.oa.book&&this.oa.book.index&&(e.book={title:"通讯录",type:6,module:"book",path:"/addressBook",icon:"wk wk-address-book",fontSize:"17px"}),this.project&&(e.project={title:"项目管理",type:2,module:"project",path:"/project",icon:"wk wk-project",fontSize:"15px"}),this.bi&&(e.bi={title:"商业智能",type:5,path:"/bi",module:"bi",icon:"wk wk-business-intelligence",fontSize:"18px"}),this.oa&&this.oa.calendar&&(e.calendar={title:"日历",type:8,module:"calendar",path:"/calendar/index",icon:"wk wk-calendar",fontSize:"20px"}),e}}),watch:{navManagerShow:function(e){0==e&&this.changeNavIndex()}},created:function(){this.getHeaderModule()},mounted:function(){var e=this;Object(I.b)(document,"click",this.handleDocumentClick),window.onresize=function(){e.changeMenu(document.documentElement.clientWidth)},this.getSystemUnreadNum("visible"),this.$bus.on("document-visibility",function(t){e.getSystemUnreadNum(t)})},beforeDestroy:function(){this.$bus.off("document-visibility"),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),Object(I.a)(document,"click",this.handleDocumentClick)},methods:{getHeaderModule:function(){var e=this;this.headerModule?this.getTopHeaderModule():this.$store.dispatch("WKHeaderModule").then(function(t){e.getTopHeaderModule()}).catch(function(){})},getTopHeaderModule:function(){if(this.headerModule.length){for(var e=[],t=0;t<this.headerModule.length;t++){var n=this.headerModule[t],i=this.allItemsObj[n];i&&e.length<8&&e.push(i)}this.items=e}else{var a=[];for(var s in this.allItemsObj)a.length<8&&a.push(this.allItemsObj[s]);this.items=a}this.changeMenu(document.documentElement.clientWidth)},changeMenu:function(e){for(var t=[],n=[],i=0;i<this.items.length;i++){var a=this.items[i];e-450-130*(i+1)>0?t.push(a):n.push(a)}this.showItems=t,this.hiddenItems=n,this.changeNavIndex()},changeNavIndex:function(){for(var e=!0,t=0;t<this.showItems.length;t++){var n=this.showItems[t];this.navIndex==n.path&&(e=!1)}var i=e?"other":this.navIndex;this.navActiveIndex!=i&&this.$store.commit("SET_NAVACTIVEINDEX",i)},navItemsClick:function(e){"other"!=e?(this.navManagerShow=!1,this.$router.push(e)):this.navManagerShow=!this.navManagerShow,this.$store.commit("SET_NAVACTIVEINDEX",e),this.$emit("nav-items-click",e)},enterSystemSet:function(){this.$router.push({name:"manage"})},getSystemUnreadNum:function(e){var t=this;this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),"visible"==e&&(this.sendSystemUnreadNum(),this.intervalId=setInterval(function(){t.sendSystemUnreadNum()},6e5))},sendSystemUnreadNum:function(){var e=this;Object(r.u)().then(function(t){e.unreadNums=t.data}).catch(function(){e.intervalId&&(clearInterval(e.intervalId),e.intervalId=null)})},enterCustoemBoard:function(){this.crm&&this.$router.push("/crm/workbench")},moreMenuClick:function(e){var t=this;"baseInfo"==e?this.$router.push({name:"person"}):"help"==e?window.open("https://www.72crm.com/help"):"logOut"==e&&this.$confirm("退出登录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e=T.Loading.service({target:document.getElementById("#app")});t.$store.dispatch("LogOut").then(function(){location.reload(),e.close()}).catch(function(){location.reload(),e.close()})}).catch(function(){})},handleDocumentClick:function(e){this.$refs.navManagerMenu&&this.$refs.navManager&&!this.$refs.navManagerMenu.$el.contains(e.target)&&!this.$refs.navManager.$el.contains(e.target)&&(this.navManagerShow=!1)},navManagerSelect:function(e){var t=e.path,n=e.module;this.navManagerShow=!1,this.$router.push(t);var i=t;this.headerModule.includes(n)||(i="other"),this.$store.commit("SET_NAVACTIVEINDEX",i)},updateClick:function(){this.$router.push("/manage/update")},checkIsNewest:function(e,t){return!((e=n(e))>(t=n(t)));function n(e){for(var t=(e=e.toString()).split("."),n=["","0","00","000","0000"].reverse(),i=0;i<t.length;i++){var a=t[i].length;t[i]=n[a]+t[i]}return t.join("")}},checkMessageDetail:function(e){this.mesOnlyAnnouncement=e,this.sysMessageShow=!0}}},S=(n("jAw3"),Object(h.a)(D,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("img",{directives:[{name:"src",rawName:"v-src",value:e.logo,expression:"logo"}],key:e.logo,staticClass:"logo",on:{click:e.enterCustoemBoard}}),e._v(" "),n("div",{staticClass:"nav-items-container"},[n("el-menu",{attrs:{"default-active":e.navActiveIndex,mode:"horizontal","active-text-color":"#2362FB"},on:{select:e.navItemsClick}},[e._l(e.showItems,function(t,i){return n("el-menu-item",{key:i,attrs:{index:t.path}},[n("i",{class:t.icon,style:{fontSize:t.fontSize}}),e._v(" "),n("span",[e._v(e._s(t.title))])])}),e._v(" "),n("el-menu-item",{ref:"navManagerMenu",attrs:{index:"other"}},[n("i",{staticClass:"wk wk-grid"})])],2)],1),e._v(" "),n("el-badge",{attrs:{value:e.unreadNums.announceCount,hidden:!e.unreadNums.announceCount||0==e.unreadNums.announceCount,max:99}},[n("i",{staticClass:"wk wk-announcement",on:{click:function(t){e.checkMessageDetail(!0)}}})]),e._v(" "),n("el-badge",{attrs:{value:e.unreadNums.allCount,hidden:!e.unreadNums.allCount||0==e.unreadNums.allCount,max:99}},[n("i",{staticClass:"wk wk-bell",on:{click:function(t){e.checkMessageDetail(!1)}}})]),e._v(" "),n("system-message",{attrs:{visible:e.sysMessageShow,"unread-nums":e.unreadNums,"only-announcement":e.mesOnlyAnnouncement},on:{"update:visible":function(t){e.sysMessageShow=t},"update-count":e.sendSystemUnreadNum}}),e._v(" "),n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.moreMenuClick}},[n("div",{staticClass:"user-container"},[e.userInfo&&Object.keys(e.userInfo).length>0?[n("xr-avatar",{staticClass:"user-img",attrs:{name:e.userInfo.realname,size:32,src:e.userInfo.img}})]:e._e(),e._v(" "),n("i",{staticClass:"el-icon-caret-bottom mark"})],2),e._v(" "),n("el-dropdown-menu",{staticClass:"el-dropdown-unarrow",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.moreMenu,function(t,i){return n("el-dropdown-item",{key:i,attrs:{command:t.command,divided:t.divided,icon:t.icon,disabled:t.disabled}},[e._v(e._s(t.label))])}),e._v(" "),e.manage?n("div",{staticClass:"handel-box"},[n("el-button",{staticClass:"handel-button",attrs:{type:"primary"},on:{click:function(t){e.enterSystemSet()}}},[e._v("企业管理后台")])],1):e._e()],2)],1),e._v(" "),e.navManagerShow?n("nav-manager",{ref:"navManager",attrs:{collapse:e.collapse,"top-module":e.items},on:{change:e.getTopHeaderModule,select:e.navManagerSelect}}):e._e()],1)},[],!1,null,"b9c03e84",null));S.options.__file="Navbar.vue";var F=S.exports,O={components:{},props:{navIndex:String},data:function(){return{}},computed:o()({},Object(v.b)(["logo","crm"])),mounted:function(){},methods:{enterHome:function(){this.$router.replace({path:"/"})},enterLogin:function(){var e=this;this.$confirm("退出登录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t=T.Loading.service({target:document.getElementById("#app")});e.$store.dispatch("LogOut").then(function(){t.close(),location.reload()}).catch(function(){t.close(),location.reload()})}).catch(function(){})},enterCustoemBoard:function(){this.crm&&this.$router.push("/crm/workbench")}}},R=(n("VFx+"),Object(h.a)(O,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("img",{directives:[{name:"src",rawName:"v-src",value:e.logo,expression:"logo"}],key:e.logo,staticClass:"logo",on:{click:e.enterCustoemBoard}}),e._v(" "),n("div",{staticClass:"nav-title"},[e._v("\n 系统设置\n ")]),e._v(" "),n("div",{staticClass:"back-home",on:{click:e.enterHome}},[e._v("返回首页")]),e._v(" "),n("div",{staticClass:"go-out",on:{click:e.enterLogin}},[e._v("退出系统")])])},[],!1,null,"71392b42",null));R.options.__file="ManagerNavbar.vue";var E=R.exports,U=n("33yf"),L=n.n(U);function M(e){return/^(https?:|mailto:|tel:)/.test(e)}var N={name:"Item",components:{},props:{icon:String,title:String,num:[String,Number],collapse:Boolean,count:[String,Number]},data:function(){return{}},computed:{},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{}},V=(n("eqpj"),Object(h.a)(N,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu-item-content",class:{"is-close":e.collapse}},[n("i",{class:["wk","wk-"+e.icon]}),e._v(" "),n("span",{staticClass:"side-bar-label"},[e._v(e._s(e.title))]),e._v(" "),e.count?n("span",[e._v("("+e._s(e.count)+")")]):e._e(),e._v(" "),e.num&&e.num>0?n("el-badge",{attrs:{max:99,value:e.num}}):e._e()],1)},[],!1,null,"b2286b28",null));V.options.__file="Item.vue";var B=V.exports,Z={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return M(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},Y=Object(h.a)(Z,function(){var e=this.$createElement;return(this._self._c||e)("component",this._b({},"component",this.linkProps(this.to),!1),[this._t("default")],2)},[],!1,null,null,null);Y.options.__file="Link.vue";var G={name:"SidebarItem",components:{Item:B,AppLink:Y.exports},mixins:[{computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}}],props:{item:{type:Object,required:!0},basePath:{type:String,default:""},activeMenu:String,collapse:Boolean},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1],i=t.filter(function(t){return!t.hidden&&(e.onlyOneChild=t,!0)});return 1===i.length||0===i.length&&(this.onlyOneChild=o()({},n,{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return M(e)?e:M(this.basePath)?this.basePath:L.a.resolve(this.basePath,e)}}},W=(n("P4SL"),Object(h.a)(G,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",class:{"is-select":e.activeMenu==e.resolvePath(e.item.path)},attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title,num:e.item.meta.num}}):e._e()],1),e._v(" "),e._l(e.item.children,function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path),"active-menu":e.activeMenu}})})],2):[n("el-tooltip",{attrs:{disabled:!e.collapse,content:e.onlyOneChild.meta.title,effect:"dark",placement:"right"}},[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"is-select":e.activeMenu==e.resolvePath(e.onlyOneChild.path)},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title,num:e.onlyOneChild.meta.num,count:e.onlyOneChild.count,collapse:e.collapse}})],1)],1):e._e()],1)]],2)},[],!1,null,"07277540",null));W.options.__file="SidebarItem.vue";var P=W.exports,Q=n("VflR"),z=n.n(Q),q={components:{SidebarItem:P},props:{items:{type:Array,default:function(){return[]}},addOffset:{type:Number,default:70},createButtonTitle:{type:String,default:""},createButtonIcon:{type:String,default:"el-icon-plus"},paddingBottom:{type:String,default:"48px"}},data:function(){return{buttonCollapse:!1}},computed:o()({},Object(v.b)(["collapse"]),{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path,i=e.params,a=this.WKConfig.companyName;return t.title?a+=" - "+t.title:i&&i.title&&(a+=" - "+i.title),document.title=a,t.activeMenu?t.activeMenu:n},variables:function(){return z.a}}),watch:{collapse:function(e){var t=this;e?this.buttonCollapse=e:setTimeout(function(){t.buttonCollapse=e},300)}},mounted:function(){this.buttonCollapse=this.collapse},methods:{toggleSideBarClick:function(){this.$store.commit("SET_COLLAPSE",!this.collapse)},quicklyCreate:function(){this.$emit("quicklyCreate")},handleSelect:function(e,t){this.$emit("select",e,t)}}},J=(n("2w4b"),Object(h.a)(q,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sidebar-container"},[i("div",{staticClass:"create-button-container",style:{"padding-top":""!=e.createButtonTitle?"40px":"25px","background-color":e.variables.menuBg}},[""!=e.createButtonTitle?i("el-popover",{attrs:{offset:e.addOffset,"visible-arrow":!1,disabled:!e.$slots.add,placement:"right","popper-class":"no-padding-popover",trigger:"hover"}},[e._t("add"),e._v(" "),i("div",{staticClass:"create-button",attrs:{slot:"reference"},on:{click:e.quicklyCreate},slot:"reference"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.buttonCollapse,expression:"!buttonCollapse"}],staticClass:"button-name"},[e._v(e._s(e.createButtonTitle))]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.buttonCollapse,expression:"!buttonCollapse"}],staticClass:"button-line"}),e._v(" "),i("i",{staticClass:"button-mark",class:e.createButtonIcon})])],2):e._e()],1),e._v(" "),i("el-scrollbar",{style:{"border-right-color":e.variables.menuBg,"padding-top":""!=e.createButtonTitle?"90px":"40px"},attrs:{"wrap-class":"scrollbar-wrapper"}},[i("el-menu",{staticClass:"el-menu-vertical",style:{paddingBottom:e.paddingBottom},attrs:{"default-active":e.activeMenu,collapse:e.collapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"active-text-color":e.variables.menuActiveText,mode:"vertical"},on:{select:e.handleSelect}},e._l(e.items,function(t,n){return i("sidebar-item",{key:""+t.path+n,attrs:{item:t,collapse:e.collapse,"base-path":t.path,"active-menu":e.activeMenu}})}))],1),e._v(" "),e._t("bottom"),e._v(" "),i("div",{staticClass:"sidebar-bottom",style:{"background-color":e.variables.menuBg}},[i("div",{staticClass:"sidebar-container"},[i("img",{staticClass:"collapse-button",class:{"is-close":e.collapse},style:{right:e.buttonCollapse?"3px":"0"},attrs:{src:n("qcdG"),alt:""},on:{click:e.toggleSideBarClick}})])])],2)},[],!1,null,"0ae444ee",null));J.options.__file="index.vue";var X=J.exports,K={name:"AppMain",computed:{}},H=(n("Yb89"),Object(h.a)(K,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"app-main"},[t("router-view"),this._v(" "),this._t("default")],2)},[],!1,null,"4cc0e90b",null));H.options.__file="AppMain.vue";var $=H.exports,ee={name:"CrmLayout",components:{Navbar:F,Sidebar:X,AppMain:$,CRMAllCreate:n("8OTK").default},data:function(){return{isCreate:!1,createAction:null,createCRMType:""}},computed:o()({},Object(v.b)(["crm","crmRouters"]),{quickAddList:function(){var e=[];return this.crm.leads&&this.crm.leads.save&&e.push({icon:"leads",index:"leads",label:"线索"}),this.crm.customer&&this.crm.customer.save&&e.push({icon:"customer",index:"customer",label:"客户"}),this.crm.contacts&&this.crm.contacts.save&&e.push({icon:"contacts",index:"contacts",label:"联系人"}),this.crm.business&&this.crm.business.save&&e.push({icon:"business",index:"business",label:"商机"}),this.crm.contract&&this.crm.contract.save&&e.push({icon:"contract",index:"contract",label:"合同"}),this.crm.receivables&&this.crm.receivables.save&&e.push({icon:"receivables",index:"receivables",label:"回款"}),this.crm.invoice&&this.crm.invoice.save&&e.push({icon:"invoice",index:"invoice",label:"发票"}),this.crm.visit&&this.crm.visit.save&&e.push({icon:"house",index:"visit",label:"回访"}),this.crm.product&&this.crm.product.save&&e.push({icon:"product",index:"product",label:"产品"}),e},quickAddOffset:function(){return 25*Math.round(this.quickAddList.length/2)}}),created:function(){this.getcrmMessagNum()},mounted:function(){},methods:{navClick:function(e){},addSkip:function(e){this.createAction={type:"save",id:"",data:{}},this.createCRMType=e.index,this.isCreate=!0},getcrmMessagNum:function(){this.$store.dispatch("GetMessageNum").then(function(e){}).catch(function(){})},handleSelect:function(){this.$store.dispatch("GetMessageNum")},createSaveSuccess:function(e){e&&e.createContacts&&"customer"==e.type&&(this.createCRMType="contacts",this.createAction={type:"relative",crmType:"customer",data:{customer:e.data}},this.isCreate=!0)}}},te=(n("dOsk"),Object(h.a)(ee,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",{staticClass:"nav-container"},[n("navbar",{attrs:{"nav-index":"/crm"},on:{"nav-items-click":e.navClick}})],1),e._v(" "),n("el-container",[n("sidebar",{attrs:{items:e.crmRouters,"add-offset":e.quickAddOffset,"create-button-title":"快速创建","main-router":"crm"},on:{select:e.handleSelect}},[n("div",{staticClass:"quick-add",attrs:{slot:"add"},slot:"add"},[n("div",{staticClass:"quick-add-content"},e._l(e.quickAddList,function(t,i){return n("p",{key:i,on:{click:function(n){e.addSkip(t)}}},[n("i",{class:["wk","wk-"+t.icon]}),n("span",[e._v(e._s(t.label))])])}))])]),e._v(" "),n("el-main",{staticStyle:{padding:"0"},attrs:{id:"crm-main-container"}},[n("app-main")],1)],1),e._v(" "),e.isCreate?n("c-r-m-all-create",{attrs:{"crm-type":e.createCRMType,action:e.createAction},on:{"save-success":e.createSaveSuccess,close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"6ab817fa",null));te.options.__file="CrmLayout.vue";var ne=te.exports,ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{path:"/crm",component:ne,meta:o()({requiresAuth:!0},e)}},ae=[o()({},ie({permissions:["crm"]}),{children:[{path:"workbench",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-8b27")]).then(n.bind(null,"oEHD"))},meta:{title:"仪表盘",icon:"board"}}]}),o()({},ie({permissions:["crm"]}),{children:[{path:"message",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-c012")]).then(n.bind(null,"jDh9"))},meta:{title:"待办事项",icon:"message",num:0}}]}),o()({},ie({permissions:["crm","leads"]}),{children:[{path:"leads",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-2f6a"),n.e("chunk-5b3b"),n.e("chunk-41ed"),n.e("chunk-16ec")]).then(n.bind(null,"KPHR"))},meta:{title:"线索",icon:"leads"}}]}),o()({},ie({permissionList:[["crm","customer"],["crm","pool"],["crm","customer","nearbyCustomer"]]}),{children:[{path:"customer",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-3a2c")]).then(n.bind(null,"zqSx"))},meta:{title:"客户",icon:"customer"}}]}),o()({},ie({permissions:["crm","contacts"]}),{children:[{path:"contacts",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-5790")]).then(n.bind(null,"B649"))},meta:{title:"联系人",icon:"contacts"}}]}),o()({},ie({permissions:["crm","business"]}),{children:[{path:"business",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-230a")]).then(n.bind(null,"UUUa"))},meta:{title:"商机",icon:"business"}}]}),o()({},ie({permissions:["crm","contract"]}),{children:[{path:"contract",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-2f93")]).then(n.bind(null,"s0OI"))},meta:{title:"合同",icon:"contract"}}]}),o()({},ie({permissions:["crm","receivables"]}),{children:[{path:"receivables",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-7c8e")]).then(n.bind(null,"7c4Y"))},meta:{title:"回款",icon:"receivables"}}]}),{name:"print",path:"/print",hidden:!0,component:function(){return n.e("chunk-7a2f").then(n.bind(null,"67Ak"))},meta:{permissionList:[["crm","receivables","print"],["crm","contract","print"],["crm","business","print"]],title:"打印",icon:"print"}},o()({},ie({permissions:["crm","invoice"]}),{children:[{path:"invoice",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-734c")]).then(n.bind(null,"Kdq/"))},meta:{title:"发票",icon:"invoice"}}]}),o()({},ie({permissions:["crm","visit"]}),{children:[{path:"visit",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-7ddb")]).then(n.bind(null,"2uQb"))},meta:{title:"回访",icon:"house"}}]}),o()({},ie({permissions:["crm","product"]}),{children:[{path:"product",component:function(){return Promise.all([n.e("chunk-2f6a"),n.e("chunk-41ed"),n.e("chunk-6a0b")]).then(n.bind(null,"x/0Y"))},meta:{title:"产品",icon:"product"}}]})],se=n("rRnC"),oe=n("hSIE"),re=n("LWkM"),ce={name:"ProjectCell",components:{},props:{iconClass:String,iconColor:String,label:String,isCollect:Boolean,collect:{type:Boolean,default:!0},drag:{type:Boolean,default:!0}},data:function(){return{}},computed:{},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{}},le=(n("rWxh"),Object(h.a)(ce,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("flexbox",{staticClass:"project-cell"},[e.drag?n("div",{staticClass:"drag-handle"},[e._v("⋮⋮")]):e._e(),e._v(" "),n("div",{staticClass:"project-cell__icon",style:{backgroundColor:e.iconColor}},[n("i",{class:e.iconClass})]),e._v(" "),n("div",{staticClass:"project-cell__label text-one-line"},[e._v("\n "+e._s(e.label)+"\n ")]),e._v(" "),e.collect?n("i",{staticClass:"wk wk-focus-on project-cell__collect",class:{"is-collect":e.isCollect},on:{click:function(t){t.stopPropagation(),e.$emit("collect")}}}):e._e()])},[],!1,null,"4016c360",null));le.options.__file="ProjectCell.vue";var ue=le.exports,de={name:"SectionHead",components:{},props:{iconClass:String,label:String},data:function(){return{}},computed:{},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{}},pe=(n("JF0c"),Object(h.a)(de,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"section-head"},[t("i",{class:["section-head__icon",this.iconClass]}),this._v(" "),t("span",[this._v(this._s(this.label))])])},[],!1,null,"fc7da7d4",null));pe.options.__file="SectionHead.vue";var he=pe.exports,me={name:"ProjectBoard",components:{ProjectCell:ue,SectionHead:he,Draggable:C.a},props:{visible:Boolean},data:function(){return{searchInput:"",list:[]}},computed:{showList:function(){var e=this;return this.list.filter(function(t){return-1!=t.name.indexOf(e.searchInput)})},collectList:function(){return this.list.filter(function(e){return 1==e.collect})},showCollectList:function(){var e=this;return this.collectList.filter(function(t){return-1!=t.name.indexOf(e.searchInput)})}},watch:{visible:function(e){e&&this.getList()}},created:function(){this.getList()},beforeDestroy:function(){},methods:{getList:function(){var e=this;Object(oe.b)().then(function(t){e.list=t.data}).catch(function(){})},enterDetail:function(e){this.$router.push({name:"project-list",params:{id:e.work_id}}),this.handleClose()},moveItem:function(e){if(e){if(e.oldIndex==e.newIndex)return;Object(re.A)({workIds:this.list.map(function(e){return e.work_id})}).then(function(e){}).catch(function(){})}},collectClick:function(e){Object(re.q)({work_id:e.work_id}).then(function(t){e.collect=0==e.collect?1:0}).catch(function(){})},handleClose:function(){this.$emit("update:visible",!1)}}},fe=(n("KhIf"),Object(h.a)(me,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-drawer",{attrs:{visible:e.visible,"before-close":e.handleClose,"append-to-body":!1,"custom-class":"project-drawer",size:"250px",direction:"ltr"}},[n("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),n("section",{staticClass:"section"},[n("section-head",{attrs:{"icon-class":"wk wk-focus-on",label:"加星标的看板"}}),e._v(" "),e._l(e.showCollectList,function(t,i){return n("project-cell",{key:i,attrs:{drag:!1,label:t.name,"icon-color":t.color,"is-collect":"","icon-class":"wk wk-project"},on:{collect:function(n){e.collectClick(t)}},nativeOn:{click:function(n){e.enterDetail(t)}}})})],2),e._v(" "),n("section",{staticClass:"section"},[n("section-head",{attrs:{"icon-class":"wk wk-project",label:"项目看板"}}),e._v(" "),n("draggable",{attrs:{options:{forceFallback:!1,disabled:e.searchInput.length>0}},on:{end:e.moveItem},model:{value:e.list,callback:function(t){e.list=t},expression:"list"}},e._l(e.showList,function(t,i){return n("project-cell",{key:i,attrs:{drag:0==e.searchInput.length,label:t.name,"icon-color":t.color,"is-collect":1==t.collect,"icon-class":"wk wk-project"},on:{collect:function(n){e.collectClick(t)}},nativeOn:{click:function(n){e.enterDetail(t)}}})}))],1)],1)},[],!1,null,"4630297c",null));fe.options.__file="ProjectBoard.vue";var ge=fe.exports,ve=n("Ajln"),be={name:"TagBoard",components:{ProjectCell:ue,SectionHead:he,Draggable:C.a},props:{visible:Boolean},data:function(){return{searchInput:"",list:[]}},computed:{showList:function(){var e=this;return this.list.filter(function(t){return-1!=t.name.indexOf(e.searchInput)})}},watch:{visible:function(e){e&&this.getList()}},created:function(){this.getList()},mounted:function(){Object(I.b)(document,"click",this.handleDocumentClick)},beforeDestroy:function(){Object(I.a)(document,"click",this.handleDocumentClick)},methods:{getList:function(){var e=this;Object(ve.c)().then(function(t){e.list=t.data.list}).catch(function(){})},enterDetail:function(e){this.$router.push({name:"tag-list",params:{id:e.lable_id}}),this.handleClose()},moveItem:function(e){if(e){if(e.oldIndex==e.newIndex)return;Object(ve.g)({labelIds:this.list.map(function(e){return e.labelId})}).then(function(e){}).catch(function(){})}},handleClose:function(){this.$emit("update:visible",!1)},handleDocumentClick:function(e){var t=document.querySelector(".el-drawer__body");!t||t.contains(e.target)||e.target.className&&-1!=e.target.className.indexOf("wk-label")||e.target.innerHTML&&-1!=e.target.innerHTML.indexOf("wk-label")||this.handleClose()}}},ye=(n("LAru"),Object(h.a)(be,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-drawer",{attrs:{visible:e.visible,"before-close":e.handleClose,"append-to-body":!1,"custom-class":"project-drawer",size:"250px",direction:"ltr"}},[n("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),n("section",{staticClass:"section"},[n("section-head",{attrs:{"icon-class":"wk wk-label",label:"标签看板"}}),e._v(" "),n("draggable",{attrs:{options:{forceFallback:!1,disabled:e.searchInput.length>0}},on:{end:e.moveItem},model:{value:e.list,callback:function(t){e.list=t},expression:"list"}},e._l(e.showList,function(t,i){return n("project-cell",{key:i,attrs:{drag:0==e.searchInput.length,label:t.name,"icon-color":t.color,collect:!1,"icon-class":"wk wk-label"},nativeOn:{click:function(n){e.enterDetail(t)}}})}))],1)],1)},[],!1,null,"3c10e34b",null));ye.options.__file="TagBoard.vue";var ke=ye.exports,we={name:"PmLayout",components:{Navbar:F,Sidebar:X,AppMain:$,AddProject:se.a,ProjectBoard:ge,TagBoard:ke},data:function(){return{isCreate:!1,projectBoardShow:!1,tagBoardShow:!1}},computed:o()({},Object(v.b)(["project","projectRouters"]),{permissonProject:function(){return this.project&&this.project.projectManage&&this.project.projectManage.save}}),created:function(){},beforeDestroy:function(){},methods:{navClick:function(e){},siderbarSelect:function(e,t){"/project-list/index"==e?(this.tagBoardShow=!1,this.projectBoardShow=!0):"/tag-list/index"==e?(this.projectBoardShow=!1,this.tagBoardShow=!0):(this.projectBoardShow=!1,this.tagBoardShow=!1)},quicklyCreate:function(){this.projectBoardShow=!1,this.tagBoardShow=!1,this.isCreate=!0}}},_e=(n("bSL/"),Object(h.a)(we,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-header",{staticClass:"nav-container"},[n("navbar",{attrs:{"nav-index":"/project"},on:{"nav-items-click":e.navClick}})],1),e._v(" "),n("el-container",[n("sidebar",{attrs:{items:e.projectRouters,"create-button-title":e.permissonProject?"创建项目":"","create-button-icon":"el-icon-plus"},on:{quicklyCreate:e.quicklyCreate,select:e.siderbarSelect}}),e._v(" "),n("el-main",{attrs:{id:"project-container"}},[n("app-main"),e._v(" "),n("project-board",{attrs:{visible:e.projectBoardShow},on:{"update:visible":function(t){e.projectBoardShow=t}}}),e._v(" "),n("tag-board",{attrs:{visible:e.tagBoardShow},on:{"update:visible":function(t){e.tagBoardShow=t}}})],1)],1),e._v(" "),e.isCreate?n("add-project",{attrs:{"enter-detail":""},on:{close:function(t){e.isCreate=!1}}}):e._e()],1)},[],!1,null,"76c0cd7a",null));_e.options.__file="PmLayout.vue";var Ce=_e.exports,Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/project",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{path:e,component:Ce,meta:o()({requiresAuth:!0,permissions:["project"]},t)}},xe=[o()({},Ae(),{children:[{path:"workbench",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-5014")]).then(n.bind(null,"IJOt"))},meta:{title:"工作台",icon:"workbench"}}]}),o()({},Ae("/project-list"),{hidden:!0,children:[{name:"project-list",path:"project/:id",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-114a"),n.e("chunk-d496"),n.e("chunk-33fe")]).then(n.bind(null,"q1aG"))},meta:{activeMenu:"/project/list"}}]}),o()({},Ae(),{hidden:!0,children:[{path:"search",component:function(){return n.e("chunk-8e0d").then(n.bind(null,"UjDL"))},meta:{title:"搜索",activeMenu:"/project/list"}}]}),o()({},Ae(),{children:[{path:"list",component:function(){return n.e("chunk-a3fe").then(n.bind(null,"39TU"))},meta:{title:"项目",icon:"project"}}]}),o()({},Ae(),{children:[{path:"statistics",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-d496"),n.e("chunk-6db5")]).then(n.bind(null,"/3Ri"))},meta:{title:"统计分析",icon:"results-solid"}}]}),o()({},Ae(),{children:[{path:"archive",component:function(){return n.e("chunk-0450").then(n.bind(null,"s7/I"))},meta:{title:"归档项目",icon:"archive"}}]}),o()({},Ae("/tag-list"),{children:[{name:"tag-list",path:"tag/:id",component:function(){return n.e("chunk-5cb1").then(n.bind(null,"7rD8"))},hidden:!0,meta:{activeMenu:"/tag-list/index"}},{path:"index",meta:{title:"标签",icon:"label",disabled:!0}}]}),o()({},Ae(),{children:[{path:"recycle",component:function(){return n.e("chunk-aa74").then(n.bind(null,"jcXo"))},meta:{title:"回收站",icon:"recycle-bin"}}]})],je={name:"AdminLayout",components:{ManagerNavbar:E,Sidebar:X,AppMain:$},data:function(){return{routerItems:[]}},computed:o()({},Object(v.b)(["manage","manageRouters"])),mounted:function(){},methods:{navClick:function(e){}}},Te=(n("mvNj"),Object(h.a)(je,function(){var e=this.$createElement,t=this._self._c||e;return t("el-container",[t("el-header",{staticClass:"nav-container"},[t("manager-navbar")],1),this._v(" "),t("el-container",[t("sidebar",{staticClass:"sidebar-container",attrs:{items:this.manageRouters}}),this._v(" "),t("el-main",{attrs:{id:"manager-main-container"}},[t("app-main")],1)],1)],1)},[],!1,null,"4817577c",null));Te.options.__file="AdminLayout.vue";var Ie=Te.exports,De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/manage",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{path:t,component:Ie,meta:o()({requiresAuth:n},e)}},Se=[o()({},De({permissions:["manage","system","read"]}),{children:[{name:"systemconfig",path:"systemconfig",component:function(){return Promise.all([n.e("fnnb"),n.e("chunk-58cf")]).then(n.bind(null,"9OqV"))},meta:{title:"企业首页",icon:"enterprise"}}]}),o()({},De({permissions:["manage","configSet","read"]}),{children:[{name:"application",path:"application",component:function(){return n.e("chunk-8f92").then(n.bind(null,"iJuG"))},meta:{title:"应用管理",icon:"all"}}]}),o()({},De({permissions:["manage","users","read"]}),{children:[{name:"employee-dep",path:"employee-dep",component:function(){return Promise.all([n.e("chunk-c9d2"),n.e("chunk-d648")]).then(n.bind(null,"ZJ6w"))},meta:{title:"员工与部门管理",icon:"s-seas"}}]}),o()({},De({permissions:["manage","permission"],title:"角色权限管理",icon:"user"},"/manage/role-auth"),{alwaysShow:!0,name:"manage-role-auth",children:[{name:"role-auth",path:"role-auth/:pid/:title",hidden:!0,component:function(){return Promise.all([n.e("chunk-c9d2"),n.e("chunk-440c")]).then(n.bind(null,"M1nL"))},meta:{}}]}),o()({},De({permissions:["manage","examineFlow"]}),{children:[{name:"system-examine",path:"system-examine",component:function(){return n.e("chunk-1165").then(n.bind(null,"2Xr9"))},meta:{title:"业务审批流",icon:"approve"}}]}),o()({},De({permissions:["manage","oa"]}),{children:[{name:"system-workbench",path:"system-workbench",component:function(){return n.e("chunk-7a2e").then(n.bind(null,"EIxH"))},meta:{title:"办公审批流",icon:"approve"}},{name:"workbenchHandlefield",path:"workbench-custom-field/:type/:id/:label",component:function(){return n.e("chunk-33da").then(n.bind(null,"LKRs"))},hidden:!0,meta:{activeMenu:"/manage/system-workbench"}}]}),o()({},De({permissions:["manage","work"]}),{children:[{name:"system-project",path:"system-project",component:function(){return n.e("chunk-5f59").then(n.bind(null,"gqmq"))},meta:{title:"项目管理",icon:"project"}}]}),o()({},De({permissions:["manage","crm"],title:"客户管理",icon:"customer"},"/manage/customer"),{alwaysShow:!0,children:[{path:"custom-field",component:function(){return n.e("chunk-39ee").then(n.bind(null,"N10N"))},meta:{title:"自定义字段设置",requiresAuth:!0,permissions:["manage","crm","field"]}},{path:"customer",component:function(){return n.e("chunk-497a").then(n.bind(null,"zhZs"))},meta:{title:"客户公海规则设置",requiresAuth:!0,permissions:["manage","crm","pool"]}},{path:"print-templates",component:function(){return n.e("chunk-9992").then(n.bind(null,"Q+0J"))},meta:{title:"自定义打印模板",requiresAuth:!0,permissions:["manage","crm","print"]}},{path:"print-detail",name:"crmPrintDetail",component:function(){return n.e("chunk-eea1").then(n.bind(null,"sJZQ"))},hidden:!0,meta:{activeMenu:"/manage/customer/print-templates",title:"自定义打印模板",requiresAuth:!0,permissions:["manage","crm","print"]}},{path:"biz-param",component:function(){return n.e("chunk-551d").then(n.bind(null,"WcnQ"))},meta:{title:"业务参数设置",requiresAuth:!0,permissions:["manage","crm","setting"]}},{name:"crmBizGoals",path:"biz-goals",component:function(){return n.e("chunk-50a4").then(n.bind(null,"JT+4"))},meta:{title:"业绩目标设置",requiresAuth:!0,permissions:["manage","crm","achievement"]}},{name:"handlefield",path:"custom-field/:type/:id/:label",component:function(){return n.e("chunk-33da").then(n.bind(null,"LKRs"))},hidden:!0,meta:{activeMenu:"/manage/customer/custom-field",requiresAuth:!0,permissions:["manage","crm","field"]}}]}),o()({},De({permissions:["manage","other_rule","setwelcome"]},"/manage",!0),{children:[{name:"system-other",path:"system-other",component:function(){return n.e("chunk-aba1").then(n.bind(null,"CEXg"))},meta:{title:"其他设置",icon:"manage"}}]}),o()({},De({permissions:["manage","init","initData"]},"/manage",!0),{children:[{path:"init",component:function(){return n.e("chunk-f531").then(n.bind(null,"bOnO"))},meta:{title:"初始化数据",icon:"results-solid"}}]})],Fe={name:"UserLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:o()({},Object(v.b)(["navActiveIndex"])),methods:{navClick:function(e){}}},Oe=(n("1KQC"),Object(h.a)(Fe,function(){var e=this.$createElement,t=this._self._c||e;return t("el-container",[t("el-header",{staticClass:"nav-container"},[t("navbar",{attrs:{"nav-index":this.navActiveIndex},on:{"nav-items-click":this.navClick}})],1),this._v(" "),t("el-container",[t("el-main",{staticStyle:{padding:"15px"},attrs:{id:"crm-main-container"}},[t("app-main")],1)],1)],1)},[],!1,null,"de2a1660",null));Oe.options.__file="UserLayout.vue";var Re={path:"/person",component:Oe.exports,redirect:"/person/index",name:"person",hidden:!0,meta:{title:"个人中心"},children:[{path:"index",component:function(){return Promise.all([n.e("fnnb"),n.e("chunk-ad71")]).then(n.bind(null,"44Km"))}}]},Ee={name:"BiLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:o()({},Object(v.b)(["biRouters"])),methods:{navClick:function(e){}}},Ue=(n("yTGT"),Object(h.a)(Ee,function(){var e=this.$createElement,t=this._self._c||e;return t("el-container",[t("el-header",{staticClass:"nav-container"},[t("navbar",{attrs:{"nav-index":"/bi"},on:{"nav-items-click":this.navClick}})],1),this._v(" "),t("el-container",[t("sidebar",{staticClass:"sidebar-container",attrs:{items:this.biRouters}}),this._v(" "),t("el-main",{attrs:{id:"crm-main-container"}},[t("app-main")],1)],1)],1)},[],!1,null,"30dabe5b",null));Ue.options.__file="BiLayout.vue";var Le=Ue.exports,Me=function(e,t,n){return{path:e,component:Le,alwaysShow:t,meta:o()({requiresAuth:!0},n)}},Ne=[o()({},Me("/bi/customer",!0,{permissions:["bi","customer"],icon:"customer-solid",title:"员工客户分析"}),{children:[{path:"total",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0444"),n.e("chunk-173c")]).then(n.bind(null,"xI5Q"))},meta:{title:"客户总量分析"}},{path:"record",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0444"),n.e("chunk-1d30")]).then(n.bind(null,"rPZC"))},meta:{title:"客户跟进次数分析"}},{path:"recordmode",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0444"),n.e("chunk-01eb")]).then(n.bind(null,"AfsK"))},meta:{title:"客户跟进方式分析"}},{path:"conversion",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-4047")]).then(n.bind(null,"KbJk"))},meta:{title:"客户转化率分析"}},{path:"pool",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0444"),n.e("chunk-5327")]).then(n.bind(null,"+Dqn"))},meta:{title:"公海客户分析"}},{path:"cycle",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0444"),n.e("chunk-4cf4")]).then(n.bind(null,"ECOn"))},meta:{title:"成交周期分析"}},{path:"customerSatisfaction",component:function(){return Promise.all([n.e("chunk-0444"),n.e("chunk-04f3")]).then(n.bind(null,"SMVw"))},meta:{title:"员工客户满意度分析"}},{path:"productSatisfaction",component:function(){return Promise.all([n.e("chunk-0444"),n.e("chunk-7104")]).then(n.bind(null,"kZvv"))},meta:{title:"产品满意度分析"}}]}),o()({},Me("/bi/business",!0,{permissions:["bi","business"],icon:"funnel-solid",title:"销售漏斗分析"}),{children:[{path:"funnel",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-c745")]).then(n.bind(null,"IKVb"))},meta:{title:"销售漏斗"}},{path:"addBusiness",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-88e6")]).then(n.bind(null,"Pu8u"))},meta:{title:"新增商机分析"}},{path:"conversion",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-5d49")]).then(n.bind(null,"ZxH2"))},meta:{title:"商机转化率分析"}}]}),o()({},Me("/bi/contract",!0,{permissions:["bi","contract"],icon:"results-solid",title:"员工业绩分析"}),{children:[{path:"count",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0d01"),n.e("chunk-ff31")]).then(n.bind(null,"nm8A"))},meta:{title:"合同数量分析"}},{path:"money",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0d01"),n.e("chunk-2452")]).then(n.bind(null,"uosD"))},meta:{title:"合同金额分析"}},{path:"backMoney",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0d01"),n.e("chunk-21d9")]).then(n.bind(null,"Jq73"))},meta:{title:"回款金额分析"}},{path:"summary",component:function(){return Promise.all([n.e("chunk-0d01"),n.e("chunk-7aaa")]).then(n.bind(null,"f+T/"))},meta:{title:"合同汇总表"}},{path:"invoice",component:function(){return Promise.all([n.e("chunk-0d01"),n.e("chunk-b9c4")]).then(n.bind(null,"KJIt"))},meta:{title:"发票统计分析"}}]}),o()({},Me("/bi/portrait",!0,{permissions:["bi","portrait"],icon:"s-seas",title:"客户画像分析"}),{children:[{path:"address",component:function(){return Promise.all([n.e("chunk-753d"),n.e("MTm3"),n.e("chunk-0aec")]).then(n.bind(null,"hC2P"))},meta:{title:"城市分布分析"}},{path:"customer/:type",hidden:!0,component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-47e0")]).then(n.bind(null,"7DYL"))}},{path:"customer/industry",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-47e0")]).then(n.bind(null,"7DYL"))},ignore:!0,meta:{title:"客户行业分析"}},{path:"customer/level",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-47e0")]).then(n.bind(null,"7DYL"))},ignore:!0,meta:{title:"客户级别分析"}},{path:"customer/source",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-47e0")]).then(n.bind(null,"7DYL"))},ignore:!0,meta:{title:"客户来源分析"}}]}),o()({},Me("/bi/product",!0,{permissions:["bi","product"],icon:"product",title:"产品分析"}),{children:[{path:"sales",component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-5b3b"),n.e("chunk-3760")]).then(n.bind(null,"Rw0F"))},meta:{title:"产品销售情况统计"}},{path:"category",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-2e9c")]).then(n.bind(null,"d0mj"))},meta:{title:"产品分类销量分析"}}]}),o()({},Me("/bi/ranking",!0,{permissions:["bi","ranking"],icon:"left-trophy",title:"排行榜"}),{children:[{path:"contract",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-5737")]).then(n.bind(null,"nd5u"))},meta:{title:"合同金额排行"}},{path:"receivables",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-1d37")]).then(n.bind(null,"5xTn"))},meta:{title:"回款金额排行"}},{path:"signing",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-0ed0")]).then(n.bind(null,"rWyX"))},meta:{title:"签约合同排行"}},{path:"product",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-50a8")]).then(n.bind(null,"1Rfc"))},meta:{title:"产品销量排行"}},{path:"addCustomer",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-10ff0")]).then(n.bind(null,"IXg7"))},meta:{title:"新增客户数排行"}},{path:"addContacts",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-9dfa")]).then(n.bind(null,"bHo1"))},meta:{title:"新增联系人数排行"}},{path:"recordNun",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-173b")]).then(n.bind(null,"o2d2"))},meta:{title:"跟进次数排行"}},{path:"recordCustomer",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-4baf")]).then(n.bind(null,"tn4V"))},meta:{title:"跟进客户数排行"}},{path:"examine",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-e168"),n.e("chunk-14b5")]).then(n.bind(null,"pmCI"))},meta:{title:"出差次数排行"}}]}),o()({},Me("/bi/oa",!0,{permissions:["bi","oa"],icon:"office",title:"办公分析"}),{children:[{path:"log",component:function(){return n.e("chunk-03c4").then(n.bind(null,"AO2w"))},meta:{title:"日志分析"}},{path:"examine",component:function(){return n.e("chunk-1e35").then(n.bind(null,"2kKq"))},meta:{title:"审批分析"}}]}),o()({},Me("/bi/target",!1,{permissions:["bi","achievement"]}),{children:[{path:"complete",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-dbf9")]).then(n.bind(null,"IISu"))},meta:{icon:"target-solid",title:"业绩目标完成情况"}}]})],Ve={name:"TaskExamineLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:o()({},Object(v.b)(["taskExamineRouters"])),created:function(){},methods:{navClick:function(e){}}},Be=(n("K8Pg"),Object(h.a)(Ve,function(){var e=this.$createElement,t=this._self._c||e;return t("el-container",[t("el-header",{staticClass:"nav-container"},[t("navbar",{attrs:{"nav-index":"/taskExamine"},on:{"nav-items-click":this.navClick}})],1),this._v(" "),t("el-container",[t("sidebar",{staticClass:"sidebar-container",attrs:{items:this.taskExamineRouters}}),this._v(" "),t("el-main",{staticStyle:{padding:"15px"},attrs:{id:"workLog-main-container"}},[t("app-main")],1)],1)],1)},[],!1,null,"6bdf2365",null));Be.options.__file="TaskExamineLayout.vue";var Ze=Be.exports,Ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{path:"/taskExamine",component:Ze,alwaysShow:!1,hidden:e,meta:o()({requiresAuth:!0,permissions:["oa","taskExamine"]},t)}},Ge=[o()({},Ye(!0),{children:[{path:"task-index/:type",meta:{redirect:"task-index/1"},component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-2b96")]).then(n.bind(null,"ersz"))}}]}),o()({},Ye(!1),{ignore:!0,children:[{path:"task-index/1",meta:{title:"我的任务",icon:"my-task"}}]}),o()({},Ye(!1),{ignore:!0,children:[{path:"task-index/2",meta:{title:"下属的任务",icon:"o-task"}}]}),o()({},Ye(!0),{children:[{path:"examine-index/:type",meta:{redirect:"examine-index/my"},component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-1ff3")]).then(n.bind(null,"cMzD"))}}]}),o()({},Ye(!1),{ignore:!0,children:[{path:"examine-index/my",meta:{title:"我发出的审批",icon:"apply-for"}}]}),o()({},Ye(!1),{ignore:!0,children:[{path:"examine-index/wait",meta:{title:"待我审批(办公)",icon:"approve"}}]}),o()({},Ye(!0),{children:[{path:"crm/:type",meta:{redirect:"crm/contract"},component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-ffa1")]).then(n.bind(null,"u+/2"))}}]}),o()({},Ye(!1),{ignore:!0,children:[{path:"crm/contract",meta:{title:"待我审批(合同)",icon:"contract"}}]}),o()({},Ye(!1),{ignore:!0,children:[{path:"crm/receivables",meta:{title:"待我审批(回款)",icon:"receivables"}}]}),o()({},Ye(!1),{ignore:!0,children:[{path:"crm/invoice",meta:{title:"待我审批(发票)",icon:"invoice"}}]})],We={name:"WorkLogLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:o()({},Object(v.b)(["workLogRouters"])),created:function(){},methods:{navClick:function(e){}}},Pe=(n("yw5q"),Object(h.a)(We,function(){var e=this.$createElement,t=this._self._c||e;return t("el-container",[t("el-header",{staticClass:"nav-container"},[t("navbar",{attrs:{"nav-index":"/workLog"},on:{"nav-items-click":this.navClick}})],1),this._v(" "),t("el-container",[t("sidebar",{staticClass:"sidebar-container",attrs:{items:this.workLogRouters}}),this._v(" "),t("el-main",{staticStyle:{padding:"15px"},attrs:{id:"workLog-main-container"}},[t("app-main")],1)],1)],1)},[],!1,null,"d0502a1e",null));Pe.options.__file="WorkLogLayout.vue";var Qe=Pe.exports,ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{path:"/workLog",component:Qe,alwaysShow:!1,hidden:e,meta:o()({requiresAuth:!0,permissions:["oa","log"]},t)}},qe=[o()({},ze(!0),{children:[{path:"index/:type",meta:{redirect:"index/all"},component:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-5704")]).then(n.bind(null,"da4V"))}}]}),o()({},ze(!1),{ignore:!0,children:[{path:"index/all",meta:{title:"全部",icon:"all"}}]}),o()({},ze(!1),{ignore:!0,children:[{path:"index/send",meta:{title:"我发出的",icon:"copy-to"}}]}),o()({},ze(!1),{ignore:!0,children:[{path:"index/received",meta:{title:"我收到的",icon:"email"}}]}),o()({},ze(!1,{permissions:["crm","followRecord","read"]}),{children:[{path:"follow",component:function(){return Promise.all([n.e("chunk-5b3b"),n.e("chunk-b39a")]).then(n.bind(null,"z6WW"))},meta:{title:"跟进记录",icon:"message"}}]})],Je={name:"AddressBookLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:o()({},Object(v.b)(["addressBookRouters"])),methods:{navClick:function(e){}}},Xe=(n("mBRK"),Object(h.a)(Je,function(){var e=this.$createElement,t=this._self._c||e;return t("el-container",[t("el-header",{staticClass:"nav-container"},[t("navbar",{attrs:{"nav-index":"/addressBook"},on:{"nav-items-click":this.navClick}})],1),this._v(" "),t("el-container",[t("sidebar",{staticClass:"sidebar-container",attrs:{items:this.addressBookRouters}}),this._v(" "),t("el-main",{staticStyle:{padding:"0"},attrs:{id:"addressBook-main-container"}},[t("app-main")],1)],1)],1)},[],!1,null,"2f0e7fd7",null));Xe.options.__file="AddressBookLayout.vue";var Ke=Xe.exports,He=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{path:"/addressBook",component:Ke,alwaysShow:!1,hidden:e,meta:o()({requiresAuth:!1,permissions:["oa","book"]},t)}},$e=[o()({},He(!0),{children:[{path:"index/:type",meta:{redirect:"index/all"},component:function(){return n.e("chunk-7eaf").then(n.bind(null,"20Z4"))}}]}),o()({},He(!1),{ignore:!0,children:[{path:"index/all",meta:{title:"全部",icon:"all"}}]}),o()({},He(!1),{ignore:!0,children:[{path:"index/attention",meta:{title:"我的关注",icon:"focus-on"}}]})],et={name:"CalendarLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{calendarRouters:it}},computed:{},created:function(){},methods:{navClick:function(e){}}},tt=(n("kkmX"),Object(h.a)(et,function(){var e=this.$createElement,t=this._self._c||e;return t("el-container",[t("el-header",{staticClass:"nav-container"},[t("navbar",{attrs:{"nav-index":"/calendar/index"},on:{"nav-items-click":this.navClick}})],1),this._v(" "),t("el-container",[t("sidebar",{staticClass:"sidebar-container",attrs:{items:this.calendarRouters}}),this._v(" "),t("el-main",{staticStyle:{padding:"15px"},attrs:{id:"workLog-main-container"}},[t("app-main")],1)],1)],1)},[],!1,null,"964cc03e",null));tt.options.__file="CalendarLayout.vue";var nt=tt.exports,it=[o()({},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{path:"/calendar",component:nt,meta:o()({requiresAuth:!1},e)}}({permissions:["crm"]}),{children:[{path:"index",component:function(){return Promise.all([n.e("chunk-2acc"),n.e("chunk-172a")]).then(n.bind(null,"buqt"))},meta:{title:"我的日历",icon:"board"}}]})];n.d(t,"c",function(){return rt}),n.d(t,"a",function(){return ct}),i.default.use(a.a);var at=[{path:"/login",name:"login",component:function(){return n.e("chunk-65da").then(n.bind(null,"ntYl"))},hidden:!0},{path:"/welcome",component:function(){return n.e("chunk-208d").then(n.bind(null,"sZuK"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-1b33").then(n.bind(null,"jNvO"))},hidden:!0},Re,{path:"*",redirect:"/404",hidden:!0}],st=function(){return new a.a({scrollBehavior:function(){return{y:0}},routes:at})},ot=st();function rt(){var e=st();ot.matcher=e.matcher}t.b=ot;var ct=[{type:"crm",router:ae},{type:"taskExamine",router:Ge},{type:"workLog",router:qe},{type:"addressBook",router:$e},{type:"project",router:xe},{type:"bi",router:Ne},{type:"manage",router:Se},{type:"calendar",router:it}]},oZyZ:function(e,t,n){},on6s:function(e,t,n){},p7yW:function(e,t,n){},pKm3:function(e,t,n){"use strict";var i=n("FyfS"),a=n.n(i),s=n("QbLZ"),o=n.n(s),r=n("Ew9n"),c=n("Xjjk"),l=n.n(c),u=n("hSIE"),d=n("zsVz"),p=n("Ir+r"),h=n("Flj7"),m=n("LWkM"),f=n("2X1c"),g=n("U8n8"),v=n("HslM"),b=n("z5u8"),y=n("u+Mw"),k=n("EBQf"),w=n("8GhS"),_=n("hwzM"),C=n("L2JU"),A=n("z7oh"),x=n("dPzk"),j=n("wd/R"),T=n.n(j),I=n("7Qib"),D=n("kK4T"),S={name:"TaskDetail",components:{SlideView:r.a,MembersDep:g.a,Emoji:y.a,RelatedBusiness:k.a,TagIndex:v.a,CRMFullScreenDetail:function(){return Promise.all([n.e("chunk-114a"),n.e("chunk-7122"),n.e("chunk-2f6a"),n.e("chunk-9e99"),n.e("chunk-10ff")]).then(n.bind(null,"3z7q"))},SubTask:b.a,FileCell:_.a,XhUserCell:w.p,CommentList:A.a,ReplyComment:x.a},mixins:[D.a],props:{id:[String,Number],isTrash:Boolean,detailIndex:Number,detailSection:Number,noListenerClass:{type:Array,default:function(){return["el-table__body"]}}},data:function(){var e=this;return{loading:null,canShowDetail:!0,priorityVisible:!1,startTimeOptions:{disabledDate:function(t){return!(!e.taskData||!e.taskData.stop_time)&&T()(t).isAfter(e.taskData.stop_time)}},stopTimeOptions:{disabledDate:function(t){return!(!e.taskData||!e.taskData.start_time)&&T()(t).isBefore(e.taskData.start_time)}},addSubtasks:!0,nameVinput:!1,taskDataName:"",addDescriptionShow:!1,addDescriptionTextarea:"",subTaskComplete:0,addComments:!1,allData:{},commentsLoading:!1,relatedID:"",relatedCRMType:"",showRelatedDetail:!1,subTaskID:null,taskData:null,activityList:[],fileList:[],replyList:[]}},computed:o()({},Object(C.b)(["userInfo"]),{priority:function(){return 0!=this.taskData.priority&&this.taskData.priority?this.getPriorityColor(this.taskData.priority):this.priorityList[3]},isArchive:function(){return 1==this.taskData.is_archive&&1!=this.taskData.ishidden},isRecycle:function(){return 1==this.taskData.ishidden},showArchiveBtn:function(){return this.workId&&!this.isArchive&&!this.isRecycle},subTaskProgress:function(){return 0==this.subTaskComplete?0:parseInt(this.subTaskComplete/this.taskData.subTaskList.length*100)},ownerListRequest:function(){return this.workId?m.w:null},ownerListParams:function(){return this.workId?{work_id:this.workId}:null},workId:function(){return this.taskData&&this.taskData.work_id},labelList:function(){return this.taskData?this.taskData.lable_list||[]:null}}),watch:{id:function(e){this.initInfo(),this.getDetail(),this.getCommentList(),this.getActivityList()},labelList:function(e,t){t&&e&&this.$emit("on-handle",{type:"change-label",value:e,index:this.detailIndex,section:this.detailSection})},addDescriptionTextarea:function(e){this.$refs.sideView.isEditClose=!!(e&&e.length>0)}},mounted:function(){},beforeDestroy:function(){},methods:{viewAfterEnter:function(){this.id&&(this.getDetail(),this.getCommentList(),this.getActivityList())},initInfo:function(){this.taskData=null,this.subTaskComplete=0,this.addDescriptionShow=!1,this.priorityVisible=!1,this.addSubtasks=!0,this.nameVinput=!1,this.addDescriptionTextarea="",this.addComments=!1,this.allData={business:[],contacts:[],contract:[],customer:[]},this.relatedID="",this.showRelatedDetail=!1,this.activityList=[],this.fileList=[],this.replyList=[]},getDetail:function(){var e=this;this.loading=!0,(this.isTrash?d.c:d.b)({task_id:this.id}).then(function(t){var n=t.data;if(n.checked=5==n.status,n.subTaskList){var i=!0,s=!1,o=void 0;try{for(var r,c=a()(n.subTaskList);!(i=(r=c.next()).done);i=!0){var l=r.value;5==l.status?(l.checked=!0,e.subTaskComplete++):l.checked=!1}}catch(e){s=!0,o=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw o}}}e.fileList=n.fileList||[],e.allData={business:(n.businessList||[]).map(function(e){return e.id&&(e.businessId=e.id),e}),contacts:(n.contactsList||[]).map(function(e){return e.id&&(e.contactsId=e.id),e}),contract:(n.contractList||[]).map(function(e){return e.id&&(e.contractId=e.id),e}),customer:(n.customerList||[]).map(function(e){return e.id&&(e.customerId=e.id),e})},e.getCommentList(n.replyList),e.taskData=n,e.loading=!1}).catch(function(t){e.loading=!1,t&&"没有权限"==t.msg?e.canShowDetail=!1:e.closeBtn()})},getActivityList:function(){var e=this;Object(d.e)({task_id:this.id,work_id:this.workId}).then(function(t){e.activityList=t.data}).catch(function(){})},getCommentList:function(e){this.replyList=e||[]},completeMainTask:function(e){var t=this;this.taskData.checked=e,Object(h.n)({work_id:this.workId,task_id:this.id,status:this.taskData.checked?5:1}).then(function(n){t.$emit("on-handle",{type:"title-check",value:e,index:t.detailIndex,section:t.detailSection})}).catch(function(){t.taskData.checked=!t.taskData.checked})},editTaskName:function(){this.getPermission("setTaskTitle")&&(this.nameVinput=!0,this.taskDataName=this.taskData.name)},editTaskDescription:function(){this.getPermission("setTaskDescription")&&(this.addDescriptionShow=!0,this.addDescriptionTextarea=this.taskData.description)},getPermission:function(e){return!this.workId||!!(this.taskData&&this.taskData.auth||{})[e]},closeBtn:function(){this.$emit("close")},priorityBtn:function(e,t){var n=this;this.taskData.priority=e.id,Object(h.m)({work_id:this.workId,task_id:this.id,priority_id:e.id}).then(function(t){n.$emit("on-handle",{type:"change-priority",value:e,index:n.detailIndex,section:n.detailSection}),n.priorityVisible=!1}).catch(function(){n.$message.error("编辑失败"),n.taskData.priority=t})},moreDelete:function(){var e=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){Object(h.g)({task_id:e.id,work_id:e.workId}).then(function(t){e.$message.success("删除成功"),e.$emit("on-handle",{type:"delete",index:e.detailIndex,section:e.detailSection}),e.$emit("close")}).catch(function(){})}).catch(function(){e.$message({type:"info",message:"已取消删除"})})},moreArchive:function(){var e=this;this.$confirm("此操作将归档该任务, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){Object(u.e)({task_id:e.id,work_id:e.workId}).then(function(t){e.$message.success("操作成功"),e.$emit("on-handle",{type:"delete",index:e.detailIndex,section:e.detailSection}),e.$emit("close")}).catch(function(){})}).catch(function(){e.$message({type:"info",message:"已取消删除"})})},httpRequest:function(e){var t=this;this.$wkUploadFile.upload({file:e.file,params:{work_id:this.workId,type:"file",module:"work_task",module_id:this.id,batchId:this.taskData.batchId}}).then(function(e){var n=e.res.data||{};t.fileList.push(n),t.$message.success("上传成功")}).catch(function(){})},accessoryDeleteFun:function(e,t){this.fileList.splice(e,1)},subtasksCheckbox:function(e,t){var n=this;t?(this.$set(e,"checked",!0),this.subTaskComplete++):(this.$set(e,"checked",!1),this.subTaskComplete--),Object(h.d)({work_id:this.workId,task_id:e.task_id,status:t?5:1}).then(function(e){n.$emit("on-handle",{type:"change-sub-task",value:{subdonecount:n.subTaskComplete,allcount:n.taskData.subTaskList.length},index:n.detailIndex,section:n.detailSection})}).catch(function(){n.$message.error("子任务标记失败"),t?(n.$set(e,"checked",!1),n.subTaskComplete--):(n.$set(e,"checked",!0),n.subTaskComplete++)})},editOwnerList:function(e,t){var n=this;Object(h.l)({work_id:this.workId,task_id:this.id,owner_userids:e.map(function(e){return e.id}).join(",")}).then(function(t){n.taskData.owner_list=e}).catch(function(){})},deleteOwnerList:function(e,t){var n=this;Object(h.k)({work_id:this.workId,task_id:this.id,owner_userid_del:e.id,type:"owner_userid_del"}).then(function(e){n.taskData.owner_list.splice(t,1)}).catch(function(){})},mainUserChange:function(e){var t=e.value.length>0?e.value[0]:null;this.submiteMainUser(t)},submiteMainUser:function(e){var t=this;Object(h.j)({work_id:this.workId,task_id:this.id,main_user_id:e?e.id:"",type:"main_user_id"}).then(function(n){e?t.$set(t.taskData,"main_user",e):t.$set(t.taskData,"main_user",null),t.$emit("on-handle",{type:"change-main-user",value:e,index:t.detailIndex,section:t.detailSection})}).catch(function(){})},submiteTaskName:function(e){var t=this;Object(h.p)({work_id:this.workId,name:e,type:"name",task_id:this.id}).then(function(n){t.nameVinput=!1,t.$emit("on-handle",{type:"change-name",value:e,index:t.detailIndex,section:t.detailSection}),t.taskData.name=e}).catch(function(){})},deleteTime:function(e){this.taskData[e]="",this.timeChange(e)},timeChange:function(e){var t=this,n={task_id:this.id,type:e,work_id:this.workId};n[e]=this.taskData[e],Object(h.o)(n).then(function(n){"stop_time"==e&&t.$emit("on-handle",{type:"change-stop-time",value:t.taskData[e],index:t.detailIndex,section:t.detailSection})}).catch(function(){})},submiteDescription:function(){var e=this;Object(h.h)({work_id:this.workId,task_id:this.id,description:this.addDescriptionTextarea}).then(function(t){e.addDescriptionShow=!1,e.$set(e.taskData,"description",e.addDescriptionTextarea),e.addDescriptionTextarea=""}).catch(function(){})},handleReply:function(e){var t=this;e&&(this.commentsLoading=!0,Object(p.c)({work_id:this.workId,type_id:this.id,type:1,content:l()(e)}).then(function(e){e.data.childCommentList=[],e.data.user={userId:t.userInfo.id,realname:t.userInfo.realname,img:t.userInfo.img},t.$refs.f_reply.commentsTextarea="",t.replyList.push(e.data),t.$emit("on-handle",{type:"change-comments",value:"add",index:t.detailIndex,section:t.detailSection}),t.commentsLoading=!1}).catch(function(){t.commentsLoading=!1}))},deleteComment:function(e){this.replyList.splice(e,1)},discussDelete:function(e,t,n){var i=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){Object(p.a)({work_id:i.workId,comment_id:e.comment_id,task_id:i.id}).then(function(e){t.splice(n,1),i.$emit("on-handle",{type:"change-comments",value:"delete",index:i.detailIndex,section:i.detailSection})}).catch(function(){})}).catch(function(){i.$message({type:"info",message:"已取消删除"})})},checkInfos:function(e,t){var n=this;Object(d.d)({work_id:this.taskData.work_id,task_id:this.id,customer_ids:e.customerIds&&e.customerIds.length?e.customerIds:[],contacts_ids:e.contactsIds&&e.contactsIds.length?e.contactsIds:[],business_ids:e.businessIds&&e.businessIds.length?e.businessIds:[],contract_ids:e.contractIds&&e.contractIds.length?e.contractIds:[]}).then(function(e){n.$message.success("关联成功"),n.allData=t,n.$emit("on-handle",{type:"relation-business",index:n.detailIndex,section:n.detailSection})}).catch(function(){})},unbindRelatedInfo:function(e,t,n){var i=this;this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){var a={work_id:i.workId,task_id:i.taskData.task_id,id:t[e+"_id"],type:{customer:1,contacts:2,business:3,contract:4}[e]},s=Object(I.t)(i.allData);s[e].splice(n,1),Object(d.a)(a).then(function(e){i.allData=s,i.$message.success("关联取消成功")}).catch(function(){})}).catch(function(){i.$message.info("已取消操作")})},checkRelatedDetail:function(e,t){this.relatedID=t[e+"_id"],this.relatedCRMType=e,this.showRelatedDetail=!0},deleteSubTask:function(e){var t=this;this.$confirm("此操作将删除该任务, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){Object(h.b)({task_id:e.task_id,work_id:t.workId}).then(function(n){var i=t.taskData.subTaskList;for(var a in i)if(i[a].task_id==e.task_id){i.splice(a,1);break}e.checked&&t.subTaskComplete--,t.$emit("on-handle",{type:"change-sub-task",value:{subdonecount:t.subTaskComplete,allcount:t.taskData.subTaskList.length},index:t.detailIndex,section:t.detailSection}),t.$message.success("子任务删除成功")}).catch(function(){t.$message.error("子任务删除失败")})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},editSubTask:function(e){this.subTaskID=e.task_id;var t=this.taskData.subTaskList;for(var n in t)t[n].task_id==e.task_id?this.$set(t[n],"showEdit",!0):this.$set(t[n],"showEdit",!1)},handleSubTasksBlock:function(e,t){"edit"==e.type?this.$set(t,"showEdit",!1):"add"==e.type?(this.addSubtasks=!0,e.result,this.$emit("on-handle",{type:"change-sub-task",value:{subdonecount:this.subTaskComplete,allcount:this.taskData.subTaskList.length},index:this.detailIndex,section:this.detailSection})):"cancel"==e.type&&(t?this.$set(t,"showEdit",!1):this.addSubtasks=!0)},deleteTimeTop:function(){var e=this;Object(h.o)({work_id:this.workId,task_id:this.id,stop_time:""}).then(function(t){e.$set(e.taskData,"stop_time",""),e.$emit("on-handle",{type:"stop-time",index:e.detailIndex,section:e.detailSection})}).catch(function(){})},activateTask:function(){var e=this;this.loading=!0,Object(u.g)({task_id:this.taskData.task_id,work_id:this.workId}).then(function(t){e.loading=!1,e.$emit("on-handle",{type:"activate-task",index:e.detailIndex,section:e.detailSection}),e.closeBtn()}).catch(function(){e.loading=!1})},recoverTask:function(){var e=this;this.loading=!0,Object(f.c)({task_id:this.taskData.task_id,work_id:this.workId}).then(function(t){e.loading=!1,e.$message.success("恢复成功"),e.$emit("on-handle",{type:"recover-task",index:e.detailIndex,section:e.detailSection}),e.closeBtn()}).catch(function(){e.loading=!1})},thoroughDeleteTask:function(){var e=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0,Object(f.a)({task_id:e.taskData.task_id,work_id:e.workId}).then(function(t){e.loading=!1,e.$emit("on-handle",{type:"thorough-delete-task",index:e.detailIndex,section:e.detailSection}),e.closeBtn()}).catch(function(){e.loading=!1})}).catch(function(){e.$message({type:"info",message:"已取消删除"})})},morkDropdownClick:function(e){this.moreDelete()},hideView:function(){this.$emit("close"),this.$emit("hide-view")},closeOtherReply:function(e){!e&&this.$refs.comment_list&&this.$refs.comment_list.closeReply()}}},F=(n("Z1PZ"),n("KHd+")),O=Object(F.a)(S,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],ref:"sideView",staticClass:"d-view",attrs:{"no-listener-class":e.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{afterEnter:e.viewAfterEnter,close:e.hideView}},[null!==e.loading?i("flexbox",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"main",attrs:{direction:"column",align:"stretch"}},[e.taskData?i("div",{staticClass:"main__hd task-hd"},[i("flexbox",{staticClass:"task-hd__top",attrs:{justify:"space-between"}},[e.taskData.create_user_info?i("span",{staticClass:"task-hd__top--create"},[e._v(e._s(e.taskData.create_user_info.realname)+" 创建于 "+e._s(e.taskData.create_time))]):e._e(),e._v(" "),i("div",[e.isArchive?i("span",{staticClass:"task-hd__top--info"},[e._v("该任务已于 "+e._s(e.taskData.archive_time)+" 被归档")]):e._e(),e._v(" "),e.isArchive?i("el-button",{staticClass:"xr-btn--primary",attrs:{icon:"wk wk-activation",type:"primary"},on:{click:e.activateTask}},[e._v("激活")]):e._e(),e._v(" "),e.isRecycle?i("span",{staticClass:"task-hd__top--info"},[e._v("该任务已于 "+e._s(e.taskData.hidden_time)+" 被放入回收站")]):e._e(),e._v(" "),e.isRecycle&&e.getPermission("restoreTask")?i("el-button",{staticClass:"xr-btn--primary",attrs:{icon:"wk wk-activation",type:"primary"},on:{click:e.recoverTask}},[e._v("恢复")]):e._e(),e._v(" "),e.isRecycle&&e.getPermission("cleanTask")?i("el-button",{staticClass:"xr-btn--red",attrs:{icon:"el-icon-delete-solid",type:"primary"},on:{click:e.thoroughDeleteTask}},[e._v("彻底删除")]):e._e(),e._v(" "),e.showArchiveBtn&&e.getPermission("archiveTask")?i("el-button",{staticClass:"xr-btn--green",attrs:{icon:"wk wk-archive",type:"primary"},on:{click:e.moreArchive}},[e._v("归档")]):e._e(),e._v(" "),!e.isRecycle&&e.getPermission("deleteTask")?i("el-dropdown",{attrs:{trigger:"click"},on:{command:e.morkDropdownClick}},[i("el-button",{attrs:{icon:"el-icon-more"}}),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{icon:e._f("wkIconPre")("delete"),command:"delete"}},[e._v("删除")])],1)],1):e._e()],1)]),e._v(" "),i("flexbox",{staticClass:"task-hd__middle",attrs:{align:"stretch"}},[i("el-checkbox",{attrs:{disabled:!e.getPermission("setTaskStatus")},on:{change:e.completeMainTask},model:{value:e.taskData.checked,callback:function(t){e.$set(e.taskData,"checked",t)},expression:"taskData.checked"}}),e._v(" "),e.nameVinput?i("div",{staticClass:"show-input"},[i("el-input",{attrs:{maxlength:100,size:"medium"},model:{value:e.taskDataName,callback:function(t){e.taskDataName=t},expression:"taskDataName"}}),e._v(" "),i("div",{staticClass:"btn-box"},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.submiteTaskName(e.taskDataName)}}},[e._v("保 存")]),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:function(t){e.nameVinput=!1}}},[e._v("取 消")])],1)],1):i("el-tooltip",{attrs:{content:e.taskData.name,effect:"dark",placement:"top"}},[i("div",{class:["task-name",{"is-checked":e.taskData.checked}],on:{click:e.editTaskName}},[e._v(e._s(e.taskData.name))])])],1),e._v(" "),i("flexbox",{staticClass:"task-hd__bottom"},[i("flexbox-item",{staticClass:"priority"},[i("flexbox",{nativeOn:{click:function(t){e.priorityVisible=!0}}},[i("el-popover",{attrs:{disabled:!e.getPermission("setTaskPriority"),"popper-class":"no-padding-popover",placement:"bottom",trigger:"click"},model:{value:e.priorityVisible,callback:function(t){e.priorityVisible=t},expression:"priorityVisible"}},[i("flexbox",{staticClass:"priority-select"},e._l(e.priorityList,function(t,n){return i("div",{key:n,staticClass:"priority-select-item",on:{click:function(n){e.priorityBtn(t,e.taskData.priority)}}},[i("span",{staticClass:"priority--icon",style:{backgroundColor:t.color}},[e._v(e._s(t.label))])])})),e._v(" "),i("span",{staticClass:"priority--icon",style:{backgroundColor:e.priority.color},attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.priority.label))])],1),e._v(" "),i("div",{staticClass:"head-btn__bd"},[i("div",{staticClass:"head-btn__bd--des"},[e._v("优先级")])])],1)],1),e._v(" "),i("flexbox-item",[i("xh-user-cell",{staticStyle:{width:"100%"},attrs:{value:e.taskData.main_user?[e.taskData.main_user]:[],"info-request":e.ownerListRequest,"info-params":e.ownerListParams,disabled:!e.getPermission("setTaskMainUser"),placement:"top",radio:""},on:{"value-change":e.mainUserChange}},[i("flexbox",{staticClass:"head-btn",attrs:{slot:"reference"},slot:"reference"},[e.taskData.main_user?i("xr-avatar",{staticClass:"user-img",attrs:{name:e.taskData.main_user?e.taskData.main_user.realname:"",size:32,src:e.taskData.main_user?e.taskData.main_user.img:""}}):i("i",{staticClass:"wk wk-l-plus head-btn__icon is-null"}),e._v(" "),i("div",{staticClass:"head-btn__bd"},[e.taskData.main_user?i("div",{staticClass:"head-btn__bd--title"},[e._v(e._s(e.taskData.main_user.realname))]):e._e(),e._v(" "),i("div",{staticClass:"head-btn__bd--des"},[e._v("负责人")])]),e._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:e.taskData.main_user&&e.getPermission("setTaskMainUser"),expression:"taskData.main_user && getPermission('setTaskMainUser')"}],staticClass:"el-icon-close head-btn__close",on:{click:function(t){e.submiteMainUser(null)}}})],1)],1)],1),e._v(" "),i("flexbox-item",[i("flexbox",{staticClass:"head-btn"},[i("i",{staticClass:"wk wk-l-time head-btn__icon",class:[e.taskData.start_time?"is-valve":"is-null"]}),e._v(" "),i("el-date-picker",{attrs:{clearable:!1,disabled:!e.getPermission("setTaskTime"),"picker-options":e.startTimeOptions,type:"date","value-format":"yyyy-MM-dd"},on:{change:function(t){e.timeChange("start_time")}},model:{value:e.taskData.start_time,callback:function(t){e.$set(e.taskData,"start_time",t)},expression:"taskData.start_time"}}),e._v(" "),i("div",{staticClass:"head-btn__bd"},[e.taskData.start_time?i("div",{staticClass:"head-btn__bd--title"},[e._v(e._s(e._f("moment")(e.taskData.start_time,"YYYY年MM月DD日")))]):e._e(),e._v(" "),i("div",{staticClass:"head-btn__bd--des"},[e._v("开始时间")])]),e._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:e.taskData.start_time,expression:"taskData.start_time"}],staticClass:"el-icon-close head-btn__close",on:{click:function(t){e.deleteTime("start_time")}}})],1)],1),e._v(" "),i("flexbox-item",[i("flexbox",{staticClass:"head-btn"},[i("i",{staticClass:"wk wk-l-minus head-btn__icon",class:[e.taskData.stop_time?"is-valve":"is-null"]}),e._v(" "),i("el-date-picker",{attrs:{clearable:!1,disabled:!e.getPermission("setTaskTime"),"picker-options":e.stopTimeOptions,type:"date","value-format":"yyyy-MM-dd"},on:{change:function(t){e.timeChange("stop_time")}},model:{value:e.taskData.stop_time,callback:function(t){e.$set(e.taskData,"stop_time",t)},expression:"taskData.stop_time"}}),e._v(" "),i("div",{staticClass:"head-btn__bd"},[e.taskData.stop_time?i("div",{staticClass:"head-btn__bd--title"},[e._v(e._s(e._f("moment")(e.taskData.stop_time,"YYYY年MM月DD日")))]):e._e(),e._v(" "),i("div",{staticClass:"head-btn__bd--des"},[e._v("结束时间")])]),e._v(" "),i("i",{directives:[{name:"show",rawName:"v-show",value:e.taskData.stop_time,expression:"taskData.stop_time"}],staticClass:"el-icon-close head-btn__close",on:{click:function(t){e.deleteTime("stop_time")}}})],1)],1)],1)],1):e._e(),e._v(" "),e.taskData?i("flexbox",{staticClass:"main__bd",attrs:{align:"stretch"}},[i("div",{staticClass:"main__bd--left"},[i("flexbox",[i("flexbox-item",{staticClass:"participant"},[i("div",{staticClass:"participant-title"},[e._v("参与人")]),e._v(" "),i("flexbox",{staticClass:"participant-bd",attrs:{wrap:"wrap"}},[e._l(e.taskData.owner_list,function(t,a){return i("span",{key:a,staticClass:"owner-list"},[i("el-tooltip",{attrs:{placement:"bottom",effect:"light","popper-class":"tooltip-change-border"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("span",[e._v(e._s(t.realname))])]),e._v(" "),i("xr-avatar",{staticClass:"user-img",attrs:{name:t.realname,size:32,src:t.img||t.thumb_img}})],1),e._v(" "),e.getPermission("setTaskOwnerUser")?i("img",{staticClass:"el-icon-close",attrs:{src:n("cEue")},on:{click:function(n){e.deleteOwnerList(t,a)}}}):e._e()],1)}),e._v(" "),e.getPermission("setTaskOwnerUser")?i("members-dep",{attrs:{"close-dep":!0,"content-block":!1,"user-checked-data":e.taskData.owner_list,"user-request":e.ownerListRequest,"user-params":e.ownerListParams},on:{popoverSubmit:e.editOwnerList}},[i("i",{staticClass:"wk wk-l-plus participant-add",attrs:{slot:"membersDep"},slot:"membersDep"})]):e._e()],2)],1),e._v(" "),e.labelList?i("flexbox-item",{staticClass:"label"},[i("div",{staticClass:"label-title"},[e._v("标签")]),e._v(" "),e._l(e.labelList,function(t,n){return i("span",{key:n,staticClass:"item-color",style:{background:t.color?t.color:"#ccc"}},[e._v("\n "+e._s(t.name)+"\n ")])}),e._v(" "),e.getPermission("setTaskLabel")?i("div",{staticClass:"add-tag"},[i("tag-index",{attrs:{placement:"right","task-data":e.taskData}},[i("span",{staticClass:"add-btn",attrs:{slot:"editIndex"},slot:"editIndex"},[i("i",{staticClass:"wk wk-l-plus"}),e._v(" "),i("span",{staticClass:"label"},[e._v("标签")])])])],1):e._e()],2):e._e()],1),e._v(" "),i("div",{staticClass:"secitons"},[i("div",{staticClass:"section"},[i("div",{staticClass:"section__hd"},[i("i",{staticClass:"wk wk-write"}),e._v(" "),i("span",[e._v("描述")])]),e._v(" "),i("div",{staticClass:"section__bd description"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.addDescriptionShow,expression:"!addDescriptionShow"}]},[e.taskData.description?i("div",{staticClass:"description-content",on:{click:e.editTaskDescription}},[e._v(e._s(e.taskData.description))]):i("div",{staticClass:"description-empty"},[i("span",{staticClass:"color-label"},[e._v("暂无描述")]),e._v(" "),e.getPermission("setTaskDescription")?i("span",{staticClass:"add-btn",on:{click:function(t){e.addDescriptionShow=!0}}},[i("i",{staticClass:"wk wk-l-plus"}),e._v(" "),i("span",{staticClass:"label"},[e._v("描述")])]):e._e()])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.addDescriptionShow,expression:"addDescriptionShow"}]},[i("el-input",{attrs:{autosize:{minRows:2},maxlength:2e3,"show-word-limit":"",type:"textarea",placeholder:"请输入内容"},model:{value:e.addDescriptionTextarea,callback:function(t){e.addDescriptionTextarea=t},expression:"addDescriptionTextarea"}}),e._v(" "),i("div",{staticClass:"btn-box"},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submiteDescription}},[e._v("保 存")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){e.addDescriptionTextarea="",e.addDescriptionShow=!1}}},[e._v("取 消")])],1)],1)])]),e._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"section__hd"},[i("i",{staticClass:"wukong wukong-relevance"}),e._v(" "),i("span",[e._v("相关信息")])]),e._v(" "),i("div",{staticClass:"section__bd"},[i("related-business",{attrs:{"margin-left":"0","all-data":e.allData,"show-foot":e.getPermission("saveTaskRelation"),"show-add":e.getPermission("saveTaskRelation")},on:{checkRelatedDetail:e.checkRelatedDetail,checkInfos:e.checkInfos,unbind:e.unbindRelatedInfo}})],1)]),e._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"section__hd"},[i("i",{staticClass:"wukong wukong-sub-task"}),e._v(" "),i("span",[e._v("子任务("+e._s(e.subTaskComplete)+"/"+e._s(e.taskData.subTaskList.length)+")")])]),e._v(" "),i("div",{staticClass:"section__bd"},[0==e.taskData.pid?i("div",[i("div",[0!=e.taskData.subTaskList.length?[i("el-progress",{attrs:{percentage:e.subTaskProgress,"stroke-width":10}})]:[i("el-progress",{attrs:{percentage:0}})]],2),e._v(" "),0!=e.taskData.subTaskList.length?e._l(e.taskData.subTaskList,function(t,n){return i("div",{key:n},[t.showEdit?i("sub-task",{attrs:{"sub-task-com":"edit",time:t.stop_time,"sub-data":t,text:t.name,"task-id":e.subTaskID,"checkbox-data":t.checked,"task-data":e.taskData},on:{"on-handle":function(n){e.handleSubTasksBlock(n,t)}}}):i("flexbox",{staticClass:"sub-task"},[i("div",{on:{click:function(e){e.stopPropagation()}}},[i("el-checkbox",{attrs:{disabled:!e.getPermission("setChildTaskStatus")},on:{change:function(n){e.subtasksCheckbox(t,n)}},model:{value:t.checked,callback:function(n){e.$set(t,"checked",n)},expression:"item.checked"}})],1),e._v(" "),i("div",{staticClass:"sub-task__bd text-one-line",class:{"is-checked":t.checked}},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),i("div",{staticClass:"edit-del-box"},[e.getPermission("updateChildTask")?i("span",{staticClass:"xr-text-btn primary",on:{click:function(n){e.editSubTask(t)}}},[e._v("编辑")]):e._e(),e._v(" "),e.getPermission("deleteChildTask")?i("span",{staticClass:"xr-text-btn delete",on:{click:function(n){e.deleteSubTask(t)}}},[e._v("删除")]):e._e()]),e._v(" "),t.stop_time?i("div",{staticClass:"bg-color task-bg-color",staticStyle:{"margin-left":"8px"}},[e._v(e._s(e._f("moment")(t.stop_time,"YYYY-MM-DD"))+" 截止")]):e._e(),e._v(" "),t.mainUser||t.main_user_id?i("xr-avatar",{staticClass:"user-img",attrs:{name:t.mainUser&&t.mainUser.realname||t.realname,size:25,src:t.mainUser&&t.mainUser.thumb_img||t.thumb_img}}):e._e()],1)],1)}):e._e(),e._v(" "),e.getPermission("addChildTask")?[e.addSubtasks?i("div",[i("span",{staticClass:"add-btn",on:{click:function(t){e.addSubtasks=!1}}},[i("i",{staticClass:"wk wk-l-plus"}),e._v(" "),i("span",{staticClass:"label"},[e._v("子任务")])])]):i("sub-task",{attrs:{"sub-task-com":"new","task-data":e.taskData},on:{"on-handle":e.handleSubTasksBlock}})]:e._e()],2):e._e()])]),e._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"section__hd"},[i("i",{staticClass:"wukong wukong-file"}),e._v(" "),i("span",[e._v("附件")]),e._v(" "),e.fileList.length?i("span",[e._v("("+e._s(e.fileList.length)+")")]):e._e()]),e._v(" "),i("div",{staticClass:"section__bd"},[e._l(e.fileList,function(t,n){return i("file-cell",{key:n,attrs:{data:t,list:e.fileList,"cell-index":n,"module-id":e.id,"show-delete":e.getPermission("deleteTaskFile")},on:{delete:e.accessoryDeleteFun}})}),e._v(" "),e.getPermission("uploadTaskFile")?i("el-upload",{staticClass:"upload-file",attrs:{"http-request":e.httpRequest,action:"https://jsonplaceholder.typicode.com/posts/",multiple:"","list-type":"picture"}},[i("span",{staticClass:"add-btn"},[i("i",{staticClass:"wk wk-l-plus"}),e._v(" "),i("span",{staticClass:"label"},[e._v("附件")])])]):e._e()],2)])])],1),e._v(" "),i("div",{staticClass:"main__bd--right"},[i("el-tabs",{staticClass:"d-container-bd--right",attrs:{value:"comment",type:"border-card"}},[i("el-tab-pane",{attrs:{label:"评论",name:"comment",lazy:""}},[i("flexbox",{directives:[{name:"loading",rawName:"v-loading",value:e.commentsLoading,expression:"commentsLoading"}],staticClass:"comment-cells",attrs:{direction:"column",align:"stretch"}},[i("comment-list",{ref:"comment_list",attrs:{id:e.taskData.task_id,list:e.replyList,type:"1"},on:{delete:e.deleteComment,"close-other-reply":function(t){e.$refs.f_reply.toggleFocus(!0)}}}),e._v(" "),i("reply-comment",{ref:"f_reply",on:{toggle:e.closeOtherReply,reply:e.handleReply}})],1)],1),e._v(" "),i("el-tab-pane",{attrs:{label:"活动",name:"activity",lazy:""}},[i("div",{staticClass:"activity-cells"},e._l(e.activityList,function(t,n){return i("flexbox",{key:n,staticClass:"activity-cell",attrs:{align:"stretch"}},[i("xr-avatar",{staticClass:"user-img",attrs:{name:t.realname,size:26,src:t.img||t.thumb_img}}),e._v(" "),i("div",{staticClass:"activity-cell__bd"},[i("div",{staticClass:"activity-info"},[i("span",{staticClass:"activity-info--name"},[e._v(e._s(t.realname))]),e._v(" "),i("span",{staticClass:"activity-info--time"},[e._v(e._s(t.create_time))])]),e._v(" "),i("div",{staticClass:"activity-content"},[e._v(e._s(t.content))])])],1)}))])],1)],1)]):e._e()],1):e._e(),e._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:e.showRelatedDetail,"crm-type":e.relatedCRMType,id:e.relatedID},on:{"update:visible":function(t){e.showRelatedDetail=t}}})],1)},[],!1,null,"3c3d1c8a",null);O.options.__file="TaskDetail.vue";t.a=O.exports},qGmm:function(e,t,n){},qRjM:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxNkJBNEU5NDA1MkYxMUVBOTg2MERFMjZCQjEzNUI1NCIgeG1wTU06RG9jdW1lbn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2N1bWVudElEPSJ4bXAuZGlkOkU0QUVEMDJCQ0U5MTExRTg5QTI3OEYxRTQyREIzMjY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTRBRUQwMjhDRTkxMTFFODlBMjc4RjFFNDJEQjMyNjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTRBRUQwMjlDRTkxMTFFODlBMjc4RjFFNDJEQjMyNjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6MJayEAAAAYklEQVR42mL4////kf/kg8NAzICOmRgoA4xYBUEmUxFwAfFUBmzOJxNrAvHl/1Q0MAGIv8ICmoHMiEKOoCh0SSYqRNBPDFkqeT8O3fvUwjpAfB1kKLWTFDcQT2EYMjkKIMAAUDH69/mVXckAAAAASUVORK5CYII="},qpGn:function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("GQeE"),o=n.n(s),r=n("4XAY"),c=n("AAeT"),l=n("gVZb"),u=n("EP+0"),d=n("UGe0"),p=n("8GhS"),h=(n("ZoMv"),n("IEYw")),m=n("a/5N"),f={name:"ContactsCreate",components:{XrCreate:l.a,CreateSections:u.a,CrmRelativeCell:p.a,WkForm:d.a},mixins:[h.a],props:{phone:String,action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{}}},computed:{title:function(){return"update"===this.action.type?"编辑联系人":"新建联系人"}},watch:{},created:function(){this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_contacts",module:"crm",controller:"contacts",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.id),Object(r.x)(t).then(function(t){var n=t.data||[];Object(m.b)(e.phone)||n.forEach(function(t){"mobile"===t.formType&&(t.defaultValue=e.phone)});var i=[],a={},s={};n.forEach(function(t){var n={};n.field=t.field,n.formType=t.form_type,n.fieldId=t.fieldId,n.inputTips=t.input_Tips,n.name=t.name,n.setting=t.setting;var o=e.getItemIsCanEdit(t,e.action.type);if(o&&(a[n.field]=e.getRules(t)),n.disabled=!o,"customer"==n.formType&&"relative"==e.action.type){var r={customer:{customer:!0},business:{customer:!0}}[e.action.crmType];r&&(n.disabled=r[t.form_type]||!1)}e.getItemRadio(t,n),s[n.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(n)}),e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm.instance;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var i=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(i.id=e.action.id),e.submiteParams(i)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id),this.action.relativeData&&o()(this.action.relativeData).length&&(e=a()({},e,this.action.relativeData)),Object(c.l)(e).then(function(e){t.loading=!1,t.$message.success("update"==t.action.type?"编辑成功":"添加成功"),t.close(),t.$emit("save-success",{type:"contacts"})}).catch(function(){t.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},close:function(){this.$emit("close")}}},g=(n("Ss3G"),n("KHd+")),v=Object(g.a)(f,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[i&&"customer"==i.formType?n("crm-relative-cell",{attrs:{value:e.fieldForm[i.field],disabled:i.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,i)}}}):e._e()]}}])})],1)],1)},[],!1,null,"e65c9146",null);v.options.__file="Create.vue";t.a=v.exports},qu7a:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxMjc3MDcyQzA1MkYxMUVBQkNDNUYwRjNEOERBRTEwNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxMjc3MDcyRDA1MkYxMUV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CBk0M1GrysyzE/dVvW3h6Ci6whJPzL1vq/79LbfW17Kf3nLQI7FR2syokolfnt8pmPWvogX2/jn5ar3vCYLBWUzYT18NbCBjjUJge3FVvoJMHAZJUtHhOtnJfbgpzijBqZ+35Uc4lgRVRZHuinVS3s/Xugry21Yi2y+hW1WlihFYWVZYkibGHfa6r0wd6xoTVZW+t86rO+z92SdbFySJxfyv0n6q4j8A5Q3vCEKry13XtdcuVzbrxNxTIdRtbFpGWVlkMqpK7Q+j6t2rqKjKnb1iklRTX3vQj5f7zY0F6wUu9BX4vMZUnihWWJH78u78h6GztYcpqJ3xP72MFZQ7zjRxv+IJfef5PRgFBboPFH4BgumHSIJou3Lebphxv+O+m0yrpcZG2k0nzuuZdKaaklcvr95P74uO+jNWv1/r3jOZs8zHjkz1sm9fzWySqBlt6+n5ys5S7fo0drNiOMnHA4vOX+SQ1VSeybfX5r0wDJt/Jvbq/9e/27Vu1ciWxDj3/b9yVZOjeyciy79ZFAjoeX5x9+8qGGUgIZSTCyIzuwaZUb2NBC1XGPXiANXlPasXlXXenGHxlfGRqKd14zFoNKHNzsUOgTJLWev/o1+JnEiGh9xAKdwfJ2cFq8dUNEnM7Zuul+/pYaDQBAVkBWAGQFQFZAVgBkBUBWQFaA6ZU1Txgg4pyvyMreX4g6RyqyvkwsIOK8Iv/IQpbf6rJRF4eYfMzgo6sJQjQo6bK10rK+p8szxAQiyjMdm3e9Vz0a8EilqQWIEDtH3VTVssqIgOyn/qUuZWIE00x59Gq/XreqY6NV1Yuv5cYHdfmVLt/R5Q5dZLl5ktjBFDCky+HRK/zWyqW/mv8LMADrl3Z3vhaEigAAAABJRU5ErkJggg=="},rE9t:function(e,t,n){},rJsn:function(e,t,n){"use strict";var i=n("iJiE");n.n(i).a},rRnC:function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("KTTK"),o=n("LWkM"),r=n("Rb0w"),c=n("U8n8"),l=n("ViDN"),u=n("L2JU"),d=n("7Qib"),p={components:{CreateView:l.a,MembersDep:c.a},props:{enterDetail:Boolean,id:[Number,String]},data:function(){return{loading:!1,name:"",batchId:Object(d.s)(),description:"",typeColor:"#53D397",projectRoleList:[],typeColorList:["#53D397","#20C1BD","#58DADA","#0FC9E7","#3498DB","#4586FF","#8983F3","#AEA1EA","#FF6699","#F24D70","#FF6F6F"],imgLoading:!1,coverImg:null,coverImgList:[{url:"https://file.72crm.com/static/pc/images/pm/project-cover-1.jpg"},{url:"https://file.72crm.com/static/pc/images/pm/project-cover-2.jpg"},{url:"https://file.72crm.com/static/pc/images/pm/project-cover-3.jpg"},{url:"https://file.72crm.com/static/pc/images/pm/project-cover-4.jpg"},{url:"https://file.72crm.com/static/pc/images/pm/project-cover-5.jpg"},{url:"https://file.72crm.com/static/pc/images/pm/project-cover-6.jpg"},{url:"https://file.72crm.com/static/pc/images/pm/project-cover-7.jpg"},{url:"https://file.72crm.com/static/pc/images/pm/project-cover-8.jpg"}],openType:0,ownerRole:"",openOptions:[{value:0,label:"私有:只有加入的成员才能看见此项目"},{value:1,label:"公开:企业所有成员都可以看见此项目"}],selectUserList:[]}},computed:a()({},Object(u.b)(["userInfo"]),{title:function(){return this.id?"编辑项目":"创建项目"}}),created:function(){this.selectUserList.push(this.userInfo),this.coverImg=this.coverImgList[0],this.id&&this.getDetail(),this.getProjectRoleList()},mounted:function(){document.body.appendChild(this.$el)},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{getDetail:function(){var e=this;this.loading=!0,Object(o.x)({work_id:this.id}).then(function(t){var n=t.data||{};e.name=n.name,e.description=n.description,e.typeColor=n.color,e.openType=n.is_open,e.ownerRole=n.group_id,0==e.openType&&(e.selectUserList=n.ownerUser||[]),e.batchId=n.batchId||Object(d.s)(),n.cover_url?(e.coverImg={custom:1!=n.is_system_cover,url:n.cover_url},1!=n.is_system_cover&&e.coverImgList.push({custom:!0,fileId:n.fileId,url:n.cover_url})):e.coverImg=e.coverImgList[0],e.loading=!1}).catch(function(){e.loading=!1})},submitBtn:function(){var e=this;if(this.name){this.loading=!0;var t={name:this.name,description:this.description,color:this.typeColor,is_open:this.openType};this.coverImg.custom?(t.is_system_cover=0,t.batchId=this.batchId,t.cover_url=this.coverImg.url):(t.is_system_cover=1,t.cover_url=this.coverImg.url),0==this.openType?t.owner_user_id=this.selectUserList.map(function(e){return e.id}):t.group_id=this.ownerRole,this.id&&(t.work_id=this.id),(this.id?o.z:o.y)(t).then(function(t){e.loading=!1,e.$message.success("新建成功"),e.$emit("save-success");var n=t.data?t.data.work_id:"";e.enterDetail&&n&&(e.$bus.emit("add-project",e.name,n),e.close(),e.$router.push({name:"project-list",params:{id:n}})),e.close()}).catch(function(){e.loading=!1})}else this.$message.error("请输入项目名称")},close:function(){this.$emit("close")},userSelectChange:function(e,t){this.selectUserList=e},corverSelect:function(e){this.coverImg=e},upLoadCustomImg:function(){this.$refs.imageInput.click()},customImgChange:function(){var e=this,t=event.target.files;this.imgLoading=!0,Object(s.g)({file:t[0],batchId:this.batchId,type:"file"}).then(function(t){e.imgLoading=!1;var n=t.data||{};n.custom=!0,e.coverImg=n,e.coverImgList.push(n)}).catch(function(){e.imgLoading=!1})},corverDelete:function(){var e=this;this.$confirm("您确定要删除该封面吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.coverImgList.pop(),e.$message.success("操作成功")}).catch(function(){e.$message({type:"info",message:"已取消操作"})})},getProjectRoleList:function(){var e=this;this.loading=!0,Object(r.c)().then(function(t){e.projectRoleList=t.data||[],e.projectRoleList.length&&(e.ownerRole=e.projectRoleList[0].id),e.loading=!1}).catch(function(){e.loading=!1})}}},h=(n("NQ67"),n("KHd+")),m=Object(h.a)(p,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("create-view",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"body-style":{height:"100%"}}},[n("flexbox",{staticClass:"add-project",attrs:{direction:"column",align:"stretch"}},[n("div",{staticClass:"header"},[n("span",{staticClass:"text"},[e._v(e._s(e.title))]),e._v(" "),n("span",{staticClass:"el-icon-close",on:{click:e.close}})]),e._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"project-name"},[n("div",{staticClass:"label color-label"},[e._v("项目名称")]),e._v(" "),n("el-input",{attrs:{maxlength:50,placeholder:"请输入内容"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}},[n("i",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[n("span",{staticClass:"bg-color",style:{background:e.typeColor}})])]),e._v(" "),n("div",{staticClass:"color-box"},e._l(e.typeColorList,function(t,i){return n("span",{key:i,style:{background:t},on:{click:function(n){e.typeColor=t}}})}))],1),e._v(" "),n("div",{staticClass:"cover"},[n("div",{staticClass:"label"},[e._v("项目封面")]),e._v(" "),n("flexbox",{staticClass:"cover-content",attrs:{gutter:0,align:"stretch",wrap:"wrap"}},[e._l(e.coverImgList,function(t,i){return n("flexbox-item",{key:i,staticClass:"cover-content-item",class:{select:e.coverImg.url==t.url},attrs:{span:.25},nativeOn:{click:function(n){e.corverSelect(t)}}},[n("img",{directives:[{name:"src",rawName:"v-src",value:t.url||t.path,expression:"item.url || item.path"}],staticClass:"cover-img"}),e._v(" "),n("i",{staticClass:"wk wk-success cover-select"}),e._v(" "),t.custom&&!e.coverImg.custom?n("i",{staticClass:"wk wk-close cover-delete",on:{click:function(t){return t.stopPropagation(),e.corverDelete(t)}}}):e._e()])}),e._v(" "),e.coverImgList.length<=8?n("flexbox-item",{directives:[{name:"loading",rawName:"v-loading",value:e.imgLoading,expression:"imgLoading"}],staticClass:"content-cross",attrs:{span:.25},nativeOn:{click:function(t){return e.upLoadCustomImg(t)}}},[n("input",{ref:"imageInput",staticClass:"file-input",attrs:{accept:"image/*",type:"file"},on:{change:e.customImgChange}}),e._v(" "),n("el-button",{staticClass:"cross",attrs:{type:"text",icon:"el-icon-plus"}})],1):e._e()],2)],1),e._v(" "),n("div",{staticClass:"describe"},[n("div",{staticClass:"label"},[e._v("项目描述")]),e._v(" "),n("el-input",{attrs:{rows:4,maxlength:300,"show-word-limit":"",type:"textarea",placeholder:"请输入内容"},model:{value:e.description,callback:function(t){e.description=t},expression:"description"}})],1),e._v(" "),n("div",{staticClass:"range"},[n("div",{staticClass:"label"},[e._v("可见范围")]),e._v(" "),n("el-select",{model:{value:e.openType,callback:function(t){e.openType=t},expression:"openType"}},e._l(e.openOptions,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),1==e.openType?n("div",{staticClass:"describe"},[n("div",{staticClass:"label"},[e._v("成员权限")]),e._v(" "),n("el-select",{model:{value:e.ownerRole,callback:function(t){e.ownerRole=t},expression:"ownerRole"}},e._l(e.projectRoleList,function(e){return n("el-option",{key:e.id,attrs:{label:e.title+""+e.remark,value:e.id}})}))],1):e._e(),e._v(" "),0==e.openType?n("div",{staticClass:"member"},[n("div",{staticClass:"label"},[e._v("项目成员")]),e._v(" "),n("flexbox",[e._l(e.selectUserList,function(e,t){return n("xr-avatar",{key:t,staticClass:"user-img",attrs:{name:e.realname,size:25,src:e.img}})}),e._v(" "),n("members-dep",{attrs:{"user-checked-data":e.selectUserList,"content-block":!1,"close-dep":!0},on:{popoverSubmit:e.userSelectChange}},[n("i",{staticClass:"el-icon-plus add-user-btn",attrs:{slot:"membersDep"},slot:"membersDep"})])],2)],1):e._e()]),e._v(" "),n("div",{staticClass:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitBtn}},[e._v("确定")]),e._v(" "),n("el-button",{on:{click:e.close}},[e._v("取消")])],1)])],1)},[],!1,null,"acb824f8",null);m.options.__file="AddProject.vue";t.a=m.exports},rW5V:function(e,t,n){"use strict";var i=n("Q3cC");n.n(i).a},rWxh:function(e,t,n){"use strict";var i=n("Ki5h");n.n(i).a},rc0k:function(e,t,n){"use strict";var i=n("n5d0");n.n(i).a},rcqw:function(e,t,n){},"rg/M":function(e,t,n){"use strict";var i=n("Ivv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rJA2oAJWgKoNqIAVoGoDKmAFqDt1umzAClABKwRQAStUkaACVoAKWCGAClihigUVsAJU7WBN4s4CVF1g3YG7C1B1gXUl7jBA1QXWJ0TL4E4DVB1gbRNtIe42QNVlNuBO0V7BXdcS1N2VAGpfWHlGYKpoj4lmgQCtQG2pBFD7wtoL7B2ijRFtgWhbREuACF9qZ6WBygpls1nceh3Vs+c0ig/eKf6rtx3xwQV/9H8CDABwC10Jf0Mp4QAAAABJRU5ErkJggg=="},s5mF:function(e,t,n){"use strict";var i=n("XWzT");n.n(i).a},sCIN:function(e,t,n){"use strict";t.a=JSON.parse('{"表情":{":bowtie:":"bowtie.png",":smile:":"smile.png",":laughing:":"laughing.png",":blush:":"blush.png",":smiley:":"smiley.png",":relaxed:":"relaxed.png",":smirk:":"smirk.png",":heart_eyes:":"heart_eyes.png",":kissing_heart:":"kissing_heart.png",":kissing_closed_eyes:":"kissing_closed_eyes.png",":flushed:":"flushed.png",":relieved:":"relieved.png",":satisfied:":"satisfied.png",":grin:":"grin.png",":wink:":"wink.png",":stuck_out_tongue_winking_eye:":"stuck_out_tongue_winking_eye.png",":stuck_out_tongue_closed_eyes:":"stuck_out_tongue_closed_eyes.png",":grinning:":"grinning.png",":kissing:":"kissing.png",":kissing_smiling_eyes:":"kissing_smiling_eyes.png",":stuck_out_tongue:":"stuck_out_tongue.png",":sleeping:":"sleeping.png",":worried:":"worried.png",":frowning:":"frowning.png",":anguished:":"anguished.png",":open_mouth:":"open_mouth.png",":grimacing:":"grimacing.png",":confused:":"confused.png",":hushed:":"hushed.png",":expressionless:":"expressionless.png",":unamused:":"unamused.png",":sweat_smile:":"sweat_smile.png",":sweat:":"sweat.png",":disappointed_relieved:":"disappointed_relieved.png",":weary:":"weary.png",":pensive:":"pensive.png",":disappointed:":"disappointed.png",":confounded:":"confounded.png",":fearful:":"fearful.png",":cold_sweat:":"cold_sweat.png",":persevere:":"persevere.png",":cry:":"cry.png",":sob:":"sob.png",":joy:":"joy.png",":astonished:":"astonished.png",":scream:":"scream.png",":neckbeard:":"neckbeard.png",":tired_face:":"tired_face.png",":angry:":"angry.png",":rage:":"rage.png",":triumph:":"triumph.png",":sleepy:":"sleepy.png",":yum:":"yum.png",":mask:":"mask.png",":sunglasses:":"sunglasses.png",":dizzy_face:":"dizzy_face.png",":imp:":"imp.png",":smiling_imp:":"smiling_imp.png",":neutral_face:":"neutral_face.png",":no_mouth:":"no_mouth.png",":innocent:":"innocent.png",":alien:":"alien.png",":yellow_heart:":"yellow_heart.png",":blue_heart:":"blue_heart.png",":purple_heart:":"purple_heart.png",":heart:":"heart.png",":green_heart:":"green_heart.png",":broken_heart:":"broken_heart.png",":heartbeat:":"heartbeat.png",":heartpulse:":"heartpulse.png",":two_hearts:":"two_hearts.png",":revolving_hearts:":"revolving_hearts.png",":cupid:":"cupid.png",":sparkling_heart:":"sparkling_heart.png",":sparkles:":"sparkles.png",":star:":"star.png",":star2:":"star2.png",":dizzy:":"dizzy.png",":boom:":"boom.png",":collision:":"collision.png",":anger:":"anger.png",":exclamation:":"exclamation.png",":question:":"question.png",":grey_exclamation:":"grey_exclamation.png",":grey_question:":"grey_question.png",":zzz:":"zzz.png",":dash:":"dash.png",":sweat_drops:":"sweat_drops.png",":notes:":"notes.png",":musical_note:":"musical_note.png",":fire:":"fire.png",":shit:":"shit.png",":thumbsup:":"thumbsup.png",":thumbsdown:":"thumbsdown.png",":ok_hand:":"ok_hand.png",":punch:":"punch.png",":facepunch:":"facepunch.png",":fist:":"fist.png",":v:":"v.png",":wave:":"wave.png",":hand:":"hand.png",":raised_hand:":"raised_hand.png",":open_hands:":"open_hands.png",":point_up:":"point_up.png",":point_down:":"point_down.png",":point_left:":"point_left.png",":point_right:":"point_right.png",":raised_hands:":"raised_hands.png",":pray:":"pray.png",":point_up_2:":"point_up_2.png",":clap:":"clap.png",":muscle:":"muscle.png",":metal:":"metal.png",":fu:":"fu.png",":runner:":"runner.png",":running:":"running.png",":couple:":"couple.png",":family:":"family.png",":two_men_holding_hands:":"two_men_holding_hands.png",":two_women_holding_hands:":"two_women_holding_hands.png",":dancer:":"dancer.png",":dancers:":"dancers.png",":ok_woman:":"ok_woman.png",":no_good:":"no_good.png",":information_desk_person:":"information_desk_person.png",":raising_hand:":"raising_hand.png",":bride_with_veil:":"bride_with_veil.png",":person_with_pouting_face:":"person_with_pouting_face.png",":person_frowning:":"person_frowning.png",":bow:":"bow.png",":couplekiss:":"couplekiss.png",":couple_with_heart:":"couple_with_heart.png",":massage:":"massage.png",":haircut:":"haircut.png",":nail_care:":"nail_care.png",":boy:":"boy.png",":girl:":"girl.png",":woman:":"woman.png",":man:":"man.png",":baby:":"baby.png",":older_woman:":"older_woman.png",":older_man:":"older_man.png",":person_with_blond_hair:":"person_with_blond_hair.png",":man_with_gua_pi_mao:":"man_with_gua_pi_mao.png",":man_with_turban:":"man_with_turban.png",":construction_worker:":"construction_worker.png",":cop:":"cop.png",":angel:":"angel.png",":princess:":"princess.png",":smiley_cat:":"smiley_cat.png",":smile_cat:":"smile_cat.png",":heart_eyes_cat:":"heart_eyes_cat.png",":kissing_cat:":"kissing_cat.png",":smirk_cat:":"smirk_cat.png",":scream_cat:":"scream_cat.png",":crying_cat_face:":"crying_cat_face.png",":joy_cat:":"joy_cat.png",":pouting_cat:":"pouting_cat.png",":japanese_ogre:":"japanese_ogre.png",":japanese_goblin:":"japanese_goblin.png",":see_no_evil:":"see_no_evil.png",":hear_no_evil:":"hear_no_evil.png",":speak_no_evil:":"speak_no_evil.png",":guardsman:":"guardsman.png",":skull:":"skull.png",":feet:":"feet.png",":lips:":"lips.png",":kiss:":"kiss.png",":droplet:":"droplet.png",":ear:":"ear.png",":eyes:":"eyes.png",":nose:":"nose.png",":tongue:":"tongue.png",":love_letter:":"love_letter.png",":bust_in_silhouette:":"bust_in_silhouette.png",":busts_in_silhouette:":"busts_in_silhouette.png",":speech_balloon:":"speech_balloon.png",":thought_balloon:":"thought_balloon.png",":feelsgood:":"feelsgood.png",":finnadie:":"finnadie.png",":goberserk:":"goberserk.png",":godmode:":"godmode.png",":hurtrealbad:":"hurtrealbad.png",":rage1:":"rage1.png",":rage2:":"rage2.png",":rage3:":"rage3.png",":rage4:":"rage4.png",":suspect:":"suspect.png",":trollface:":"trollface.png"},"自然":{":sunny:":"sunny.png",":umbrella:":"umbrella.png",":cloud:":"cloud.png",":snowflake:":"snowflake.png",":snowman:":"snowman.png",":zap:":"zap.png",":cyclone:":"cyclone.png",":foggy:":"foggy.png",":ocean:":"ocean.png",":cat:":"cat.png",":dog:":"dog.png",":mouse:":"mouse.png",":hamster:":"hamster.png",":rabbit:":"rabbit.png",":wolf:":"wolf.png",":frog:":"frog.png",":tiger:":"tiger.png",":koala:":"koala.png",":bear:":"bear.png",":pig:":"pig.png",":pig_nose:":"pig_nose.png",":cow:":"cow.png",":boar:":"boar.png",":monkey_face:":"monkey_face.png",":monkey:":"monkey.png",":horse:":"horse.png",":racehorse:":"racehorse.png",":camel:":"camel.png",":sheep:":"sheep.png",":elephant:":"elephant.png",":panda_face:":"panda_face.png",":snake:":"snake.png",":bird:":"bird.png",":baby_chick:":"baby_chick.png",":hatched_chick:":"hatched_chick.png",":hatching_chick:":"hatching_chick.png",":chicken:":"chicken.png",":penguin:":"penguin.png",":turtle:":"turtle.png",":bug:":"bug.png",":honeybee:":"honeybee.png",":ant:":"ant.png",":beetle:":"beetle.png",":snail:":"snail.png",":octopus:":"octopus.png",":tropical_fish:":"tropical_fish.png",":fish:":"fish.png",":whale:":"whale.png",":whale2:":"whale2.png",":dolphin:":"dolphin.png",":cow2:":"cow2.png",":ram:":"ram.png",":rat:":"rat.png",":water_buffalo:":"water_buffalo.png",":tiger2:":"tiger2.png",":rabbit2:":"rabbit2.png",":dragon:":"dragon.png",":goat:":"goat.png",":rooster:":"rooster.png",":dog2:":"dog2.png",":pig2:":"pig2.png",":mouse2:":"mouse2.png",":ox:":"ox.png",":dragon_face:":"dragon_face.png",":blowfish:":"blowfish.png",":crocodile:":"crocodile.png",":dromedary_camel:":"dromedary_camel.png",":leopard:":"leopard.png",":cat2:":"cat2.png",":poodle:":"poodle.png",":paw_prints:":"paw_prints.png",":bouquet:":"bouquet.png",":cherry_blossom:":"cherry_blossom.png",":tulip:":"tulip.png",":four_leaf_clover:":"four_leaf_clover.png",":rose:":"rose.png",":sunflower:":"sunflower.png",":hibiscus:":"hibiscus.png",":maple_leaf:":"maple_leaf.png",":leaves:":"leaves.png",":fallen_leaf:":"fallen_leaf.png",":herb:":"herb.png",":mushroom:":"mushroom.png",":cactus:":"cactus.png",":palm_tree:":"palm_tree.png",":evergreen_tree:":"evergreen_tree.png",":deciduous_tree:":"deciduous_tree.png",":chestnut:":"chestnut.png",":seedling:":"seedling.png",":blossom:":"blossom.png",":ear_of_rice:":"ear_of_rice.png",":shell:":"shell.png",":globe_with_meridians:":"globe_with_meridians.png",":sun_with_face:":"sun_with_face.png",":full_moon_with_face:":"full_moon_with_face.png",":new_moon_with_face:":"new_moon_with_face.png",":new_moon:":"new_moon.png",":waxing_crescent_moon:":"waxing_crescent_moon.png",":first_quarter_moon:":"first_quarter_moon.png",":waxing_gibbous_moon:":"waxing_gibbous_moon.png",":full_moon:":"full_moon.png",":waning_gibbous_moon:":"waning_gibbous_moon.png",":last_quarter_moon:":"last_quarter_moon.png",":waning_crescent_moon:":"waning_crescent_moon.png",":last_quarter_moon_with_face:":"last_quarter_moon_with_face.png",":first_quarter_moon_with_face:":"first_quarter_moon_with_face.png",":crescent_moon:":"crescent_moon.png",":earth_africa:":"earth_africa.png",":earth_americas:":"earth_americas.png",":earth_asia:":"earth_asia.png",":volcano:":"volcano.png",":milky_way:":"milky_way.png",":partly_sunny:":"partly_sunny.png",":octocat:":"octocat.png",":squirrel:":"squirrel.png"},"物品":{":bamboo:":"bamboo.png",":gift_heart:":"gift_heart.png",":dolls:":"dolls.png",":school_satchel:":"school_satchel.png",":mortar_board:":"mortar_board.png",":flags:":"flags.png",":fireworks:":"fireworks.png",":sparkler:":"sparkler.png",":wind_chime:":"wind_chime.png",":rice_scene:":"rice_scene.png",":jack_o_lantern:":"jack_o_lantern.png",":ghost:":"ghost.png",":santa:":"santa.png",":christmas_tree:":"christmas_tree.png",":gift:":"gift.png",":bell:":"bell.png",":no_bell:":"no_bell.png",":tanabata_tree:":"tanabata_tree.png",":tada:":"tada.png",":confetti_ball:":"confetti_ball.png",":balloon:":"balloon.png",":crystal_ball:":"crystal_ball.png",":cd:":"cd.png",":dvd:":"dvd.png",":floppy_disk:":"floppy_disk.png",":camera:":"camera.png",":video_camera:":"video_camera.png",":movie_camera:":"movie_camera.png",":computer:":"computer.png",":tv:":"tv.png",":iphone:":"iphone.png",":phone:":"phone.png",":telephone:":"telephone.png",":telephone_receiver:":"telephone_receiver.png",":pager:":"pager.png",":fax:":"fax.png",":minidisc:":"minidisc.png",":vhs:":"vhs.png",":sound:":"sound.png",":speaker:":"speaker.png",":mute:":"mute.png",":loudspeaker:":"loudspeaker.png",":mega:":"mega.png",":hourglass:":"hourglass.png",":hourglass_flowing_sand:":"hourglass_flowing_sand.png",":alarm_clock:":"alarm_clock.png",":watch:":"watch.png",":radio:":"radio.png",":satellite:":"satellite.png",":loop:":"loop.png",":mag:":"mag.png",":mag_right:":"mag_right.png",":unlock:":"unlock.png",":lock:":"lock.png",":lock_with_ink_pen:":"lock_with_ink_pen.png",":closed_lock_with_key:":"closed_lock_with_key.png",":key:":"key.png",":bulb:":"bulb.png",":flashlight:":"flashlight.png",":high_brightness:":"high_brightness.png",":low_brightness:":"low_brightness.png",":electric_plug:":"electric_plug.png",":battery:":"battery.png",":calling:":"calling.png",":email:":"email.png",":mailbox:":"mailbox.png",":postbox:":"postbox.png",":bath:":"bath.png",":bathtub:":"bathtub.png",":shower:":"shower.png",":toilet:":"toilet.png",":wrench:":"wrench.png",":nut_and_bolt:":"nut_and_bolt.png",":hammer:":"hammer.png",":seat:":"seat.png",":moneybag:":"moneybag.png",":yen:":"yen.png",":dollar:":"dollar.png",":pound:":"pound.png",":euro:":"euro.png",":credit_card:":"credit_card.png",":money_with_wings:":"money_with_wings.png",":e-mail:":"e-mail.png",":inbox_tray:":"inbox_tray.png",":outbox_tray:":"outbox_tray.png",":envelope:":"envelope.png",":incoming_envelope:":"incoming_envelope.png",":postal_horn:":"postal_horn.png",":mailbox_closed:":"mailbox_closed.png",":mailbox_with_mail:":"mailbox_with_mail.png",":mailbox_with_no_mail:":"mailbox_with_no_mail.png",":package:":"package.png",":door:":"door.png",":smoking:":"smoking.png",":bomb:":"bomb.png",":gun:":"gun.png",":hocho:":"hocho.png",":pill:":"pill.png",":syringe:":"syringe.png",":page_facing_up:":"page_facing_up.png",":page_with_curl:":"page_with_curl.png",":bookmark_tabs:":"bookmark_tabs.png",":bar_chart:":"bar_chart.png",":chart_with_upwards_trend:":"chart_with_upwards_trend.png",":chart_with_downwards_trend:":"chart_with_downwards_trend.png",":scroll:":"scroll.png",":clipboard:":"clipboard.png",":calendar:":"calendar.png",":date:":"date.png",":card_index:":"card_index.png",":file_folder:":"file_folder.png",":open_file_folder:":"open_file_folder.png",":scissors:":"scissors.png",":pushpin:":"pushpin.png",":paperclip:":"paperclip.png",":black_nib:":"black_nib.png",":pencil2:":"pencil2.png",":straight_ruler:":"straight_ruler.png",":triangular_ruler:":"triangular_ruler.png",":closed_book:":"closed_book.png",":green_book:":"green_book.png",":blue_book:":"blue_book.png",":orange_book:":"orange_book.png",":notebook:":"notebook.png",":notebook_with_decorative_cover:":"notebook_with_decorative_cover.png",":ledger:":"ledger.png",":books:":"books.png",":bookmark:":"bookmark.png",":name_badge:":"name_badge.png",":microscope:":"microscope.png",":telescope:":"telescope.png",":newspaper:":"newspaper.png",":football:":"football.png",":basketball:":"basketball.png",":soccer:":"soccer.png",":baseball:":"baseball.png",":tennis:":"tennis.png",":8ball:":"8ball.png",":rugby_football:":"rugby_football.png",":bowling:":"bowling.png",":golf:":"golf.png",":mountain_bicyclist:":"mountain_bicyclist.png",":bicyclist:":"bicyclist.png",":horse_racing:":"horse_racing.png",":snowboarder:":"snowboarder.png",":swimmer:":"swimmer.png",":surfer:":"surfer.png",":ski:":"ski.png",":spades:":"spades.png",":hearts:":"hearts.png",":clubs:":"clubs.png",":diamonds:":"diamonds.png",":gem:":"gem.png",":ring:":"ring.png",":trophy:":"trophy.png",":musical_score:":"musical_score.png",":musical_keyboard:":"musical_keyboard.png",":violin:":"violin.png",":space_invader:":"space_invader.png",":video_game:":"video_game.png",":black_joker:":"black_joker.png",":flower_playing_cards:":"flower_playing_cards.png",":game_die:":"game_die.png",":dart:":"dart.png",":mahjong:":"mahjong.png",":clapper:":"clapper.png",":memo:":"memo.png",":pencil:":"pencil.png",":book:":"book.png",":art:":"art.png",":microphone:":"microphone.png",":headphones:":"headphones.png",":trumpet:":"trumpet.png",":saxophone:":"saxophone.png",":guitar:":"guitar.png",":shoe:":"shoe.png",":sandal:":"sandal.png",":high_heel:":"high_heel.png",":lipstick:":"lipstick.png",":boot:":"boot.png",":shirt:":"shirt.png",":tshirt:":"tshirt.png",":necktie:":"necktie.png",":womans_clothes:":"womans_clothes.png",":dress:":"dress.png",":running_shirt_with_sash:":"running_shirt_with_sash.png",":jeans:":"jeans.png",":kimono:":"kimono.png",":bikini:":"bikini.png",":ribbon:":"ribbon.png",":tophat:":"tophat.png",":crown:":"crown.png",":womans_hat:":"womans_hat.png",":mans_shoe:":"mans_shoe.png",":closed_umbrella:":"closed_umbrella.png",":briefcase:":"briefcase.png",":handbag:":"handbag.png",":pouch:":"pouch.png",":purse:":"purse.png",":eyeglasses:":"eyeglasses.png",":fishing_pole_and_fish:":"fishing_pole_and_fish.png",":coffee:":"coffee.png",":tea:":"tea.png",":sake:":"sake.png",":baby_bottle:":"baby_bottle.png",":beer:":"beer.png",":beers:":"beers.png",":cocktail:":"cocktail.png",":tropical_drink:":"tropical_drink.png",":wine_glass:":"wine_glass.png",":fork_and_knife:":"fork_and_knife.png",":pizza:":"pizza.png",":hamburger:":"hamburger.png",":fries:":"fries.png",":poultry_leg:":"poultry_leg.png",":meat_on_bone:":"meat_on_bone.png",":spaghetti:":"spaghetti.png",":curry:":"curry.png",":fried_shrimp:":"fried_shrimp.png",":bento:":"bento.png",":sushi:":"sushi.png",":fish_cake:":"fish_cake.png",":rice_ball:":"rice_ball.png",":rice_cracker:":"rice_cracker.png",":rice:":"rice.png",":ramen:":"ramen.png",":stew:":"stew.png",":oden:":"oden.png",":dango:":"dango.png",":egg:":"egg.png",":bread:":"bread.png",":doughnut:":"doughnut.png",":custard:":"custard.png",":icecream:":"icecream.png",":ice_cream:":"ice_cream.png",":shaved_ice:":"shaved_ice.png",":birthday:":"birthday.png",":cake:":"cake.png",":cookie:":"cookie.png",":chocolate_bar:":"chocolate_bar.png",":candy:":"candy.png",":lollipop:":"lollipop.png",":honey_pot:":"honey_pot.png",":apple:":"apple.png",":green_apple:":"green_apple.png",":tangerine:":"tangerine.png",":lemon:":"lemon.png",":cherries:":"cherries.png",":grapes:":"grapes.png",":watermelon:":"watermelon.png",":strawberry:":"strawberry.png",":peach:":"peach.png",":melon:":"melon.png",":banana:":"banana.png",":pear:":"pear.png",":pineapple:":"pineapple.png",":sweet_potato:":"sweet_potato.png",":eggplant:":"eggplant.png",":tomato:":"tomato.png",":corn:":"corn.png"},"地点":{":house:":"house.png",":house_with_garden:":"house_with_garden.png",":school:":"school.png",":office:":"office.png",":post_office:":"post_office.png",":hospital:":"hospital.png",":bank:":"bank.png",":convenience_store:":"convenience_store.png",":love_hotel:":"love_hotel.png",":hotel:":"hotel.png",":wedding:":"wedding.png",":church:":"church.png",":department_store:":"department_store.png",":european_post_office:":"european_post_office.png",":city_sunrise:":"city_sunrise.png",":city_sunset:":"city_sunset.png",":japanese_castle:":"japanese_castle.png",":european_castle:":"european_castle.png",":tent:":"tent.png",":factory:":"factory.png",":tokyo_tower:":"tokyo_tower.png",":japan:":"japan.png",":mount_fuji:":"mount_fuji.png",":sunrise_over_mountains:":"sunrise_over_mountains.png",":sunrise:":"sunrise.png",":stars:":"stars.png",":statue_of_liberty:":"statue_of_liberty.png",":bridge_at_night:":"bridge_at_night.png",":carousel_horse:":"carousel_horse.png",":rainbow:":"rainbow.png",":ferris_wheel:":"ferris_wheel.png",":fountain:":"fountain.png",":roller_coaster:":"roller_coaster.png",":ship:":"ship.png",":speedboat:":"speedboat.png",":boat:":"boat.png",":sailboat:":"sailboat.png",":rowboat:":"rowboat.png",":anchor:":"anchor.png",":rocket:":"rocket.png",":airplane:":"airplane.png",":helicopter:":"helicopter.png",":steam_locomotive:":"steam_locomotive.png",":tram:":"tram.png",":mountain_railway:":"mountain_railway.png",":bike:":"bike.png",":aerial_tramway:":"aerial_tramway.png",":suspension_railway:":"suspension_railway.png",":mountain_cableway:":"mountain_cableway.png",":tractor:":"tractor.png",":blue_car:":"blue_car.png",":oncoming_automobile:":"oncoming_automobile.png",":car:":"car.png",":red_car:":"red_car.png",":taxi:":"taxi.png",":oncoming_taxi:":"oncoming_taxi.png",":articulated_lorry:":"articulated_lorry.png",":bus:":"bus.png",":oncoming_bus:":"oncoming_bus.png",":rotating_light:":"rotating_light.png",":police_car:":"police_car.png",":oncoming_police_car:":"oncoming_police_car.png",":fire_engine:":"fire_engine.png",":ambulance:":"ambulance.png",":minibus:":"minibus.png",":truck:":"truck.png",":train:":"train.png",":station:":"station.png",":train2:":"train2.png",":bullettrain_front:":"bullettrain_front.png",":bullettrain_side:":"bullettrain_side.png",":light_rail:":"light_rail.png",":monorail:":"monorail.png",":railway_car:":"railway_car.png",":trolleybus:":"trolleybus.png",":ticket:":"ticket.png",":fuelpump:":"fuelpump.png",":vertical_traffic_light:":"vertical_traffic_light.png",":traffic_light:":"traffic_light.png",":warning:":"warning.png",":construction:":"construction.png",":beginner:":"beginner.png",":atm:":"atm.png",":slot_machine:":"slot_machine.png",":busstop:":"busstop.png",":barber:":"barber.png",":hotsprings:":"hotsprings.png",":checkered_flag:":"checkered_flag.png",":crossed_flags:":"crossed_flags.png",":izakaya_lantern:":"izakaya_lantern.png",":moyai:":"moyai.png",":circus_tent:":"circus_tent.png",":performing_arts:":"performing_arts.png",":round_pushpin:":"round_pushpin.png",":triangular_flag_on_post:":"triangular_flag_on_post.png",":jp:":"jp.png",":kr:":"kr.png",":cn:":"cn.png",":us:":"us.png",":fr:":"fr.png",":es:":"es.png",":it:":"it.png",":ru:":"ru.png",":gb:":"gb.png",":uk:":"uk.png",":de:":"de.png"},"符号":{":one:":"one.png",":two:":"two.png",":three:":"three.png",":four:":"four.png",":five:":"five.png",":six:":"six.png",":seven:":"seven.png",":eight:":"eight.png",":nine:":"nine.png",":keycap_ten:":"keycap_ten.png",":1234:":"1234.png",":zero:":"zero.png",":hash:":"hash.png",":symbols:":"symbols.png",":arrow_backward:":"arrow_backward.png",":arrow_down:":"arrow_down.png",":arrow_forward:":"arrow_forward.png",":arrow_left:":"arrow_left.png",":capital_abcd:":"capital_abcd.png",":abcd:":"abcd.png",":abc:":"abc.png",":arrow_lower_left:":"arrow_lower_left.png",":arrow_lower_right:":"arrow_lower_right.png",":arrow_right:":"arrow_right.png",":arrow_up:":"arrow_up.png",":arrow_upper_left:":"arrow_upper_left.png",":arrow_upper_right:":"arrow_upper_right.png",":arrow_double_down:":"arrow_double_down.png",":arrow_double_up:":"arrow_double_up.png",":arrow_down_small:":"arrow_down_small.png",":arrow_heading_down:":"arrow_heading_down.png",":arrow_heading_up:":"arrow_heading_up.png",":leftwards_arrow_with_hook:":"leftwards_arrow_with_hook.png",":arrow_right_hook:":"arrow_right_hook.png",":left_right_arrow:":"left_right_arrow.png",":arrow_up_down:":"arrow_up_down.png",":arrow_up_small:":"arrow_up_small.png",":arrows_clockwise:":"arrows_clockwise.png",":arrows_counterclockwise:":"arrows_counterclockwise.png",":rewind:":"rewind.png",":fast_forward:":"fast_forward.png",":information_source:":"information_source.png",":ok:":"ok.png",":twisted_rightwards_arrows:":"twisted_rightwards_arrows.png",":repeat:":"repeat.png",":repeat_one:":"repeat_one.png",":new:":"new.png",":top:":"top.png",":up:":"up.png",":cool:":"cool.png",":free:":"free.png",":ng:":"ng.png",":cinema:":"cinema.png",":koko:":"koko.png",":signal_strength:":"signal_strength.png",":u5272:":"u5272.png",":u5408:":"u5408.png",":u55b6:":"u55b6.png",":u6307:":"u6307.png",":u6708:":"u6708.png",":u6709:":"u6709.png",":u6e80:":"u6e80.png",":u7121:":"u7121.png",":u7533:":"u7533.png",":u7a7a:":"u7a7a.png",":u7981:":"u7981.png",":sa:":"sa.png",":restroom:":"restroom.png",":mens:":"mens.png",":womens:":"womens.png",":baby_symbol:":"baby_symbol.png",":no_smoking:":"no_smoking.png",":parking:":"parking.png",":wheelchair:":"wheelchair.png",":metro:":"metro.png",":baggage_claim:":"baggage_claim.png",":accept:":"accept.png",":wc:":"wc.png",":potable_water:":"potable_water.png",":put_litter_in_its_place:":"put_litter_in_its_place.png",":secret:":"secret.png",":congratulations:":"congratulations.png",":m:":"m.png",":passport_control:":"passport_control.png",":left_luggage:":"left_luggage.png",":customs:":"customs.png",":ideograph_advantage:":"ideograph_advantage.png",":cl:":"cl.png",":sos:":"sos.png",":id:":"id.png",":no_entry_sign:":"no_entry_sign.png",":underage:":"underage.png",":no_mobile_phones:":"no_mobile_phones.png",":do_not_litter:":"do_not_litter.png",":non-potable_water:":"non-potable_water.png",":no_bicycles:":"no_bicycles.png",":no_pedestrians:":"no_pedestrians.png",":children_crossing:":"children_crossing.png",":no_entry:":"no_entry.png",":eight_spoked_asterisk:":"eight_spoked_asterisk.png",":sparkle:":"sparkle.png",":eight_pointed_black_star:":"eight_pointed_black_star.png",":heart_decoration:":"heart_decoration.png",":vs:":"vs.png",":vibration_mode:":"vibration_mode.png",":mobile_phone_off:":"mobile_phone_off.png",":chart:":"chart.png",":currency_exchange:":"currency_exchange.png",":aries:":"aries.png",":taurus:":"taurus.png",":gemini:":"gemini.png",":cancer:":"cancer.png",":leo:":"leo.png",":virgo:":"virgo.png",":libra:":"libra.png",":scorpius:":"scorpius.png",":sagittarius:":"sagittarius.png",":capricorn:":"capricorn.png",":aquarius:":"aquarius.png",":pisces:":"pisces.png",":ophiuchus:":"ophiuchus.png",":six_pointed_star:":"six_pointed_star.png",":negative_squared_cross_mark:":"negative_squared_cross_mark.png",":a:":"a.png",":b:":"b.png",":ab:":"ab.png",":o2:":"o2.png",":diamond_shape_with_a_dot_inside:":"diamond_shape_with_a_dot_inside.png",":recycle:":"recycle.png",":end:":"end.png",":back:":"back.png",":on:":"on.png",":soon:":"soon.png",":clock1:":"clock1.png",":clock130:":"clock130.png",":clock10:":"clock10.png",":clock1030:":"clock1030.png",":clock11:":"clock11.png",":clock1130:":"clock1130.png",":clock12:":"clock12.png",":clock1230:":"clock1230.png",":clock2:":"clock2.png",":clock230:":"clock230.png",":clock3:":"clock3.png",":clock330:":"clock330.png",":clock4:":"clock4.png",":clock430:":"clock430.png",":clock5:":"clock5.png",":clock530:":"clock530.png",":clock6:":"clock6.png",":clock630:":"clock630.png",":clock7:":"clock7.png",":clock730:":"clock730.png",":clock8:":"clock8.png",":clock830:":"clock830.png",":clock9:":"clock9.png",":clock930:":"clock930.png",":heavy_dollar_sign:":"heavy_dollar_sign.png",":copyright:":"copyright.png",":registered:":"registered.png",":tm:":"tm.png",":x:":"x.png",":heavy_exclamation_mark:":"heavy_exclamation_mark.png",":bangbang:":"bangbang.png",":interrobang:":"interrobang.png",":o:":"o.png",":heavy_multiplication_x:":"heavy_multiplication_x.png",":heavy_plus_sign:":"heavy_plus_sign.png",":heavy_minus_sign:":"heavy_minus_sign.png",":heavy_division_sign:":"heavy_division_sign.png",":white_flower:":"white_flower.png",":100:":"100.png",":heavy_check_mark:":"heavy_check_mark.png",":ballot_box_with_check:":"ballot_box_with_check.png",":radio_button:":"radio_button.png",":link:":"link.png",":curly_loop:":"curly_loop.png",":wavy_dash:":"wavy_dash.png",":part_alternation_mark:":"part_alternation_mark.png",":trident:":"trident.png",":black_small_square:":"black_small_square.png",":white_small_square:":"white_small_square.png",":black_medium_small_square:":"black_medium_small_square.png",":white_medium_small_square:":"white_medium_small_square.png",":black_medium_square:":"black_medium_square.png",":white_medium_square:":"white_medium_square.png",":black_large_square:":"black_square.png",":white_large_square:":"white_large_square.png",":white_check_mark:":"white_check_mark.png",":black_square_button:":"black_square_button.png",":white_square_button:":"white_square_button.png",":black_circle:":"black_circle.png",":white_circle:":"white_circle.png",":red_circle:":"red_circle.png",":large_blue_circle:":"large_blue_circle.png",":large_blue_diamond:":"large_blue_diamond.png",":large_orange_diamond:":"large_orange_diamond.png",":small_blue_diamond:":"small_blue_diamond.png",":small_orange_diamond:":"small_orange_diamond.png",":small_red_triangle:":"small_red_triangle.png",":small_red_triangle_down:":"small_red_triangle_down.png",":shipit:":"shipit.png"}}')},sesI:function(e,t,n){},"sg+I":function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},szeO:function(e,t,n){"use strict";var i=n("d5Rn");n.n(i).a},t3Un:function(e,t,n){"use strict";var i=n("4d7F"),a=n.n(i),s=n("vDqi"),o=n.n(s),r=n("XJYT"),c=n("X4fA"),l=n("Qyje"),u=n.n(l),d=n("ehos"),p=n("oYx3"),h=Object(d.debounce)(500,function(){Object(c.c)().then(function(){location.reload()}).catch(function(){location.reload()})}),m=Object(d.debounce)(500,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";Object(r.Message)({message:e,duration:1500,type:t})}),f=Object(d.debounce)(1e3,function(e){r.MessageBox.confirm(e,"提示",{confirmButtonText:"确定",showCancelButton:!1,type:"warning"}).then(function(){h()}).catch(function(){})});o.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";var g=[],v=(g=-1!=window.location.href.indexOf("index.html")?window.location.href.split("index.html"):window.location.href.split("#")).length>0?g[0]:window.location.href;window.BASE_URL=v+"index.php/";var b=o.a.create({baseURL:window.BASE_URL,timeout:6e5});b.interceptors.request.use(function(e){if(e.headers["Content-Type"]&&-1!==e.headers["Content-Type"].indexOf("application/json"))void 0!==e.data&&null!==e.data||(e.data={});else{var t=e.headers["Content-Type"]&&-1!==e.headers["Content-Type"].indexOf("multipart/form-data");e.data=t?e.data:u.a.stringify(e.data)}return e},function(e){return a.a.reject(e)}),b.interceptors.response.use(function(e){var t=e.data;if(200!==e.status||"blob"!==e.config.responseType)return 200!==t.code?(302===t.code?1===t.data.extra?f("您的账号"+t.data.extraTime+"在别处登录。如非本人操作,则密码可能已泄漏,建议修改密码"):h():1005===t.code?p.b.push("/welcome"):t.error&&m(t.error),a.a.reject(t)):t;if(e.headers["content-disposition"]||e.headers["content-type"]&&-1!=e.headers["content-type"].indexOf("application/pdf"))return e;var n=new Blob([e.data],{type:"application/json"}),i=new FileReader;i.onload=function(){var e=JSON.parse(this.result);e.msg&&m(e.msg,1==e.code?"success":"error")},i.readAsText(n)},function(e){if(e.response){var t=e.response;500==t.status?m("网络错误,请检查您的网络"):t.data&&t.data.msg&&m(t.data.msg)}return a.a.reject(e)}),t.a=b},t8Uk:function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("GQeE"),o=n.n(s),r=n("4XAY"),c=n("c2Co"),l=n("gVZb"),u=n("EP+0"),d=n("UGe0"),p=(n("ZoMv"),n("IEYw")),h=n("a/5N"),m={name:"LeadsCreate",components:{XrCreate:l.a,CreateSections:u.a,WkForm:d.a},mixins:[p.a],props:{phone:String,action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,baseFields:[],fieldList:[],fieldForm:{},fieldRules:{}}},computed:{title:function(){return"update"===this.action.type?"编辑线索":"新建线索"}},watch:{},created:function(){this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_leads",module:"crm",controller:"leads",action:this.action.type};"update"==this.action.type&&(t.action_id=this.action.id),Object(r.x)(t).then(function(t){var n=t.data||[];Object(h.b)(e.phone)||n.forEach(function(t){"mobile"===t.formType&&(t.defaultValue=e.phone)});var i=[],a={},s={};n.forEach(function(t){var n={};n.field=t.field,n.formType=t.form_type,n.fieldId=t.fieldId,n.inputTips=t.input_tips,n.name=t.name,n.setting=t.setting;var o=e.getItemIsCanEdit(t,e.action.type);"update"!==e.action.type&&(a[n.field]=e.getRules(t)),n.disabled=!o,e.getItemRadio(t,n),s[n.field]=e.getItemValue(t,e.action.data,e.action.type),i.push(n)}),e.baseFields=n,e.fieldList=i,e.fieldForm=s,e.fieldRules=a,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm.instance;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var i=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(i.id=e.action.id),e.submiteParams(i)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.action_id=this.action.id),this.action.relativeData&&o()(this.action.relativeData).length&&(e=a()({},e,this.action.relativeData)),Object(c.j)(e).then(function(e){t.loading=!1,t.$message.success("update"==t.action.type?"编辑成功":"添加成功"),t.close(),t.$emit("save-success",{type:"leads"})}).catch(function(){t.loading=!1})},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,i){},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.instance.validateField(t.field)},close:function(){this.$emit("close")}}},f=(n("rg/M"),n("KHd+")),g=Object(f.a)(m,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("xr-create",{attrs:{loading:e.loading,title:e.title},on:{close:e.close,save:e.saveClick}},[n("create-sections",{attrs:{title:"基本信息"}},[n("wk-form",{ref:"crmForm",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"field-list":e.fieldList,"label-position":"top"},on:{change:e.formChange}})],1)],1)},[],!1,null,"463c29ed",null);g.options.__file="Create.vue";t.a=g.exports},tFzm:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAAD/CAYAAACNZX/5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmN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n("GQeE");var i=n("t3Un");function a(e){return Object(i.a)({url:e,method:"post",responseType:"blob"})}},tpe7:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAIAAAADnC86AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzRERTNDRjk0MEEyMTFFQUIxODhFMTc1OTM3RjFDNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzRERTNDRkE0MEEyMTFFQUIxODhFMTc1OTM3RjFDNTIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDNERFM0NGNzQwQTIxMUVBQjE4OEUxNzU5MzdGMUM1MiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDNERFM0NGODQwQTIxMUVBQjE4OEUxNzU5MzdGMUM1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pl4NvNEAAAAxSURBVHja7M0BDQAACAMgtX/nG8PNQQE6SV2YOiIWi8VisVgsFovFYrFYLP4YrwADAIPrA0058n2iAAAAAElFTkSuQmCC"},twbI:function(e,t,n){},"u+Mw":function(e,t,n){"use strict";var i=n("GQeE"),a=n.n(i),s=n("sCIN"),o={name:"Emoji",data:function(){return{emojiData:s.a,pannels:["表情","自然","物品","地点","符号"],activeIndex:0}},computed:{emojis:function(){var e=this;return this.pannels.map(function(t){return a()(e.emojiData[t])})}},created:function(){},methods:{changeActive:function(e){this.activeIndex=e},getPureName:function(e){return e.replace(/:/g,"")},selectItem:function(e){this.$emit("select",e)}}},r=(n("GBkM"),n("KHd+")),c=Object(r.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"emoji"},[n("ul",{staticClass:"emoji-controller"},e._l(e.pannels,function(t,i){return n("li",{key:i,class:{active:i===e.activeIndex},on:{click:function(t){e.changeActive(i)}}},[e._v("\n "+e._s(t)+"\n ")])})),e._v(" "),n("ul",{staticClass:"emoji-container"},e._l(e.emojis,function(t,i){return i===e.activeIndex?n("li",{key:i,staticStyle:{padding:"0"}},[e._v("\n "+e._s(t)+"--"+e._s(i)+"\n "),e._l(t,function(t,i){return n("a",{key:i,attrs:{href:"javascript:;"},on:{click:function(n){e.selectItem(t)}}},[n("span",{staticClass:"emoji-item",class:"sprite-"+e.getPureName(t),attrs:{title:t}})])})],2):e._e()}))])},[],!1,null,"77142826",null);c.options.__file="Emoji.vue";t.a=c.exports},u63K:function(e,t,n){"use strict";var i=n("p7yW");n.n(i).a},ueb0:function(e,t,n){"use strict";var i=n("2y4s");n.n(i).a},uuSy:function(e,t,n){},vAiE:function(e,t,n){"use strict";var i=n("VYvA");n.n(i).a},vbWX:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAAGzlLJTAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAq6ADAAQAAAABAAAA3QAAAAATJCntAAAeIUlEQVR4Ae2dC5gUxbWAz8y+l91lgUXcXXkJCohguGhY3spHSGIun5pEIZrEENAYzVVyNd58XK+JfAmJGiOYizEg4ZpEBTRKrsbcEATloWuMjxgNDxEWFhYWdtll37uzM3P79FJDd09VP2a6ZnpmTvEt3V2PU6f+OlNdVV1dDSDJ+aZvW9CtyM51Kv+Fq34OQ3yVPlE6fyxCmbD68LEwOzceUXBcTiQ8bsGoFU94tlbdwecP1l5yz0+dOMX1R+Fa5jrBokRcSRxPrXBXUGjzYFjQ3CI1Gw8KrXA8dxWFVrjrKJhwncaZjUIaYxLMrA3SBMWuqzZEioTnYwqGgdYvEmhywkWx6dBLOkH7Oo+YiOAHcQU/VvO0Ghu1nLF9oS4l05wddYGaC65gTXjU6ct129TSzNz+lagwrQdX8KoJy9Q41+26TYcEPUcVDVdLsfOqZ7Vyos51glnxJpdNVBOfCjSrCQbnlEYS3vLOf8Ir09dGIYpEOHuiu4MYA+O59od9MCEeAYK0QYF/fN4xYzDrt+kqzal+7BZvTBeXUBTGExy3UJ5gR3fkQCAAzY19dmwssrYrpRPqVh/NleJrtUaNdSZl1SFpb2uHjrYOrQzuuavFZzm4XnwUrNPUqvjhUBgaTjYwhYRHndB4a5/lIqX4JJThde+Ywkzxls1u2wiEnbOjHUhRxdd2f1CQ9tqOQIwTJRQ9URBPs+LsfhgMlflD1KPoP93PVBSJ+bf2tquZBcMhmP3ajcw76sjVVFTsDVNWqqVAgaU5xVHCmIdOU2ORGQbGdeFbS+GFqas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F24XQhcxhS+k9lnR0HB9Kj5KRIdzhX+u3xl5HGrF7ctD5lo+AEAZO45Xqy0pTx4OpFoD7bD44oW84Igf9mNHFQ+Hu/6xIuIn42TztF/CQKXvyRwO9r538RJ4eL+9ZZEsnahboH2YwOKmy1GKsZr1LdnCaqv5zmWjzW/hrAJwAYrVKyT43L+1t83S8HFVFi56kflk6+tv3wsblSmqfmfnWcvyBsA1lXNhhvLo9EN82HHoOXXEz8qnPeLClq8NvxY+c950yMvK1QbBvpaDsLluq84v3S5cN1ZcDM0M0gwWxnnr9N/VpYDaeE6mpawMXisXn3y1KAaLt3wzh9Nh2I+VtWagOdACV++6BX456QEYVzIqMm2FI318CoV/Tlw4HFYfCjyktMz7lMe16excN9b3Wvba4oUjcVyzqnV2pqVY/FhWSuErMIeVVVlmj2oj8pXHubHkwdKbHYPKNNOt794HuAxw6UXfUKasLlPnW9lDArO0GHa6pxlw3hVnAX5d87ywJbaSk2rhrhsrPlmasX0hmN3Gebdus66DEWo8o3d8VIutph2DxX5uuTI5b9XNMOpn97oz2AU/2ftEJDouTKnIHwLDCssBR/4F2fkQUOZju4I90BQ4oxpnQ3dTxj0MYIBSap6VKU3HzCOA86yen7rKvGqhEosIkLGKyJC/5wiQsXquSkghEQEyVhEZ8vccATTWHs9pRQoRAT2BNrzER9WP6/3pigh4i4Dy3GMdaqSu+p22bcFq5US/CsRb+pI2GUpAWb/6+BtzNt6BxY8sUR+/6frc0jLfzxWvbyv+1JfNUOPwSLFDih5rQ/mh77457bnIljz/DyrjiuIkQErVAAAAAElFTkSuQmCC"},vtCG:function(e,t,n){"use strict";var i=n("Lkl6");n.n(i).a},vyIb:function(e,t,n){"use strict";var i=n("dCH2");n.n(i).a},wWym:function(e,t,n){},wcMZ:function(e,t,n){"use strict";var i=n("4yv3");n.n(i).a},wmfQ:function(e,t,n){"use strict";var i=n("EOSc");n.n(i).a},"wu/m":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAU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3RTNFMUIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4ZL3N5AAABQklEQVR42mJ0O3ueAQtgA+IAKLYEYikg/gXET4AYpGE9EG+EiqEAFiyGBQJxFxCrYLFEA4ojgfgOEJcD8TpkRUxIbGYg7oQqUGEgDEBq1kL1MGNzYRsQlzGQDmB6ypFdGEKmYciGhsAMBIVNPz7VvWqqYEwATACZBfJyKBDL4FOpw8NNjCulgTiMCZo0qAUCQAaaUtFAE5CXJbCFGTZv7jQygLOvfPnKUHzrNroSSSZsqZ0YwIhDHOTC50DMiyyIbjPMZe7nLhCy5znIhZeoGIZnQAZuoKKBG0AGroaWIjgBKAKuAjEB8BRkFgs0UoqAeBUulVhiExsoBOKfsLwMcmU3BV7thpqBUnxVAvEUMgybCtWLUR7+BeJcaKlxhwiD7kDLgRyoXpwlNqjQ3AxVDCq9jaEZHxbwZ6FVwGpsmQIgwAD7IEenGBpwRwAAAABJRU5ErkJggg=="},x09X:function(e,t,n){},x893:function(e,t,n){},xpQc:function(e,t,n){"use strict";var i=n("mqBO");n.n(i).a},y4JV:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L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oWiWZsKV2kMVKnJwM/UCDFTg5wGK2AgIMLSpKDJzMTAw7375jaLr3gOHnv38YPmAEZr2bQFoNWZCTiYmhVkmRwZiPl+HL378MO968ZQgSE2VgYmRkWPXyFcO8p88Y/mMPkYcgF15CF/0OtLnu7j2Gg+8/MPAwMzOEiIsxMAINm/XkKcNc3IaBwBmQgRuwyfz5/5+h/f4DhvWvXoNd2f3gEcNaIJsA2ADyMijk71IhLT4FYmVYpBRRIWEXAvFPWF5eDcTdFBjWDTUDpfiqBOIpZBg2FaoXozz8C8S50FLjDhEG3YGWAzlQvThLbFChuRmqGFR6G0MzPizgz0KrgNXYMgVAgAEAQ6R42TeJ/UsAAAAASUVORK5CYII="},yCFu:function(e,t,n){"use strict";var i=n("44s6");n.n(i).a},yTGT:function(e,t,n){"use strict";var i=n("0pT4");n.n(i).a},ykWn:function(e,t,n){},yw5q:function(e,t,n){"use strict";var i=n("d0vG");n.n(i).a},z5u8:function(e,t,n){"use strict";var i=n("gDS+"),a=n.n(i),s=n("QbLZ"),o=n.n(s),r=n("Flj7"),c=n("0hym"),l=n("LWkM"),u=n("L2JU"),d={components:{XhUser:c.a},props:{taskData:{type:Object,default:function(){return{}}},text:String,time:[String,Number],subData:Object,subTaskCom:{type:String,default:""},taskId:[Number,String],checkboxData:{type:Boolean,default:!1},checkDisabled:{type:Boolean,default:!0}},data:function(){return{subtasksDate:"",checked:!1,xhUserData:[],isRequesting:!1,subtasksTextarea:"",showUserPopover:!1}},computed:o()({ownerListRequest:function(){return this.workId?l.w:null},ownerListParams:function(){return this.workId?{work_id:this.workId}:null},workId:function(){return this.taskData?this.taskData.work_id:""},isChangeUser:function(){var e=this.subData.mainUser?[this.subData.mainUser]:[];return this.xhUserData.length!=e.length||!(!this.xhUserData.length||this.xhUserData[0].userId==this.subData.mainUser.userId)}},Object(u.b)(["userInfo"])),watch:{checkboxData:{handler:function(e){this.checked=e},immediate:!0}},created:function(){"edit"==this.subTaskCom&&(this.subtasksTextarea=this.text?this.text:"",this.subtasksDate=this.time,"{}"!==a()(this.subData)?(this.subData.mainUser||this.subData.main_user_id)&&(this.xhUserData=this.subData.mainUser?[this.subData.mainUser]:[this.subData]):this.xhUserData=[])},methods:{subtasksSubmit:function(e){var t=this;this.subtasksTextarea=this.subtasksTextarea.split(/[\n]/).join(""),this.$listeners.add?(this.subtasksTextarea&&this.$emit("add",{checked:this.checked,name:this.subtasksTextarea,stop_time:this.subtasksDate,mainUser:0!=this.xhUserData.length?this.xhUserData[0]:null}),this.$emit("close")):this.subtasksTextarea&&!this.isRequesting?(this.isRequesting=!0,"new"==this.subTaskCom?Object(r.a)({pid:this.taskData.task_id,name:this.subtasksTextarea,stop_time:this.subtasksDate,main_user_id:0!=this.xhUserData.length?this.xhUserData[0].id:""}).then(function(e){t.taskData.subTaskList.push({name:t.subtasksTextarea,stop_time:t.subtasksDate,task_id:e.data,mainUser:t.xhUserData.length>0?t.xhUserData[0]:t.userInfo}),t.$message.success("子任务创建成功"),t.subtasksTextarea="",t.subtasksDate="",t.isRequesting=!1,t.$emit("on-handle",{type:"add",result:"success"})}).catch(function(){t.$emit("on-handle",{type:"add",result:"error"}),t.$message.error("子任务创建失败"),t.isRequesting=!0}):"edit"==this.subTaskCom&&(1==this.isChangeUser||this.text!=this.subtasksTextarea||this.subtasksDate!=this.time?Object(r.c)({task_id:this.taskId,stop_time:this.subtasksDate,main_user_id:this.xhUserData.length>0?this.xhUserData[0].id||this.xhUserData[0].main_user_id:"",name:this.subtasksTextarea}).then(function(e){var n=t.taskData.subTaskList;for(var i in n)if(n[i].task_id==t.taskId){var a=n[i];a.name=t.subtasksTextarea,a.stop_time=t.subtasksDate,a.mainUser=t.xhUserData.length>0?t.xhUserData[0]:null,n.splice(i,1,a);break}t.isRequesting=!1,t.$emit("on-handle",{type:"edit",result:"success"}),t.$message.success("子任务编辑成功")}).catch(function(){t.$emit("on-handle",{type:"edit",result:"error"}),t.$message.error("子任务编辑失败"),t.isRequesting=!1}):this.$emit("on-handle",{type:"cancel"}))):this.$emit("on-handle",{type:"cancel"})},xhUserCheckout:function(e){this.xhUserData=e,this.showUserPopover=!1},subtasksDateFun:function(){this.$refs.subtasksDate.change()}}},p=(n("fs3x"),n("KHd+")),h=Object(p.a)(d,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"task-sub"},[n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.subtasksSubmit,expression:"subtasksSubmit"}],staticClass:"subtasks-content"},[n("div",{staticClass:"checkbox-box subtasks-box"},[n("el-checkbox",{attrs:{disabled:e.checkDisabled},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1),e._v(" "),n("div",{staticClass:"subtasks-content-box"},[n("el-input",{attrs:{maxlength:50,type:"textarea",autosize:"",placeholder:"请输入内容"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.subtasksSubmit(t):null}},model:{value:e.subtasksTextarea,callback:function(t){e.subtasksTextarea=t},expression:"subtasksTextarea"}})],1),e._v(" "),n("flexbox",{staticClass:"subtasks-content-png"},[n("div",{staticClass:"time"},[n("el-date-picker",{ref:"subtasksDate",style:{width:e.subtasksDate?"54px":"28px"},attrs:{type:"date",format:"yyyy 年 MM 月 dd 日","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.subtasksDate,callback:function(t){e.subtasksDate=t},expression:"subtasksDate"}}),e._v(" "),e.subtasksDate?n("span",{staticClass:"bg-color"},[e._v(e._s(e._f("moment")(e.subtasksDate,"YYYY-MM-DD")))]):n("i",{staticClass:"wukong wukong-time-task",on:{click:e.subtasksDateFun}})],1),e._v(" "),n("el-popover",{attrs:{placement:"bottom-end",width:"280","popper-class":"no-padding-popover",trigger:"click"},model:{value:e.showUserPopover,callback:function(t){e.showUserPopover=t},expression:"showUserPopover"}},[n("xh-user",{ref:"xhuser",attrs:{"info-request":e.ownerListRequest,"info-params":e.ownerListParams,"selected-data":e.xhUserData,radio:""},on:{changeCheckout:e.xhUserCheckout}}),e._v(" "),n("div",{staticClass:"select-box",attrs:{slot:"reference"},slot:"reference"},[e.xhUserData&&e.xhUserData.length?e._l(e.xhUserData,function(t,i){return n("span",{key:i},[n("el-tooltip",{attrs:{placement:"bottom",effect:"light","popper-class":"tooltip-change-border"}},[n("div",{attrs:{slot:"content"},slot:"content"},[n("span",{on:{click:function(t){e.showUserPopover=!0}}},[e._v(e._s(t.realname))])]),e._v(" "),n("xr-avatar",{attrs:{name:t.realname,size:24,src:t.img||t.thumb_img}})],1)],1)}):n("i",{staticClass:"wukong wukong-user"})],2)],1)],1)],1)])},[],!1,null,"0084b5c8",null);h.options.__file="SubTask.vue";t.a=h.exports},z7oh:function(e,t,n){"use strict";var i=n("QbLZ"),a=n.n(i),s=n("dPzk"),o=n("Ir+r"),r=n("L2JU"),c=n("Xjjk"),l=n.n(c),u={name:"CommentList",components:{ReplyComment:s.a},props:{list:{type:Array,required:!0},id:{type:[String,Number],required:!0},type:[String,Number]},data:function(){return{replyIndex:null,commentLoading:!1}},computed:a()({},Object(r.b)(["userInfo"])),methods:{handleToReply:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e+(null!==t?"-"+t:"");this.$emit("close-other-reply"),n!==this.replyIndex&&(this.replyIndex=n)},closeReply:function(){this.replyIndex=null},handleReply:function(e){var t=this,n={type:this.type,content:l()(e),type_id:this.id},i=null,a=this.replyIndex.split("-"),s=this.list[a[0]];a[1]&&(i=s.childCommentList[a[1]]),s&&(n.main_id=s.comment_id,n.comment_id=s.childCommentList.comment_id||s.comment_id),i&&(n.comment_id=i.comment_id),this.commentLoading=!0,Object(o.c)(n).then(function(e){e.data.userInfo={user_id:t.userInfo.id,realname:t.userInfo.realname,img:t.userInfo.img},e.data.replyuserInfo=i?i.userInfo:s.userInfo,t.list[a[0]].childCommentList.push(e.data),t.replyIndex=null,t.commentLoading=!1}).catch(function(){t.commentLoading=!1})},handleToDelete:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.a)({comment_id:e.comment_id,task_id:n.id}).then(function(e){n.$message({type:"success",message:"删除成功!"}),i>=0?n.list[t].childCommentList.splice(i,1):n.$emit("delete",t)})}).catch(function(){n.$message({type:"info",message:"已取消删除"})})}}},d=(n("J1me"),n("KHd+")),p=Object(d.a)(u,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"comment-list"},e._l(e.list,function(t,i){return n("div",{key:i,staticClass:"comment-list-item"},[n("div",{staticClass:"parent-reply reply"},[n("div",{staticClass:"user-info"},[n("xr-avatar",{staticClass:"user-img",attrs:{name:t.userInfo.realname,id:t.userInfo.user_id||t.userInfo.id,size:34,src:t.userInfo.thumb_img||t.userInfo.img,disabled:!1}}),e._v(" "),n("div",{staticClass:"user-info__bd"},[n("div",{staticClass:"user"},[e._v(e._s(t.userInfo.realname))]),e._v(" "),n("div",{staticClass:"time"},[e._v("\n "+e._s(t.create_time)+"\n ")])]),e._v(" "),n("div",{staticClass:"control"},[n("span",{staticClass:"reply-btn",on:{click:function(t){e.handleToReply(i)}}},[n("i",{staticClass:"wk wk-reply"}),e._v(" "),n("span",[e._v("回复")])]),e._v(" "),n("span",{staticClass:"delete-btn",on:{click:function(n){e.handleToDelete(t,i)}}},[n("i",{staticClass:"wk wk-s-delete"}),e._v(" "),n("span",[e._v("删除")])])])],1),e._v(" "),n("div",{staticClass:"content",domProps:{innerHTML:e._s(e.emoji(t.content))}}),e._v(" "),e.replyIndex===String(i)?n("reply-comment",{on:{reply:e.handleReply,close:function(t){e.replyIndex=null}}}):e._e()],1),e._v(" "),t.childCommentList&&t.childCommentList.length>0?e._l(t.childCommentList,function(t,a){return n("div",{key:a},[n("div",{staticClass:"child-reply reply"},[n("div",{staticClass:"user-info"},[n("xr-avatar",{staticClass:"user-img",attrs:{name:t.userInfo.realname,id:t.userInfo.user_id,size:34,src:t.userInfo.img,disabled:!1}}),e._v(" "),n("div",{staticClass:"user-info__bd"},[n("div",{staticClass:"user"},[e._v("\n "+e._s(t.userInfo.realname)+"\n ")]),e._v(" "),n("div",{staticClass:"time"},[e._v("\n "+e._s(t.create_time)+"\n ")])]),e._v(" "),n("div",{staticClass:"control"},[n("span",{staticClass:"reply-btn",on:{click:function(t){e.handleToReply(i,a)}}},[n("i",{staticClass:"wk wk-reply"}),e._v(" "),n("span",[e._v("回复")])]),e._v(" "),n("span",{staticClass:"delete-btn",on:{click:function(n){e.handleToDelete(t,i,a)}}},[n("i",{staticClass:"wk wk-s-delete"}),e._v(" "),n("span",[e._v("删除")])])])],1),e._v(" "),n("div",{staticClass:"child-content"},[n("span",[e._v("\n 回复 @"+e._s(t.replyuserInfo.realname)+"\n ")]),e._v(" "),n("span",{staticClass:"content",domProps:{innerHTML:e._s(e.emoji(t.content))}})]),e._v(" "),e.replyIndex===i+"-"+a?n("reply-comment",{directives:[{name:"loading",rawName:"v-loading",value:e.commentLoading,expression:"commentLoading"}],on:{reply:e.handleReply,close:function(t){e.replyIndex=null}}}):e._e()],1)])}):e._e()],2)}))},[],!1,null,"455338c8",null);p.options.__file="CommentList.vue";t.a=p.exports},z8ug:function(e,t,n){},zhwh:function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return c});var i=n("t3Un");function a(e){var t=e.id?"update":"save";return Object(i.a)({url:"crm/visit/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:"crm/visit/index",method:"post",data:e})}function o(e){return Object(i.a)({url:"crm/visit/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(i.a)({url:"admin/file/index",method:"post",data:e})}function c(e){return Object(i.a)({url:"crm/visit/read",method:"post",data:e})}},zlvj:function(e,t,n){"use strict";var i=n("G1gW");n.n(i).a},zqKW:function(e,t,n){},zsUE:function(e,t,n){},zsVz:function(e,t,n){"use strict";n.d(t,"g",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return r}),n.d(t,"e",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"h",function(){return d});var i=n("t3Un");function a(e){return Object(i.a)({url:"oa/task/myTask",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(i.a)({url:(e.work_id?"work":"oa")+"/task/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(i.a)({url:"work/task/read",method:"post",data:e})}function r(e){return Object(i.a)({url:"work/task/read",method:"post",data:e})}function c(e){return Object(i.a)({url:"work/task/readLoglist",method:"post",data:e})}function l(e){return Object(i.a)({url:(e.work_id?"work":"oa")+"/task/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(i.a)({url:"oa/task/delrelation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(i.a)({url:"work/task/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}}},[[1,"runtime","chunk-elementUI","chunk-libs"]]]);