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gVNhYkIVz5y5sQhR+9YUIqpFssoDdbIRWhByjkuyyvKs3/4AN6U/+pzKB9LnAwsWDLBkNxPTHfsyjn3tzXzIHy7TzeLAgtmAdr/jad1SAd21S74dBpIDX/v8cwxcT1lNR84SVVxcKpXUpeDzUKFRG01NVR5/gXWWVUbBJtHH5agixdrtRlipAIvDl23EZjZAoo8ULMtGZA3//osvnN7bvvYeZc5YJvdNRvjt1NFCXdo4m8+vRHVx7zaQle4vpjWlMgMi27vLvv7eXV+kpkAWQrxTWNAeg+PjXZHKChCmrNQGQHIHWADICshKEwCyAiArICsAsgIgKyArgL2yLtEMYDnzNVnZDAps52JNVsrVwXb+V5NVCkuXaQ+wFHHzw5qs8hzKGG0CljI2OD5+zjsb8HIt1AJYxJerbiqvrDIjkNfH+/oo00awzpRXe/uDOqremK2SJwXqT5TnMv6pD9mpYqc+umk7WAPk20AmV3v4D2tdv5f/CzAA5KjdlG91CeMAAAAASUVORK5CYII="},"+LJE":function(e,t){e.exports="data:image/gif;base64,R0lGODlhEAAQAKIGAMLY8YSx5HOm4Mjc88/g9Ofw+v///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAGACwAAAAAEAAQAAADMGi6RbUwGjKIXCAA016PgRBElAVlG/RdLOO0X9nK61W39qvqiwz5Ls/rRqrggsdkAgAh+QQFCgAGACwCAAAABwAFAAADD2hqELAmiFBIYY4MAutdCQAh+QQFCgAGACwGAAAABwAFAAADD1hU1kaDOKMYCGAGEeYFCQAh+QQFCgAGACwKAAIABQAHAAADEFhUZjSkKdZqBQG0IELDQAIAIfkEBQoABgAsCgAGAAUABwAAAxBoVlRKgyjmlAIBqCDCzUoCACH5BAUKAAYALAYACgAHAAUAAAMPaGpFtYYMAgJgLogA610JACH5BAUKAAYALAIACgAHAAUAAAMPCAHWFiI4o1ghZZJB5i0JACH5BAUKAAYALAAABgAFAAcAAAMQCAFmIaEp1motpDQySMNFAgA7"},"+xXq":function(e,t){e.exports="data:image/png;base64,iVBORw0K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MTFFOUE1NjJGRDNDNzJDNTVBN0QiLz4gPC9yZGY6RGVzY3JpcHRpb24+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="},"/407":function(e,t,n){"use strict";var a={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)}}},i=(n("CoO1"),n("KHd+")),o=Object(i.a)(a,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);o.options.__file="index.vue";t.a=o.exports},"/861":function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"i",function(){return o}),n.d(t,"h",function(){return s}),n.d(t,"j",function(){return c}),n.d(t,"a",function(){return r}),n.d(t,"e",function(){return l}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return u}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return h});var a=n("t3Un");function i(e){return Object(a.a)({url:"admin/examine_flow/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"admin/examine_flow/stepList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(a.a)({url:"admin/examine_flow/"+(e.flow_id?"update":"save"),method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"admin/examine_flow/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(a.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(a.a)({url:t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){var t="revoke"===e.type?"crm/invoice/revokeCheck":"crm/invoice/check";return Object(a.a)({url:t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){var t="revoke"===e.type?"crm/receivables/revokeCheck":"crm/receivables/check";return Object(a.a)({url:t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(a.a)({url:"admin/examine_flow/recordList",method:"post",data:e})}function h(e){return Object(a.a)({url:"admin/examine_flow/stepList",method:"post",data:e})}},"/epS":function(e,t,n){},0:function(e,t){},"0JSX":function(e,t,n){},"0QEV":function(e,t,n){},"0hym":function(e,t,n){"use strict";var a=n("GQeE"),i=n.n(a),o=n("KTTK"),s=n("7Qib"),c=n("oxiq"),r=n.n(c),l={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?o.y:"crm_contract"===this.infoType||"crm_invoice"===this.infoType||"crm_receivables"===this.infoType||"oa_examine"===this.infoType?o.y:void 0},getParams:function(){var e=this.infoParams&&i()(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 a=this.list[n];e.includes(a.id)&&t.push(a)}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(s.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",[],[])}}},d=(n("Gv7S"),n("KHd+")),u=Object(d.a)(l,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){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,"33d0545d",null);u.options.__file="XhUser.vue";t.a=u.exports},"0pT4":function(e,t,n){},1:function(e,t,n){n("201c"),e.exports=n("Vtdi")},107:function(e,t){},108:function(e,t){},"1DpC":function(e,t,n){"use strict";n.d(t,"j",function(){return i}),n.d(t,"e",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"g",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"f",function(){return d}),n.d(t,"c",function(){return u}),n.d(t,"b",function(){return m}),n.d(t,"k",function(){return h}),n.d(t,"h",function(){return p});var a=n("t3Un");function i(e){var t=e.id?"update":"save";return Object(a.a)({url:"crm/receivables/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"crm/receivables/index",method:"post",data:e})}function s(e){return Object(a.a)({url:"crm/receivables/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"crm/receivables/read",method:"post",data:e})}function r(e){return Object(a.a)({url:"crm/receivables_plan/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a.a)({url:"admin/file/index",method:"post",data:e})}function d(e){return Object(a.a)({url:"crm/receivables/count",method:"post",data:e})}function u(e){return Object(a.a)({url:"crm/receivables/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob",timeout:6e4})}function m(e){return Object(a.a)({url:"crm/receivables/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a.a)({url:"crm/receivables/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){var t=e.id?"update":"save";return Object(a.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 a=n("0QEV");n.n(a).a},"1lV3":function(e,t,n){},"1n5n":function(e,t,n){},"1ySg":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAURJREFUOBGdkrFOhEAQhhe0sLEFTOy0OuksTgsLXoJCL7GzAmNrYmllYjwJvMHZ8ALXSal38YwFvoKGd1Dwm+gazvPiepNMWIb5P/7dWStJkgel1ItlWRNJx3GGYRi+UzMKG9Ernec8n+q67ldVNcjzfMlITZNNyp+9pmm2WRfk+D8Qm5ggugSwFsfxEXkFcGQKsTudzhDxI6BnhA0wFUVR3xRiB0Hw5nnePpAdDvRYABKmEOuzXSk5OGzf8H7HNq51PU3TE+Bd13V7v03nGyCCRSBTgEUgMsapEJvYPaC4K/b1x3lnMuNAC/R2mMa9iHX955nMONCN4sT3/Z5Mp+2E9xV6NvU9metAg9pOvsRbODrMskxGvv4nQEBFUSyXZTlguYG4y7ZqqXNvxkYAaW5BRnLdEZ8BWjUGtCAXrPfIW9ycfgCf39LWAhTi3wAAAABJRU5ErkJggg=="},"21Uy":function(e,t,n){},"2B9T":function(e,t,n){},"2E8L":function(e,t,n){},"2X1c":function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return s});var a=n("t3Un");function i(e){return Object(a.a)({url:"work/trash/index",method:"post",data:e})}function o(e){return Object(a.a)({url:"work/trash/delete",method:"post",data:e})}function s(e){return Object(a.a)({url:"work/trash/recover",method:"post",data:e})}},"2dzy":function(e,t,n){},"2n8H":function(e,t,n){},"2nGb":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var a=n("t3Un");function i(e){return Object(a.a)({url:"admin/index/sort",method:"post",data:e})}function o(e){return Object(a.a)({url:"admin/index/updatesort",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},"2uUd":function(e,t,n){},"2yjV":function(e,t,n){},"3MsT":function(e,t,n){"use strict";var a=n("fHwu");n.n(a).a},"3Y72":function(e,t,n){"use strict";var a=n("h+1H");n.n(a).a},"3iNF":function(e,t,n){"use strict";var a=n("krL/");n.n(a).a},"3j/7":function(e,t,n){"use strict";var a=n("I6se");n.n(a).a},"3pgX":function(e,t,n){"use strict";var a=n("KTTK"),i=n("82NB"),o=n("b5rP"),s=n("0BDH"),c=n.n(s),r=n("gSIQ"),l=n("7Qib"),d={name:"WkDepSelect",components:{WkSelectDropdown:i.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(r.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 a=this;e.forEach(function(e){t.includes(e[a.props.value])&&n.push(e),e.children&&a.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(r.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(l.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.k;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){if(!this.disabled){var t=Object(l.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)}}},u=(n("plF6"),n("KHd+")),m=Object(u.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,a){return n("span",{key:a,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(a)}}})])})),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,"6a246df9",null);m.options.__file="index.vue";t.a=m.exports},"3qbY":function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var a=n("t3Un");function i(e){return Object(a.a)({url:"admin/system/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"admin/system/index",method:"post",data:e})}},"44s6":function(e,t,n){},"45On":function(e,t,n){},"461n":function(e,t,n){"use strict";var a=n("Ayvz");n.n(a).a},"4XAY":function(e,t,n){"use strict";n.d(t,"x",function(){return i}),n.d(t,"y",function(){return o}),n.d(t,"A",function(){return s}),n.d(t,"B",function(){return c}),n.d(t,"z",function(){return r}),n.d(t,"C",function(){return l}),n.d(t,"E",function(){return d}),n.d(t,"D",function(){return u}),n.d(t,"s",function(){return m}),n.d(t,"u",function(){return h}),n.d(t,"t",function(){return p}),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 _}),n.d(t,"m",function(){return w}),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 I}),n.d(t,"c",function(){return j}),n.d(t,"b",function(){return T}),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 L}),n.d(t,"G",function(){return U});var a=n("t3Un");function i(e){return Object(a.a)({url:"admin/field/getField",method:"post",data:e})}function o(e){return Object(a.a)({url:"admin/field/getField",method:"post",data:e})}function s(e){return Object(a.a)({url:"admin/field/getField",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"crm/common/quickEdit",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(a.a)({url:"crm/customerPool/field",method:"post",data:e})}function l(e){return Object(a.a)({url:"admin/field/validates",method:"post",data:e})}function d(e){return Object(a.a)({url:"admin/index/fields",method:"post",data:e})}function u(e){return Object(a.a)({url:"admin/index/fields",method:"post",data:e})}function m(e){return Object(a.a)({url:"admin/scene/index",method:"post",data:e})}function h(e){return Object(a.a)({url:"admin/scene/index",method:"post",data:e})}function p(e){return Object(a.a)({url:"admin/scene/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a.a)({url:"admin/scene/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(a.a)({url:"admin/scene/defaults",method:"post",data:e})}function v(e){return Object(a.a)({url:"admin/scene/delete",method:"post",data:e})}function b(e){return Object(a.a)({url:"admin/scene/sort",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function y(e){return Object(a.a)({url:"admin/field/configIndex",method:"post",data:e})}function k(e){return Object(a.a)({url:"crm/customerPool/fieldConfig",method:"post",data:e})}function _(e){return Object(a.a)({url:"admin/field/config",method:"post",data:e})}function w(e){return Object(a.a)({url:"crm/customerPool/setFieldConfig",method:"post",data:e})}function C(e){return Object(a.a)({url:"admin/field/columnWidth",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function A(e){return Object(a.a)({url:"crm/customerPool/setFieldWidth",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function x(e){return Object(a.a)({url:"admin/index/fieldRecord",method:"post",data:e})}function I(e){return Object(a.a)({url:"oa/examine/myExamine",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function j(e){return Object(a.a)({url:"crm/activity/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function T(e){return Object(a.a)({url:"crm/activity/delete",method:"post",data:e})}function D(e){return Object(a.a)({url:"crmActivity/deleteOutworkSign",method:"post",data:e})}function S(e){return Object(a.a)({url:"crm/activity/save",method:"post",data:e})}function F(e){return Object(a.a)({url:"crm/activity/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function O(e){return Object(a.a)({url:"admin/index/importNum",method:"post",data:e})}function R(e){return Object(a.a)({url:"admin/index/importInfo",method:"post",data:e})}function E(e){return Object(a.a)({url:"admin/file/download",method:"post",data:e,responseType:"blob"})}function L(e){return Object(a.a)({url:"crm/activity/getPhrase",method:"post",data:e})}function U(e){return Object(a.a)({url:"crm/activity/setPhrase",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},"4yPa":function(e,t,n){"use strict";var a=n("SVb3");n.n(a).a},"5Pif":function(e,t,n){"use strict";var a=n("PSPl");n.n(a).a},"5Yd1":function(e,t,n){"use strict";var a=n("B+rf");n.n(a).a},"5e4S":function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},"5lrv":function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("GQeE"),s=n.n(o),c=n("4XAY"),r=n("zhwh"),l=n("gVZb"),d=n("EP+0"),u=n("IV42"),m=n("8GhS"),h=n("IEYw"),p=n("7Qib"),f={name:"VisitCreate",components:{XrCreate:l.a,CreateSections:d.a,CrmRelativeCell:m.a,WkFormItems:u.default},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,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(c.x)(t).then(function(t){var n=t.data||[],a=e.getFormAssistIds(n),i=[],o=[],s={},c={};n.forEach(function(t){var r=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId);var l=e.getItemIsCanEdit(t,e.action.type);if(l)if(1==t.autoGeneNumber){o.placeholder="根据编号规则自动生成,支持手动输入";var d=Object(p.t)(t);d.isNull=0,s[o.field]=e.getRules(d)}else s[o.field]=e.getRules(t);if(o.disabled=!l,"contacts"==o.form_type||"contract"==o.form_type||"customer"==o.form_type)if("relative"==e.action.type){var u={customer:{customer:!0},contract:{customer:!0,contract:!0}}[e.action.crmType];u&&(o.disabled=u[t.form_type]||!1)}else"save"==e.action.type&&(o.disabled="contract"===t.form_type||"contacts"===t.form_type);if("save"==e.action.type&&"contract"==t.form_type&&(o.relation={}),"relative"==e.action.type||"update"==e.action.type){var m=e.getItemRelatveInfo(n,"customer");m&&("contacts"==t.form_type?(m.moduleType="customer",o.relation=m):"contract"==t.form_type&&(m.moduleType="customer",m.params={check_status:2},o.relation=m))}e.getItemRadio(t,o),o.show&&(c[o.field]=e.getItemValue(t,e.action.data,e.action.type)),r.push(o),i.push(t)}),o.push(r)}),e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,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;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var a=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(a.action_id=e.action.id),e.submiteParams(a)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id,e.batchId=this.action.batchId),this.action.relativeData&&s()(this.action.relativeData).length&&(e=i()({},e,this.action.relativeData)),Object(r.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,a){if(["select","checkbox"].includes(e.formType)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){var n=this;"customer"===t.form_type&&this.itemsForEach(this.fieldList,function(t){if("contract"===t.form_type||"contacts"===t.form_type)if(e.value.length>0){t.disabled=!1;var a=e.value[0];a.moduleType="customer",a.params={check_status:2},t.relation=a}else t.disabled=!0,t.relation={},n.fieldForm[t.field]=[]}),this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)},close:function(){this.$emit("close")}}},g=(n("461n"),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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return[a&&"customer"==a.form_type?n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e(),e._v(" "),!a||"contract"!=a.form_type&&"contacts"!=a.form_type?e._e():n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,relation:a.relation,"relative-type":a.form_type},on:{"value-change":function(t){e.otherChange(t,a)}}}),e._v(" "),a&&"product"==a.form_type?n("xh-product",{attrs:{value:e.fieldForm[a.field]},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e()]}}])})}))],1)],1)},[],!1,null,"61e6830e",null);v.options.__file="Create.vue";t.a=v.exports},"6V3D":function(e,t,n){"use strict";var a=n("rfXi"),i=n.n(a),o=n("KTTK"),s=n("7Qib"),c={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(s.g)(e).then(function(n){var a=e.split(".").slice(-1)||"png",i=e.split("/").slice(-1),o={target:{files:[new File([n],i,{type:"image/"+a})]}};t.upLoad(o)})},upLoad:function(e){var t=this,n=i()(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 a=0;a<n.length;a++){var s=n[a];this.loading=!0,Object(o.f)({type:"img",file:s}).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,a={};"main"==e?(a.file_id=this.primaryList[t].file_id,a.save_name=this.primaryList[t].save_name):(a.file_id=this.detailList[t].file_id,a.save_name=this.detailList[t].save_name),this.$confirm("此操作将永久删除该图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){n.loading=!0,Object(o.c)(a).then(function(a){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})})}}},r=(n("vAiE"),n("KHd+")),l=Object(r.a)(c,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,a){return n("div",{key:a,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,a)}}}),e._v(" "),n("i",{staticClass:"el-icon-delete set-img-delete",on:{click:function(t){t.stopPropagation(),e.deleteImg("main",a)}}})])])}),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,a){return n("div",{key:a,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,a)}}}),e._v(" "),n("i",{staticClass:"el-icon-delete set-img-delete",on:{click:function(t){t.stopPropagation(),e.deleteImg("detail",a)}}})])])}),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 a=n("gDS+"),i=n.n(a),o=n("GQeE"),s=n.n(o),c=n("QbLZ"),r=n.n(c),l=n("HHBN"),d=n("EBQf"),u={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,s()(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")}}},m=(n("Lc3V"),n("KHd+")),h=Object(m.a)(u,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 p=h.exports,f=n("L2JU"),g=n("mXRo"),v={components:{XhUserCell:l.a,RelatedBusiness:d.a,Repeat:p},props:{showCreate:{type:Boolean,default:!1},title:{type:String,default:"新增日程"},selectDiv:{type:String,default:""},colorList:{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}},cusCheck:[]}},computed:r()({},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;s()(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(this.getCusCheck(),0!==s()(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]&&t[0].color,this.form.schedule_id=t[0]&&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,s()(e).forEach(function(t){n.businessRelation[t]=e[t].length?e[t]:""}),this.businessRelation=JSON.parse(i()(this.businessRelation))},unbindRelatedInfo:function(e,t,n){var a=this;this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){var t=JSON.parse(i()(a.allData));t[e].splice(n,1),a.allData=t}).catch(function(){a.$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=r()({},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=r()({},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 a in this.allData)n(a);var i=s()(this.todayDetailData).length,o=this.getRequest();t.notice=this.notice,i&&(t.time=new Date(this.todayDetailData.start_time).getTime(),this.editAll?t.type=3:(t.type=2,t.event.repetitionType=1)),o(t).then(function(t){e.$message.success("新建或编辑日程成功"),e.disabled=!1,e.$emit("createSuccess")}).catch(function(){e.disabled=!1})},getRequest:function(){return s()(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}}},getCusCheck:function(){var e=this;Object(g.g)().then(function(t){e.cusCheck=t.data.list}).catch()}}},b=(n("QiVu"),Object(m.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,a){return[n("el-form-item",{key:a,attrs:{label:"提前"}},[n("el-select",{staticClass:"time_select",attrs:{placeholder:"选择时间"},model:{value:e.notice[a].value,callback:function(t){e.$set(e.notice[a],"value",t)},expression:"notice[index].value"}},e._l(e.timeList[e.notice[a].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[a].type,a)}},model:{value:e.notice[a].type,callback:function(t){e.$set(e.notice[a],"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!=a?n("el-button",{attrs:{icon:"el-icon-delete",type:"text"},on:{click:function(t){e.deleteNotice(a)}}}):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,"16ca8ef5",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 i}),n.d(t,"a",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return r}),n.d(t,"b",function(){return l}),n.d(t,"s",function(){return d}),n.d(t,"u",function(){return u}),n.d(t,"v",function(){return m}),n.d(t,"w",function(){return h}),n.d(t,"t",function(){return p}),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 _}),n.d(t,"g",function(){return w}),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 I}),n.d(t,"o",function(){return j}),n.d(t,"p",function(){return T}),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 L}),n.d(t,"x",function(){return U}),n.d(t,"I",function(){return V}),n.d(t,"z",function(){return M}),n.d(t,"C",function(){return N}),n.d(t,"B",function(){return B}),n.d(t,"y",function(){return W}),n.d(t,"F",function(){return P}),n.d(t,"D",function(){return Y}),n.d(t,"E",function(){return Z}),n.d(t,"A",function(){return G});var a=n("t3Un");function i(e){return Object(a.a)({url:"crm/business_status/type",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"crm/business_status/save",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function s(e){return Object(a.a)({url:"crm/business_status/enables",method:"post",data:e})}function c(e){return Object(a.a)({url:"crm/business_status/read",method:"post",data:e})}function r(e){return Object(a.a)({url:"crm/business_status/update",method:"post",data:e})}function l(e){return Object(a.a)({url:"crm/business_status/delete",method:"post",data:e})}function d(e){return Object(a.a)({url:"admin/field/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(a.a)({url:"admin/field/read",method:"post",data:e})}function m(e){return Object(a.a)({url:"admin/field/read",method:"post",data:e})}function h(e){return Object(a.a)({url:"admin/field/update",method:"post",data:e})}function p(e){return Object(a.a)({url:"admin/field/index",method:"post",data:e})}function f(e){return Object(a.a)({url:"crm/product_category/index",method:"post",data:e})}function g(e){var t=e.id?"update":"save";return Object(a.a)({url:"crm/product_category/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(a.a)({url:"crm/product_category/delete",method:"post",data:e})}function b(e){return Object(a.a)({url:"crm/setting/configData",method:"post",data:e})}function y(e){return Object(a.a)({url:"crm/achievement/index",method:"post",data:e})}function k(e){return Object(a.a)({url:"crm/achievement/indexForuser",method:"post",data:e})}function _(e){return Object(a.a)({url:"crm/achievement/update",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function w(e){return Object(a.a)({url:"crm/achievement/save",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function C(e){return Object(a.a)({url:"crm/achievement/delete",method:"post",data:e})}function A(e){return Object(a.a)({url:"crm/setting/recordList",method:"post",data:e})}function x(e){return Object(a.a)({url:"crm/setting/recordEdit",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function I(e){return Object(a.a)({url:"crm/setting/contractDay",method:"post",data:e})}function j(e){return Object(a.a)({url:"crm/setting/customerConfigList",method:"post",data:e})}function T(e){return Object(a.a)({url:"crm/setting/customerConfigSave",method:"post",data:e})}function D(e){return Object(a.a)({url:"crm/setting/customerConfigDel",method:"post",data:e})}function S(e){return Object(a.a)({url:"crm/setting/getVisitDay",method:"post",data:e})}function F(e){return Object(a.a)({url:"crm/setting/setVisitDay",method:"post",data:e})}function O(e){return Object(a.a)({url:"crm/setting/numberSequenceList",method:"post",data:e})}function R(e){return Object(a.a)({url:"crm/setting/setNumber",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function E(e){return Object(a.a)({url:"admin/printing/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function L(e){return Object(a.a)({url:"admin/printing/read",method:"post",data:e})}function U(e){return Object(a.a)({url:"admin/printing/create",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function V(e){return Object(a.a)({url:"admin/printing/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function M(e){return Object(a.a)({url:"admin/printing/delete",method:"post",data:e})}function N(e){return Object(a.a)({url:"admin/printing/field",method:"post",data:e})}function B(e){return Object(a.a)({url:"crm/printing/printingData",method:"post",data:e})}function W(e){return Object(a.a)({url:"admin/printing/copy",method:"post",data:e})}function P(e){return Object(a.a)({url:"crm/printing/setRecord",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function Y(e){return Object(a.a)({url:"crm/printing/getRecord",method:"post",data:e})}function Z(e){return Object(a.a)({url:"crm/printing/printingData",method:"post",data:e})}function G(e){return Object(a.a)({url:"crm/printing/preview",method:"post",data:e})}},"6pZM":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIy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ANXQ0sRSsFTkFlM0EgpooKBhUD8E5aXQa7spsCwbqgZKMVXJRBPIcOwqVC9GOXhXyDOhZYad4gw6A60HMiB6sVZYoMKzc1QxaDS2xia8WEBfxZaBazGVgUABBgAnqU8Wz9MmZkAAAAASUVORK5CYII="},"7AXb":function(e,t,n){"use strict";var a=n("oxiq"),i=n.n(a),o=n("gSIQ"),s=n("7Qib"),c={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(o.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),this.$emit("change",e)}else this.$emit("input",[]),this.$emit("change",[])},clearAll:function(){this.$emit("input",[])}}},r=(n("p4KX"),n("KHd+")),l=Object(r.a)(c,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,a){return n("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!t.isHide,expression:"!item.isHide"}],key:a,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,"7012523c",null);l.options.__file="WkUser.vue";t.a=l.exports},"7Dod":function(e,t,n){"use strict";n.d(t,"P",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"c",function(){return r}),n.d(t,"u",function(){return l}),n.d(t,"p",function(){return d}),n.d(t,"z",function(){return u}),n.d(t,"D",function(){return m}),n.d(t,"B",function(){return h}),n.d(t,"C",function(){return p}),n.d(t,"A",function(){return f}),n.d(t,"F",function(){return g}),n.d(t,"E",function(){return v}),n.d(t,"v",function(){return b}),n.d(t,"x",function(){return y}),n.d(t,"N",function(){return k}),n.d(t,"n",function(){return _}),n.d(t,"G",function(){return w}),n.d(t,"W",function(){return C}),n.d(t,"g",function(){return A}),n.d(t,"f",function(){return x}),n.d(t,"h",function(){return I}),n.d(t,"t",function(){return j}),n.d(t,"e",function(){return T}),n.d(t,"q",function(){return D}),n.d(t,"s",function(){return S}),n.d(t,"r",function(){return F}),n.d(t,"y",function(){return O}),n.d(t,"w",function(){return R}),n.d(t,"d",function(){return E}),n.d(t,"O",function(){return L}),n.d(t,"I",function(){return U}),n.d(t,"M",function(){return V}),n.d(t,"H",function(){return M}),n.d(t,"J",function(){return N}),n.d(t,"L",function(){return B}),n.d(t,"K",function(){return W}),n.d(t,"T",function(){return P}),n.d(t,"S",function(){return Y}),n.d(t,"V",function(){return Z}),n.d(t,"X",function(){return G}),n.d(t,"i",function(){return z}),n.d(t,"R",function(){return Q}),n.d(t,"b",function(){return q}),n.d(t,"Q",function(){return J}),n.d(t,"a",function(){return X}),n.d(t,"j",function(){return K}),n.d(t,"o",function(){return H}),n.d(t,"U",function(){return $}),n.d(t,"l",function(){return ee}),n.d(t,"m",function(){return te});var a=n("GQeE"),i=n.n(a),o=n("t3Un");function s(e){var t=e.id&&e.name?"update":"save";return Object(o.a)({url:"crm/customer/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(o.a)({url:"crm/customer/index",method:"post",data:e})}function r(e){return Object(o.a)({url:"crm/customer/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(o.a)({url:"crm/customerPool/index",method:"post",data:e})}function d(e){return Object(o.a)({url:"crm/customerPool/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(o.a)({url:"admin/setting/setPool",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(o.a)({url:"admin/setting/pool",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(o.a)({url:"admin/setting/deletePool",method:"post",data:e})}function p(e){return Object(o.a)({url:"admin/setting/readPool",method:"post",data:e})}function f(e){return Object(o.a)({url:"admin/setting/changePool",method:"post",data:e})}function g(e){return Object(o.a)({url:"admin/setting/transferPool",method:"post",data:e})}function v(e){return Object(o.a)({url:"admin/setting/pool",method:"post",data:e})}function b(e){return Object(o.a)({url:"crm/customerPool/pondList",method:"post",data:e})}function y(e){return Object(o.a)({url:"admin/setting/customerLevel",method:"post",data:e})}function k(e){return Object(o.a)({url:"crm/"+(e.pool_id?"customerPool":"customer")+"/read",method:"post",data:e})}function _(e){return Object(o.a)({url:"crm/customer/lock",method:"post",data:e})}function w(e){return Object(o.a)({url:"crm/customer/putInPool",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function C(e){return Object(o.a)({url:"crm/customer/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function A(e){return Object(o.a)({url:"crm/customer/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function x(e){return Object(o.a)({url:"crm/customer/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function I(e){var t=new FormData;return i()(e).forEach(function(n){t.append(n,e[n])}),Object(o.a)({url:"crm/customer/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function j(e){var t=new FormData;return i()(e).forEach(function(n){t.append(n,e[n])}),Object(o.a)({url:"crm/customerPool/import",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}window.BASE_URL;function T(e){return Object(o.a)({url:"crm/customer/excelDownload",method:"get",data:e,responseType:"blob"})}function D(e){return Object(o.a)({url:"crm/customerPool/excelDownload",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function S(e){return Object(o.a)({url:"crm/customerPool/export",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob",timeout:6e4})}function F(e){return Object(o.a)({url:"crm/customerPool/export",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function O(e){return Object(o.a)({url:"admin/setting/poolField",method:"post",data:e})}function R(e){return Object(o.a)({url:"crm/customerPool/authority",method:"post",data:e})}function E(e){return Object(o.a)({url:"crm/customerPool/distribute",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function L(e){return Object(o.a)({url:"crm/customerPool/receive",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function U(e){return Object(o.a)({url:"crm/contacts/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function V(e){return Object(o.a)({url:"crm/visit/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function M(e){return Object(o.a)({url:"crm/business/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function N(e){return Object(o.a)({url:"crm/contract/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function B(e){return Object(o.a)({url:"crm/receivables_plan/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function W(e){return Object(o.a)({url:"crm/receivables/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function P(e){return Object(o.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function Y(e){return Object(o.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function Z(e){return Object(o.a)({url:"crm/setting/team",method:"post",data:e})}function G(e){return Object(o.a)({url:"crm/setting/teamSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function z(e){return Object(o.a)({url:"crm/setting/quitTeam",method:"post",data:e})}function Q(e){return Object(o.a)({url:"crm/message/allDeal",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function q(e){return Object(o.a)({url:"crm/customer/deal_status",method:"post",data:e})}function J(e){return Object(o.a)({url:"crm/contacts/setPrimary",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function X(e){return Object(o.a)({url:"crm/index/queryRepeat",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function K(e){return Object(o.a)({url:"admin/file/index",method:"post",data:e})}function H(e){return Object(o.a)({url:"crm/customer/count",method:"post",data:e})}function $(e){return Object(o.a)({url:"crm/customer/star",method:"post",data:e})}function ee(e){return Object(o.a)({url:"crm/invoice/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function te(e){return Object(o.a)({url:"crm/invoiceInfo/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},"7PJz":function(e,t,n){},"7Qib":function(e,t,n){"use strict";(function(e){n.d(t,"r",function(){return y}),n.d(t,"h",function(){return k}),n.d(t,"q",function(){return _}),n.d(t,"t",function(){return w}),n.d(t,"o",function(){return C}),n.d(t,"a",function(){return A}),n.d(t,"B",function(){return x}),n.d(t,"n",function(){return I}),n.d(t,"A",function(){return j}),n.d(t,"x",function(){return D}),n.d(t,"w",function(){return S}),n.d(t,"v",function(){return F}),n.d(t,"b",function(){return O}),n.d(t,"u",function(){return R}),n.d(t,"j",function(){return E}),n.d(t,"m",function(){return L}),n.d(t,"y",function(){return U}),n.d(t,"z",function(){return V}),n.d(t,"k",function(){return M}),n.d(t,"p",function(){return N}),n.d(t,"d",function(){return B}),n.d(t,"s",function(){return W}),n.d(t,"i",function(){return P}),n.d(t,"c",function(){return Y}),n.d(t,"e",function(){return Z}),n.d(t,"f",function(){return G}),n.d(t,"l",function(){return z}),n.d(t,"g",function(){return Q});var a=n("4d7F"),i=n.n(a),o=n("EJiy"),s=n.n(o),c=n("UShQ"),r=n("XJYT"),l=n("wd/R"),d=n.n(l),u=n("vDqi"),m=n.n(u),h=n("KTTK"),p=n("tbm1"),f=n("EUZL"),g=n.n(f),v=n("Iab2"),b=n.n(v);function y(e){if(e){var t=e.split(" ");return t.length>0?t[0]:""}return e}function k(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 a=n/Math.pow(1024,t);return(a=a.toFixed(2))+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}function _(){return c.PopupManager.nextZIndex()}function w(e){if("object"===(void 0===e?"undefined":s()(e))){var t=e instanceof Array?[]:{};for(var n in e)e[n]?t[n]="object"===s()(e[n])?w(e[n]):e[n]:t[n]=e[n];return t}return e}function C(e){if(-1!==e.type.indexOf("image"))return I("png");if(-1!==e.type.indexOf("audio"))return I("mp3");if(-1!==e.type.indexOf("video"))return I("mp4");var t=e.name.lastIndexOf(".");return I(e.name.substr(t+1)||"")}function A(e){return!1}function x(e,t){window.open(WKConfig.getLocationOrigin()+"/file/preview?url="+e+"?fullfilename="+(t||""))}function I(e){var t=T(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 j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"excel",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=!0;if(e){var i=e.lastIndexOf(".");T(e.substr(i+1)||"")!=t&&(a=!1)}else a=!1;return!a&&n&&Object(r.Message)({message:"请选择正确的文件类型",type:"error"}),a}function T(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 D(e){return!!/^([-+]?\d{1,15})(\.\d{0,4})?$/.test(e)}function S(e){return!!/^([-+]?\d{1,15})(\.\d{0,2})?$/.test(e)}function F(e){return!!/^(\+?0?\d{2,4}\-?)?\d{6,11}$/.test(e)}var O=/^1\d{10}$/;function R(e){return!!/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(e)}function E(e){var t=d()(e),n=d()(),a=n.diff(t,"seconds");return a<30?"刚刚":a<3600?Math.ceil(a/60)+"分钟前":a<86400?Math.ceil(a/3600)+"小时前":a<172800?"1天前":t.format("YYYY")==n.format("YYYY")?t.format("MM月DD日"):t.format("YY年MM月DD日")}function L(e){var t=0;return t=13===e.length?parseInt(e):1e3*parseInt(e),new Date(t)}function U(e){m()({method:"post",url:"https://center.72crm.com/user/check",data:e.serverUserInfo,proxy:{host:"center.72crm.com",port:"443"}})}function V(e,t){return e&&e.toString().length>=10?d()(L(e.toString())).format(t):""}function M(e){if(e&&e.length>0){var t=d()(e).valueOf().toString();return t.length>10?t.substr(0,10):t}return""}function N(e){return new i.a(function(t,n){(-1!==e.indexOf("adminFile/down/")?p.a:h.m)({path:e}).then(function(e){var n=new Blob([e.data],{type:""}),a=new FileReader;a.readAsDataURL(n),a.onload=function(e){t({blob:n,src:e.target.result})}}).catch(function(){n()})})}function B(e){Object(h.l)({save_name:e.save_name}).then(function(t){Z(new Blob([t.data],{type:""}),e.name||"文件")}).catch(function(){})}function W(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+e()+e()+e()+e()+e()+e()}function P(e,t){var n=void 0,a=void 0;try{n=e.toString().split(".")[1].length}catch(e){n=0}try{a=t.toString().split(".")[1].length}catch(e){a=0}var i=Math.pow(10,Math.max(n,a));return Math.round(e*i+t*i)/i}function Y(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 a=new Blob([e],{type:n||""}),i=document.createElement("a"),o=window.URL.createObjectURL(a);i.href=o,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(o)}function G(e,t){var n=document.querySelector(".el-table__fixed"),a=void 0;n?(a=g.a.utils.table_to_book(document.getElementById(t).removeChild(n)),document.getElementById(t).appendChild(n)):a=g.a.utils.table_to_book(document.getElementById(t));var i=g.a.write(a,{bookType:"xlsx",bookSST:!1,type:"binary"});b.a.saveAs(new Blob([function(e){var t,n;if("undefined"!=typeof ArrayBuffer){t=new ArrayBuffer(e.length);var a=new Uint8Array(t);for(n=0;n!==e.length;n++)a[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}(i)],{type:"application/octet-stream;charset=utf-8"}),e)}function z(){return e.BMap?e.BMap._preloader?e.BMap._preloader:i.a.resolve(e.BMap):(e.BMap={},e.BMap._preloader=new i.a(function(t,n){e._initBaiduMap=function(){t(e.BMap),e.document.body.removeChild(a),e.BMap._preloader=null,e._initBaiduMap=null};var a=document.createElement("script");e.document.body.appendChild(a),a.src="https://api.map.baidu.com/api?v=3.0&ak="+WKConfig.baiduKey+"&callback=_initBaiduMap"}),e.BMap._preloader)}function Q(e){return new i.a(function(t,n){var a=new XMLHttpRequest;a.open("get",e,!0),a.responseType="blob",a.onload=function(){200==this.status?t(this.response):n()},a.send()})}}).call(this,n("yLpj"))},"7j8g":function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("GQeE"),s=n.n(o),c=n("4XAY"),r=n("Y4Le"),l=n("gVZb"),d=n("EP+0"),u=n("IV42"),m=n("8GhS"),h=n("6V3D"),p=n("IEYw"),f={name:"ProductCreate",components:{XrCreate:l.a,CreateSections:d.a,XhProuctCate:m.j,DetailImg:h.a,WkFormItems:u.default},mixins:[p.a],props:{action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,ignoreFields:["status"],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,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(c.x)(t).then(function(t){var n=t.data||[],a=e.getFormAssistIds(n),i=[],o=[],s={},c={};n.forEach(function(t){var n=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId),e.ignoreFields.includes(o.field)&&(delete o.optionsData,delete t.optionsData);var r=e.getItemIsCanEdit(t,e.action.type);r&&(s[o.field]=e.getRules(t)),o.disabled=!r,e.getItemRadio(t,o),o.show&&(e.ignoreFields.includes(o.field)?c[o.field]="update"===e.action.type?o.value:o.defaultValue:c[o.field]=e.getItemValue(t,e.action.data,e.action.type)),n.push(o),i.push(t)}),o.push(n)}),e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var a=e.getSubmiteParams(e.baseFields,e.fieldForm);a.cover_images=e.imageData.mainFile?e.imageData.mainFile.map(function(e){return e.file_id}).join(","):"",a.details_images=e.imageData.detailFile?e.imageData.detailFile.map(function(e){return e.file_id}).join(","):"",e.submiteParams(a)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id,e.batchId=this.action.batchId),this.action.relativeData&&s()(this.action.relativeData).length&&(e=i()({},e,this.action.relativeData)),Object(r.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,a){if(["select","checkbox"].includes(e.formType)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.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("qATP"),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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t,"ignore-fields":e.ignoreFields},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[i&&"status"==i.field?n("el-select",{staticStyle:{width:"100%"},on:{change:function(t){e.formChange(i,a,t)}},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){return n("el-option",{key:e,attrs:{label:e,value:e}})})):i&&"category"==i.form_type?n("xh-prouct-cate",{attrs:{disabled:i.disabled,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,"290c3410",null);v.options.__file="Create.vue";t.a=v.exports},"7qmR":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"m",function(){return s}),n.d(t,"j",function(){return c}),n.d(t,"k",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"l",function(){return d}),n.d(t,"c",function(){return u}),n.d(t,"i",function(){return m}),n.d(t,"h",function(){return h}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return f}),n.d(t,"e",function(){return g});var a=n("t3Un");function i(e){return Object(a.a)({url:"oa/examine/categoryList",method:"post",data:e})}function o(e){return Object(a.a)({url:"oa/examine/examineSort",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(a.a)({url:"oa/examine/"+(e.id?"update":"save"),method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"oa/examine/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(a.a)({url:"oa/examine/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a.a)({url:"oa/examine/delete",method:"post",data:e})}function d(e){return Object(a.a)({url:"oa/examine/read",method:"post",data:e})}function u(e){return Object(a.a)({url:"admin/examine_flow/stepList",method:"post",data:e})}function m(e){return Object(a.a)({url:"admin/field/getField",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a.a)({url:"admin/examine_flow/stepList",method:"post",data:e})}function p(e){return Object(a.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(a.a)({url:t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(a.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 a=n("6XTx"),i={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+"),s=Object(o.a)(i,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);s.options.__file="SelectDropdown.vue";t.a=s.exports},"84Wq":function(e,t,n){"use strict";var a=n("XAon"),i=n("3pgX"),o=n("Cj4h"),s=n("Woz+"),c=n("7Qib"),r=n("a/5N"),l={name:"WkLocationPointDialog",components:{VDistpicker:s.a},props:{visible:{type:Boolean,default:!1},value:{type:Object,default:function(){return{}}}},data:function(){return{map:null,searchInput:"",searchCopyInput:"",pointAddress:null}},computed:{},watch:{visible:function(e){var t=this;e&&this.$nextTick(function(){Object(c.l)().then(function(){var e=new BMap.Map(t.$refs.myMap,{enableMapClick:!0}),n=new BMap.Point(116.404,39.915);if(t.value&&(Object(r.b)(t.value.lat)||Object(r.b)(t.value.lng)||(n=new BMap.Point(t.value.lng,t.value.lat)),Object(r.b)(t.value.address)||(t.searchInput=t.value.address,t.searchCopyInput=t.searchInput)),!t.value||t.value&&Object(r.b)(t.value.lat)&&Object(r.b)(t.value.lng)&&Object(r.b)(t.value.address)){var a=t;(new BMap.Geolocation).getCurrentPosition(function(e){this.getStatus()==BMAP_STATUS_SUCCESS&&new BMap.Geocoder({extensions_town:!0}).getLocation(e.point,function(e){e&&(a.searchInput=e.address,a.searchCopyInput=e.address,a.addMarkerLabel(e.point),e.title="",a.pointAddress=e)})})}e.centerAndZoom(n,14),e.enableScrollWheelZoom(),t.map=e,t.addMarkerLabel(n)})})}},mounted:function(){},methods:{querySearchAsync:function(e,t){if(e){var n={onSearchComplete:function(e){if(a.getStatus()==BMAP_STATUS_SUCCESS){for(var n=[],i=0;i<e.getCurrentNumPois();i++)n.push(e.getPoi(i));t(n)}else t([])},pageCapacity:20},a=new BMap.LocalSearch(this.map,n);a.search(e)}else t([])},handleSelect:function(e){this.searchInput=e.address+e.title,this.searchCopyInput=this.searchInput,this.addMarkerLabel(e.point),this.pointAddress=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))},close:function(){this.$emit("update:visible",!1)},selectSure:function(){this.$emit("select",this.pointAddress),this.close()}}},d=(n("4yPa"),n("KHd+")),u=Object(d.a)(l,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{visible:e.visible,"close-on-click-modal":!1,"append-to-body":"",title:"选择位置",width:"500px"},on:{close:e.close}},[n("flexbox",{attrs:{align:"stretch"}},[n("flexbox-item",[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 a=t.item;return[n("div",{staticClass:"name"},[e._v(e._s(a.address+a.title))])]}}]),model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),e._v(" "),n("div",{ref:"myMap",staticClass:"map"})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.close}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.selectSure}},[e._v("确 定")])],1)],1)},[],!1,null,"fdac21e4",null);u.options.__file="index.vue";var m=u.exports,h=n("gSIQ"),p=n("0BDH"),f=n.n(p),g={name:"WkLocation",components:{WkLocationPointDialog:m},mixins:[f.a],props:{value:{required:!0},disabled:Boolean},data:function(){return{hovering:!1,dataValue:this.getDefaultValue(),pointDialogVisible:!1}},computed:{},watch:{value:{handler:function(e){Object(h.valueEquals)(e,this.dataValue)||(Object(r.c)(this.value)?this.dataValue=e:(this.dataValue=this.getDefaultValue(),this.$emit("input",this.dataValue)))},immediate:!0}},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{getDefaultValue:function(){return{lat:"",lng:"",address:""}},inputClick:function(){this.disabled||(this.pointDialogVisible=!0)},inputClear:function(){this.dataValue=this.getDefaultValue(),this.valueChange()},pointSelect:function(e){e&&(this.dataValue={lat:e.point.lat,lng:e.point.lng,address:e.address+e.title}),this.valueChange()},valueChange:function(){this.$emit("input",this.dataValue),this.$emit("change",this.dataValue),this.dispatch("ElFormItem","el.form.change",this.dataValue)}}},v=(n("Fsyv"),Object(d.a)(g,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wk-location",on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},[n("el-input",{attrs:{disabled:e.disabled,readonly:"",clearable:"",placeholder:"点击定位"},on:{clear:e.inputClear},nativeOn:{click:function(t){return e.inputClick(t)}},model:{value:e.dataValue.address,callback:function(t){e.$set(e.dataValue,"address",t)},expression:"dataValue.address"}},[n("template",{slot:"suffix"},[e.dataValue.address&&e.hovering?n("i",{staticClass:"el-icon-circle-close",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.inputClear(t)}}}):n("i",{staticClass:"wk wk-icon-location"})])],2),e._v(" "),n("wk-location-point-dialog",{attrs:{value:e.dataValue,visible:e.pointDialogVisible},on:{"update:visible":function(t){e.pointDialogVisible=t},select:e.pointSelect}})],1)},[],!1,null,"7280efd2",null));v.options.__file="index.vue";var b=v.exports,y=n("KTTK"),k=n("QbLZ"),_=n.n(k),w=n("GQeE"),C=n.n(w),A=n("m1cH"),x=n.n(A),I=n("kOL3"),j=n("gDS+"),T=n.n(j),D=["image/png","image/jpeg","image/svg+xml"],S={dotSize:1.5,minWidth:.5,maxWidth:2.5,throttle:16,minDistance:5,backgroundColor:"rgba(0,0,0,0)",penColor:"black",velocityFilterWeight:.7,onBegin:function(){},onEnd:function(){}},F=function(e){return JSON.parse(T()(e))},O={src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",x:0,y:0},R={name:"VueSignaturePad",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},customStyle:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}},images:{type:Array,default:function(){return[]}}},data:function(){return{signaturePad:{},cacheImages:[],signatureData:O,onResizeHandler:null}},computed:{propsImagesAndCustomImages:function(){var e=F(this.images),t=F(this.cacheImages);return[].concat(x()(e),x()(t))},canvas:function(){return this.$refs.signaturePadCanvas}},watch:{options:function(e){var t=this;C()(e).forEach(function(n){t.signaturePad[n]&&(t.signaturePad[n]=e[n])})},height:function(){this.resizeCanvas()}},mounted:function(){var e=this.options,t=this.$refs.signaturePadCanvas,n=new I.a(t,_()({},S,e));this.signaturePad=n,this.onResizeHandler=this.resizeCanvas.bind(this),window.addEventListener("resize",this.onResizeHandler,!1),this.resizeCanvas()},beforeDestroy:function(){this.onResizeHandler&&window.removeEventListener("resize",this.onResizeHandler,!1)},methods:{resizeCanvas:function(){var e=this.$refs.signaturePadCanvas,t=this.signaturePad.toData(),n=Math.max(window.devicePixelRatio||1,1);e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").scale(n,n),this.signaturePad.clear(),this.signatureData=O,this.signaturePad.fromData(t)},saveSignature:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D[0],t=arguments[1],n=this.signaturePad,a={isEmpty:!1,data:void 0};if(!function(e){return D.includes(e)}(e)){var i=D.join(", ");throw new Error("The Image type is incorrect! We are support "+i+" types.")}return n.isEmpty()?_()({},a,{isEmpty:!0}):(this.signatureData=n.toDataURL(e,t),_()({},a,{data:this.signatureData}))},undoSignature:function(){var e=this.signaturePad,t=e.toData();if(t)return e.fromData(t.slice(0,-1))},fromDataURL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return this.signaturePad.fromDataURL(e,t,n)},fromData:function(e){return this.signaturePad.fromData(e)},toData:function(){return this.signaturePad.toData()},lockSignaturePad:function(){return this.signaturePad.off()},openSignaturePad:function(){return this.signaturePad.on()},isEmpty:function(){return this.signaturePad.isEmpty()},getPropImagesAndCacheImages:function(){return this.propsImagesAndCustomImages},clearCacheImages:function(){return this.cacheImages=[],this.cacheImages},clearSignature:function(){return this.signaturePad.clear()},toBlob:function(e,t,n){this.$refs.signaturePadCanvas.toBlob(e,t,n)}},render:function(e){var t=this.width,a=this.height,i=this.customStyle,o=n("1ySg");return e("div",{style:_()({width:t,height:a},i)},[e("canvas",{style:{width:"100%",height:"100%",cursor:"url("+o+"),default"},ref:"signaturePadCanvas"})])}},E=Object(d.a)(R,void 0,void 0,!1,null,null,null);E.options.__file="index.vue";var L={name:"WkSignaturePad",components:{VueSignaturePad:E.exports,WkSignatureImage:n("W3mQ").a},props:{value:[Object,String],data:String,disabled:Boolean},data:function(){return{options:{backgroundColor:"#fff",onEnd:this.onEnd,minWidth:1,maxWidth:3},height:"150px"}},computed:{},watch:{data:function(e,t){Object(h.valueEquals)(e,t)||this.$refs.signaturePad.fromDataURL(e)}},created:function(){},mounted:function(){this.value?this.getData():this.$emit("input",{}),this.height=parseInt(this.$refs.wkSignaturePad.clientWidth/2.6)+"px"},beforeDestroy:function(){},methods:{getData:function(){var e=this;Object(c.p)(this.value.url).then(function(t){var n=new Image;n.onload=function(){var a=e.$refs.signaturePad.canvas.width,i=n.width,o=a/i;e.options.minWidth=e.options.minWidth*o,e.options.maxWidth=e.options.maxWidth*o,e.$nextTick(function(){e.$refs.signaturePad.fromDataURL(t.src)})},n.src=t.src}).catch(function(){})},onEnd:function(){var e=this,t=this.$refs.signaturePad.saveSignature(),n=t.isEmpty,a=t.data;this.$emit("update:data",a),n||this.$refs.signaturePad.toBlob(function(t){e.uploadFile(t)})},uploadFile:function(e){var t=this;Object(y.i)({file:e,batchId:this.value}).then(function(e){t.$emit("input",e.data)}).catch(function(){})},handleClick:function(e){"clear"===e?this.$refs.signaturePad.clearSignature():"undo"===e&&this.$refs.signaturePad.undoSignature()}}},U=(n("U1Fb"),n("Tf8T"),Object(d.a)(L,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"wkSignaturePad",staticClass:"wk-signature-pad"},[e.disabled?n("wk-signature-image",{attrs:{src:e.value.url,height:e.height}}):[n("vue-signature-pad",{key:e.height,ref:"signaturePad",attrs:{options:e.options,height:e.height,width:"100%"}}),e._v(" "),n("div",{staticClass:"wk-signature-pad__handle"},[n("el-button",{attrs:{type:"text",icon:"wk wk-icon-reply"},on:{click:function(t){e.handleClick("undo")}}},[e._v("撤回")]),e._v(" "),n("el-button",{attrs:{type:"text",icon:"wk wk-icon-bin"},on:{click:function(t){e.handleClick("clear")}}},[e._v("清空")])],1)]],2)},[],!1,null,"8add1df4",null));U.options.__file="index.vue";var V=U.exports,M=n("rrw3"),N=n("sESe"),B={name:"WkPercentInput",directives:{RepeatClick:n("5/qK").a},mixins:[Object(N.a)("input")],inject:{elForm:{default:""},elFormItem:{default:""}},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,a=this.precision,i=n(t);return void 0!==a?a:Math.max(n(e),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"==typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),a=Math.pow(10,n);t=Math.round(t/this.step)*a*this.step/a}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),a=0;return-1!==n&&(a=t.length-n-1),a},_increase:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"==typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}}},W=Object(d.a)(B,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.decrease(t):null}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e._v(" "),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.increase(t):null}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),e._v(" "),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?(t.preventDefault(),e.increase(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?(t.preventDefault(),e.decrease(t)):null}]}},[n("template",{slot:"suffix"},[e._v("%")])],2)],1)},[],!1,null,null,null);W.options.__file="index.vue";var P=W.exports,Y={name:"WkSelect",components:{},mixins:[f.a],props:{value:[String,Number],otherShowInput:{type:Boolean,default:!1},disabled:Boolean,clearable:Boolean,placeholder:String,options:{type:Array,default:function(){return[]}},showType:{type:String,default:"default"}},data:function(){return{dataValue:{select:"",otherValue:""}}},computed:{valueIsObject:function(){return Object(r.c)(this.dataValue)}},watch:{value:{handler:function(e,t){this.validValue()},immediate:!0}},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{validValue:function(){var e=this;this.value!==this.dataValue.select&&this.value!==this.dataValue.otherValue&&(Object(r.b)(this.value)?this.dataValue={select:"",otherValue:""}:this.otherShowInput?this.options.find(function(t){return e.getValue(t)===e.value})?this.dataValue.select!==this.value&&(this.dataValue={select:this.value,otherValue:""}):this.dataValue.otherValue!==this.value&&(this.dataValue={select:"其他",otherValue:this.value}):this.dataValue={select:this.value,otherValue:""})},getValue:function(e){return this.isEmptyValue(e.value)?e:e.value},isEmptyValue:function(e){return null===e||void 0==e},valueChange:function(){var e="其他"===this.dataValue.select?this.dataValue.otherValue.trim():this.dataValue.select;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e)},inputBlur:function(){var e=this.dataValue.otherValue,t=this.options.length>0&&!this.isEmptyValue(this.options[0].value);this.options.find(function(n){return t?n.value===e.trim():n===e.trim()})&&(this.dataValue.otherValue=""),this.$emit("input",this.dataValue.otherValue),this.$emit("change",this.dataValue.otherValue),this.dispatch("ElFormItem","el.form.change",this.dataValue.otherValue)}}},Z=(n("9kWh"),Object(d.a)(Y,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wk-select"},[e.valueIsObject?["default"===e.showType?n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,clearable:e.clearable,placeholder:e.placeholder},on:{change:e.valueChange},model:{value:e.dataValue.select,callback:function(t){e.$set(e.dataValue,"select",t)},expression:"dataValue.select"}},e._l(e.options,function(t,a){return n("el-option",{key:a,attrs:{label:e.isEmptyValue(t.value)?t:t.label||t.name,value:e.getValue(t)}})})):"tiled"===e.showType?n("el-radio-group",{on:{change:e.valueChange},model:{value:e.dataValue.select,callback:function(t){e.$set(e.dataValue,"select",t)},expression:"dataValue.select"}},e._l(e.options,function(t,a){return n("el-radio",{key:a,attrs:{label:e.getValue(t)}},[e._v("\n "+e._s(e.isEmptyValue(t.value)?t:t.label||t.name)+"\n ")])})):e._e(),e._v(" "),"其他"===e.dataValue.select&&e.otherShowInput?n("el-input",{attrs:{disabled:e.disabled,maxlength:100,placeholder:"其他选项需填写,否则为无效选项"},on:{blur:e.inputBlur},model:{value:e.dataValue.otherValue,callback:function(t){e.$set(e.dataValue,"otherValue",t)},expression:"dataValue.otherValue"}}):e._e()]:e._e()],2)},[],!1,null,"6f39f5a9",null));Z.options.__file="index.vue";var G=Z.exports,z={name:"WkCheckbox",components:{},mixins:[f.a],props:{value:{},otherShowInput:{type:Boolean,default:!1},disabled:Boolean,clearable:Boolean,placeholder:String,options:{type:Array,default:function(){return[]}},showType:{type:String,default:"default"}},data:function(){return{dataValue:{select:[],otherValue:""}}},computed:{valueIsObject:function(){return Object(r.c)(this.dataValue)}},watch:{value:{handler:function(e,t){this.validValue()},immediate:!0}},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{validValue:function(){var e=this;if(Object(r.b)(this.value))this.dataValue={select:[],otherValue:""};else if(this.otherShowInput){var t=this.value.filter(function(t){return!e.options.includes(t)});if(t.length>0){var n=this.value.filter(function(e){return!t.includes(e)});n.push("其他"),this.dataValue={select:n,otherValue:t[t.length-1]}}else Object(h.valueEquals)(this.value,this.dataValue.select)||(this.dataValue={select:this.value,otherValue:""})}else this.dataValue={select:this.value,otherValue:""}},getValue:function(e){return this.isEmptyValue(e.value)?e:e.value},isEmptyValue:function(e){return null===e||void 0==e},valueChange:function(){if(this.dataValue.select.includes("其他")){var e=this.dataValue.select.filter(function(e){return"其他"!==e});e.push(this.dataValue.otherValue.trim()),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e)}else this.dataValue.otherValue="",this.$emit("input",this.dataValue.select),this.$emit("change",this.dataValue.select),this.dispatch("ElFormItem","el.form.change",this.dataValue.select)},inputBlur:function(){this.valueChange()}}},Q=(n("AUgl"),Object(d.a)(z,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wk-checkbox"},[e.valueIsObject?["default"===e.showType?n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,clearable:e.clearable,placeholder:e.placeholder,multiple:""},on:{change:e.valueChange},model:{value:e.dataValue.select,callback:function(t){e.$set(e.dataValue,"select",t)},expression:"dataValue.select"}},e._l(e.options,function(t,a){return n("el-option",{key:a,attrs:{label:e.isEmptyValue(t.value)?t:t.label||t.name,value:e.getValue(t)}})})):"tiled"===e.showType?n("el-checkbox-group",{attrs:{disabled:e.disabled},on:{change:e.valueChange},model:{value:e.dataValue.select,callback:function(t){e.$set(e.dataValue,"select",t)},expression:"dataValue.select"}},e._l(e.options,function(t,a){return n("el-checkbox",{key:a,attrs:{label:e.getValue(t)}},[e._v("\n "+e._s(e.isEmptyValue(t.value)?t:t.label||t.name)+"\n ")])})):e._e(),e._v(" "),e.dataValue.select.includes("其他")?n("el-input",{attrs:{disabled:e.disabled,maxlength:100,placeholder:"其他选项需填写,否则为无效选项"},on:{blur:e.inputBlur},model:{value:e.dataValue.otherValue,callback:function(t){e.$set(e.dataValue,"otherValue",t)},expression:"dataValue.otherValue"}}):e._e()]:e._e()],2)},[],!1,null,"e6cbb182",null));Q.options.__file="index.vue";var q=Q.exports,J={name:"WkTableItems",components:{WkFormItem:function(){return Promise.resolve().then(n.bind(null,"wExK"))}},props:{propPrefix:{type:String,default:""},fieldFrom:{type:Array,default:function(){return[]}},fieldList:{type:Array,default:function(){return[]}},disabled:Boolean},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{deleteClick:function(e){this.$emit("delete",e)},getMinWidth:function(e){return"date_interval"===e||"dateRange"===e||"file"===e||"location"===e||"position"===e?250:150},getShowValue:function(e){return!e.hasOwnProperty("show")||e.show},fieldChange:function(e,t,n,a){this.$emit("change",e,t,n,a)}}},X=(n("GGG+"),n("B/zC"),Object(d.a)(J,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table",{staticClass:"wk-table-items",staticStyle:{width:"100%"},attrs:{data:e.fieldFrom,"row-key":Date.now().toString()}},[n("el-table-column",{attrs:{label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){t.row,t.column;var n=t.$index;return[e._v("\n "+e._s(n+1)+"\n ")]}}])}),e._v(" "),e._l(e.fieldList,function(t,a){return e.getShowValue(t)?n("el-table-column",{key:a,attrs:{prop:t.field,"min-width":e.getMinWidth(t.formType)},scopedSlots:e._u([{key:"header",fn:function(a){return[1==t.isNull?n("span",{staticClass:"red"},[e._v("*")]):e._e(),e._v(e._s(t.name)+"\n ")]}},{key:"default",fn:function(t){t.row,t.column;var i=t.$index;return[n("wk-form-item",{attrs:{"prop-prefix":(e.propPrefix||"")+"["+i+"].",item:e.fieldList[a],index:i,"field-from":e.fieldFrom[i],disabled:e.disabled},on:{change:e.fieldChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.data;return t.index,[e._t("default",null,{data:n,index:i})]}}])})]}}])}):e._e()}),e._v(" "),n("el-table-column",{attrs:{resizable:!1,fixed:"right",label:"操作",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){t.row,t.column;var a=t.$index;return[n("el-button",{attrs:{icon:"wk wk-icon-bin",type:"text"},on:{click:function(t){e.deleteClick(a)}}})]}}])})],2)},[],!1,null,"4f4939b4",null));X.options.__file="WkTableItems.vue";var K={name:"WkDetailTable",components:{WkFormItems:function(){return Promise.resolve().then(n.bind(null,"IV42"))},WkTableItems:X.exports},mixins:[f.a],props:{title:String,showType:{type:String,default:"defalut"},propPrefix:String,btnName:String,addFieldList:Array,addFieldForm:Object,fieldForm:{type:Array,default:function(){return[]}},fieldList:{type:Array,default:function(){return[]}},disabled:Boolean},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{formChange:function(e,t,n,a){this.$emit("change",e,t,n,a),this.dispatch("ElFormItem","el.form.change",this.fieldForm)},addClick:function(){this.fieldList.push(Object(c.t)(this.addFieldList)),this.fieldForm.push(Object(c.t)(this.addFieldForm))},deleteClick:function(e){this.fieldList.splice(e,1),this.fieldForm.splice(e,1)}}},H=(n("5Pif"),Object(d.a)(K,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wk-detail-table"},["default"===e.showType?e._l(e.fieldList,function(t,a){return n("div",{key:a,staticClass:"detail-item"},[n("flexbox",{staticClass:"detail-item__head"},[n("div",{staticClass:"detail-item__head-title"},[e._v(e._s(e.title)+"("+e._s(a+1)+")")]),e._v(" "),e.fieldList.length>1?n("el-button",{attrs:{icon:"wk wk-icon-bin",type:"text"},on:{click:function(t){e.deleteClick(a)}}}):e._e()],1),e._v(" "),n("wk-form-items",{attrs:{"field-from":e.fieldForm[a],"field-list":t,"prop-prefix":(e.propPrefix||"")+"["+a+"].",disabled:e.disabled},on:{change:e.formChange}}),e._v(" "),n("div",{staticClass:"add-btn"},[n("el-button",{attrs:{type:"text"},on:{click:e.addClick}},[n("i",{staticClass:"wk wk-l-plus"}),e._v("\n "+e._s(e.btnName)+"\n ")])],1)],1)}):"table"===e.showType?n("div",{staticClass:"detail-item"},[n("wk-table-items",{attrs:{"field-from":e.fieldForm,"field-list":e.addFieldList,"prop-prefix":e.propPrefix,disabled:e.disabled},on:{delete:e.deleteClick,change:e.formChange}}),e._v(" "),n("div",{staticClass:"add-btn"},[n("el-button",{attrs:{type:"text"},on:{click:e.addClick}},[n("i",{staticClass:"wk wk-l-plus"}),e._v("\n "+e._s(e.btnName)+"\n ")])],1)],1):e._e()],2)},[],!1,null,"4e49aebe",null));H.options.__file="index.vue";var $=H.exports,ee=n("8GhS"),te=n("bWDp"),ne={name:"WkField",components:{WkUserSelect:a.a,WkDepSelect:i.a,WkPosition:o.a,WkLocation:b,WkSignaturePad:V,WkDescText:M.a,WkPercentInput:P,WkSelect:G,WkCheckbox:q,WkDetailTable:$,VDistpicker:s.a,XhFiles:ee.f},mixins:[te.a],props:{item:Object,index:Number,fieldFrom:{type:Object,default:function(){return{}}},ignoreFields:{type:Array,default:function(){return[]}},disabled:Boolean},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{}},ae=(n("uit/"),Object(d.a)(ne,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ignoreFields.includes(e.item.field)?n("div",[e._t("default",null,{data:e.item,index:e.index})],2):"text"==e.item.form_type?n("el-input",{attrs:{disabled:e.item.disabled||e.disabled,maxlength:100,placeholder:e.item.placeholder,type:e.item.form_type},on:{input:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):e.isTrimInput(e.item.form_type)?n("el-input",{attrs:{disabled:e.item.disabled||e.disabled,"prefix-icon":e.getInputIcon(e.item.form_type),maxlength:e.getInputMaxlength(e.item.form_type),placeholder:e.item.placeholder,type:"text"},on:{input:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,"string"==typeof t?t.trim():t)},expression:"fieldFrom[item.field]"}}):"number"==e.item.form_type?n("el-input-number",{attrs:{placeholder:e.item.placeholder,disabled:e.item.disabled||e.disabled,controls:!1},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"floatnumber"==e.item.form_type?n("el-input-number",{attrs:{placeholder:e.item.placeholder,disabled:e.item.disabled||e.disabled,controls:!1},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"percent"==e.item.form_type?n("wk-percent-input",{attrs:{placeholder:e.item.placeholder,disabled:e.item.disabled||e.disabled,controls:!1},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"textarea"==e.item.form_type?n("el-input",{attrs:{disabled:e.item.disabled||e.disabled,rows:3,autosize:{minRows:3},maxlength:e.item.maxlength||800,placeholder:e.item.placeholder,type:e.item.form_type,resize:"none"},on:{input:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):["select"].includes(e.item.form_type)?n("wk-select",{attrs:{disabled:e.item.disabled||e.disabled,clearable:e.item.clearable,placeholder:e.item.placeholder,options:e.item.setting,"show-type":1===e.item.precisions?"tiled":"default","other-show-input":e.item.hasOwnProperty("optionsData")},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):["checkbox"].includes(e.item.form_type)?n("wk-checkbox",{attrs:{disabled:e.item.disabled||e.disabled,clearable:e.item.clearable,placeholder:e.item.placeholder,options:e.item.setting,"show-type":1===e.item.precisions?"tiled":"default","other-show-input":e.item.hasOwnProperty("optionsData")},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"date"==e.item.form_type?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.item.disabled||e.disabled,clearable:"",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"dateRange"==e.item.form_type?n("el-date-picker",{staticStyle:{width:"100%","vertical-align":"middle"},attrs:{disabled:e.item.disabled||e.disabled,type:e.item.dateType||"daterange","value-format":e.item.dateValueFormat||"yyyy-MM-dd",clearable:"","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"datetime"==e.item.form_type?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.item.disabled||e.disabled,clearable:"",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"structure"==e.item.form_type?n("wk-dep-select",{staticStyle:{width:"100%"},attrs:{request:e.item.request,props:e.item.props,params:e.item.params,disabled:e.item.disabled||e.disabled,radio:!!e.isEmptyValue(e.item.radio)||e.item.radio},on:{change:function(t){e.depOrUserChange(e.item,e.index,arguments[0],arguments[1])}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):["single_user","user"].includes(e.item.form_type)?n("wk-user-select",{staticStyle:{width:"100%"},attrs:{request:e.item.request,props:e.item.props,params:e.item.params,disabled:e.item.disabled||e.disabled,radio:!!e.isEmptyValue(e.item.radio)||e.item.radio},on:{change:function(t){e.depOrUserChange(e.item,e.index,arguments[0],arguments[1])}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"radio"==e.item.form_type?n("el-radio-group",{attrs:{disabled:e.item.disabled||e.disabled,placeholder:e.item.placeholder},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}},e._l(e.item.setting,function(t,a){return n("el-radio",{key:a,attrs:{label:e.isEmptyValue(t.value)?t:t.value}},[e._v("\n "+e._s(e.isEmptyValue(t.value)?t:t.label||t.name)+"\n ")])})):"boolean_value"==e.item.form_type?n("el-switch",{attrs:{disabled:e.item.disabled||e.disabled,"active-value":"1","inactive-value":"0"},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"position"==e.item.form_type?n("wk-position",{attrs:{"hide-area":e.item.hideArea,"only-province":e.item.onlyProvince,"show-detail":e.item.showDetail,disabled:e.item.disabled||e.disabled},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"location"==e.item.form_type?n("wk-location",{attrs:{disabled:e.item.disabled||e.disabled},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"handwriting_sign"==e.item.form_type?n("wk-signature-pad",{attrs:{disabled:e.item.disabled||e.disabled},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"desc_text"==e.item.form_type?n("wk-desc-text",{attrs:{value:e.fieldFrom[e.item.field]}}):"date_interval"===e.item.form_type?n("el-date-picker",{staticStyle:{width:"100%","vertical-align":"middle"},attrs:{type:e.item.dateType||"daterange","value-format":e.item.dateValueFormat||"yyyy-MM-dd",disabled:e.item.disabled||e.disabled,clearable:"","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){e.commonChange(e.item,e.index,t)}},model:{value:e.fieldFrom[e.item.field],callback:function(t){e.$set(e.fieldFrom,e.item.field,t)},expression:"fieldFrom[item.field]"}}):"address"==e.item.form_type?n("v-distpicker",{attrs:{province:e.fieldFrom[e.item.field].province,city:e.fieldFrom[e.item.field].city,area:e.fieldFrom[e.item.field].area},on:{province:function(t){e.selectProvince(t,e.item,e.index)},city:function(t){e.selectCity(t,e.item,e.index)},area:function(t){e.selectArea(t,e.item,e.index)}}}):"file"==e.item.form_type?n("xh-files",{attrs:{value:e.fieldFrom[e.item.field],disabled:e.item.disabled||e.disabled},on:{"value-change":function(t){e.oldChange(t,e.item,e.index)}}}):"detail_table"==e.item.form_type?n("wk-detail-table",{attrs:{"show-type":2===e.item.precisions?"table":"default",title:e.item.name,"prop-prefix":e.item.field,"btn-name":e.item.remark,"add-field-list":e.item.fieldExtendList,"add-field-form":e.item.fieldForm,"field-form":e.fieldFrom[e.item.field],"field-list":e.item.fieldList,disabled:e.item.disabled||e.disabled}}):n("div",[e._t("default",null,{data:e.item,index:e.index})],2)},[],!1,null,"07f56be5",null));ae.options.__file="WkField.vue";t.a=ae.exports},"87ek":function(e,t,n){"use strict";var a=n("twbI");n.n(a).a},"8GhS":function(e,t,n){"use strict";var a={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})}}},i={name:"XhInput",components:{},mixins:[a],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:{}},o=(n("b7Nu"),n("KHd+")),s=Object(o.a)(i,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);s.options.__file="XhInput.vue";var c=s.exports,r={name:"XhTextarea",components:{},mixins:[a],props:{},data:function(){return{}},computed:{},watch:{},mounted:function(){},methods:{}},l=(n("llf0"),Object(o.a)(r,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 d=l.exports,u={name:"XhSelect",components:{},mixins:[a],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=[],a=0;a<t.length;a++){var i=t[a];n.push({name:i,value:i})}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:{}},m=(n("PIPd"),Object(o.a)(u,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));m.options.__file="XhSelect.vue";var h=m.exports,p=n("EOKR"),f={name:"XhMultipleSelect",components:{},mixins:[p.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(o.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:[a],props:{},data:function(){return{}},computed:{},watch:{},mounted:function(){},methods:{}},y=(n("YCv6"),Object(o.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,_=n("7Qib"),w=n("wd/R"),C=n.n(w),A={name:"XhInput",components:{},mixins:[a],props:{value:{type:String,default:""}},data:function(){return{}},computed:{},watch:{},mounted:function(){this.value&&10==this.value.toString().length&&(this.dataValue=C()(Object(_.m)(this.value)).format("YYYY-MM-DD HH:mm:ss"))},methods:{}},x=(n("NO/o"),Object(o.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 I=x.exports,j=n("0hym"),T=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(_.h)(e.size)+")"}},mixins:[p.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,a=n[0];this.sendFileRequest(a,function(){for(var a=1;a<n.length;a++){var i=n[a];t.sendFileRequest(i)}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 a=e.res.data||{};""==n.batchId&&(n.batchId=a.batchId),a.size=Object(_.h)(a.size),n.dataValue.push(a),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(o.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,a){return n("flexbox",{key:a,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,a)}}},[e._v("×")])])}))],1)},[],!1,null,"38f40944",null));O.options.__file="XhFiles.vue";var R=O.exports,E=n("mkuN"),L={name:"CrmRelativeCell",components:{CrmRelative:E.a},mixins:[p.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}}},U=(n("B9fj"),Object(o.a)(L,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,a){return n("div",{key:a,staticClass:"user-item",on:{click:function(t){t.stopPropagation(),e.deleteinfo(a)}}},[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));U.options.__file="CrmRelativeCell.vue";var V=U.exports,M=n("6iAj"),N={name:"XhProducCate",components:{},mixins:[p.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(M.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(o.a)(N,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 W=B.exports,P=n("Q4J0"),Y={name:"XhProduct",components:{CrmRelative:E.a},mixins:[P.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 a=t.productList.find(function(t){return t.product_id==e.product_id});a?n.push(a):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})}}},Z=(n("s5mF"),Object(o.a)(Y,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));Z.options.__file="XhProduct.vue";var G=Z.exports,z=n("ERJp"),Q={name:"XhBusinessStatus",components:{},mixins:[a],props:{options:Array},data:function(){return{}},computed:{},watch:{},mounted:function(){},methods:{getBusinessStatusList:function(){var e=this;Object(z.q)({}).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(o.a)(Q,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(_.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(a.getStatus()==BMAP_STATUS_SUCCESS){for(var n=[],i=0;i<e.getCurrentNumPois();i++)n.push(e.getPoi(i));t(n)}else t([])},pageCapacity:20},a=new BMap.LocalSearch(this.map,n);a.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(o.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 a=t.item;return[n("div",{staticClass:"name"},[e._v(e._s(a.address+a.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(o.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,a){return n("div",{key:a,staticClass:"user-item",on:{click:function(n){n.stopPropagation(),e.deleteItem(t,a)}}},[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 ae=ne.exports,ie=n("d9x6"),oe={name:"XhReceivablesPlan",components:{},mixins:[a],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(ie.p)(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})})}}},se=(n("eKkT"),Object(o.a)(oe,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));se.options.__file="XhReceivablesPlan.vue";var ce=se.exports;n.d(t,"g",function(){return c}),n.d(t,"o",function(){return d}),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 I}),n.d(t,!1,function(){return j.a}),n.d(t,"p",function(){return T.a}),n.d(t,"n",function(){return D.a}),n.d(t,"f",function(){return R}),n.d(t,"a",function(){return V}),n.d(t,"j",function(){return W}),n.d(t,"i",function(){return G}),n.d(t,"b",function(){return J}),n.d(t,"c",function(){return ee}),n.d(t,"m",function(){return ae}),n.d(t,"k",function(){return ce})},"8OTK":function(e,t,n){"use strict";n.r(t);var a=n("ROSF"),i=n("GQeE"),o=n.n(i),s=n("QbLZ"),c=n.n(s),r=n("4XAY"),l=n("7Dod"),d=n("gVZb"),u=n("EP+0"),m=n("IV42"),h=n("8GhS"),p=n("IEYw"),f=n("qpGn"),g=n("ehos"),v=n("a/5N"),b=n("L2JU"),y={name:"CustomerCreate",components:{XrCreate:d.a,CreateSections:u.a,WkFormItems:m.default,XhCustomerAddress:h.c,ContactsCreate:f.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:{},contactsCreateAction:{type:"save",id:"",data:{}},contactsCreateShow:!1}},computed:c()({},Object(b.b)(["crm"]),{contactsSaveAuth:function(){return this.crm.contacts&&this.crm.contacts.save},title:function(){return"update"===this.action.type?"编辑客户":"新建客户"}}),watch:{},created:function(){this.debouncedSaveField=Object(g.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,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(r.x)(t).then(function(t){var n=t.data||[];Object(v.b)(e.phone)||n.forEach(function(t){"mobile"===t.form_type&&(t.default_value=e.phone)});var a=e.getFormAssistIds(n),i=[],o=[],s={},c={};n.forEach(function(t){var n=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId);var r=e.getItemIsCanEdit(t,e.action.type);o.show&&r&&(s[o.field]=e.getRules(t)),o.disabled=!r,e.getItemRadio(t,o),o.show&&(c[o.field]=e.getItemValue(t,e.action.data,e.action.type)),n.push(o),i.push(t)}),o.push(n)}),e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,e.loading=!1}).catch(function(t){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;n.validate(function(a){if(!a)return e.loading=!1,e.getFormErrorMessage(n),!1;var i=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(i.id=e.action.action_id),e.submiteParams(i,t)})},submiteParams:function(e,t){var n=this;"update"==this.action.type&&(e.id=this.action.id),this.action.relativeData&&o()(this.action.relativeData).length&&(e=c()({},e,this.action.relativeData)),Object(l.P)(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,a){if(["select","checkbox"].includes(e.form_type)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)},close:function(){this.contactsCreateShow=!1,this.$emit("close")}}},k=(n("VRoR"),n("KHd+")),_=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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"field-from":e.fieldForm,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return[a&&"map_address"==a.form_type?n("xh-customer-address",{attrs:{value:e.fieldForm[a.field]},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e()]}}])})}))],1),e._v(" "),"save"==e.action.type&&e.contactsSaveAuth?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,"16198b02",null);_.options.__file="Create.vue";var w=_.exports,C=n("t8Uk"),A=n("8amk"),x=n("ABTB"),I=n("SWvK"),j=n("1DpC"),T=n("ZoMv"),D={name:"ReceivablesPlanCreate",components:{XrCreate:d.a,CreateSections:u.a,CrmRelativeCell:h.a,WkFormItems:m.default},mixins:[p.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:T.a.receivables_plan,module:"crm",controller:"receivables_plan",action:this.action.type,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(r.x)(t).then(function(t){var n=t.data||[],a=e.getFormAssistIds(n),i=[],o=[],s={},c={};n.forEach(function(t){var r=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId);var l=e.getItemIsCanEdit(t,e.action.type);if(l&&(s[o.field]=e.getRules(t)),o.disabled=!l,("contract"==o.form_type||"customer"==o.form_type)&&"relative"==e.action.type){var d={contract:{customer:!0,contract:!0},customer:{customer:!0}}[e.action.crmType];d&&(o.disabled=d[t.form_type]||!1)}if(("relative"==e.action.type||"update"==e.action.type)&&"contract"==t.form_type){var u=e.getItemRelatveInfo(n,"customer");u&&(u.moduleType="customer",u.params={check_status:2},o.relation=u)}e.getItemRadio(t,o),o.show&&(c[o.field]=e.getItemValue(t,e.action.data,e.action.type)),r.push(o),i.push(t)}),o.push(r)}),e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var a=e.getSubmiteParams(e.baseFields,e.fieldForm);e.submiteParams(a)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id),this.action.relativeData&&o()(this.action.relativeData).length&&(e=c()({},e,this.action.relativeData)),Object(j.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,a){},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)},close:function(){this.$emit("close")}}},S=(n("fPCH"),Object(k.a)(D,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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return[!a||"customer"!=a.form_type&&"contract"!=a.form_type?e._e():n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],"relative-type":a.form_type,disabled:a.disabled,relation:a.relation},on:{"value-change":function(t){e.otherChange(t,a)}}})]}}])})}))],1)],1)},[],!1,null,"1f3465a6",null));S.options.__file="PlanCreate.vue";var F=S.exports,O=n("5lrv"),R=n("7j8g"),E={name:"CRMAllCreate",components:{InvoiceCreate:a.a,CustomerCreate:w,ContactsCreate:f.a,BusinessCreate:A.a,ContractCreate:x.a,ReceivablesCreate:I.a,ReceivablesPlanCreate:F,VisitCreate:O.a,LeadsCreate:C.a,ProductCreate:R.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)}}},L=(n("vtCG"),Object(k.a)(E,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));L.options.__file="CRMAllCreate.vue";t.default=L.exports},"8amk":function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("GQeE"),s=n.n(o),c=n("4XAY"),r=n("ERJp"),l=n("gVZb"),d=n("EP+0"),u=n("IV42"),m=n("8GhS"),h=n("IEYw"),p=n("a/5N"),f={name:"BusinessCreate",components:{XrCreate:l.a,CreateSections:d.a,CrmRelativeCell:m.a,XhBusinessStatus:m.b,XhProduct:m.i,WkFormItems:u.default},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,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(c.x)(t).then(function(t){var n=t.data||[],a=e.getFormAssistIds(n),i=[],o=[],s={},c={};n.forEach(function(t){var n=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId);var r=e.getItemIsCanEdit(t,e.action.type);if(o.show&&r&&(s[o.field]=e.getRules(t)),o.disabled=!r,"customer"==o.form_type&&"relative"==e.action.type){var l={customer:{customer:!0},contacts:{customer:!0}}[e.action.crmType];l&&(o.disabled=l[t.form_type]||!1)}e.getItemRadio(t,o),"business_status"===t.form_type&&(o.disabled="update"===e.action.type),o.show&&(c[o.field]=e.getItemValue(t,e.action.data,e.action.type)),n.push(o),i.push(t)}),o.push(n)}),e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,e.loading=!1}).catch(function(t){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var a=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(a.id=e.action.id),e.submiteParams(a)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id,e.batchId=this.action.batchId),this.action.relativeData&&s()(this.action.relativeData).length&&(e=i()({},e,this.action.relativeData)),Object(r.m)(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,a){if(["select","checkbox"].includes(e.form_type)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){if("business_type"===t.form_type){var n=this.getItemWithFromType(this.fieldList,"business_status");if(n)if(Object(p.b)(e.value))this.fieldForm[t.field]="";else{"init"!=e.type&&(this.fieldForm[t.field]="");var a=e.data.find(function(t){return t.type_id==e.value});n.setting=a.statusList||[],this.$set(this.fieldForm,n.field,n.setting.length>0?n.setting[0].status_id:"")}}else"product"===t.form_type&&(this.fieldForm.money=e.value.total_price||"");this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)},close:function(){this.$emit("close")}}},g=(n("XF1R"),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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return[a&&"customer"==a.form_type?n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e(),e._v(" "),a&&"business_type"==a.form_type?n("xh-business-status",{attrs:{value:e.fieldForm[a.field],options:a.setting},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e(),e._v(" "),a&&"product"==a.form_type?n("xh-product",{attrs:{value:e.fieldForm[a.field]},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e(),e._v(" "),a&&"business_status"==a.form_type?n("el-select",{staticStyle:{width:"100%"},attrs:{disabled:a.disabled},model:{value:e.fieldForm[a.field],callback:function(t){e.$set(e.fieldForm,a.field,t)},expression:"fieldForm[data.field]"}},e._l(a.setting,function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.status_id}})})):e._e()]}}])})}))],1)],1)},[],!1,null,"17d55b20",null);v.options.__file="Create.vue";t.a=v.exports},"936R":function(e,t,n){"use strict";var a=n("Rw8k");n.n(a).a},"98xk":function(e,t,n){"use strict";var a=n("edWl");n.n(a).a},"9H1A":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6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KjECjOhEivMhEqsMBMqscJMqMQKM6ESK8yESqwwEyqxwkyoxAozoRIrzIRKrDATKrHCTKjECjOhEivMhEqsMBMqscJMqMQKM6ESK8yESqwwEyqxwkyoxAozoRIrzIRKrDATKrHCTKjECjOhEivMhEqsMBMqsRKqmVCJlVDNhEqshJq29LyJlVCJFYRKrEhkqMRKqMQKQiVWJDZUYiVUc7H+w1tLqFZi7ePtJVQrse7mLSZUK7F2u+lf3mpCtRDrMTe9y9tNqFaOBmx20x7edpOhnkpCqLmx6hGBNje9o6+fBEyFuiIJoebGmg32BTctclOXm4676SJJBCmdtFBVanBwkLfeoP5zMre2RtLud9Pca/D2nwADAM+gaY1IoC7vAAAAAElFTkSuQmCC"},"9Wai":function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},"9kWh":function(e,t,n){"use strict";var a=n("KE3U");n.n(a).a},"A0++":function(e,t,n){"use strict";var a=n("TOJS");n.n(a).a},A7Qi:function(e,t,n){"use strict";var a=n("6b7q");n.n(a).a},AAeT:function(e,t,n){"use strict";n.d(t,"l",function(){return s}),n.d(t,"g",function(){return c}),n.d(t,"a",function(){return r}),n.d(t,"j",function(){return l}),n.d(t,"n",function(){return d}),n.d(t,"i",function(){return u}),n.d(t,"d",function(){return m}),n.d(t,"c",function(){return h}),n.d(t,"e",function(){return p}),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 a=n("GQeE"),i=n.n(a),o=n("t3Un");function s(e){var t=e.id?"update":"save";return Object(o.a)({url:"crm/contacts/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(o.a)({url:"crm/contacts/index",method:"post",data:e})}function r(e){return Object(o.a)({url:"crm/contacts/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(o.a)({url:"crm/contacts/read",method:"post",data:e})}function d(e){return Object(o.a)({url:"crm/contacts/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(o.a)({url:"crm/business/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(o.a)({url:"crm/contacts/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function h(e){return Object(o.a)({url:"crm/contacts/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){var t=new FormData;return i()(e).forEach(function(n){t.append(n,e[n])}),Object(o.a)({url:"crm/contacts/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}window.BASE_URL;function f(e){return Object(o.a)({url:"crm/contacts/excelDownload",method:"get",data:e,responseType:"blob"})}function g(e){return Object(o.a)({url:"crm/contacts/relation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(o.a)({url:"crm/contacts/relation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(o.a)({url:"admin/file/index",method:"post",data:e})}function y(e){return Object(o.a)({url:"crm/contacts/count",method:"post",data:e})}function k(e){return Object(o.a)({url:"crm/contacts/star",method:"post",data:e})}},ABTB:function(e,t,n){"use strict";var a=n("4d7F"),i=n.n(a),o=n("QbLZ"),s=n.n(o),c=n("GQeE"),r=n.n(c),l=n("4XAY"),d=n("d9x6"),u=n("ERJp"),m=n("gVZb"),h=n("EP+0"),p=n("IV42"),f=n("8GhS"),g=n("lcu+"),v=n("IEYw"),b=n("ehos"),y=n("7Qib"),k={name:"ContractCreate",components:{XrCreate:m.a,CreateSections:h.a,CrmRelativeCell:f.a,XhProduct:f.i,CreateExamineInfo:g.a,WkFormItems:p.default},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&&(!(r()(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,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(l.x)(t).then(function(t){var n=t.data||[],a=e.getFormAssistIds(n),i=[],o=[],s={},c={};if(n.forEach(function(t){var r=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId);var l=e.getItemIsCanEdit(t,e.action.type);if(l)if(1==t.autoGeneNumber){o.placeholder="根据编号规则自动生成,支持手动输入";var d=Object(y.t)(t);d.isNull=0,s[o.field]=e.getRules(d)}else s[o.field]=e.getRules(t);if(o.disabled=!l,"contacts"==o.form_type||"customer"==o.form_type||"business"==o.form_type)if("relative"==e.action.type){var u={contacts:{customer:!0},customer:{customer:!0},business:{customer:!0,business:!0}}[e.action.crmType];u&&(o.disabled=u[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 m=e.getItemRelatveInfo(n,"customer");m&&("business"==t.form_type||"contacts"==t.form_type?(m.moduleType="customer",o.relation=m):"contract"==t.form_type&&(m.moduleType="customer",m.params={checkStatus:2},o.relation=m))}e.getItemRadio(t,o),"update"!=e.action.type&&"order_date"===t.field?c[o.field]=e.$moment().format("YYYY-MM-DD"):c[o.field]=e.getItemValue(t,e.action.data,e.action.type),r.push(o),i.push(t)}),o.push(r)}),"relative"==e.action.type){var r=e.action.data.business;r&&e.getBusinessProduct(r.business_id).then(function(e){var t=e||{};c.product={product:t.list,total_price:t.total_price,discount_rate:t.discount_rate},c.money=t.total_price||""}).catch(function(){})}e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,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;n.validate(function(a){if(!a)return e.loading=!1,e.getFormErrorMessage(n),!1;if(e.isOpenExamine)t?e.$refs.examineInfo.validateField(function(t){if(t){var n=e.getSubmiteParams(e.baseFields,e.fieldForm);0===e.examineInfo.config&&e.examineInfo.hasOwnProperty("value")&&e.examineInfo.value.length&&(n.check_user_id=e.examineInfo.value[0].id),n.examineStatus=e.examineInfo.examineStatus,n.is_draft=1,e.submiteParams(n)}else e.loading=!1}):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 i=e.getSubmiteParams(e.baseFields,e.fieldForm);t&&(i.is_draft=1),e.submiteParams(i)}})},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&&r()(this.action.relativeData).length&&(e=s()({},e,this.action.relativeData)),Object(d.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,a){if(["select","checkbox"].includes(e.form_type)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){var n=this;if("customer"===t.form_type){for(var a=0,i=0;i<this.fieldList.length;i++)for(var o=this.fieldList[i],s=0;s<o.length;s++){var c=o[s],r=["business_id","contacts_id","order_user_id"],l=["business_id","contacts_id"],d={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(r.includes(c.field)){if(e.value.length>0){c.disabled=!1;var u=e.value[0];l.includes(c.field)&&(u.moduleType="customer",c.relation=u),d[c.field]?this.fieldForm[c.field]=d[c.field](u):this.fieldForm[c.field]=[]}else c.disabled=!!["business_id","contacts_id"].includes(c.field),l.includes(c.field)&&(c.relation={}),this.fieldForm[c.field]=[];if(++a==r.length)break}}this.fieldForm.product={product:[],total_price:"",discount_rate:""},this.fieldForm.money=""}else"business"===t.form_type?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.form_type&&(this.fieldForm.money=e.value.total_price||"");this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)},getBusinessProduct:function(e){return new i.a(function(t,n){Object(u.h)({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")}}},_=(n("kfhP"),n("KHd+")),w=Object(_.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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return[a&&"customer"==a.form_type?n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e(),e._v(" "),!a||"business"!=a.form_type&&"contacts"!=a.form_type?e._e():n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,relation:a.relation,"relative-type":a.form_type},on:{"value-change":function(t){e.otherChange(t,a)}}}),e._v(" "),a&&"product"==a.form_type?n("xh-product",{attrs:{value:e.fieldForm[a.field]},on:{"value-change":function(t){e.otherChange(t,a)}}}):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,"6dad1020",null);w.options.__file="Create.vue";t.a=w.exports},AUgl:function(e,t,n){"use strict";var a=n("2B9T");n.n(a).a},Ajln:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return r}),n.d(t,"b",function(){return l}),n.d(t,"g",function(){return d});var a=n("t3Un");function i(e){return Object(a.a)({url:"work/tasklable/index",method:"post",data:e})}function o(e){return Object(a.a)({url:"work/tasklable/read",method:"post",data:e})}function s(e){return Object(a.a)({url:"work/tasklable/delete",method:"post",data:e})}function c(e){return Object(a.a)({url:"work/tasklable/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(a.a)({url:"work/tasklable/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a.a)({url:"work/tasklable/getWokList",method:"post",data:e})}function d(e){return Object(a.a)({url:"taskLabel/updateOrder",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},AwwL:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},Ayvz:function(e,t,n){},"B+rf":function(e,t,n){},"B/zC":function(e,t,n){"use strict";var a=n("g5ku");n.n(a).a},B9fj:function(e,t,n){"use strict";var a=n("qX8a");n.n(a).a},BHUF:function(e,t,n){},BLll:function(e,t,n){"use strict";var a=n("gxdH");n.n(a).a},Bg4r:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3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q2p8oYaHAKOgrogC1NFYR8C+q0aDGjvVaFUjjYhQ1hY1qEGW7/s89SY2cPUxSda2qd/N/j6StQ/8qf8IMACLl69W4P4WCwAAAABJRU5ErkJggg=="},C5t8:function(e,t,n){"use strict";var a=n("mAyt");n.n(a).a},CPtR:function(e,t,n){"use strict";var a=n("lhZU");n.n(a).a},Cj4h:function(e,t,n){"use strict";var a=n("UEfr"),i=n("a/5N"),o=n("0BDH"),s=n.n(o),c={name:"WkPosition",components:{WkDistpicker:a.a},mixins:[s.a],inheritAttrs:!1,props:{hideArea:{type:Boolean,default:!1},onlyProvince:{type:Boolean,default:!1},showDetail:{type:Boolean,default:!0},value:{required:!0},disabled:Boolean},data:function(){return{distpickerValue:[],detailAddress:"",dataValue:[]}},computed:{},watch:{value:{handler:function(e){this.valueEquals(e,this.dataValue)||this.getDefaultValue()},immediate:!0}},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{getDefaultValue:function(){var e=this,t=[],n=!1;(Object(i.a)(this.value)?this.value:[]).forEach(function(a){4===a.id?(n=!0,e.detailAddress=a.name):t.push(a)}),n||(this.detailAddress=""),this.distpickerValue=t},valueChange:function(){var e=this.showDetail&&Object(i.b)(this.detailAddress)?this.distpickerValue:this.distpickerValue.concat([{code:"",name:this.detailAddress,id:4}]);this.dataValue=e,this.$emit("input",this.dataValue),this.$emit("change",this.dataValue),this.dispatch("ElFormItem","el.form.change",this.dataValue)},valueEquals:function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n){var a=e[n],i=t[n];if(a.id!==i.id||a.name!==i.name)return!1}return!0}}},r=(n("aNhf"),n("KHd+")),l=Object(r.a)(c,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wk-position"},[n("wk-distpicker",e._b({attrs:{"hide-area":e.hideArea,"only-province":e.onlyProvince,disabled:e.disabled,clearable:""},on:{change:e.valueChange},model:{value:e.distpickerValue,callback:function(t){e.distpickerValue=t},expression:"distpickerValue"}},"wk-distpicker",e.$attrs,!1)),e._v(" "),e.showDetail?n("el-input",{attrs:{rows:2,disabled:e.disabled,maxlength:100,type:"textarea",placeholder:"详细地址"},on:{change:e.valueChange},model:{value:e.detailAddress,callback:function(t){e.detailAddress=t},expression:"detailAddress"}}):e._e()],1)},[],!1,null,"d8166e40",null);l.options.__file="index.vue";t.a=l.exports},CnhX:function(e,t,n){},CoO1:function(e,t,n){"use strict";var a=n("EVh6");n.n(a).a},CwHp:function(e,t,n){},D0Rn:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},DuPV:function(e,t,n){},DwHe:function(e,t,n){"use strict";var a=n("XV2P");n.n(a).a},EBQf:function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("mkuN"),s=n("/407"),c=n("L2JU"),r={name:"RelatedBusiness",components:{CrmRelative:o.a,RelatedBusinessCell:s.a},props:{marginLeft:{type:String,default:"20px"},allData:{type:Object,default:function(){return{contacts:[],customer:[],business:[],contract:[]}}},showFoot:{type:Boolean,default:!0},showAdd:{type:Boolean,default:!0}},data:function(){return{showTypes:["customer","contacts","business","contract"],showPopover:!1,relevanceAll:{customerIds:[],contractIds:[],contactsIds:[],businessIds:[]},relatedListData:{},showRelative:!1}},computed:i()({},Object(c.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 a=e.data[n];t.relevanceAll[n+"Ids"]=a.map(function(e){return e[n+"_id"]})};for(var a in e.data)n(a);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("Z8+v"),n("KHd+")),d=Object(l.a)(r,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,a){return n("div",{key:a,staticStyle:{"margin-top":"10px"}},e._l(t,function(t,i){return n("related-business-cell",{key:i,attrs:{data:t,"cell-index":i,type:a,"show-foot":e.showFoot},on:{unbind:e.delRelevance,detail:function(n){e.checkRelatedDetail(a,t)}}})}))})],2)},[],!1,null,"ffdd5f98",null);d.options.__file="RelatedBusiness.vue";t.a=d.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 a={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)}}},i=(n("xpQc"),n("KHd+")),o=Object(i.a)(a,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,a){return n("el-dropdown-item",{key:a,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);o.options.__file="CreateSections.vue";t.a=o.exports},ERJp:function(e,t,n){"use strict";n.d(t,"m",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"q",function(){return c}),n.d(t,"p",function(){return r}),n.d(t,"k",function(){return l}),n.d(t,"r",function(){return d}),n.d(t,"a",function(){return u}),n.d(t,"h",function(){return m}),n.d(t,"j",function(){return h}),n.d(t,"l",function(){return p}),n.d(t,"s",function(){return f}),n.d(t,"i",function(){return g}),n.d(t,"n",function(){return v}),n.d(t,"e",function(){return b}),n.d(t,"g",function(){return y}),n.d(t,"d",function(){return k}),n.d(t,"c",function(){return _}),n.d(t,"o",function(){return w});var a=n("t3Un");function i(e){var t=e.id?"update":"save";return Object(a.a)({url:"crm/business/"+t,method:"post",data:e})}function o(e){return Object(a.a)({url:"crm/business/index",method:"post",data:e})}function s(e){return Object(a.a)({url:"crm/business/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"crm/business/statusList",method:"post",data:e})}function r(e){return Object(a.a)({url:"crm/business/statusList",method:"post",data:e})}function l(e){return Object(a.a)({url:"crm/business/read",method:"post",data:e})}function d(e){return Object(a.a)({url:"crm/business/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(a.a)({url:"crm/business/advance",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(a.a)({url:"crm/business/product",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a.a)({url:"crm/contract/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a.a)({url:"crm/contacts/relation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a.a)({url:"crm/contacts/relation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(a.a)({url:"crm/contacts/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(a.a)({url:"crm/business/setPrimary",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(a.a)({url:"admin/file/index",method:"post",data:e})}function y(e){return Object(a.a)({url:"crm/business/count",method:"post",data:e})}function k(e){return Object(a.a)({url:"crm/business/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob",timeout:6e4})}function _(e){return Object(a.a)({url:"crm/business/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function w(e){return Object(a.a)({url:"/crm/business/star",method:"post",data:e})}},EVh6:function(e,t,n){},EYTu:function(e,t,n){"use strict";var a=n("1n5n");n.n(a).a},Es7h:function(e,t,n){"use strict";var a=n("qGmm");n.n(a).a},EsIn:function(e,t,n){},Ew9n:function(e,t,n){"use strict";var a=n("7Qib"),i={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(a.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 a=document.getElementsByClassName(n);if(a&&t)for(var i=0;i<a.length;i++){if(a[i].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")}}},o=(n("WufG"),n("KHd+")),s=Object(o.a)(i,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 xr-btn--orange",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,"71da75cc",null);s.options.__file="SlideView.vue";t.a=s.exports},ExKg:function(e,t,n){"use strict";var a=n("O3aB");n.n(a).a},F18x:function(e,t,n){},Flj7:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"g",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"n",function(){return c}),n.d(t,"d",function(){return r}),n.d(t,"p",function(){return l}),n.d(t,"h",function(){return d}),n.d(t,"j",function(){return u}),n.d(t,"o",function(){return m}),n.d(t,"i",function(){return h}),n.d(t,"l",function(){return p}),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 a=n("t3Un");function i(e){return Object(a.a)({url:"work/taskclass/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"work/task/delete",method:"post",data:e})}function s(e){return Object(a.a)({url:"work/taskclass/rename",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"work/task/taskOver",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(a.a)({url:"work/task/taskOver",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a.a)({url:"work/task/updateName",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(a.a)({url:"work/task/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(a.a)({url:"work/task/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(a.a)({url:"work/task/updateStoptime",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a.a)({url:"work/task/updateLable",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a.a)({url:"work/task/updateOwner",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a.a)({url:"work/task/delOwnerById",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(a.a)({url:"work/task/updatePriority",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(a.a)({url:"work/task/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(a.a)({url:"work/task/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function y(e){return Object(a.a)({url:"work/task/delete",method:"post",data:e})}},FoeY:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s});var a=n("t3Un");function i(e){var t=e.announcement_id?"update":"save";return Object(a.a)({url:"oa/announcement/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"oa/announcement/delete",method:"post",data:e})}function s(e){return Object(a.a)({url:"oa/announcement/read",method:"post",data:e})}},Fsyv:function(e,t,n){"use strict";var a=n("t6ro");n.n(a).a},FzPI:function(e,t,n){"use strict";var a=n("5e4S");n.n(a).a},G1gW:function(e,t,n){},G7kj:function(e,t,n){"use strict";var a=n("CwHp");n.n(a).a},GBkM:function(e,t,n){"use strict";var a=n("X0Ro");n.n(a).a},"GGG+":function(e,t,n){"use strict";var a=n("D0Rn");n.n(a).a},Gv7S:function(e,t,n){"use strict";var a=n("lJ9t");n.n(a).a},GvIA:function(e,t,n){},H6KT:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},HHBN:function(e,t,n){"use strict";var a=n("0hym"),i=n("EOKR"),o={name:"XhUserCell",components:{XhUser:a.a},mixins:[i.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)}}},s=(n("ExKg"),n("KHd+")),c=Object(s.a)(o,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,a){return n("div",{key:a,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(a)}}})])}),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);c.options.__file="XhUserCell.vue";t.a=c.exports},HslM:function(e,t,n){"use strict";var a=n("FyfS"),i=n.n(a),o={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")}}},s=(n("OWIW"),n("KHd+")),c=Object(s.a)(o,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,a){return n("span",{key:a,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);c.options.__file="NewTag.vue";var r=c.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)}}},d=(n("936R"),Object(s.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,a){return n("div",{key:a,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));d.options.__file="EditTag.vue";var u=d.exports,m=n("Ajln"),h=n("Flj7"),p={components:{NewTag:r,EditTag:u},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 a=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:a.map(function(e){return e.lable_id})}).then(function(t){e.check=!0;var a=[];n.tagList.forEach(function(e){e.check&&(e.labelName=e.name,a.push(e))}),n.taskData.lable_list=a}).catch(function(){e.check=!1})}},updateDetailList:function(e,t){if(this.taskData&&this.taskData.lable_list){for(var n=-1,a=0;a<this.taskData.lable_list.length;a++){if(this.taskData.lable_list[a].lable_id==e.lable_id){n=a;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(m.e)({name:e,color:t}).then(function(e){n.getTagList(),n.back(),n.$message.success("创建成功")}):Object(m.f)({name:e,lable_id:this.editTagId,color:t}).then(function(a){var o=!0,s=!1,c=void 0;try{for(var r,l=i()(n.tagList);!(o=(r=l.next()).done);o=!0){var d=r.value;d.lable_id==n.editTagId&&(d.name=e,d.color=t,d.labelName=d.name,n.updateDetailList(d,"update"))}}catch(e){s=!0,c=e}finally{try{!o&&l.return&&l.return()}finally{if(s)throw c}}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(m.a)({lable_id:e.lable_id}).then(function(n){for(var a in t.tagList)if(t.tagList[a].lable_id==e.lable_id){t.tagList.splice(a,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(m.c)().then(function(t){var n=t.data.list||[],a=(e.taskData&&e.taskData.lable_list||[]).map(function(e){return e.lable_id}),o=!0,s=!1,c=void 0;try{for(var r,l=i()(n);!(o=(r=l.next()).done);o=!0){var d=r.value;d.check=a.includes(d.lable_id)}}catch(e){s=!0,c=e}finally{try{!o&&l.return&&l.return()}finally{if(s)throw c}}e.tagList=n}).catch(function(){})},referenceFun:function(){this.tagContent=0,this.tagList&&!this.tagList.length&&this.getTagList()}}},f=(n("xBJR"),Object(s.a)(p,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,a){return n("div",{key:a,staticClass:"tag-list",on:{click:function(n){e.tagSelectClick(t,a)}}},[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,"bd1c121a",null));f.options.__file="TagIndex.vue";t.a=f.exports},I0XR:function(e,t,n){},I6se:function(e,t,n){},IEYw:function(e,t,n){"use strict";var a=n("jWXv"),i=n.n(a),o=n("rfXi"),s=n.n(o),c=n("4d7F"),r=n.n(c),l=n("4XAY"),d=n("a/5N"),u=n("7Qib"),m={methods:{UniquePromise:function(e){return new r.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,a,i){Object(d.b)(a)?i():t.UniquePromise({field:e,rule:n,value:a}).then(function(){i()}).catch(function(e){i(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(d.b)(t)||Object(u.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(d.b)(t)||Object(u.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(d.b)(t)||Object(u.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(d.b)(t)||Object(u.u)(t)?n():n(new Error("邮箱格式有误"))},item:e,trigger:["blur"]})}return n}}},h=n("wd/R"),p=n.n(h);t.a={mixins:[m],props:{},methods:{getItemValue:function(e,t,n){var a=this;if(t=t||{},"contacts"==(e.form_type||e.form_type)||"customer"==(e.form_type||e.form_type)||"contract"==(e.form_type||e.form_type)||"business"==(e.form_type||e.form_type)){if("update"===n)return e.value?Object(u.t)(e.value):[];var i=t[e.form_type];return i?[i]:[]}if("category"==e.form_type||"category"==e.form_type)return e.value?e.value.map(function(e){return parseInt(e)}):[];if("product"==e.form_type||"product"==e.form_type)return e.value;if("map_address"==e.form_type||"map_address"==e.form_type)return"update"==n?(e.value.address&&(e.value.address=0==e.value.address.length?"":e.value.address),e.value):{};if("single_user"==e.form_type)return"update"===n?Object(d.c)(e.value)&&e.value.id?e.value.id:"":Object(d.c)(e.default_value)&&e.default_value.id?Object(u.t)(e.default_value.id):"";if("user"==e.form_type||"structure"==e.form_type||"file"==e.form_type||"user"==e.form_type||"structure"==e.form_type||"file"==e.form_type)return"update"===n?e.value?Object(u.t)(e.value):[]:e.default_value&&e.default_value?Object(u.t)(e.default_value):[];if("number"==e.form_type||"floatnumber"==e.form_type||"percent"==e.form_type||"number"==e.form_type||"floatnumber"==e.form_type||"percent"==e.form_type)return"update"==n?Object(d.b)(e.value)?void 0:e.value:Object(d.b)(e.default_value)?void 0:e.default_value;if("detail_table"==e.form_type||"detail_table"==e.form_type){var o=[];return(e.value||[e.fieldExtendList]).forEach(function(e){var t={};o.push(t),e.forEach(function(e){["select","checkbox"].includes(e.form_type)&&(e.optionsData=null),t[e.field]=a.getItemValue(e,null,n)})}),o}return"update"==n?e.value||"":e.default_value||""},getUniquePromise:function(e,t,n){var a=this;return new r.a(function(i,o){var s={};s.field_id=e.field_id,s.val=a.getRealParams(e,t),s.types=e.types,s.field=e.field,"update"==n.type&&(s.id=n.action_id||n.id),Object(l.C)(s).then(function(t){var n=t||{};200===t.code?i():n.ownerUserName?o(e.name+"已存在,负责人为“"+n.ownerUserName+"”"):n.poolNames&&n.poolNames.length>0?o(e.name+"已存在,当前位于公海“"+n.poolNames.join(",")+"”"):o(e.name+"已存在")}).catch(function(){o(e.name+"已存在")})})},getFormItemDefaultProperty:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?Object(u.t)(e):e;if(n.field=e.field,n.field=e.field,"date_interval"===(e.form_type||e.form_type))2===e.precisions?(n.dateType="datetimerange",n.dateValueFormat="yyyy-MM-dd HH:mm:ss"):(n.dateType="daterange",n.dateValueFormat="yyyy-MM-dd");else if("position"===(e.form_type||e.form_type))n.showDetail=1===e.precisions,n.hideArea=3===e.precisions||4===e.precisions,n.onlyProvince=4===e.precisions;else if("detail_table"===(e.form_type||e.form_type)){var a={};n.fieldExtendList.forEach(function(e){var n=Object(u.t)(e);t.getFormItemDefaultProperty(e,!1),e.show=1!==e.is_hidden,e.show&&(e.rules=t.getRules(n)),t.getItemRadio(e,e),a[e.field]=t.getItemValue(e)}),n.fieldForm=a;var i=Object(u.t)(e.fieldExtendList),o=[];(Object(d.b)(e.value)?[i]:e.value).forEach(function(e){var n=[];e.forEach(function(e){var a=Object(u.t)(e),i=t.getFormItemDefaultProperty(e,!1);t.getItemRadio(e,i),i.show=1!==i.is_hidden,i.show&&(i.rules=t.getRules(a)),n.push(i)}),o.push(n)}),n.fieldList=o}return n},getItemWithFromType:function(e,t){for(var n=null,a=0;a<e.length;a++){for(var i=e[a],o=0;o<i.length;o++){var s=i[o];if(s.form_type===t){n=s;break}}if(n)break}return n},itemsForEach:function(e,t){for(var n=0;n<e.length;n++)for(var a=e[n],i=0;i<a.length;i++){t(a[i],n,i,a)}},getItemIsCanEdit:function(e,t){return 1===e.writeStatus},getItemRadio:function(e,t){"single_user"==e.form_type?t.radio=!0:"user"!=e.form_type&&"structure"!=e.form_type&&"user"!=e.form_type&&"structure"!=e.form_type||(t.radio=!1)},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 a=e.length>0&&Object(d.a)(e[0])?this.getItemWithFromType(e,t):e.find(function(e){return e.form_type===t});a&&a.value&&a.value.length>0&&(n=a.value[0])}return n},getSubmiteParams:function(e,t){for(var n={},a=0;a<e.length;a++){var i=e[a],o=null;if(o=i.hasOwnProperty("show")?i.show?t[i.field]:null:t[i.field],"product"==i.form_type)this.getProductParams(n,o);else if("map_address"==i.form_type)this.getCustomerAddressParams(n,o);else if(1==i.field_type){var s=this.getRealParams(i,o);n[i.field]=Object(d.b)(s)?"":s}else"desc_text"!==i.form_type&&(i.value=this.getRealParams(i,o,t),n[i.field]=i.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.filter(function(e){return e}).length>0?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){var a=this;if("customer_id"==e.field||"contacts_id"==e.field||"business_id"==e.field||"leads_id"==e.field||"contract_id"==e.field)return t&&t.length?t[0][e.field]:"";if("user"==e.form_type||"structure"==e.form_type)return t?t.join(","):"";if("file"==e.form_type)return t&&t.length>0?t.map(function(e){return e.file_id}):[];if("category"==e.form_type)return t&&t.length>0?t[t.length-1]:"";if("checkbox"==e.form_type)return Object(d.a)(t)?t.join(","):t;if("date"==e.form_type)return t||"";if("datetime"==e.form_type)return t?p()(t).unix():"";if("number"==e.form_type)return t||"";if("detail_table"==e.form_type){for(var i=e.fieldExtendList||[],o=[],s=Array.isArray(t)?t:[],c=function(e){var t=s[e];if(!a.getFormValueIsEmpty(i,t)){var n=[];i.forEach(function(e){var i=Object(u.t)(e);delete i.companyId,i.value=a.getRealParams(i,t[i.field]),n.push(i)}),o.push(n)}},r=0;r<s.length;r++)c(r);return o}return t},getFormValueIsEmpty:function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a.field];if("select"===a.form_type||"checkbox"===a.form_type){if(Object(d.c)(i)&&!Object(d.b)(i.select))return!1}else if("location"===a.form_type){if(Object(d.c)(i)&&(!Object(d.b)(i.lat)||!Object(d.b)(i.lng)||!Object(d.b)(i.address)))return!1}else if(!Object(d.b)(i))return!1}return!0},getFormAssistIds:function(e,t){var n=[];e.forEach(function(e){e.forEach(function(e){if(["select","checkbox"].includes(e.form_type||e.form_type)&&"options_type"===e.remark&&e.optionsData)for(var t in e.optionsData)n=n.concat(e.optionsData[t]||[])})}),n=n.filter(function(e){return Boolean(e)}),n=s()(new i.a(n));var a=[];return this.getFormAssistData(e,t,n,a),n.filter(function(e){return!a.includes(e)})},getFormAssistData:function(e,t,n,a){var i=a.length;if(e.forEach(function(e){e.forEach(function(e){if(["select","checkbox"].includes(e.form_type||e.form_type)&&"options_type"===e.remark&&e.optionsData){var i=t?t[e.field||e.field]:e.value;if(!n.includes(e.formAssistId)){if("select"===(e.form_type||e.form_type))i=Object(d.b)(i)?[]:e.setting.includes(i)?[i]:["其他"];else if("checkbox"===(e.form_type||e.form_type))if(Object(d.a)(i)){var o=Object(u.t)(i),s=o.filter(function(t){return!e.setting.includes(t)});if(s.length>0){var c=o.filter(function(e){return!s.includes(e)});c.push("其他"),i=c}}else i=[];for(var r in e.optionsData)if(i&&i.includes(r))for(var l=e.optionsData[r]||[],m=0;m<l.length;m++){var h=l[m];a.includes(h)||a.push(h)}}}})}),i!==a.length){var o=n.filter(function(e){return!a.includes(e)});this.getFormAssistData(e,t,o,a)}},getFormContentByOptionsChange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments[4],s=this.fieldRules||n,c=this.action&&this.action.data?this.action.data:i,r=this.action&&this.action.type?this.action.type:o,l={},d={},u=this.getFormAssistIds(e,t);return this.itemsForEach(e,function(e){e.show=!u.includes(e.formAssistId),e.show&&!e.disabled&&(s[e.field]?l[e.field]=s[e.field]:l[e.field]=a.getRules(e)),e.show&&(t[e.field]?d[e.field]=t[e.field]:d[e.field]=a.getItemValue(e,c,r))}),{fieldForm:d,fieldRules:l}}}}},IQEA:function(e,t,n){"use strict";var a=n("aQ3C");n.n(a).a},IV42:function(e,t,n){"use strict";n.r(t);var a={name:"WkFormItems",components:{WkFormItem:n("wExK").default},props:{propPrefix:{type:String,default:""},fieldFrom:{type:Object,default:function(){return{}}},fieldList:{type:Array,default:function(){return[]}},ignoreFields:{type:Array,default:function(){return[]}},disabled:Boolean},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{fieldChange:function(e,t,n,a){this.$emit("change",e,t,n,a)}}},i=(n("VBEq"),n("KHd+")),o=Object(i.a)(a,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("flexbox",{staticClass:"wk-form-items",attrs:{align:"flex-start",wrap:"wrap",justify:"flex-start"}},[e._l(e.fieldList,function(t,a){return[n("wk-form-item",{key:a,attrs:{"prop-prefix":e.propPrefix,item:t,index:a,"field-from":e.fieldFrom,"ignore-fields":e.ignoreFields,disabled:e.disabled},on:{change:e.fieldChange},scopedSlots:e._u([{key:"default",fn:function(n){n.data;var a=n.index;return[e._t("default",null,{data:t,index:a})]}}])})]})],2)},[],!1,null,"3a197ec4",null);o.options.__file="WkFormItems.vue";t.default=o.exports},Ialk:function(e,t,n){},"Ir+r":function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c});var a=n("t3Un");function i(e){return Object(a.a)({url:"work/taskcomment/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"oa/log/commentSave",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(a.a)({url:"work/taskcomment/delete",method:"post",data:e})}function c(e){return Object(a.a)({url:"oa/log/commentList",method:"post",data:e})}},J1me:function(e,t,n){"use strict";var a=n("sesI");n.n(a).a},J8Kc:function(e,t,n){},JF0c:function(e,t,n){"use strict";var a=n("2yjV");n.n(a).a},JqEL:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return i});var a=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)},i=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}},K2es:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAAGzlLJTAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAq6ADAAQAAAABAAAA3QAAAAATJCntAAAWL0lEQVR4Ae2dabAc1XXHT/d7M/NezzwJg8QilZDkmEBJRiwmThxDFFmCcgSy2bSAnQUZuxyHMiH+kqpUJR/ywak4C9hlJ05syQFbSGKRMS5jFlFxJbGTFK4CgRBxEkcqlhAhQPDezNtmpnNOj26re6bXO7d77vQ7t+q9232X0+f+7n96vX3bAAyTuy6xKVYVJnY+ZxiqjQrnTLGgOmbDLtFRdylgwbrpe2AuOt/Jseuvg1E9F+zGCajv2xRQ2p8UyVgYnXvmHph/6QGnpmEtAeuGh/1WAtYiDYvyc8/vhtJFW8UqmGe8F8Y373LXgxYSGXYqGv6iI+dcHmTPTfOXdpP9C7XbnkWu1/gTY9YSGSYbZDxNSGR4avelMLX7sjR2IZHhjsV0+6lIHQsX02KgepGGCYFsSIEi3SbYsMsrsvPcUiELtVt+EJIDaXTstxFl1Bhf3rVn8deVWiOjVFGpKoRRpYa9RpUZ7jaqxHCQUccwnQ7RgkwIM0q2jMlvXbIW2vCCjOHgOsY9plqDtBn7TqUyE56zUUGiN6Zjmjiuibi3VG9KYqbzL+5x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3gUhFRRarIMFxvgQckZauMqzlR5NumMWalBSXU0NAQqRiwyxWQYLjbAn0IVLhGItVkOA4GwIKRCocY7EKEhyrJaBQpMIxFqsgwbEaAhmIVDjGYhUkOO6PQIYiFY6xWAUJjuUI5CBS4RiLVZDgOB2BHEUqHGOxChIcJyMwAJEKx1isggTH0QQGKFLhGItVkOA4mIAGIhWOsVgFCY79BDQSqXCMxSpIcNwhoKFIRdewWAWJhR5rLFLRNSxWQWKhxkMgUtE1LFZBYqHFQyRS0TUsVkFiocRDKFLRNSxWQaLo8RCLVHQNi1WQKGpcAJGKrmGxChJFiwskUtE1NH3QS2KF4wIQIJGCuRonh1hhjJ93tAAtcptgggk341rLTeGF4SRQYJGKDjEnfue5w7Va0wKwnxKJHA8RAbv1alH3pN29YHQnTO66bI0N7dsx4zcwbzX+VbrL8PpgCWDfHK3ueLQERunKoh3qo8j+P2CmY/X8/FbIAAAAAElFTkSuQmCC"},K8Pg:function(e,t,n){"use strict";var a=n("P/wC");n.n(a).a},KE3U:function(e,t,n){},KQfp:function(e,t,n){},KS45:function(e,t,n){"use strict";var a=n("CnhX");n.n(a).a},KTTK:function(e,t,n){"use strict";n.d(t,"y",function(){return r}),n.d(t,"z",function(){return l}),n.d(t,"k",function(){return d}),n.d(t,"o",function(){return u}),n.d(t,"b",function(){return m}),n.d(t,"n",function(){return h}),n.d(t,"h",function(){return p}),n.d(t,"f",function(){return f}),n.d(t,"A",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,"j",function(){return k}),n.d(t,"d",function(){return _}),n.d(t,"a",function(){return w}),n.d(t,"t",function(){return C}),n.d(t,"q",function(){return A}),n.d(t,"w",function(){return x}),n.d(t,"u",function(){return I}),n.d(t,"v",function(){return j}),n.d(t,"x",function(){return T}),n.d(t,"r",function(){return D}),n.d(t,"s",function(){return S}),n.d(t,"l",function(){return F}),n.d(t,"m",function(){return O}),n.d(t,"p",function(){return R}),n.d(t,"i",function(){return E});var a=n("QbLZ"),i=n.n(a),o=n("GQeE"),s=n.n(o),c=n("t3Un");function r(e){return Object(c.a)({url:"admin/users/getUserList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(c.a)({url:"admin/users/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(c.a)({url:"admin/structures/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(c.a)({url:"admin/structures/listDialog",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(c.a)({url:"adminDept/queryDeptByAuth",method:"post",data:e})}function h(e){return Object(c.a)({url:"adminUser/queryUserByDeptId",method:"post",data:e})}var p=window.BASE_URL+"admin/file/save";function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new FormData;return s()(e).forEach(function(t){n.append(t,e[t])}),Object(c.a)(i()({url:"admin/file/save",method:"post",data:n},t,{headers:{"Content-Type":"multipart/form-data"}}))}function g(e){var t=new FormData;return s()(e).forEach(function(n){t.append(n,e[n]),t.append("module","print"),t.append("type","img")}),Object(c.a)({url:"admin/file/save",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function v(e){var t=new FormData;return s()(e).forEach(function(n){t.append(n,e[n])}),Object(c.a)({url:"admin/file/save",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function b(e){return Object(c.a)({url:"admin/file/delete",method:"post",data:e})}function y(e){return Object(c.a)({url:"admin/file/deleteAll",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function k(e){return Object(c.a)({url:"admin/file/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function _(e){return Object(c.a)({url:"crm/printing/down",method:"post",data:e,responseType:"blob"})}function w(e){return Object(c.a)({url:"admin/index/authList",method:"post",data:e})}function C(e){return Object(c.a)({url:"admin/message/messageList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function A(e){return Object(c.a)({url:"admin/index/importList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function x(e){return Object(c.a)({url:"admin/message/unreadCount",method:"post",data:e})}function I(e){return Object(c.a)({url:"admin/message/updateMessage",method:"post",data:e})}function j(e){return Object(c.a)({url:"admin/message/readAllMessage",method:"post",data:e})}function T(e){return Object(c.a)({url:"admin/users/read",method:"post",data:e})}function D(e){return Object(c.a)({url:"admin/message/clear",method:"post",data:e})}function S(e){return Object(c.a)({url:"admin/message/delete",method:"post",data:e})}function F(e,t){return Object(c.a)({url:""+(t||"admin/file/download"),method:"post",data:e,responseType:"blob"})}function O(e){return Object(c.a)({url:"admin/file/downloadImage",method:"post",data:e,responseType:"blob"})}function R(e){return Object(c.a)({url:"admin/adminUser/readNotice",method:"post",data:e})}function E(e){var t=new FormData;return s()(e).forEach(function(n){t.append(n,e[n]),t.append("type","img")}),Object(c.a)({url:"admin/file/save",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}},KhIf:function(e,t,n){"use strict";var a=n("NASp");n.n(a).a},Ki5h:function(e,t,n){},L7w9:function(e,t,n){},LAru:function(e,t,n){"use strict";var a=n("rcqw");n.n(a).a},LWkM:function(e,t,n){"use strict";n.d(t,"d",function(){return s}),n.d(t,"x",function(){return c}),n.d(t,"r",function(){return r}),n.d(t,"y",function(){return l}),n.d(t,"o",function(){return d}),n.d(t,"z",function(){return u}),n.d(t,"p",function(){return m}),n.d(t,"u",function(){return h}),n.d(t,"h",function(){return p}),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 _}),n.d(t,"k",function(){return w}),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 I}),n.d(t,"A",function(){return j}),n.d(t,"g",function(){return T}),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 a=n("GQeE"),i=n.n(a),o=n("t3Un");function s(e){return Object(o.a)({url:"work/task/archList",method:"post",data:e})}function c(e){return Object(o.a)({url:"work/work/read",method:"post",data:e})}function r(e){return Object(o.a)({url:"work/work/delete",method:"post",data:e})}function l(e){return Object(o.a)({url:"work/work/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(o.a)({url:"work/work/arRecover",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(o.a)({url:"work/work/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(o.a)({url:"work/work/archive",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(o.a)({url:"work/work/leave",method:"post",data:e})}function p(e){return Object(o.a)({url:"work/task/index",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function f(e){return Object(o.a)({url:"work/task/ownerTaskList",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function g(e){return Object(o.a)({url:"work/taskclass/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(o.a)({url:"work/work/fileList",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(o.a)({url:"work/work/ownerList",method:"post",data:e})}function y(e){return Object(o.a)({url:"work/work/ownerDel",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function k(e){return Object(o.a)({url:"work/task/archiveTask",method:"post",data:e})}function _(e){return Object(o.a)({url:"work/task/archiveTask",method:"post",data:e})}function w(e){return Object(o.a)({url:"work/task/updateOrder",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function C(e){return Object(o.a)({url:"work/task/updateClassOrder",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function A(e){return Object(o.a)({url:"work/work/ownerAdd",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function x(e){return Object(o.a)({url:"work/work/groupList",method:"post",data:e})}function I(e){return Object(o.a)({url:"work/work/follow",method:"post",data:e})}function j(e){return Object(o.a)({url:"work/work/updateWorkOrder",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function T(e){return Object(o.a)({url:"work/task/excelExport",method:"post",data:e,responseType:"blob"})}function D(e){return Object(o.a)({url:"work/task/excelDownload",method:"get",data:e,responseType:"blob"})}function S(e){var t=new FormData;return i()(e).forEach(function(n){t.append(n,e[n])}),Object(o.a)({url:"work/task/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function F(e){return Object(o.a)({url:"admin/file/download",method:"post",data:e,responseType:"blob"})}function O(e){return Object(o.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 a=n("PBV5");n.n(a).a},Lkl6:function(e,t,n){},NASp:function(e,t,n){},"NO/o":function(e,t,n){"use strict";var a=n("l1nQ");n.n(a).a},NfXs:function(e,t,n){"use strict";var a=n("UE98");n.n(a).a},O3aB:function(e,t,n){},O8Zb:function(e,t,n){"use strict";var a=n("vHwe");n.n(a).a},OSKm:function(e,t,n){"use strict";var a=n("aqT4");n.n(a).a},OWIW:function(e,t,n){"use strict";var a=n("gWfY");n.n(a).a},OXh7:function(e,t,n){"use strict";var a=n("WvyH");n.n(a).a},"P/wC":function(e,t,n){},P4SL:function(e,t,n){"use strict";var a=n("x893");n.n(a).a},PBV5:function(e,t,n){},PBdo:function(e,t,n){},PIPd:function(e,t,n){"use strict";var a=n("BHUF");n.n(a).a},PSPl:function(e,t,n){},PrJF:function(e,t,n){"use strict";var a=n("oZyZ");n.n(a).a},Q2AE:function(e,t,n){"use strict";var a=n("Kw5r"),i=n("L2JU"),o=n("4d7F"),s=n.n(o),c=n("gDS+"),r=n.n(c),l=n("fe1z"),d=n("KTTK"),u=n("oYx3"),m=n("ef+5"),h=n("X4fA"),p=n("7Qib"),f=n("4peS"),g=n.n(f),v={state:{userInfo:null,allAuth:null,crm:{},bi:{},manage:{},oa:{},project:{}},mutations:{SET_USERINFO:function(e,t){e.userInfo=t,localStorage.setItem("loginUserInfo",r()(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,a=t.sessionId;g.a.set("authKey",n),g.a.set("sessionId",a),Object(h.a)(n,a)}},actions:{Login:function(e,t){var n=e.commit,a=e.dispatch;return new s.a(function(e,i){Object(l.b)(t).then(function(t){var i=t.data||i;i.hasOwnProperty("companyList")||(n("SET_AUTH",i),a("GetUserInfo")),e(t)}).catch(function(e){a("LogOut"),i(e)})})},getAuth:function(e){var t=e.commit;return new s.a(function(e,n){Object(d.a)().then(function(n){var a=n.data;g.a.set("authList",a),a.wkFirstModel=a.firstModel,t("SET_ALLAUTH",a),t("SET_CRM",a.crm),t("SET_BI",a.bi),t("SET_MANAGE",a.manage),t("SET_OA",a.oa),t("SET_PROJECT",a.project),e(a)}).catch(function(e){n(e)})})},GetUserInfo:function(e){var t=e.commit;e.state;return new s.a(function(e,n){Object(m.a)().then(function(n){t("SET_USERINFO",n.data),n.data.serverUserInfo&&Object(p.y)(n.data),e(n)}).catch(function(e){n(e)})})},LogOut:function(e){e.commit;return new s.a(function(e,t){Object(l.c)().then(function(){Object(h.c)(),Object(u.c)(),e()}).catch(function(e){t(e)})})}}},b=n("QbLZ"),y=n.n(b),k=n("jVVe");var _=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 a=[];return t.forEach(function(t){var i=y()({},t);(function(e,t){if(e.meta){var n=e.meta;if(!n.requiresAuth)return!0;if(n.permissions)return t=y()({},t),_(n.permissions,t);if(n.permissionList){for(var a=0;a<n.permissionList.length;a++)if(t=y()({},t),_(n.permissionList[a],t))return!0;return!1}}return!0})(i,n)&&(i.children&&(i.children=e(i.children,n)),a.push(i))}),a},C=function e(t){var n=[];return t.forEach(function(t){var a=y()({},t);a.ignore||(a.children&&(a.children=e(a.children)),n.push(a))}),n},A=function(e,t){!function(e,t){e&&e.manage&&e.manage.permission?Object(k.a)().then(function(e){t&&t({requiresAuth:!0,list:e.data||[]})}).catch(function(){}):t&&t({requiresAuth:!1})}(e,function(n){for(var a={},i=[],o="",s="",c=0;c<u.a.length;c++){for(var r=u.a[c],l=w(r.router,e),d=0;d<l.length;d++){var m=l[d];if("manage"==r.type&&n.requiresAuth){var h=l.find(function(e){return"manage-role-auth"==e.name}),p=n.list.map(function(e){return{name:"role-auth",path:"role-auth/"+e.pid+"/"+encodeURI(e.name),ignore:!0,meta:{title:e.name}}});if(p&&p.length>0)h.children[0].meta.redirect=p[0].path,h.children=h.children.concat(p)}if(m.children&&m.children.length>0){var f=m.children[0],g=f.meta&&f.meta.redirect||f.path;m.redirect=m.path+"/"+g}if(m.redirect){if(o||(o=m.redirect),e.wkFirstModel&&!s)({crm:"crm",taskExamine:"taskExamine",log:"workLog",book:"addressBook",project:"project",bi:"bi",calendar:"calendar"})[e.wkFirstModel]==r.type&&(s=m.redirect);l.push({path:"/"+r.type,name:r.type,redirect:m.redirect,hidden:!0});break}}a[r.type]=l,i=i.concat(C(l))}(o||s)&&i.push({path:"/",redirect:s||o,hidden:!0}),t&&t({router:a,addRouter:i})})};var x={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,a.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 s.a(function(e){A(t,function(t){n("SET_ROUTERS",t),e()})})}}},I=n("3qbY"),j=n("6iAj"),T=n("2nGb"),D={state:{logo:"",name:"",lang:localStorage.lang||"cn",sidebar:{activeIndex:"",collapse:g.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,g.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 s.a(function(e,n){Object(I.a)().then(function(n){t("SET_APPNAME",n.data.name),t("SET_APPLOGO",n.data.logo),g.a.set("systemLogo",n.data.logo),g.a.set("systemName",n.data.name),e(n)}).catch(function(e){n(e)})})},CRMSettingConfig:function(e){var t=e.commit;return new s.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 s.a(function(e,n){Object(T.a)().then(function(n){t.headerModule=n.data||[],e(n)}).catch(function(e){t.headerModule=[],n(e)})})}}},S=n("Ra/C"),F={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 a in t)"totalNum"!=a&&(n+=t[a]||0);t.totalNum=n,e.messageNum=t}},actions:{GetMessageNum:function(e){var t=e.state,n=e.commit;return new s.a(function(e,a){Object(S.c)().then(function(a){n("SET_MESSAGENUM",a.data),n("SET_CRMROUTERSNUM",t.messageNum.totalNum),e(a)}).catch(function(e){a(e)})})}}},O={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}};a.default.use(i.a);var R=new i.a.Store({modules:{app:D,permission:x,user:v,crm:F},getters:O});t.a=R},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})}}}},QiVu:function(e,t,n){"use strict";var a=n("ZOqw");n.n(a).a},"R+T8":function(e,t,n){},RLGP:function(e,t,n){},ROSF:function(e,t,n){"use strict";var a=n("GQeE"),i=n.n(a),o=n("4XAY"),s=n("VcMt"),c=n("7Dod"),r=n("gVZb"),l=n("IV42"),d=n("EP+0"),u=n("lcu+"),m=n("IEYw"),h=n("7Qib"),p=n("8GhS"),f=n("mkuN"),g={name:"InvoiceCreate",components:{XrCreate:r.a,CreateSections:d.a,CreateExamineInfo:u.a,XhInput:p.g,XhReceivablesPlan:p.k,XhTextarea:p.o,XhSelect:p.l,XhDate:p.d,CrmRelativeCell:p.a,CrmRelative:f.a,WkFormItems:l.default},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}},mixins:[m.a],props:{action:{type:Object,default:function(){return{type:"save",id:"",data:{}}}}},data:function(){return{loading:!1,invoiceTypeOptions:[{name:"增值税专用发票",value:1},{name:"增值税普通发票",value:2},{name:"国税通用机打发票",value:3},{name:"地税通用机打发票",value:4},{name:"收据",value:5}],ignoreFields:["invoice_type"],baseFields:[],fieldList:[],fieldForm:{},fieldRules:{},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"update"==this.action.type?this.action.id:""},title:function(){return this.isEdit?"编辑发票":"新建发票"},isEdit:function(){return!!this.editId},isOpenExamine:function(){return!!this.examineInfo&&(!(i()(this.examineInfo).length>0)||this.examineInfo.examineStatus)},confirmButtonText:function(){return this.isOpenExamine?"提交审核":"保存"}},watch:{},created:function(){this.getField()},mounted:function(){},beforeDestroy:function(){},methods:{getField:function(){var e=this;this.loading=!0;var t={types:"crm_invoice",module:"crm",controller:"invoice",action:this.action.type,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(o.x)(t).then(function(t){var n=t.data||[],a=e.getFormAssistIds(n),i=[],o=[],s={},r={};if(n.forEach(function(t){var l=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId),e.ignoreFields.includes(o.field)&&(delete o.optionsData,delete t.optionsData);var d=e.getItemIsCanEdit(t,e.action.type);if(o.show&&d)if(1==t.autoGeneNumber){o.placeholder="根据编号规则自动生成,支持手动输入";var u=Object(h.t)(t);u.isNull=0,s[o.field]=e.getRules(u)}else s[o.field]=e.getRules(t);if(o.disabled=!d,"contract"==o.form_type||"customer"==o.form_type)if("save"===e.action.type)o.disabled="contract"===t.form_type;else if("relative"==e.action.type){var m=e.action.data.customer;"customer"==o.form_type?o.disabled=!!m:o.disabled=!m}if("contract_money"===o.field&&(o.disabled=!0),("update"==e.action.type||"relative"==e.action.type)&&"contract"==t.form_type){var p=e.getItemRelatveInfo(n,"customer");p&&(p.moduleType="customer",p.params={check_status:2},o.relation=p,e.$set(e.mailFrom,"contacts_name",p.contacts_name),e.$set(e.mailFrom,"contacts_mobile",p.contacts_mobile),e.$set(e.mailFrom,"contacts_address",p.contacts_address),e.titleAction={type:"default",request:c.m,showScene:!1,showSearch:!1,showCreate:!1,canShowDetail:!0,params:{customer_id:p.customer_id}})}e.getItemRadio(t,o),o.show&&(e.ignoreFields.includes(o.field)?r[o.field]=e.isEdit?o.value:o.default_value:r[o.field]=e.getItemValue(t,e.action.data,e.action.type)),l.push(o),i.push(t)}),o.push(l)}),e.baseFields=i,e.fieldList=o,e.fieldForm=r,e.fieldRules=s,e.getOtherField(),e.isEdit||"relative"===e.action.type){var l=e.action.detail,d=l.invoice,u={};u.title_type=d.title_type,u.invoice_title=d.invoice_title,u.tax_number=d.tax_number,u.deposit_bank=d.deposit_bank,u.deposit_account=d.deposit_account,u.deposit_address=d.deposit_address,u.phone=d.phone,e.otherFrom=u;var m=l.posting,p={};p.contacts_name=m.contacts_name,p.contacts_mobile=m.contacts_mobile,p.contacts_address=m.contacts_address,e.mailFrom=p}e.loading=!1}).catch(function(t){e.loading=!1})},getOtherField:function(){this.otherFields=[{name:"抬头类型",field:"title_type",form_type:"select",setting:[{name:"单位",value:1},{name:"个人",value:2}]},{name:"开票抬头",field:"invoice_title",form_type:"text",setting:[]},{name:"纳税人识别号",field:"tax_number",form_type:"text",hidden:!1,setting:[]},{name:"开户行",field:"deposit_bank",form_type:"text",hidden:!1,setting:[]},{name:"开户账号",field:"deposit_account",form_type:"text",hidden:!1,setting:[]},{name:"开票地址",field:"deposit_address",form_type:"text",hidden:!1,setting:[]},{name:"电话",field:"phone",form_type:"text",setting:[]}],this.mailFields=[{name:"联系人",field:"contacts_name",form_type:"text",setting:[]},{name:"联系方式",field:"contacts_mobile",form_type:"text",setting:[]},{name:"邮寄地址",field:"contacts_address",form_type:"text",setting:[]}]},titleSelectChange:function(e){var t=e.data;if(t&&t.length){for(var n=t[0],a=0;a<this.otherFields.length;a++){var i=this.otherFields[a];this.$set(this.otherFrom,i.field,n[i.field])}var o=2==n.title_type;this.otherFields[2].hidden=o,this.otherFields[3].hidden=o,this.otherFields[4].hidden=o,this.otherFields[5].hidden=o}},otherFieldValueChange:function(e){var t=this.otherFields[e.index],n=e.value;if("title_type"==t.field){var a=2==n;this.otherFields[2].hidden=a,this.otherFields[3].hidden=a,this.otherFields[4].hidden=a,this.otherFields[5].hidden=a}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=e.getSubmiteParams(e.baseFields,e.fieldForm),a=0;a<e.otherFields.length;a++){var i=e.otherFields[a];i.disabled||(n[i.field]=e.otherFrom[i.field])}for(var o=0;o<e.mailFields.length;o++){var c=e.mailFields[o];c.disabled||(n[c.field]=e.mailFrom[c.field])}e.isEdit&&(n.invoice_id=e.action.id),e.getExamineValidateResult(function(t){if(t){0===e.examineInfo.config&&(n.check_user_id=e.examineInfo.value[0].id),n.examineStatus=e.examineInfo.examineStatus;var a=e.isEdit?s.m:s.h;e.loading=!0,a(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)},UniquePromise:function(e){var t=e.field,n=e.value;return this.getUniquePromise(t,n,this.action)},formChange:function(e,t,n,a){if(["select","checkbox"].includes(e.form_type)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){var n=this;if("customer"===t.form_type)this.itemsForEach(this.fieldList,function(t){if("contract"===t.form_type){if(e.value.length>0){t.disabled=!1;var a=e.value[0];a.moduleType="customer",a.params={check_status:2},t.relation=a,n.$set(n.mailFrom,"contacts_name",a.contacts_name),n.$set(n.mailFrom,"contacts_mobile",a.contacts_mobile),n.$set(n.mailFrom,"contacts_address",a.contacts_address),n.titleAction={type:"default",request:c.m,showScene:!1,showSearch:!1,showCreate:!1,canShowDetail:!0,params:{customer_id:a.customer_id}}}else t.disabled=!0,t.relation={},n.otherFields.forEach(function(e){"title_type"!==e.field&&(n.otherFrom[e.field]="")});n.fieldForm[t.field]=[]}}),this.$set(this.fieldForm,"invoice_money",""),this.$set(this.fieldForm,"contract_money","");else if("contract"===t.form_type){var a=e.value&&e.value.length?e.value[0]:null;this.$set(this.fieldForm,"contract_money",a?a.money:""),this.$set(this.fieldForm,"invoice_money",a?a.money:"")}this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)}}},v=(n("3Y72"),n("KHd+")),b=Object(v.a)(g,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",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t,"ignore-fields":e.ignoreFields},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data,i=t.index;return[a&&"invoice_type"==a.field?n("el-select",{staticStyle:{width:"100%"},on:{change:function(t){e.formChange(a,i,t)}},model:{value:e.fieldForm[a.field],callback:function(t){e.$set(e.fieldForm,a.field,t)},expression:"fieldForm[data.field]"}},e._l(e.invoiceTypeOptions,function(e){return n("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})):e._e(),e._v(" "),a&&"customer"==a.form_type?n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e(),e._v(" "),a&&"contract"==a.form_type?n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,relation:a.relation,"relative-type":a.form_type},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e()]}}])})}))],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":"invoice_title"},on:{close:function(t){e.showPopover=!1},changeCheckout:e.titleSelectChange}}):e._e(),e._v(" "),n("el-button",{attrs:{slot:"reference",disabled:!(e.fieldForm.customer_id&&e.fieldForm.customer_id.length>0),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,a){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.form_type),{tag:"component",attrs:{value:e.otherFrom[t.field],index:a,item:t,"relative-type":t.form_type,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,a){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.form_type),{tag:"component",attrs:{value:e.mailFrom[t.field],index:a,item:t,"relative-type":t.form_type,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,"520c95b6",null);b.options.__file="Create.vue";t.a=b.exports},RVjX:function(e,t){e.exports="data:image/png;base64,iVB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x1FEaFmL5f9flweDo2XgWrt2bWAmwyLIqHPDf+wPbq6Y1tZpGB8ApIeOvfNNyVhLZPtl3+r86m249Y1MjctEJniVmOJZVuBwuf/+GB9ACdm8ZYtGd0eJuT2kPqbDTrTla3vEZ4VtfNFj4xvgAnnBMrsAxkcbH0AZ8fze1vNc1/GXTw3a4GSf5/n/9rxgf9D+FyyxKv99Vf+uCNCrC1BCgp5Yc4zU+bavGx3sU5OzgvF3/mKD1vD46OiiJHPC+ADKGPD5kZs9W73NU/MTRW17JjRA1++s0Oqu2qA/RmWm/n9345DzkK2Fqi5AKY3PH86yPqjCuv5wFa3WGi+s1nrBEJZgKIvrR4Oyb0MtfQJ5yNaC8QGU1vi8e6P2PdeLDC5q0wvb+6JxfsHrHzA1GJ/jOGJ6znx5r0c8zzlFjLBN3k/knSKSfd58jA8A0nA+NbJF3vbOjMj8PBNsov1igMaLjHBRLQOR85CtBeMDKCFh7+1DYmiLvO2zOIIozw2jPd+o1ASdyCTdh2oxLEcjSNc5Vv9+u/Hp1vFCA/SO089KEzo3AEoZ8Zmg/c5Y5xvLs4xrnav9DmqA2p8bdej6BmXZi2X3+X6UZO3esPKQrYWID6CUvucF5ud5g6LzJA5bKPtukH1rxPwGxKRk690gkd9CiQDP09e54dze2qq62c7WwswNgBISza/15+OaMAuLHc3NDaarBUlZ3hmKYgdjW3Y753bduvX6PvvbtrVc/q7jnaSkfmLSLbZdOVK2qxobmzA+ACiOqfoJD2xrvmwvFuP7UyswvbvE9L4lj1dX5N/Nzc2pHeP/CzAAzay4DN/IlEgAAAAASUVORK5CYII="},"Ra/C":function(e,t,n){"use strict";n.d(t,"g",function(){return i}),n.d(t,"i",function(){return o}),n.d(t,"m",function(){return s}),n.d(t,"n",function(){return c}),n.d(t,"l",function(){return r}),n.d(t,"k",function(){return l}),n.d(t,"j",function(){return d}),n.d(t,"b",function(){return u}),n.d(t,"e",function(){return m}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return p}),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 a=n("t3Un");function i(e){return Object(a.a)({url:"crm/message/checkContract",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"crm/message/checkReceivables",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(a.a)({url:"crm/message/todayCustomer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"crm/message/todayLeads",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(a.a)({url:"crm/message/todayBusiness",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a.a)({url:"crm/message/followLeads",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(a.a)({url:"crm/message/followCustomer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(a.a)({url:"crm/message/endContract",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(a.a)({url:"crm/message/remindreceivablesplan",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a.a)({url:"crm/message/num",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a.a)({url:"crm/message/remindCustomer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a.a)({url:"crm/message/visitContract",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(a.a)({url:"crm/message/checkInvoice",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(a.a)({url:"crm/message/allDeal",method:"post",data:e})}function b(e){return Object(a.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 i}),n.d(t,"a",function(){return o}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return c});var a=n("t3Un");function i(e){return Object(a.a)({url:"admin/work/roles",method:"post",data:e})}function o(e){return Object(a.a)({url:"admin/work/rules",method:"post",data:e})}function s(e){return Object(a.a)({url:"admin/work/"+(e.id?"updateRole":"saveRole"),method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function c(e){return Object(a.a)({url:"admin/work/deleteRole",method:"post",data:e})}},RnhZ:function(e,t,n){var a={"./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 i(e){var t=o(e);return n(t)}function o(e){var t=a[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="RnhZ"},Rw8k:function(e,t,n){},SApG:function(e,t,n){"use strict";var a=n("mXRo"),i=n("/407"),o=n("pKm3"),s=n("6VB+"),c=n("dAOq"),r=n("wd/R"),l=n.n(r),d={name:"TodayListDetail",components:{RelatedBusinessCell:i.a,CreateEvent:s.a,TaskDetail:o.a,CRMFullScreenDetail:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-4ba5")]).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:[c.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,Object(a.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],a=0;a=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:a})}},getList:function(){var e=this,t=this.getIndexRequest(),n=new Date(this.todayDetailData.startTime).getTime(),a=new Date(this.todayDetailData.endTime).getTime(),i={page:this.currentPage,limit:this.pageSize,start_time:n,end_time:a,isSub:1,type:1};this.todayDetailData.userId&&(i.user_id=this.todayDetailData.userId),"receiveContract"===this.todayDetailData.crmType?i.type=2:"contract"===this.todayDetailData.crmType&&(i.type=1),this.loading=!0,t(i).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?a.k:"leads"==this.todayDetailData.crmType?a.m:"business"==this.todayDetailData.crmType?a.i:"dealBusiness"==this.todayDetailData.crmType?a.l:a.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(){var n={event_id:t.id};"delete"===e?n.type=1:"deleteAll"===e&&(n.type=2),Object(a.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":""}}},u=(n("Z7Yd"),n("KHd+")),m=Object(u.a)(d,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,a){return n("el-dropdown-item",{key:a,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,a){return n("el-table-column",{key:a,attrs:{prop:t.prop,label:t.label,"min-width":t.width,formatter:e.fieldFormatter,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(a){return["deal_status"==t.prop?[n("i",{class:e._f("dealIcon")(a.row[t.prop])}),e._v(" "),n("span",[e._v(e._s(e._f("dealName")(a.row[t.prop])))])]:"status"==t.prop&&"customer"===e.crmType?[2==a.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(a.row.check_status)}),e._v(" "),n("span",[e._v(e._s(e.getStatusName(a.row.check_status)))])]:[e._v("\n "+e._s(a.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,a){return n("span",{key:a},[0!=a?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,a){return n("related-business-cell",{key:t.customerId,attrs:{data:t,"cell-index":a,"show-foot":!1,type:"customer"},nativeOn:{click:function(n){e.checkRelatedDetail(t,"customer")}}})}),e._v(" "),e._l(e.detail.contactsList,function(t,a){return n("related-business-cell",{key:t.contactsId,attrs:{data:t,"cell-index":a,"show-foot":!1,type:"contacts"},nativeOn:{click:function(n){e.checkRelatedDetail(t,"contacts")}}})}),e._v(" "),e._l(e.detail.contractList,function(t,a){return n("related-business-cell",{key:t.contractId,attrs:{data:t,"cell-index":a,"show-foot":!1,type:"contract"},nativeOn:{click:function(n){e.checkRelatedDetail(t,"contract")}}})}),e._v(" "),e._l(e.detail.businessList,function(t,a){return n("related-business-cell",{key:t.businessId,attrs:{data:t,"cell-index":a,"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,"746f1ec7",null);m.options.__file="TodayListDetail.vue";t.a=m.exports},SVb3:function(e,t,n){},SWvK:function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("GQeE"),s=n.n(o),c=n("4XAY"),r=n("1DpC"),l=n("gVZb"),d=n("EP+0"),u=n("IV42"),m=n("8GhS"),h=n("lcu+"),p=n("IEYw"),f=n("ehos"),g=n("7Qib"),v={name:"ReceivablesCreate",components:{XrCreate:l.a,CreateSections:d.a,CrmRelativeCell:m.a,XhReceivablesPlan:m.k,CreateExamineInfo:h.a,WkFormItems:u.default},mixins:[p.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&&(!(s()(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,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(c.x)(t).then(function(t){var n=t.data||[],a=e.getFormAssistIds(n),i=[],o=[],s={},c={};n.forEach(function(t){var r=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId);var l=e.getItemIsCanEdit(t,e.action.type);if(l)if(1==t.autoGeneNumber){o.placeholder="根据编号规则自动生成,支持手动输入";var d=Object(g.t)(t);d.isNull=0,s[o.field]=e.getRules(d)}else s[o.field]=e.getRules(t);if(o.disabled=!l,"receivables_plan"==o.form_type||"contract"==o.form_type||"customer"==o.form_type)if("relative"==e.action.type){var u={contacts:{customer:!0},customer:{customer:!0},business:{customer:!0},contract:{customer:!0,contract:!0}}[e.action.crmType];u&&(o.disabled=u[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 m=e.getItemRelatveInfo(n,"contract");m&&(m.moduleType="contract",o.relation=m)}else if("contract"==t.form_type){var h=e.getItemRelatveInfo(n,"customer");h&&(h.moduleType="customer",h.params={check_status:2},o.relation=h)}e.getItemRadio(t,o),o.show&&(c[o.field]=e.getItemValue(t,e.action.data,e.action.type)),r.push(o),i.push(t)}),o.push(r)}),e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,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;n.validate(function(a){if(!a)return e.loading=!1,e.getFormErrorMessage(n),!1;if(e.isOpenExamine)t?e.$refs.examineInfo.validateField(function(t){if(t){var n=e.getSubmiteParams(e.baseFields,e.fieldForm);0===e.examineInfo.config&&e.examineInfo.hasOwnProperty("value")&&e.examineInfo.value.length&&(n.check_user_id=e.examineInfo.value[0].id),n.examineStatus=e.examineInfo.examineStatus,n.is_draft=1,e.submiteParams(n)}else e.loading=!1}):e.$refs.examineInfo.validateField(function(t){if(t){var n=e.getSubmiteParams(e.baseFields,e.fieldForm);n.examineStatus=e.examineInfo.examineStatus,0===e.examineInfo.config&&(n.check_user_id=e.examineInfo.value[0].id),e.submiteParams(n)}else e.loading=!1});else{var i=e.getSubmiteParams(e.baseFields,e.fieldForm);t&&(i.is_draft=1),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&&s()(this.action.relativeData).length&&(e=i()({},e,this.action.relativeData)),Object(r.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,a){if(["select","checkbox"].includes(e.formType)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){var n=this;if("customer"===t.form_type)this.itemsForEach(this.fieldList,function(t){if("contract"===t.form_type){if(e.value.length>0){t.disabled=!1;var a=e.value[0];a.moduleType="customer",a.params={check_status:2},t.relation=a}else t.disabled=!0,t.relation={};n.fieldForm[t.field]=[]}else"receivables_plan"===t.form_type&&(t.disabled=!0,t.relation={},n.fieldForm[t.field]="")});else if("contract"===t.form_type){var a=this.getItemWithFromType(this.fieldList,"receivables_plan");if(a){if(e.value.length>0){a.disabled=!1;var i=e.value[0];i.moduleType="contract",a.relation=i}else a.disabled=!0,a.relation={};this.fieldForm[a.field]=""}}else if("receivables_plan"===t.form_type){var o=e.data||{};this.fieldForm.return_time=o.return_date,this.fieldForm.money=o.money,this.fieldForm.return_type=o.return_type}this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)},examineValueChange:function(e){this.examineInfo=e},close:function(){this.$emit("close")}}},b=(n("Tcbx"),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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return[a&&"customer"==a.form_type?n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e(),e._v(" "),a&&"contract"==a.form_type?n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,relation:a.relation,"relative-type":a.form_type},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e(),e._v(" "),a&&"receivables_plan"==a.form_type?n("xh-receivables-plan",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,"receivables-id":e.editId,relation:a.relation},on:{"value-change":function(t){e.otherChange(t,a)}}}):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,"842f0d6e",null);y.options.__file="Create.vue";t.a=y.exports},SaWp:function(e,t,n){"use strict";var a=n("GvIA");n.n(a).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+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLz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W8YYgLTNk9DFbh9fTdNUp1jU2C1JgQ5ivV4XevW5XE5F6KzGmbkUqlXxZL1UKqkInSGhE7LWbrdbeKzP51MROkFC/dLpTigEo6OjpuPC4bDQOAP4lXZ5y5l7PB7dMUNDQxAIBNQPJDKveqKnpqbA6XT+d43+m5yctMNx5Elo0g7308kFUZzvdAMSSGpcd0vh9PQU8vk8RCKRjhGKEpREIgHFYlHIjRlg38Xl6n0rVpQlpVKpZtZkBorzrVg/PDzc3NNer9eq0D2NayPxDgI67mg0KiTyPOjJHh4eNn8tYouEblO2Juq0k0m1LU1xPxaLCSUzjN9UoZLQCvK1iAW9bsUE49/eTqfTosOpfqq0jupzEQs6HHbBQkh90V7cfUO+M7NQPLmW81jWtHO+uKPK78uAFXfX2SudKZep/7MOg4N1aOv0nW+S+XrYbzL0m/C3SVzSa0DQBeqqpfooMsV1Usms90Stv3vkn/sgsshrH5j1nlqgIHCbqo0eiszwmtt6aR4YiF3gQ9Zt0Bo39USaCSX8YrFr7C664YLWeI19s8TZtLWEXGGftmmjyE2ec4XXAFWh7S6DPjZcQ76ibo6EuBzbzvFce6KGDhs/iF2Czh/EfoINH8T+CDAAQ2YfaFZ8NPkAAAAASUVORK5CYII="},TOJS:function(e,t,n){},Tcbx:function(e,t,n){"use strict";var a=n("J8Kc");n.n(a).a},Tf8T:function(e,t,n){"use strict";var a=n("RLGP");n.n(a).a},TgpP:function(e,t,n){"use strict";var a=n("uwtX");n.n(a).a},U1Fb:function(e,t,n){"use strict";var a=n("H6KT");n.n(a).a},U8n8:function(e,t,n){"use strict";var a={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)}}},i=(n("NfXs"),n("KHd+")),o=Object(i.a)(a,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);o.options.__file="MembersDep.vue";t.a=o.exports},UCfG:function(e,t,n){"use strict";var a=n("KTTK"),i=n("oxiq"),o=n.n(i),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 o.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(a.k)({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,a=0;a<this.selectItems.length;a++){var i=this.selectItems[a];e.id==i.id&&(n=a)}-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,a){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,a,i){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 a=this.selectItems[n];if(e.id==a.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)}}},c=(n("Es7h"),n("KHd+")),r=Object(c.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,a){return n("el-breadcrumb-item",{key:a},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){e.breadcrumbBtn(t,a)}}},[e._v(e._s(t.label))])])})),e._v(" "),e._l(e.showDataList,function(t,a){return n("flexbox",{key:a,staticClass:"stru-list"},[n("el-checkbox",{staticClass:"stru-check",attrs:{disabled:t.disabled},on:{change:function(n){e.checkChange(t,a)}},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 l={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")}}},d=(n("DwHe"),Object(c.a)(l,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,a){return n("div",{key:a,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,a)}}})])}),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));d.options.__file="XhStructureCell.vue";t.a=d.exports},UE98:function(e,t,n){},UEfr:function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("WoZJ"),s=n("gSIQ"),c=n("a/5N"),r={name:"WkDistpicker",components:{},inheritAttrs:!1,props:{hideArea:{type:Boolean,default:!1},onlyProvince:{type:Boolean,default:!1},value:Array,props:Object},data:function(){return{dataValue:[]}},computed:{options:function(){return this.getOptions()},config:function(){var e=this.props||{};return i()({label:"name",value:"code"},e)}},watch:{value:{handler:function(){this.validateValue()},immediate:!0}},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{getOptions:function(){var e=this,t=o.a;if(!this.onlyProvince&&!this.hideArea)return t;var n=[];return t.forEach(function(t){var a={code:t.code,name:t.name};e.onlyProvince||(a.children=[],t.children.forEach(function(t){var n={code:t.code,name:t.name};a.children.push(n),e.hideArea||(n.children=t.children)})),n.push(a)}),n},validateValue:function(){var e=this;if(this.value&&this.value.length){var t=this.value;Object(c.c)(this.value[0])&&(t=this.value.map(function(t){return t[e.config.value]})),Object(s.valueEquals)(t,this.dataValue)||(this.dataValue=t)}else this.dataValue=[]},handleChange:function(){var e=this.getCascaderValArr(this.dataValue,this.options);this.$emit("input",e),this.$emit("change",e)},getCascaderValArr:function(e,t){var n=[];if(0===e.length)return n;var a=0;do{var i=t.find(function(t){return t.code===e[a]});i&&(t=i.children||[],n.push({code:i.code,name:i.name,id:a+1})),a++}while(a<=e.length);return n}}},l=(n("ddAi"),n("KHd+")),d=Object(l.a)(r,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wk-distpicker"},[n("el-cascader",e._b({attrs:{options:e.options,props:e.config},on:{change:e.handleChange},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}},"el-cascader",e.$attrs,!1))],1)},[],!1,null,"5b3353d2",null);d.options.__file="index.vue";t.a=d.exports},VBDL:function(e,t,n){"use strict";var a=n("F18x");n.n(a).a},VBEq:function(e,t,n){"use strict";var a=n("mN+P");n.n(a).a},"VFx+":function(e,t,n){"use strict";var a=n("/epS");n.n(a).a},VRoR:function(e,t,n){"use strict";var a=n("7PJz");n.n(a).a},VYvA:function(e,t,n){},VcMt:function(e,t,n){"use strict";n.d(t,"h",function(){return i}),n.d(t,"m",function(){return o}),n.d(t,"k",function(){return s}),n.d(t,"j",function(){return c}),n.d(t,"e",function(){return r}),n.d(t,"g",function(){return l}),n.d(t,"f",function(){return d}),n.d(t,"d",function(){return u}),n.d(t,"l",function(){return m}),n.d(t,"a",function(){return h}),n.d(t,"i",function(){return p}),n.d(t,"n",function(){return f}),n.d(t,"b",function(){return g}),n.d(t,"c",function(){return v});var a=n("t3Un");function i(e){return Object(a.a)({url:"crm/invoice/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"crm/invoice/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(a.a)({url:"crm/invoice/setInvoice",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"crm/invoice/resetInvoiceStatus",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(a.a)({url:"crm/invoice/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a.a)({url:"crm/invoice/read",method:"post",data:e})}function d(e){return Object(a.a)({url:"crm/invoice/count",method:"post",data:e})}function u(e){return Object(a.a)({url:"admin/file/index",method:"post",data:e})}function m(e){return Object(a.a)({url:"crm/invoice/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(a.a)({url:"crm/invoice/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(e){return Object(a.a)({url:"crm/invoiceInfo/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function f(e){return Object(a.a)({url:"crm/invoiceInfo/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(e){return Object(a.a)({url:"crm/invoiceInfo/delete",method:"post",data:e})}function v(e){return Object(a.a)({url:"crm/invoice/excelExport",method:"post",data:e,responseType:"blob"})}},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 a=n("7Qib"),i={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(a.q)(),loadingObj:null}},computed:{},watch:{},mounted:function(){},methods:{afterEnter:function(){this.$emit("afterEnter")}}},o=(n("zlvj"),n("KHd+")),s=Object(o.a)(i,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);s.options.__file="CreateView.vue";t.a=s.exports},Vtdi:function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"formatTime",function(){return p.j}),n.d(a,"filterTimestampToFormatTime",function(){return Qe}),n.d(a,"filterFormatTimeToTimestamp",function(){return qe}),n.d(a,"filterUserLazyImg",function(){return Je}),n.d(a,"wkIconPre",function(){return Xe});var i=n("GQeE"),o=n.n(i),s=(n("201c"),n("Kw5r")),c=(n("9d8Q"),{version:"V11.1.0",companyName:"悟空CRM",getLocationOrigin:function(){return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")},baiduKey:"lcuOQ71SCZhqpxsr1vL2mXoplWEoVctL"}),r=n("XJYT"),l=n.n(r),d=(n("D66Q"),n("jEqg"),n("sg+I"),n("QbLZ")),u=n.n(d),m=n("FyfS"),h=n.n(m),p=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(p.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(p.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,a=!1,i=void 0;try{for(var o,s=h()([.1,.2,.3,.4,.5,.7,.8,.9]);!(n=(o=s.next()).done);n=!0){var c=o.value;this.$refs.bigImg.naturalWidth*c<e&&this.$refs.bigImg.naturalHeight*c<t-200&&(this.bigImgConWidth=this.$refs.bigImg.naturalWidth*c,this.bigImgConHeight=this.$refs.bigImg.naturalHeight*c,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){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}})},rotateInit:function(){var e=document.documentElement.scrollHeight||document.body.scrollHeight,t=!0,n=!1,a=void 0;try{for(var i,o=h()([.1,.2,.3,.4,.5,.7,.8,.9]);!(t=(i=o.next()).done);t=!0){var s=i.value;this.$refs.bigImg.naturalWidth*s<e-160&&(this.bigImgConWidth=this.$refs.bigImg.naturalWidth*s,this.bigImgConHeight=this.$refs.bigImg.naturalHeight*s,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,a=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw a}}},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.l)({save_name:this.currentFile.save_name}).then(function(t){var n=new Blob([t.data],{type:""});Object(p.e)(n,e.currentFile.name)}).catch(function(){})},previewFile:function(){this.currentFile.url&&Object(p.B)(this.currentFile.url,this.currentFile.name)},getShowTypeInfo:function(e){var t=e?e.split("."):[],n="";n=t.length>0?t[t.length-1]:"";var a=Object(p.n)(n),i=["jpg","png","gif","jpeg"].includes(n.toLowerCase());this.bigShowType={isImage:i,icon:a}},getFileTypeIconWithSuffix:function(e){var t=e?e.split("."):[],n="";return n=t.length>0?t[t.length-1]:"",Object(p.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,a){return n("li",{key:a,ref:"thumbnailItem",refInFor:!0,on:{click:function(t){e.switchImgUrl(a,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:{}},_=(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));_.options.__file="index.vue";var w=_.exports,C=n("4XAY"),A=n("4peS"),x=n.n(A),I={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")})}}},j={name:"XrUpgradeDialog",components:{},props:{visible:Boolean},data:function(){return{message:'新增:\n1、增加多种自定义字段类型,支持自定义字段占比配置及布局调整;\n2、客户管理:新增团队成员有效时间;优化团队成员权限;联系人和回款模块增加团队成员功能;增加相关团队字段,支持通过相关团队对团队成员进行筛选;\n3、新增日志点赞互动功能;\n4、新增发票模块自定义字段、发票导出功能;\n5、增加市场活动自定义表单\n6、跟进记录增加导入导出功能\n7、导入数据时,增加“负责人”字段\n8、角色权限:系统管理角色新增权限"角色权限查看",控制在新建员工选择角色和编辑员工角色时,可查看和选择角色的范围;\n\n优化:\n1、优化客户管理仪表盘,图表展示和统计数据等;\n2、优化导出,支持操作一万条以上数据;\n3、高级筛选判断符优化调整;时间筛选增加固定时间段(例如今日、本月、本年等);\n4、权限优化\n\n修复:\n1、修复其他已知bug。'}},computed:{},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{closeView:function(){Object(f.p)().then(function(e){}).catch(function(){}),this.$emit("update:visible",!1)}}},T=(n("O8Zb"),Object(v.a)(j,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{staticClass:"xr-upgrade-dialog",attrs:{visible:e.visible,"close-on-click-modal":!1,title:"",width:"700px","append-to-body":""},on:{close:e.closeView}},[n("el-button",{staticClass:"close-button",attrs:{icon:"el-icon-close"},on:{click:e.closeView}}),e._v(" "),n("flexbox",{staticClass:"upgrade-header",attrs:{justify:"center",align:"center",orient:"vertical"}},[n("span",{staticClass:"upgrade-header__title"},[e._v("升级通知")]),e._v(" "),n("span",{staticClass:"upgrade-header__version"},[e._v("版本"+e._s(e.WKConfig.version))])]),e._v(" "),n("div",{staticClass:"content"},[n("div",{staticClass:"content__title"},[e._v("升级内容:")]),e._v(" "),n("div",{staticClass:"content__content"},[e._v(e._s(e.message))])]),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.closeView}},[e._v("我知道了")])],1)],1)},[],!1,null,null,null));T.options.__file="XrUpgradeDialog.vue";var D=T.exports,S=n("7Dod"),F=n("c2Co"),O=n("AAeT"),R=n("Y4Le"),E=n("8GhS"),L={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.q)({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(p.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")}}},U=(n("xXyP"),Object(v.a)(L,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.total>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,"98f614ac",null));U.options.__file="CRMImportHistory.vue";var V=U.exports,M=n("L2JU"),N=n("ZoMv"),B=n("jtZb"),W={typeName:"",historyShow:!0,ownerSelectShow:!1,poolSelectShow:!1,repeatHandleShow:!0,importParams:null,repeatRuleShow:!0,importRequest:null,templateRequest:null},P={name:"CRMImport",components:{XhUserCell:E.p,CRMImportHistory:V},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:[],pool_id:"",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:u()({},Object(M.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(B.a)(u()({},W),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,this.config.ownerSelectShow&&(n.owner_user_id=this.user.length>0?this.user[0].id:""),this.config.poolSelectShow&&(n.pool_id=this.pool_id);var a=this.config.importRequest||{customer:this.config.poolSelectShow?S.t:S.h,leads:F.e,contacts:O.e,product:R.e}[this.crmType];this.loading=!0,this.config.importParams&&(n=u()({},n,this.config.importParams)),a(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(p.c)(t),e.loading=!1}).catch(function(){e.loading=!1})},download:function(){(this.config.templateRequest||{customer:this.config.poolSelectShow?S.q:S.e,leads:F.b,contacts:O.b,product:R.b}[this.crmType])(this.config.templateParams||{pool_id:this.config.poolSelectShow&&this.pool_id}).then(function(e){Object(p.c)(e)}).catch(function(){})},selectFile:function(){document.getElementById("importInputFile").click()},uploadFile:function(e){var t=e.target.files[0];Object(p.A)(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(){var e=this;Object(S.v)().then(function(t){e.poolList=t.data||[],e.pool_id=e.poolList.length>0?e.poolList[0].pool_id:""}).catch(function(){})},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:N.a[this.crmType],module:"crm",action:"save",controller:this.crmType};Object(C.x)(t).then(function(t){e.fieldList=t.data}).catch(function(){})}}},Y=(n("5Yd1"),Object(v.a)(P,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.pool_id,callback:function(t){e.pool_id=t},expression:"pool_id"}},e._l(e.poolList,function(e){return n("el-option",{key:e.pool_id,attrs:{label:e.pool_name,value:e.pool_id}})}))],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"},[e.config.historyShow?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._e(),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,"663f8a07",null));Y.options.__file="index.vue";var Z=Y.exports,G=n("a0Nf"),z={name:"App",components:{VuePictureViewer:y,XrImport:w,CRMImport:Z,XrUpgradeDialog:D},mixins:[I],data:function(){return{showPreviewImg:!1,previewIndex:0,previewImgs:[],upgradeDialogShow:!1}},computed:u()({},Object(M.b)(["activeIndex","addRouters","userInfo"])),watch:{$route:function(e,t){this.showPreviewImg=!1},addRouters:function(){var e=this;this.userInfo&&1!=this.userInfo.is_read_notice&&setTimeout(function(){e.upgradeDialogShow=!0},5e3)}},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]&&G.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"})}}},Q=(n("A0++"),Object(v.a)(z,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}}),e._v(" "),e.upgradeDialogShow?n("xr-upgrade-dialog",{attrs:{visible:e.upgradeDialogShow},on:{"update:visible":function(t){e.upgradeDialogShow=t}}}):e._e()],1)},[],!1,null,null,null));Q.options.__file="App.vue";var q=Q.exports,J=n("oYx3"),X=n("Q2AE"),K=n("Mj6V"),H=n.n(K),$=(n("pdi6"),n("X4fA")),ee=!1,te=["/login","/welcome"];J.b.beforeEach(function(e,t,n){e.meta.disabled?n(!1):(H.a.start(),Object($.b)()?te.includes(e.path)?(n({path:"/"}),H.a.done()):ee?n():(ee=!0,X.a.getters.allAuth?X.a.dispatch("GenerateRoutes",X.a.getters.allAuth).then(function(){J.b.addRoutes(X.a.getters.addRouters),"/404"===e.path?n({path:e.redirectedFrom||"/",replace:!0}):n(u()({},e,{replace:!0}))}):X.a.dispatch("getAuth").then(function(t){X.a.dispatch("GenerateRoutes",t).then(function(){J.b.addRoutes(X.a.getters.addRouters),"/404"===e.path?n({path:e.redirectedFrom||"/",replace:!0}):n(u()({},e,{replace:!0}))})}).catch(function(e){ee=!1,X.a.dispatch("LogOut").then(function(){r.Message.error(e.msg||"获取用户信息失败"),n({path:"/"})})})):-1!==te.indexOf(e.path)?n():(n("/login"),H.a.done()))}),J.b.afterEach(function(){H.a.done()}),J.b.onError(function(e){var t=e.message.match(/Loading chunk (\d)+ failed/g),n=J.b.history.pending.fullPath;t&&J.b.replace(n)});n("ndzN");var ne=n("uCgg"),ae={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}}},ie=(n("c7Em"),Object(v.a)(ae,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));ie.options.__file="Flexbox.vue";var oe=ie.exports,se=["-moz-box-","-webkit-box-",""],ce={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<se.length;n++)e[se[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}}},re=Object(v.a)(ce,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);re.options.__file="FlexboxItem.vue";var le=re.exports,de=n("o0dq"),ue={name:"XrAvatar",components:{XrUserView:function(){return n.e("chunk-1553").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(de).a.xrColorPrimary}},data:function(){return{popoverShow:!1,loading:!1,userData:null}},computed:u()({},Object(M.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(p.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.x)({id:this.id}).then(function(t){e.userData=t.data}).catch(function(){})}}},me=(n("KS45"),Object(v.a)(ue,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));me.options.__file="index.vue";var he=me.exports,pe=n("4d7F"),fe=n.n(pe),ge=n("vDqi"),ve=n.n(ge),be={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(p.o)(this.file)},fileSize:function(){return"("+Object(p.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 a=this;t(n,{onUploadProgress:function(t){var n=t.loaded/t.total*100|0;e.percentage=n},cancelToken:new(0,ve.a.CancelToken)(function(e){a.cancel=e,a.$emit("cancelTokenChange",e,a.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))}}},ye=(n("IQEA"),Object(v.a)(be,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));ye.options.__file="WkUploadCell.vue";var ke={name:"FileUpload",components:{WkUploadCell:ye.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 fe.a(function(n,a){t.uploadList.push(u()({},e,{complete:!1,resolve:n,reject:a}))})},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)}}},_e=(n("XSoD"),Object(v.a)(ke,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,a){return n("wk-upload-cell",{key:a,attrs:{index:a,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));_e.options.__file="main.vue";var we=_e.exports,Ce={install:function(e){var t=new(e.extend(we))({el:document.createElement("div")});document.body.appendChild(t.$el),e.prototype.$wkUploadFile=t}},Ae=Ce,xe={name:"file",accept:"*.*",multiple:!0},Ie={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(B.a)(u()({},xe),e||{}),this.$refs.wkFileInput.value=null,this.$refs.wkFileInput.click(),new fe.a(function(e,n){t.resolve=e})}}},je=(n("rW5V"),Object(v.a)(Ie,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));je.options.__file="main.vue";var Te=je.exports,De={install:function(e){var t=new(e.extend(Te))({el:document.createElement("div")});document.body.appendChild(t.$el),e.prototype.$wkFile=t}},Se=De,Fe={name:"CRMImportHistory",components:{},filters:{createTime:function(e){var t=e.split(" ");return t.length>0?t[0]:""}},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.t)({page:1,limit:9999,type:{customer:14,contacts:16,leads:18,product:20,hrm:50}[this.crmType]||this.props.moduleType}).then(function(t){e.loading=!1,e.tableList=t.data.list}).catch(function(){e.loading=!1})},downloadError:function(e){Object(C.f)({messageId:e}).then(function(e){Object(p.c)(e)}).catch(function(){})},getImportContent:function(e,t){var n=t.split(",")||[],a=Number(n[1]||"0"),i=Number(n[0]||"0");return"覆盖"+a+"条,导入成功"+(e-i)+"条,导入失败"+i+"条。"},getErrorNum:function(e){var t=e.split(",")||[],n=Number(t[0]||"0");return parseInt(n)},closeClick:function(){this.$emit("close")}}},Oe=(n("czLG"),Object(v.a)(Fe,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:"createTime",label:"导入时间",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("createTime")(t.row.createTime))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"realname",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.title+"条,"+e.getImportContent(t.row.title,t.row.content))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"option",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.getErrorNum(t.row.content)>0?[1==t.row.valid?n("el-button",{attrs:{type:"text"},on:{click:function(n){e.downloadError(t.row.messageId)}}},[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,"8a2ad95e",null));Oe.options.__file="ImportHistory.vue";var Re=Oe.exports,Ee={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:{}},Le=(n("po7t"),Object(v.a)(Ee,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,"2e3fd408",null));Le.options.__file="XrImport.vue";var Ue=Le.exports,Ve={data:function(){return{showCRMImport:!1,crmType:"",crmProps:null,crmImportStatus:"",cacheShow:!1,cacheDone:!1,userInfo:null}},created:function(){var e=x.a.get("crmImportInfo");e&&e.messageId?(this.crmType=e.crmType,this.crmProps=e.crmProps,this.lockrSecondQueryNum(e.messageId),this.cacheShow=!0):this.cacheShow=!1},computed:{showFixImport:function(){return!this.showCRMImport&&this.crmImportStatus&&"wait"!=this.crmImportStatus}},watch:{},methods:{crmImportChange:function(e){this.crmImportStatus=this.showCRMImport&&"finish"==e?"":e},fixImportClick:function(){this.showCRMImport=!0},crmImportClose:function(e){"finish"==e&&(this.crmImportStatus="")},lockrSecondQueryNum: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")})}}},Me={typeName:"",ownerSelectShow:!1,poolSelectShow:!1,historyShow:!0,repeatHandleShow:!0,repeatRuleShow:!0,importRequest:null,importParams:null,templateRequest:null,templateParams:null,noImportProcess:!1,downloadErrFuc:null,userInfo:null},Ne={name:"WkCRMImport",components:{XhUserCell:E.p,ImportHistory:Re,XrImport:Ue},mixins:[Ve],props:{},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:{crmTypeName:function(){return this.crmProps&&this.crmProps.typeName?this.crmProps.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.isUnique}).map(function(e){return e.name}).join("/")||"无"},config:function(){return Object(B.a)(u()({},Me),this.crmProps||{})}},watch:{cacheShow:{handler:function(e){if(e){this.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},showCRMImport:{handler:function(e){e?1==this.stepsActive&&(this.config.userInfo&&(this.user=[this.config.userInfo]),this.config.poolSelectShow&&this.getPoolList(),this.config.repeatRuleShow&&this.config.repeatHandleShow&&this.getField()):(3==this.stepsActive&&this.resetData(),this.fieldList=[])},immediate:!0},stepsActive:function(){this.crmImportChange({1:"wait",2:"process",3:"finish"}[this.stepsActive])}},created:function(){},methods:{import:function(e,t){this.crmType!=e&&this.showFixImport?this.$message.error("请先处理当前导入的数据"):(this.crmType=e,this.crmProps=t,this.showCRMImport=!0)},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){var n=t.data||{};e.config.noImportProcess?(e.loading=!1,e.stepList[1].status="finish",e.stepsActive=3,e.$emit("status","finish"),e.resultData=n,n.errSize>0?e.stepList[2].status="error":e.stepList[2].status="finish"):(e.messageId=n,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.repeatHandling=this.repeatHandling,n.file=this.file,this.config.ownerSelectShow&&(n.ownerUserId=this.user.length>0?this.user[0].userId:""),this.config.poolSelectShow&&(n.poolId=this.poolId);var a=this.config.importRequest||{customer:this.config.poolSelectShow?S.t:S.h,leads:F.e,contacts:O.e,product:R.e}[this.crmType];this.loading=!0,this.config.importParams&&(n=u()({},n,this.config.importParams)),a(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){null===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.errSize>0?e.stepList[2].status="error":e.stepList[2].status="finish")}).catch(function(){})},downloadErrData:function(e){var t=this;this.loading=!0,this.config.downloadErrFuc?this.config.downloadErrFuc(e).then(function(e){Object(p.c)(e),t.loading=!1}).catch(function(){t.loading=!1}):Object(C.f)({messageId:this.messageId}).then(function(e){Object(p.c)(e),t.loading=!1}).catch(function(){t.loading=!1})},download:function(){(this.config.templateRequest||{customer:this.config.poolSelectShow?S.q:S.e,leads:F.b,contacts:O.b,product:R.b}[this.crmType])(this.config.templateParams||{}).then(function(e){Object(p.c)(e)}).catch(function(){})},selectFile:function(){document.getElementById("importInputFile").click()},uploadFile:function(e){var t=e.target.files[0];Object(p.A)(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(){var e=this;Object(S.v)().then(function(t){e.poolList=t.data||[],e.poolId=e.poolList.length>0?e.poolList[0].poolId:""}).catch(function(){})},closeView:function(){this.showCRMImport=!1,3==this.stepsActive&&(this.$bus.emit("import-crm-done-bus",this.crmType),x.a.rm("crmImportInfo")),this.crmImportClose(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={label:N.a[this.crmType],type:1};Object(C.x)(t).then(function(t){e.fieldList=t.data}).catch(function(){})}}},Be=(n("nsv0"),Object(v.a)(Ne,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:e.showCRMImport,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:2}],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.totalSize))]),e._v("条,"),e.resultData.updateSize?[e._v("覆盖"),n("span",{staticClass:"result-info__detail--suc"},[e._v(e._s(e.resultData.updateSize))]),e._v("条,")]:e._e(),e._v("导入成功"),n("span",{staticClass:"result-info__detail--suc"},[e._v(e._s(e.resultData.totalSize-e.resultData.errSize))]),e._v("条,导入失败"),n("span",{staticClass:"result-info__detail--err"},[e._v(e._s(e.resultData.errSize))]),e._v("条")],2):e._e(),e._v(" "),e.resultData&&e.resultData.errSize>0?n("el-button",{staticClass:"result-info__btn--err",attrs:{type:"text"},on:{click:function(t){e.downloadErrData(e.resultData)}}},[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"},[e.config.historyShow?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("import-history",{attrs:{show:e.historyPopoverShow,"crm-type":e.crmType,props:e.crmProps},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._e(),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)]),e._v(" "),e.showFixImport?n("xr-import",{attrs:{"process-status":e.crmImportStatus},nativeOn:{click:function(t){return e.fixImportClick(t)}}}):e._e()],1)},[],!1,null,"45f9c273",null));Be.options.__file="index.vue";var We=Be.exports,Pe={install:function(e){var t=new(e.extend(We))({el:document.createElement("div")});document.body.appendChild(t.$el),e.prototype.$wkImport=t}},Ye=Pe;window.dataCache={};var Ze=function(e,t){var a=n("tpe7");if(Ge(e,t,a),!t.value||0!=t.value.indexOf("/file/downFile")&&0!=t.value.indexOf("/adminFile/down"))Ge(e,t,t.value);else{var i=""+window.BASE_URL+t.value;Ge(e,t,i.replace("//","/"))}},Ge=function(e,t,n){if(t.arg?e.style[t.arg]='url("'+n+'")':e.setAttribute("src",n),"IMG"!==e.tagName){var a=document.createEvent("HTMLEvents");a.initEvent("load",!1,!0),e.dispatchEvent(a)}},ze={name:"src",inserted:function(e,t){Ze(e,t)},update:function(e,t){t.oldValue!=t.value&&Ze(e,t)},unbind:function(e){}};function Qe(e,t){return t||(t="YYYY-MM-DD HH:mm"),e&&0!=e?Object(p.z)(e,t):""}function qe(e){return Object(p.k)(e)}function Je(e){return{src:e,error:n("TEXM"),loading:n("+LJE")}}function Xe(e){return e.startsWith("wk")?e:"wk wk-"+e}var Ke=n("ZhIB"),He=n.n(Ke),$e=(n("5WIN"),n("jHPx")),et={install:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).locale,n=void 0===t?"en-gb":t;He.a.locale(n),e.filter("abbreviate",$e.a),e.filter("bytes",$e.b),e.filter("exponential",$e.d),e.filter("numeral",$e.e),e.filter("ordinal",$e.f),e.filter("percentage",$e.g),e.filter("separator",$e.h),e.filter("currency",$e.c)}},tt=et;"undefined"!=typeof window&&window.Vue&&Vue.use(et);var nt=n("wd/R"),at=n.n(nt),it={install:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.directive("WkNumber",{update:function(e,t){var n=t.value,a=e.getElementsByTagName("input")[0],i=a.value;"positiveInt"==n?(a.value=a.value.replace(/[^\d]/g,""),a.value.indexOf(".")<0&&""!=a.value&&(a.value=parseInt(a.value))):"positive3Float"==n?(a.value=a.value.replace(/[^\d.]/g,""),a.value=a.value.replace(/^(\d+)\.(\d\d\d).*$/,"$1.$2")):"positive4Float"==n?(a.value=a.value.replace(/[^\d.]/g,""),a.value=a.value.replace(/^(\d+)\.(\d\d\d\d).*$/,"$1.$2")):(a.value=a.value.replace(/[^\-?\d.]/g,""),n||(a.value=a.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"))),a.value!=i&&a.dispatchEvent(new Event("input"))}})}},ot={bind:function(e,t,n){function a(n){if(e.contains(n.target))return!1;t.expression&&t.value(n)}e.__vueClickOutside__=a,document.addEventListener("click",a)},unbind:function(e,t){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}},st=n("JqEL"),ct=[],rt="@@wkClickoutsideContext",lt=void 0,dt=0;function ut(e,t,n){return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&a.target&&i.target)||e.contains(a.target)||e.contains(i.target)||e===a.target||n.context.popperElm&&(n.context.popperElm.contains(a.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[rt].methodName&&n.context[e[rt].methodName]?n.context[e[rt].methodName]():e[rt].bindingFn&&e[rt].bindingFn())}}!s.default.prototype.$isServer&&Object(st.b)(document,"mousedown",function(e){return lt=e}),!s.default.prototype.$isServer&&Object(st.b)(document,"mouseup",function(e){ct.forEach(function(t){return t[rt].documentHandler(e,lt)})});var mt={bind:function(e,t,n){ct.push(e);var a=dt++;e[rt]={id:a,documentHandler:ut(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[rt].documentHandler=ut(e,t,n),e[rt].methodName=t.expression,e[rt].bindingFn=t.value},unbind:function(e){for(var t=ct.length,n=0;n<t;n++)if(ct[n][rt].id===e[rt].id){ct.splice(n,1);break}delete e[rt]}},ht={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}}},pt=(n("EYTu"),Object(v.a)(ht,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));pt.options.__file="empty.vue";var ft=pt.exports,gt=n("Um8M"),vt=s.default.extend(ft),bt={install:function(e){if(!e.prototype.$isServer){var t=function(t,a){"[object Array]"===Object.prototype.toString.call(a.value)&&0===a.value.length||"[object Array]"!==Object.prototype.toString.call(a.value)&&a.value?e.nextTick(function(){t.wkEmptyOriginalPosition=Object(gt.b)(t,"position"),n(t,t,a)}):(t.wkEmptyVisible=!1,Object(gt.e)(t,"xs-empty-parent--relative"),Object(gt.e)(t,"xs-empty-parent--hidden"),t.wkEmptyInstance.visible=!1)},n=function(t,n,a){n.wkEmptyVisible||"none"===Object(gt.b)(n,"display")||"hidden"===Object(gt.b)(n,"visibility")||(o()(n.wkEmptyMaskStyle).forEach(function(e){n.wkEmptyMask.style[e]=n.wkEmptyMaskStyle[e]}),"absolute"!==n.wkEmptyOriginalPosition&&"fixed"!==n.wkEmptyOriginalPosition&&Object(gt.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,a){var i=e.getAttribute("xs-empty-text"),o=e.getAttribute("xs-empty-icon"),s=e.getAttribute("xs-empty-background"),c=e.getAttribute("xs-empty-custom-class"),r=a.context,l=new vt({el:document.createElement("div"),data:{text:r&&r[i]||i,icon:r&&r[o]||o,background:r&&r[s]||s,customClass:r&&r[c]||c}});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}))}})}}},yt=bt,kt=n("ehos"),_t=null,wt={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 a=t.value,i=t.arg;t.modifiers;_t=Object(kt.debounce)(i||n,a),Object(st.b)(e,"click",_t)},unbind:function(e){_t&&Object(st.a)(e,"click",_t)}})}},Ct=n("/f1G"),At=n.n(Ct),xt=n("sCIN"),It={};At()(xt.a).forEach(function(e){It=u()({},It,e)}),window.WKConfig=c,s.default.prototype.WKConfig=c,s.default.use(l.a),s.default.prototype.$message.success=function(e){return Object(r.Message)({message:e,duration:1500,type:"success"})},s.default.prototype.$message.error=function(e){return Object(r.Message)({message:e,duration:1500,type:"error"})},G.a.loadingCache(),s.default.use(ne.a),s.default.component("flexbox",oe),s.default.component("flexbox-item",le),s.default.component("xr-avatar",he),s.default.use(Ae),s.default.use(Se),s.default.use(Ye),s.default.directive("src",ze),o()(a).forEach(function(e){s.default.filter(e,a[e])}),s.default.use(tt,{locale:"chs"}),s.default.use(n("Lq01")),at.a.locale("zh_cn"),s.default.use(it),s.default.directive("clickoutside",ot),s.default.directive("elclickoutside",mt),s.default.use(yt),s.default.use(wt),s.default.prototype.emoji=function(e){if(e)return o()(It).forEach(function(t){e=e.replace(new RegExp(t,"g"),function(e){var t=It[e];return"<img src=./static/img/emoji/"+t+' width="16px" height="16px">'}(t))}),e},s.default.config.productionTip=!1,window.app=new s.default({el:"#app",router:J.b,store:X.a,data:{eventHub:new s.default},render:function(e){return e(q)}})},W3mQ:function(e,t,n){"use strict";var a={name:"WkSignatureImage",components:{},props:{height:{type:String,default:"100%"},src:String},data:function(){return{url:"",styleObj:{}}},computed:{hasContent:function(){return!!this.url}},watch:{src:function(e,t){e?this.getData():this.url=""}},created:function(){this.src&&this.getData()},mounted:function(){},beforeDestroy:function(){},methods:{getData:function(){this.url=this.src}}},i=(n("YEWy"),n("KHd+")),o=Object(i.a)(a,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",{attrs:{disabled:!e.hasContent,placement:"bottom",width:"200",trigger:"hover"}},[n("el-image",{staticStyle:{width:"100%",height:"100%"},style:e.styleObj,attrs:{src:e.url,fit:"contain"}}),e._v(" "),n("div",{attrs:{slot:"reference"},slot:"reference"},[e.hasContent?n("el-image",{staticStyle:{width:"100%"},style:Object.assign({},{height:e.height},e.styleObj),attrs:{src:e.url,fit:"contain"}}):[e._v("--")]],2)],1)},[],!1,null,"e762bae4",null);o.options.__file="Image.vue";t.a=o.exports},WoZJ:function(e,t,n){"use strict";t.a=[{code:11e4,name:"北京市",children:[{code:110100,name:"北京市",children:[{code:110101,name:"东城区"},{code:110102,name:"西城区"},{code:110105,name:"朝阳区"},{code:110106,name:"丰台区"},{code:110107,name:"石景山区"},{code:110108,name:"海淀区"},{code:110109,name:"门头沟区"},{code:110111,name:"房山区"},{code:110112,name:"通州区"},{code:110113,name:"顺义区"},{code:110114,name:"昌平区"},{code:110115,name:"大兴区"},{code:110116,name:"怀柔区"},{code:110117,name:"平谷区"},{code:110118,name:"密云区"},{code:110119,name:"延庆区"}]}]},{code:12e4,name:"天津市",children:[{code:120100,name:"天津市",children:[{code:120101,name:"和平区"},{code:120102,name:"河东区"},{code:120103,name:"河西区"},{code:120104,name:"南开区"},{code:120105,name:"河北区"},{code:120106,name:"红桥区"},{code:120110,name:"东丽区"},{code:120111,name:"西青区"},{code:120112,name:"津南区"},{code:120113,name:"北辰区"},{code:120114,name:"武清区"},{code:120115,name:"宝坻区"},{code:120116,name:"滨海新区"},{code:120117,name:"宁河区"},{code:120118,name:"静海区"},{code:120119,name:"蓟州区"}]}]},{code:13e4,name:"河北省",children:[{code:130100,name:"石家庄市",children:[{code:130102,name:"长安区"},{code:130104,name:"桥西区"},{code:130105,name:"新华区"},{code:130107,name:"井陉矿区"},{code:130108,name:"裕华区"},{code:130109,name:"藁城区"},{code:130110,name:"鹿泉区"},{code:130111,name:"栾城区"},{code:130121,name:"井陉县"},{code:130123,name:"正定县"},{code:130125,name:"行唐县"},{code:130126,name:"灵寿县"},{code:130127,name:"高邑县"},{code:130128,name:"深泽县"},{code:130129,name:"赞皇县"},{code:130130,name:"无极县"},{code:130131,name:"平山县"},{code:130132,name:"元氏县"},{code:130133,name:"赵县"},{code:130171,name:"石家庄高新技术产业开发区"},{code:130172,name:"石家庄循环化工园区"},{code:130181,name:"辛集市"},{code:130183,name:"晋州市"},{code:130184,name:"新乐市"}]},{code:130200,name:"唐山市",children:[{code:130202,name:"路南区"},{code:130203,name:"路北区"},{code:130204,name:"古冶区"},{code:130205,name:"开平区"},{code:130207,name:"丰南区"},{code:130208,name:"丰润区"},{code:130209,name:"曹妃甸区"},{code:130224,name:"滦南县"},{code:130225,name:"乐亭县"},{code:130227,name:"迁西县"},{code:130229,name:"玉田县"},{code:130271,name:"河北唐山芦台经济开发区"},{code:130272,name:"唐山市汉沽管理区"},{code:130273,name:"唐山高新技术产业开发区"},{code:130274,name:"河北唐山海港经济开发区"},{code:130281,name:"遵化市"},{code:130283,name:"迁安市"},{code:130284,name:"滦州市"}]},{code:130300,name:"秦皇岛市",children:[{code:130302,name:"海港区"},{code:130303,name:"山海关区"},{code:130304,name:"北戴河区"},{code:130306,name:"抚宁区"},{code:130321,name:"青龙满族自治县"},{code:130322,name:"昌黎县"},{code:130324,name:"卢龙县"},{code:130371,name:"秦皇岛市经济技术开发区"},{code:130372,name:"北戴河新区"}]},{code:130400,name:"邯郸市",children:[{code:130402,name:"邯山区"},{code:130403,name:"丛台区"},{code:130404,name:"复兴区"},{code:130406,name:"峰峰矿区"},{code:130407,name:"肥乡区"},{code:130408,name:"永年区"},{code:130423,name:"临漳县"},{code:130424,name:"成安县"},{code:130425,name:"大名县"},{code:130426,name:"涉县"},{code:130427,name:"磁县"},{code:130430,name:"邱县"},{code:130431,name:"鸡泽县"},{code:130432,name:"广平县"},{code:130433,name:"馆陶县"},{code:130434,name:"魏县"},{code:130435,name:"曲周县"},{code:130471,name:"邯郸经济技术开发区"},{code:130473,name:"邯郸冀南新区"},{code:130481,name:"武安市"}]},{code:130500,name:"邢台市",children:[{code:130502,name:"襄都区"},{code:130503,name:"信都区"},{code:130505,name:"任泽区"},{code:130506,name:"南和区"},{code:130522,name:"临城县"},{code:130523,name:"内丘县"},{code:130524,name:"柏乡县"},{code:130525,name:"隆尧县"},{code:130528,name:"宁晋县"},{code:130529,name:"巨鹿县"},{code:130530,name:"新河县"},{code:130531,name:"广宗县"},{code:130532,name:"平乡县"},{code:130533,name:"威县"},{code:130534,name:"清河县"},{code:130535,name:"临西县"},{code:130571,name:"河北邢台经济开发区"},{code:130581,name:"南宫市"},{code:130582,name:"沙河市"}]},{code:130600,name:"保定市",children:[{code:130602,name:"竞秀区"},{code:130606,name:"莲池区"},{code:130607,name:"满城区"},{code:130608,name:"清苑区"},{code:130609,name:"徐水区"},{code:130623,name:"涞水县"},{code:130624,name:"阜平县"},{code:130626,name:"定兴县"},{code:130627,name:"唐县"},{code:130628,name:"高阳县"},{code:130629,name:"容城县"},{code:130630,name:"涞源县"},{code:130631,name:"望都县"},{code:130632,name:"安新县"},{code:130633,name:"易县"},{code:130634,name:"曲阳县"},{code:130635,name:"蠡县"},{code:130636,name:"顺平县"},{code:130637,name:"博野县"},{code:130638,name:"雄县"},{code:130671,name:"保定高新技术产业开发区"},{code:130672,name:"保定白沟新城"},{code:130681,name:"涿州市"},{code:130682,name:"定州市"},{code:130683,name:"安国市"},{code:130684,name:"高碑店市"}]},{code:130700,name:"张家口市",children:[{code:130702,name:"桥东区"},{code:130703,name:"桥西区"},{code:130705,name:"宣化区"},{code:130706,name:"下花园区"},{code:130708,name:"万全区"},{code:130709,name:"崇礼区"},{code:130722,name:"张北县"},{code:130723,name:"康保县"},{code:130724,name:"沽源县"},{code:130725,name:"尚义县"},{code:130726,name:"蔚县"},{code:130727,name:"阳原县"},{code:130728,name:"怀安县"},{code:130730,name:"怀来县"},{code:130731,name:"涿鹿县"},{code:130732,name:"赤城县"},{code:130771,name:"张家口经济开发区"},{code:130772,name:"张家口市察北管理区"},{code:130773,name:"张家口市塞北管理区"}]},{code:130800,name:"承德市",children:[{code:130802,name:"双桥区"},{code:130803,name:"双滦区"},{code:130804,name:"鹰手营子矿区"},{code:130821,name:"承德县"},{code:130822,name:"兴隆县"},{code:130824,name:"滦平县"},{code:130825,name:"隆化县"},{code:130826,name:"丰宁满族自治县"},{code:130827,name:"宽城满族自治县"},{code:130828,name:"围场满族蒙古族自治县"},{code:130871,name:"承德高新技术产业开发区"},{code:130881,name:"平泉市"}]},{code:130900,name:"沧州市",children:[{code:130902,name:"新华区"},{code:130903,name:"运河区"},{code:130921,name:"沧县"},{code:130922,name:"青县"},{code:130923,name:"东光县"},{code:130924,name:"海兴县"},{code:130925,name:"盐山县"},{code:130926,name:"肃宁县"},{code:130927,name:"南皮县"},{code:130928,name:"吴桥县"},{code:130929,name:"献县"},{code:130930,name:"孟村回族自治县"},{code:130971,name:"河北沧州经济开发区"},{code:130972,name:"沧州高新技术产业开发区"},{code:130973,name:"沧州渤海新区"},{code:130981,name:"泊头市"},{code:130982,name:"任丘市"},{code:130983,name:"黄骅市"},{code:130984,name:"河间市"}]},{code:131e3,name:"廊坊市",children:[{code:131002,name:"安次区"},{code:131003,name:"广阳区"},{code:131022,name:"固安县"},{code:131023,name:"永清县"},{code:131024,name:"香河县"},{code:131025,name:"大城县"},{code:131026,name:"文安县"},{code:131028,name:"大厂回族自治县"},{code:131071,name:"廊坊经济技术开发区"},{code:131081,name:"霸州市"},{code:131082,name:"三河市"}]},{code:131100,name:"衡水市",children:[{code:131102,name:"桃城区"},{code:131103,name:"冀州区"},{code:131121,name:"枣强县"},{code:131122,name:"武邑县"},{code:131123,name:"武强县"},{code:131124,name:"饶阳县"},{code:131125,name:"安平县"},{code:131126,name:"故城县"},{code:131127,name:"景县"},{code:131128,name:"阜城县"},{code:131171,name:"河北衡水高新技术产业开发区"},{code:131172,name:"衡水滨湖新区"},{code:131182,name:"深州市"}]}]},{code:14e4,name:"山西省",children:[{code:140100,name:"太原市",children:[{code:140105,name:"小店区"},{code:140106,name:"迎泽区"},{code:140107,name:"杏花岭区"},{code:140108,name:"尖草坪区"},{code:140109,name:"万柏林区"},{code:140110,name:"晋源区"},{code:140121,name:"清徐县"},{code:140122,name:"阳曲县"},{code:140123,name:"娄烦县"},{code:140171,name:"山西转型综合改革示范区"},{code:140181,name:"古交市"}]},{code:140200,name:"大同市",children:[{code:140212,name:"新荣区"},{code:140213,name:"平城区"},{code:140214,name:"云冈区"},{code:140215,name:"云州区"},{code:140221,name:"阳高县"},{code:140222,name:"天镇县"},{code:140223,name:"广灵县"},{code:140224,name:"灵丘县"},{code:140225,name:"浑源县"},{code:140226,name:"左云县"},{code:140271,name:"山西大同经济开发区"}]},{code:140300,name:"阳泉市",children:[{code:140302,name:"城区"},{code:140303,name:"矿区"},{code:140311,name:"郊区"},{code:140321,name:"平定县"},{code:140322,name:"盂县"}]},{code:140400,name:"长治市",children:[{code:140403,name:"潞州区"},{code:140404,name:"上党区"},{code:140405,name:"屯留区"},{code:140406,name:"潞城区"},{code:140423,name:"襄垣县"},{code:140425,name:"平顺县"},{code:140426,name:"黎城县"},{code:140427,name:"壶关县"},{code:140428,name:"长子县"},{code:140429,name:"武乡县"},{code:140430,name:"沁县"},{code:140431,name:"沁源县"},{code:140471,name:"山西长治高新技术产业园区"}]},{code:140500,name:"晋城市",children:[{code:140502,name:"城区"},{code:140521,name:"沁水县"},{code:140522,name:"阳城县"},{code:140524,name:"陵川县"},{code:140525,name:"泽州县"},{code:140581,name:"高平市"}]},{code:140600,name:"朔州市",children:[{code:140602,name:"朔城区"},{code:140603,name:"平鲁区"},{code:140621,name:"山阴县"},{code:140622,name:"应县"},{code:140623,name:"右玉县"},{code:140671,name:"山西朔州经济开发区"},{code:140681,name:"怀仁市"}]},{code:140700,name:"晋中市",children:[{code:140702,name:"榆次区"},{code:140703,name:"太谷区"},{code:140721,name:"榆社县"},{code:140722,name:"左权县"},{code:140723,name:"和顺县"},{code:140724,name:"昔阳县"},{code:140725,name:"寿阳县"},{code:140727,name:"祁县"},{code:140728,name:"平遥县"},{code:140729,name:"灵石县"},{code:140781,name:"介休市"}]},{code:140800,name:"运城市",children:[{code:140802,name:"盐湖区"},{code:140821,name:"临猗县"},{code:140822,name:"万荣县"},{code:140823,name:"闻喜县"},{code:140824,name:"稷山县"},{code:140825,name:"新绛县"},{code:140826,name:"绛县"},{code:140827,name:"垣曲县"},{code:140828,name:"夏县"},{code:140829,name:"平陆县"},{code:140830,name:"芮城县"},{code:140881,name:"永济市"},{code:140882,name:"河津市"}]},{code:140900,name:"忻州市",children:[{code:140902,name:"忻府区"},{code:140921,name:"定襄县"},{code:140922,name:"五台县"},{code:140923,name:"代县"},{code:140924,name:"繁峙县"},{code:140925,name:"宁武县"},{code:140926,name:"静乐县"},{code:140927,name:"神池县"},{code:140928,name:"五寨县"},{code:140929,name:"岢岚县"},{code:140930,name:"河曲县"},{code:140931,name:"保德县"},{code:140932,name:"偏关县"},{code:140971,name:"五台山风景名胜区"},{code:140981,name:"原平市"}]},{code:141e3,name:"临汾市",children:[{code:141002,name:"尧都区"},{code:141021,name:"曲沃县"},{code:141022,name:"翼城县"},{code:141023,name:"襄汾县"},{code:141024,name:"洪洞县"},{code:141025,name:"古县"},{code:141026,name:"安泽县"},{code:141027,name:"浮山县"},{code:141028,name:"吉县"},{code:141029,name:"乡宁县"},{code:141030,name:"大宁县"},{code:141031,name:"隰县"},{code:141032,name:"永和县"},{code:141033,name:"蒲县"},{code:141034,name:"汾西县"},{code:141081,name:"侯马市"},{code:141082,name:"霍州市"}]},{code:141100,name:"吕梁市",children:[{code:141102,name:"离石区"},{code:141121,name:"文水县"},{code:141122,name:"交城县"},{code:141123,name:"兴县"},{code:141124,name:"临县"},{code:141125,name:"柳林县"},{code:141126,name:"石楼县"},{code:141127,name:"岚县"},{code:141128,name:"方山县"},{code:141129,name:"中阳县"},{code:141130,name:"交口县"},{code:141181,name:"孝义市"},{code:141182,name:"汾阳市"}]}]},{code:15e4,name:"内蒙古自治区",children:[{code:150100,name:"呼和浩特市",children:[{code:150102,name:"新城区"},{code:150103,name:"回民区"},{code:150104,name:"玉泉区"},{code:150105,name:"赛罕区"},{code:150121,name:"土默特左旗"},{code:150122,name:"托克托县"},{code:150123,name:"和林格尔县"},{code:150124,name:"清水河县"},{code:150125,name:"武川县"},{code:150172,name:"呼和浩特经济技术开发区"}]},{code:150200,name:"包头市",children:[{code:150202,name:"东河区"},{code:150203,name:"昆都仑区"},{code:150204,name:"青山区"},{code:150205,name:"石拐区"},{code:150206,name:"白云鄂博矿区"},{code:150207,name:"九原区"},{code:150221,name:"土默特右旗"},{code:150222,name:"固阳县"},{code:150223,name:"达尔罕茂明安联合旗"},{code:150271,name:"包头稀土高新技术产业开发区"}]},{code:150300,name:"乌海市",children:[{code:150302,name:"海勃湾区"},{code:150303,name:"海南区"},{code:150304,name:"乌达区"}]},{code:150400,name:"赤峰市",children:[{code:150402,name:"红山区"},{code:150403,name:"元宝山区"},{code:150404,name:"松山区"},{code:150421,name:"阿鲁科尔沁旗"},{code:150422,name:"巴林左旗"},{code:150423,name:"巴林右旗"},{code:150424,name:"林西县"},{code:150425,name:"克什克腾旗"},{code:150426,name:"翁牛特旗"},{code:150428,name:"喀喇沁旗"},{code:150429,name:"宁城县"},{code:150430,name:"敖汉旗"}]},{code:150500,name:"通辽市",children:[{code:150502,name:"科尔沁区"},{code:150521,name:"科尔沁左翼中旗"},{code:150522,name:"科尔沁左翼后旗"},{code:150523,name:"开鲁县"},{code:150524,name:"库伦旗"},{code:150525,name:"奈曼旗"},{code:150526,name:"扎鲁特旗"},{code:150571,name:"通辽经济技术开发区"},{code:150581,name:"霍林郭勒市"}]},{code:150600,name:"鄂尔多斯市",children:[{code:150602,name:"东胜区"},{code:150603,name:"康巴什区"},{code:150621,name:"达拉特旗"},{code:150622,name:"准格尔旗"},{code:150623,name:"鄂托克前旗"},{code:150624,name:"鄂托克旗"},{code:150625,name:"杭锦旗"},{code:150626,name:"乌审旗"},{code:150627,name:"伊金霍洛旗"}]},{code:150700,name:"呼伦贝尔市",children:[{code:150702,name:"海拉尔区"},{code:150703,name:"扎赉诺尔区"},{code:150721,name:"阿荣旗"},{code:150722,name:"莫力达瓦达斡尔族自治旗"},{code:150723,name:"鄂伦春自治旗"},{code:150724,name:"鄂温克族自治旗"},{code:150725,name:"陈巴尔虎旗"},{code:150726,name:"新巴尔虎左旗"},{code:150727,name:"新巴尔虎右旗"},{code:150781,name:"满洲里市"},{code:150782,name:"牙克石市"},{code:150783,name:"扎兰屯市"},{code:150784,name:"额尔古纳市"},{code:150785,name:"根河市"}]},{code:150800,name:"巴彦淖尔市",children:[{code:150802,name:"临河区"},{code:150821,name:"五原县"},{code:150822,name:"磴口县"},{code:150823,name:"乌拉特前旗"},{code:150824,name:"乌拉特中旗"},{code:150825,name:"乌拉特后旗"},{code:150826,name:"杭锦后旗"}]},{code:150900,name:"乌兰察布市",children:[{code:150902,name:"集宁区"},{code:150921,name:"卓资县"},{code:150922,name:"化德县"},{code:150923,name:"商都县"},{code:150924,name:"兴和县"},{code:150925,name:"凉城县"},{code:150926,name:"察哈尔右翼前旗"},{code:150927,name:"察哈尔右翼中旗"},{code:150928,name:"察哈尔右翼后旗"},{code:150929,name:"四子王旗"},{code:150981,name:"丰镇市"}]},{code:152200,name:"兴安盟",children:[{code:152201,name:"乌兰浩特市"},{code:152202,name:"阿尔山市"},{code:152221,name:"科尔沁右翼前旗"},{code:152222,name:"科尔沁右翼中旗"},{code:152223,name:"扎赉特旗"},{code:152224,name:"突泉县"}]},{code:152500,name:"锡林郭勒盟",children:[{code:152501,name:"二连浩特市"},{code:152502,name:"锡林浩特市"},{code:152522,name:"阿巴嘎旗"},{code:152523,name:"苏尼特左旗"},{code:152524,name:"苏尼特右旗"},{code:152525,name:"东乌珠穆沁旗"},{code:152526,name:"西乌珠穆沁旗"},{code:152527,name:"太仆寺旗"},{code:152528,name:"镶黄旗"},{code:152529,name:"正镶白旗"},{code:152530,name:"正蓝旗"},{code:152531,name:"多伦县"},{code:152571,name:"乌拉盖管委会"}]},{code:152900,name:"阿拉善盟",children:[{code:152921,name:"阿拉善左旗"},{code:152922,name:"阿拉善右旗"},{code:152923,name:"额济纳旗"},{code:152971,name:"内蒙古阿拉善经济开发区"}]}]},{code:21e4,name:"辽宁省",children:[{code:210100,name:"沈阳市",children:[{code:210102,name:"和平区"},{code:210103,name:"沈河区"},{code:210104,name:"大东区"},{code:210105,name:"皇姑区"},{code:210106,name:"铁西区"},{code:210111,name:"苏家屯区"},{code:210112,name:"浑南区"},{code:210113,name:"沈北新区"},{code:210114,name:"于洪区"},{code:210115,name:"辽中区"},{code:210123,name:"康平县"},{code:210124,name:"法库县"},{code:210181,name:"新民市"}]},{code:210200,name:"大连市",children:[{code:210202,name:"中山区"},{code:210203,name:"西岗区"},{code:210204,name:"沙河口区"},{code:210211,name:"甘井子区"},{code:210212,name:"旅顺口区"},{code:210213,name:"金州区"},{code:210214,name:"普兰店区"},{code:210224,name:"长海县"},{code:210281,name:"瓦房店市"},{code:210283,name:"庄河市"}]},{code:210300,name:"鞍山市",children:[{code:210302,name:"铁东区"},{code:210303,name:"铁西区"},{code:210304,name:"立山区"},{code:210311,name:"千山区"},{code:210321,name:"台安县"},{code:210323,name:"岫岩满族自治县"},{code:210381,name:"海城市"}]},{code:210400,name:"抚顺市",children:[{code:210402,name:"新抚区"},{code:210403,name:"东洲区"},{code:210404,name:"望花区"},{code:210411,name:"顺城区"},{code:210421,name:"抚顺县"},{code:210422,name:"新宾满族自治县"},{code:210423,name:"清原满族自治县"}]},{code:210500,name:"本溪市",children:[{code:210502,name:"平山区"},{code:210503,name:"溪湖区"},{code:210504,name:"明山区"},{code:210505,name:"南芬区"},{code:210521,name:"本溪满族自治县"},{code:210522,name:"桓仁满族自治县"}]},{code:210600,name:"丹东市",children:[{code:210602,name:"元宝区"},{code:210603,name:"振兴区"},{code:210604,name:"振安区"},{code:210624,name:"宽甸满族自治县"},{code:210681,name:"东港市"},{code:210682,name:"凤城市"}]},{code:210700,name:"锦州市",children:[{code:210702,name:"古塔区"},{code:210703,name:"凌河区"},{code:210711,name:"太和区"},{code:210726,name:"黑山县"},{code:210727,name:"义县"},{code:210781,name:"凌海市"},{code:210782,name:"北镇市"}]},{code:210800,name:"营口市",children:[{code:210802,name:"站前区"},{code:210803,name:"西市区"},{code:210804,name:"鲅鱼圈区"},{code:210811,name:"老边区"},{code:210881,name:"盖州市"},{code:210882,name:"大石桥市"}]},{code:210900,name:"阜新市",children:[{code:210902,name:"海州区"},{code:210903,name:"新邱区"},{code:210904,name:"太平区"},{code:210905,name:"清河门区"},{code:210911,name:"细河区"},{code:210921,name:"阜新蒙古族自治县"},{code:210922,name:"彰武县"}]},{code:211e3,name:"辽阳市",children:[{code:211002,name:"白塔区"},{code:211003,name:"文圣区"},{code:211004,name:"宏伟区"},{code:211005,name:"弓长岭区"},{code:211011,name:"太子河区"},{code:211021,name:"辽阳县"},{code:211081,name:"灯塔市"}]},{code:211100,name:"盘锦市",children:[{code:211102,name:"双台子区"},{code:211103,name:"兴隆台区"},{code:211104,name:"大洼区"},{code:211122,name:"盘山县"}]},{code:211200,name:"铁岭市",children:[{code:211202,name:"银州区"},{code:211204,name:"清河区"},{code:211221,name:"铁岭县"},{code:211223,name:"西丰县"},{code:211224,name:"昌图县"},{code:211281,name:"调兵山市"},{code:211282,name:"开原市"}]},{code:211300,name:"朝阳市",children:[{code:211302,name:"双塔区"},{code:211303,name:"龙城区"},{code:211321,name:"朝阳县"},{code:211322,name:"建平县"},{code:211324,name:"喀喇沁左翼蒙古族自治县"},{code:211381,name:"北票市"},{code:211382,name:"凌源市"}]},{code:211400,name:"葫芦岛市",children:[{code:211402,name:"连山区"},{code:211403,name:"龙港区"},{code:211404,name:"南票区"},{code:211421,name:"绥中县"},{code:211422,name:"建昌县"},{code:211481,name:"兴城市"}]}]},{code:22e4,name:"吉林省",children:[{code:220100,name:"长春市",children:[{code:220102,name:"南关区"},{code:220103,name:"宽城区"},{code:220104,name:"朝阳区"},{code:220105,name:"二道区"},{code:220106,name:"绿园区"},{code:220112,name:"双阳区"},{code:220113,name:"九台区"},{code:220122,name:"农安县"},{code:220171,name:"长春经济技术开发区"},{code:220172,name:"长春净月高新技术产业开发区"},{code:220173,name:"长春高新技术产业开发区"},{code:220174,name:"长春汽车经济技术开发区"},{code:220182,name:"榆树市"},{code:220183,name:"德惠市"},{code:220184,name:"公主岭市"}]},{code:220200,name:"吉林市",children:[{code:220202,name:"昌邑区"},{code:220203,name:"龙潭区"},{code:220204,name:"船营区"},{code:220211,name:"丰满区"},{code:220221,name:"永吉县"},{code:220271,name:"吉林经济开发区"},{code:220272,name:"吉林高新技术产业开发区"},{code:220273,name:"吉林中国新加坡食品区"},{code:220281,name:"蛟河市"},{code:220282,name:"桦甸市"},{code:220283,name:"舒兰市"},{code:220284,name:"磐石市"}]},{code:220300,name:"四平市",children:[{code:220302,name:"铁西区"},{code:220303,name:"铁东区"},{code:220322,name:"梨树县"},{code:220323,name:"伊通满族自治县"},{code:220382,name:"双辽市"}]},{code:220400,name:"辽源市",children:[{code:220402,name:"龙山区"},{code:220403,name:"西安区"},{code:220421,name:"东丰县"},{code:220422,name:"东辽县"}]},{code:220500,name:"通化市",children:[{code:220502,name:"东昌区"},{code:220503,name:"二道江区"},{code:220521,name:"通化县"},{code:220523,name:"辉南县"},{code:220524,name:"柳河县"},{code:220581,name:"梅河口市"},{code:220582,name:"集安市"}]},{code:220600,name:"白山市",children:[{code:220602,name:"浑江区"},{code:220605,name:"江源区"},{code:220621,name:"抚松县"},{code:220622,name:"靖宇县"},{code:220623,name:"长白朝鲜族自治县"},{code:220681,name:"临江市"}]},{code:220700,name:"松原市",children:[{code:220702,name:"宁江区"},{code:220721,name:"前郭尔罗斯蒙古族自治县"},{code:220722,name:"长岭县"},{code:220723,name:"乾安县"},{code:220771,name:"吉林松原经济开发区"},{code:220781,name:"扶余市"}]},{code:220800,name:"白城市",children:[{code:220802,name:"洮北区"},{code:220821,name:"镇赉县"},{code:220822,name:"通榆县"},{code:220871,name:"吉林白城经济开发区"},{code:220881,name:"洮南市"},{code:220882,name:"大安市"}]},{code:222400,name:"延边朝鲜族自治州",children:[{code:222401,name:"延吉市"},{code:222402,name:"图们市"},{code:222403,name:"敦化市"},{code:222404,name:"珲春市"},{code:222405,name:"龙井市"},{code:222406,name:"和龙市"},{code:222424,name:"汪清县"},{code:222426,name:"安图县"}]}]},{code:23e4,name:"黑龙江省",children:[{code:230100,name:"哈尔滨市",children:[{code:230102,name:"道里区"},{code:230103,name:"南岗区"},{code:230104,name:"道外区"},{code:230108,name:"平房区"},{code:230109,name:"松北区"},{code:230110,name:"香坊区"},{code:230111,name:"呼兰区"},{code:230112,name:"阿城区"},{code:230113,name:"双城区"},{code:230123,name:"依兰县"},{code:230124,name:"方正县"},{code:230125,name:"宾县"},{code:230126,name:"巴彦县"},{code:230127,name:"木兰县"},{code:230128,name:"通河县"},{code:230129,name:"延寿县"},{code:230183,name:"尚志市"},{code:230184,name:"五常市"}]},{code:230200,name:"齐齐哈尔市",children:[{code:230202,name:"龙沙区"},{code:230203,name:"建华区"},{code:230204,name:"铁锋区"},{code:230205,name:"昂昂溪区"},{code:230206,name:"富拉尔基区"},{code:230207,name:"碾子山区"},{code:230208,name:"梅里斯达斡尔族区"},{code:230221,name:"龙江县"},{code:230223,name:"依安县"},{code:230224,name:"泰来县"},{code:230225,name:"甘南县"},{code:230227,name:"富裕县"},{code:230229,name:"克山县"},{code:230230,name:"克东县"},{code:230231,name:"拜泉县"},{code:230281,name:"讷河市"}]},{code:230300,name:"鸡西市",children:[{code:230302,name:"鸡冠区"},{code:230303,name:"恒山区"},{code:230304,name:"滴道区"},{code:230305,name:"梨树区"},{code:230306,name:"城子河区"},{code:230307,name:"麻山区"},{code:230321,name:"鸡东县"},{code:230381,name:"虎林市"},{code:230382,name:"密山市"}]},{code:230400,name:"鹤岗市",children:[{code:230402,name:"向阳区"},{code:230403,name:"工农区"},{code:230404,name:"南山区"},{code:230405,name:"兴安区"},{code:230406,name:"东山区"},{code:230407,name:"兴山区"},{code:230421,name:"萝北县"},{code:230422,name:"绥滨县"}]},{code:230500,name:"双鸭山市",children:[{code:230502,name:"尖山区"},{code:230503,name:"岭东区"},{code:230505,name:"四方台区"},{code:230506,name:"宝山区"},{code:230521,name:"集贤县"},{code:230522,name:"友谊县"},{code:230523,name:"宝清县"},{code:230524,name:"饶河县"}]},{code:230600,name:"大庆市",children:[{code:230602,name:"萨尔图区"},{code:230603,name:"龙凤区"},{code:230604,name:"让胡路区"},{code:230605,name:"红岗区"},{code:230606,name:"大同区"},{code:230621,name:"肇州县"},{code:230622,name:"肇源县"},{code:230623,name:"林甸县"},{code:230624,name:"杜尔伯特蒙古族自治县"},{code:230671,name:"大庆高新技术产业开发区"}]},{code:230700,name:"伊春市",children:[{code:230717,name:"伊美区"},{code:230718,name:"乌翠区"},{code:230719,name:"友好区"},{code:230722,name:"嘉荫县"},{code:230723,name:"汤旺县"},{code:230724,name:"丰林县"},{code:230725,name:"大箐山县"},{code:230726,name:"南岔县"},{code:230751,name:"金林区"},{code:230781,name:"铁力市"}]},{code:230800,name:"佳木斯市",children:[{code:230803,name:"向阳区"},{code:230804,name:"前进区"},{code:230805,name:"东风区"},{code:230811,name:"郊区"},{code:230822,name:"桦南县"},{code:230826,name:"桦川县"},{code:230828,name:"汤原县"},{code:230881,name:"同江市"},{code:230882,name:"富锦市"},{code:230883,name:"抚远市"}]},{code:230900,name:"七台河市",children:[{code:230902,name:"新兴区"},{code:230903,name:"桃山区"},{code:230904,name:"茄子河区"},{code:230921,name:"勃利县"}]},{code:231e3,name:"牡丹江市",children:[{code:231002,name:"东安区"},{code:231003,name:"阳明区"},{code:231004,name:"爱民区"},{code:231005,name:"西安区"},{code:231025,name:"林口县"},{code:231071,name:"牡丹江经济技术开发区"},{code:231081,name:"绥芬河市"},{code:231083,name:"海林市"},{code:231084,name:"宁安市"},{code:231085,name:"穆棱市"},{code:231086,name:"东宁市"}]},{code:231100,name:"黑河市",children:[{code:231102,name:"爱辉区"},{code:231123,name:"逊克县"},{code:231124,name:"孙吴县"},{code:231181,name:"北安市"},{code:231182,name:"五大连池市"},{code:231183,name:"嫩江市"}]},{code:231200,name:"绥化市",children:[{code:231202,name:"北林区"},{code:231221,name:"望奎县"},{code:231222,name:"兰西县"},{code:231223,name:"青冈县"},{code:231224,name:"庆安县"},{code:231225,name:"明水县"},{code:231226,name:"绥棱县"},{code:231281,name:"安达市"},{code:231282,name:"肇东市"},{code:231283,name:"海伦市"}]},{code:232700,name:"大兴安岭地区",children:[{code:232701,name:"漠河市"},{code:232721,name:"呼玛县"},{code:232722,name:"塔河县"},{code:232761,name:"加格达奇区"},{code:232762,name:"松岭区"},{code:232763,name:"新林区"},{code:232764,name:"呼中区"}]}]},{code:31e4,name:"上海市",children:[{code:310100,name:"上海市",children:[{code:310101,name:"黄浦区"},{code:310104,name:"徐汇区"},{code:310105,name:"长宁区"},{code:310106,name:"静安区"},{code:310107,name:"普陀区"},{code:310109,name:"虹口区"},{code:310110,name:"杨浦区"},{code:310112,name:"闵行区"},{code:310113,name:"宝山区"},{code:310114,name:"嘉定区"},{code:310115,name:"浦东新区"},{code:310116,name:"金山区"},{code:310117,name:"松江区"},{code:310118,name:"青浦区"},{code:310120,name:"奉贤区"},{code:310151,name:"崇明区"}]}]},{code:32e4,name:"江苏省",children:[{code:320100,name:"南京市",children:[{code:320102,name:"玄武区"},{code:320104,name:"秦淮区"},{code:320105,name:"建邺区"},{code:320106,name:"鼓楼区"},{code:320111,name:"浦口区"},{code:320113,name:"栖霞区"},{code:320114,name:"雨花台区"},{code:320115,name:"江宁区"},{code:320116,name:"六合区"},{code:320117,name:"溧水区"},{code:320118,name:"高淳区"}]},{code:320200,name:"无锡市",children:[{code:320205,name:"锡山区"},{code:320206,name:"惠山区"},{code:320211,name:"滨湖区"},{code:320213,name:"梁溪区"},{code:320214,name:"新吴区"},{code:320281,name:"江阴市"},{code:320282,name:"宜兴市"}]},{code:320300,name:"徐州市",children:[{code:320302,name:"鼓楼区"},{code:320303,name:"云龙区"},{code:320305,name:"贾汪区"},{code:320311,name:"泉山区"},{code:320312,name:"铜山区"},{code:320321,name:"丰县"},{code:320322,name:"沛县"},{code:320324,name:"睢宁县"},{code:320371,name:"徐州经济技术开发区"},{code:320381,name:"新沂市"},{code:320382,name:"邳州市"}]},{code:320400,name:"常州市",children:[{code:320402,name:"天宁区"},{code:320404,name:"钟楼区"},{code:320411,name:"新北区"},{code:320412,name:"武进区"},{code:320413,name:"金坛区"},{code:320481,name:"溧阳市"}]},{code:320500,name:"苏州市",children:[{code:320505,name:"虎丘区"},{code:320506,name:"吴中区"},{code:320507,name:"相城区"},{code:320508,name:"姑苏区"},{code:320509,name:"吴江区"},{code:320571,name:"苏州工业园区"},{code:320581,name:"常熟市"},{code:320582,name:"张家港市"},{code:320583,name:"昆山市"},{code:320585,name:"太仓市"}]},{code:320600,name:"南通市",children:[{code:320602,name:"崇川区"},{code:320611,name:"港闸区"},{code:320612,name:"通州区"},{code:320623,name:"如东县"},{code:320671,name:"南通经济技术开发区"},{code:320681,name:"启东市"},{code:320682,name:"如皋市"},{code:320684,name:"海门市"},{code:320685,name:"海安市"}]},{code:320700,name:"连云港市",children:[{code:320703,name:"连云区"},{code:320706,name:"海州区"},{code:320707,name:"赣榆区"},{code:320722,name:"东海县"},{code:320723,name:"灌云县"},{code:320724,name:"灌南县"},{code:320771,name:"连云港经济技术开发区"},{code:320772,name:"连云港高新技术产业开发区"}]},{code:320800,name:"淮安市",children:[{code:320803,name:"淮安区"},{code:320804,name:"淮阴区"},{code:320812,name:"清江浦区"},{code:320813,name:"洪泽区"},{code:320826,name:"涟水县"},{code:320830,name:"盱眙县"},{code:320831,name:"金湖县"},{code:320871,name:"淮安经济技术开发区"}]},{code:320900,name:"盐城市",children:[{code:320902,name:"亭湖区"},{code:320903,name:"盐都区"},{code:320904,name:"大丰区"},{code:320921,name:"响水县"},{code:320922,name:"滨海县"},{code:320923,name:"阜宁县"},{code:320924,name:"射阳县"},{code:320925,name:"建湖县"},{code:320971,name:"盐城经济技术开发区"},{code:320981,name:"东台市"}]},{code:321e3,name:"扬州市",children:[{code:321002,name:"广陵区"},{code:321003,name:"邗江区"},{code:321012,name:"江都区"},{code:321023,name:"宝应县"},{code:321071,name:"扬州经济技术开发区"},{code:321081,name:"仪征市"},{code:321084,name:"高邮市"}]},{code:321100,name:"镇江市",children:[{code:321102,name:"京口区"},{code:321111,name:"润州区"},{code:321112,name:"丹徒区"},{code:321171,name:"镇江新区"},{code:321181,name:"丹阳市"},{code:321182,name:"扬中市"},{code:321183,name:"句容市"}]},{code:321200,name:"泰州市",children:[{code:321202,name:"海陵区"},{code:321203,name:"高港区"},{code:321204,name:"姜堰区"},{code:321271,name:"泰州医药高新技术产业开发区"},{code:321281,name:"兴化市"},{code:321282,name:"靖江市"},{code:321283,name:"泰兴市"}]},{code:321300,name:"宿迁市",children:[{code:321302,name:"宿城区"},{code:321311,name:"宿豫区"},{code:321322,name:"沭阳县"},{code:321323,name:"泗阳县"},{code:321324,name:"泗洪县"},{code:321371,name:"宿迁经济技术开发区"}]}]},{code:33e4,name:"浙江省",children:[{code:330100,name:"杭州市",children:[{code:330102,name:"上城区"},{code:330103,name:"下城区"},{code:330104,name:"江干区"},{code:330105,name:"拱墅区"},{code:330106,name:"西湖区"},{code:330108,name:"滨江区"},{code:330109,name:"萧山区"},{code:330110,name:"余杭区"},{code:330111,name:"富阳区"},{code:330112,name:"临安区"},{code:330122,name:"桐庐县"},{code:330127,name:"淳安县"},{code:330182,name:"建德市"}]},{code:330200,name:"宁波市",children:[{code:330203,name:"海曙区"},{code:330205,name:"江北区"},{code:330206,name:"北仑区"},{code:330211,name:"镇海区"},{code:330212,name:"鄞州区"},{code:330213,name:"奉化区"},{code:330225,name:"象山县"},{code:330226,name:"宁海县"},{code:330281,name:"余姚市"},{code:330282,name:"慈溪市"}]},{code:330300,name:"温州市",children:[{code:330302,name:"鹿城区"},{code:330303,name:"龙湾区"},{code:330304,name:"瓯海区"},{code:330305,name:"洞头区"},{code:330324,name:"永嘉县"},{code:330326,name:"平阳县"},{code:330327,name:"苍南县"},{code:330328,name:"文成县"},{code:330329,name:"泰顺县"},{code:330371,name:"温州经济技术开发区"},{code:330381,name:"瑞安市"},{code:330382,name:"乐清市"},{code:330383,name:"龙港市"}]},{code:330400,name:"嘉兴市",children:[{code:330402,name:"南湖区"},{code:330411,name:"秀洲区"},{code:330421,name:"嘉善县"},{code:330424,name:"海盐县"},{code:330481,name:"海宁市"},{code:330482,name:"平湖市"},{code:330483,name:"桐乡市"}]},{code:330500,name:"湖州市",children:[{code:330502,name:"吴兴区"},{code:330503,name:"南浔区"},{code:330521,name:"德清县"},{code:330522,name:"长兴县"},{code:330523,name:"安吉县"}]},{code:330600,name:"绍兴市",children:[{code:330602,name:"越城区"},{code:330603,name:"柯桥区"},{code:330604,name:"上虞区"},{code:330624,name:"新昌县"},{code:330681,name:"诸暨市"},{code:330683,name:"嵊州市"}]},{code:330700,name:"金华市",children:[{code:330702,name:"婺城区"},{code:330703,name:"金东区"},{code:330723,name:"武义县"},{code:330726,name:"浦江县"},{code:330727,name:"磐安县"},{code:330781,name:"兰溪市"},{code:330782,name:"义乌市"},{code:330783,name:"东阳市"},{code:330784,name:"永康市"}]},{code:330800,name:"衢州市",children:[{code:330802,name:"柯城区"},{code:330803,name:"衢江区"},{code:330822,name:"常山县"},{code:330824,name:"开化县"},{code:330825,name:"龙游县"},{code:330881,name:"江山市"}]},{code:330900,name:"舟山市",children:[{code:330902,name:"定海区"},{code:330903,name:"普陀区"},{code:330921,name:"岱山县"},{code:330922,name:"嵊泗县"}]},{code:331e3,name:"台州市",children:[{code:331002,name:"椒江区"},{code:331003,name:"黄岩区"},{code:331004,name:"路桥区"},{code:331022,name:"三门县"},{code:331023,name:"天台县"},{code:331024,name:"仙居县"},{code:331081,name:"温岭市"},{code:331082,name:"临海市"},{code:331083,name:"玉环市"}]},{code:331100,name:"丽水市",children:[{code:331102,name:"莲都区"},{code:331121,name:"青田县"},{code:331122,name:"缙云县"},{code:331123,name:"遂昌县"},{code:331124,name:"松阳县"},{code:331125,name:"云和县"},{code:331126,name:"庆元县"},{code:331127,name:"景宁畲族自治县"},{code:331181,name:"龙泉市"}]}]},{code:34e4,name:"安徽省",children:[{code:340100,name:"合肥市",children:[{code:340102,name:"瑶海区"},{code:340103,name:"庐阳区"},{code:340104,name:"蜀山区"},{code:340111,name:"包河区"},{code:340121,name:"长丰县"},{code:340122,name:"肥东县"},{code:340123,name:"肥西县"},{code:340124,name:"庐江县"},{code:340171,name:"合肥高新技术产业开发区"},{code:340172,name:"合肥经济技术开发区"},{code:340173,name:"合肥新站高新技术产业开发区"},{code:340181,name:"巢湖市"}]},{code:340200,name:"芜湖市",children:[{code:340202,name:"镜湖区"},{code:340203,name:"弋江区"},{code:340207,name:"鸠江区"},{code:340208,name:"三山区"},{code:340221,name:"芜湖县"},{code:340222,name:"繁昌县"},{code:340223,name:"南陵县"},{code:340271,name:"芜湖经济技术开发区"},{code:340272,name:"安徽芜湖长江大桥经济开发区"},{code:340281,name:"无为市"}]},{code:340300,name:"蚌埠市",children:[{code:340302,name:"龙子湖区"},{code:340303,name:"蚌山区"},{code:340304,name:"禹会区"},{code:340311,name:"淮上区"},{code:340321,name:"怀远县"},{code:340322,name:"五河县"},{code:340323,name:"固镇县"},{code:340371,name:"蚌埠市高新技术开发区"},{code:340372,name:"蚌埠市经济开发区"}]},{code:340400,name:"淮南市",children:[{code:340402,name:"大通区"},{code:340403,name:"田家庵区"},{code:340404,name:"谢家集区"},{code:340405,name:"八公山区"},{code:340406,name:"潘集区"},{code:340421,name:"凤台县"},{code:340422,name:"寿县"}]},{code:340500,name:"马鞍山市",children:[{code:340503,name:"花山区"},{code:340504,name:"雨山区"},{code:340506,name:"博望区"},{code:340521,name:"当涂县"},{code:340522,name:"含山县"},{code:340523,name:"和县"}]},{code:340600,name:"淮北市",children:[{code:340602,name:"杜集区"},{code:340603,name:"相山区"},{code:340604,name:"烈山区"},{code:340621,name:"濉溪县"}]},{code:340700,name:"铜陵市",children:[{code:340705,name:"铜官区"},{code:340706,name:"义安区"},{code:340711,name:"郊区"},{code:340722,name:"枞阳县"}]},{code:340800,name:"安庆市",children:[{code:340802,name:"迎江区"},{code:340803,name:"大观区"},{code:340811,name:"宜秀区"},{code:340822,name:"怀宁县"},{code:340825,name:"太湖县"},{code:340826,name:"宿松县"},{code:340827,name:"望江县"},{code:340828,name:"岳西县"},{code:340871,name:"安徽安庆经济开发区"},{code:340881,name:"桐城市"},{code:340882,name:"潜山市"}]},{code:341e3,name:"黄山市",children:[{code:341002,name:"屯溪区"},{code:341003,name:"黄山区"},{code:341004,name:"徽州区"},{code:341021,name:"歙县"},{code:341022,name:"休宁县"},{code:341023,name:"黟县"},{code:341024,name:"祁门县"}]},{code:341100,name:"滁州市",children:[{code:341102,name:"琅琊区"},{code:341103,name:"南谯区"},{code:341122,name:"来安县"},{code:341124,name:"全椒县"},{code:341125,name:"定远县"},{code:341126,name:"凤阳县"},{code:341171,name:"苏滁现代产业园"},{code:341172,name:"滁州经济技术开发区"},{code:341181,name:"天长市"},{code:341182,name:"明光市"}]},{code:341200,name:"阜阳市",children:[{code:341202,name:"颍州区"},{code:341203,name:"颍东区"},{code:341204,name:"颍泉区"},{code:341221,name:"临泉县"},{code:341222,name:"太和县"},{code:341225,name:"阜南县"},{code:341226,name:"颍上县"},{code:341271,name:"阜阳合肥现代产业园区"},{code:341272,name:"阜阳经济技术开发区"},{code:341282,name:"界首市"}]},{code:341300,name:"宿州市",children:[{code:341302,name:"埇桥区"},{code:341321,name:"砀山县"},{code:341322,name:"萧县"},{code:341323,name:"灵璧县"},{code:341324,name:"泗县"},{code:341371,name:"宿州马鞍山现代产业园区"},{code:341372,name:"宿州经济技术开发区"}]},{code:341500,name:"六安市",children:[{code:341502,name:"金安区"},{code:341503,name:"裕安区"},{code:341504,name:"叶集区"},{code:341522,name:"霍邱县"},{code:341523,name:"舒城县"},{code:341524,name:"金寨县"},{code:341525,name:"霍山县"}]},{code:341600,name:"亳州市",children:[{code:341602,name:"谯城区"},{code:341621,name:"涡阳县"},{code:341622,name:"蒙城县"},{code:341623,name:"利辛县"}]},{code:341700,name:"池州市",children:[{code:341702,name:"贵池区"},{code:341721,name:"东至县"},{code:341722,name:"石台县"},{code:341723,name:"青阳县"}]},{code:341800,name:"宣城市",children:[{code:341802,name:"宣州区"},{code:341821,name:"郎溪县"},{code:341823,name:"泾县"},{code:341824,name:"绩溪县"},{code:341825,name:"旌德县"},{code:341871,name:"宣城市经济开发区"},{code:341881,name:"宁国市"},{code:341882,name:"广德市"}]}]},{code:35e4,name:"福建省",children:[{code:350100,name:"福州市",children:[{code:350102,name:"鼓楼区"},{code:350103,name:"台江区"},{code:350104,name:"仓山区"},{code:350105,name:"马尾区"},{code:350111,name:"晋安区"},{code:350112,name:"长乐区"},{code:350121,name:"闽侯县"},{code:350122,name:"连江县"},{code:350123,name:"罗源县"},{code:350124,name:"闽清县"},{code:350125,name:"永泰县"},{code:350128,name:"平潭县"},{code:350181,name:"福清市"}]},{code:350200,name:"厦门市",children:[{code:350203,name:"思明区"},{code:350205,name:"海沧区"},{code:350206,name:"湖里区"},{code:350211,name:"集美区"},{code:350212,name:"同安区"},{code:350213,name:"翔安区"}]},{code:350300,name:"莆田市",children:[{code:350302,name:"城厢区"},{code:350303,name:"涵江区"},{code:350304,name:"荔城区"},{code:350305,name:"秀屿区"},{code:350322,name:"仙游县"}]},{code:350400,name:"三明市",children:[{code:350402,name:"梅列区"},{code:350403,name:"三元区"},{code:350421,name:"明溪县"},{code:350423,name:"清流县"},{code:350424,name:"宁化县"},{code:350425,name:"大田县"},{code:350426,name:"尤溪县"},{code:350427,name:"沙县"},{code:350428,name:"将乐县"},{code:350429,name:"泰宁县"},{code:350430,name:"建宁县"},{code:350481,name:"永安市"}]},{code:350500,name:"泉州市",children:[{code:350502,name:"鲤城区"},{code:350503,name:"丰泽区"},{code:350504,name:"洛江区"},{code:350505,name:"泉港区"},{code:350521,name:"惠安县"},{code:350524,name:"安溪县"},{code:350525,name:"永春县"},{code:350526,name:"德化县"},{code:350527,name:"金门县"},{code:350581,name:"石狮市"},{code:350582,name:"晋江市"},{code:350583,name:"南安市"}]},{code:350600,name:"漳州市",children:[{code:350602,name:"芗城区"},{code:350603,name:"龙文区"},{code:350622,name:"云霄县"},{code:350623,name:"漳浦县"},{code:350624,name:"诏安县"},{code:350625,name:"长泰县"},{code:350626,name:"东山县"},{code:350627,name:"南靖县"},{code:350628,name:"平和县"},{code:350629,name:"华安县"},{code:350681,name:"龙海市"}]},{code:350700,name:"南平市",children:[{code:350702,name:"延平区"},{code:350703,name:"建阳区"},{code:350721,name:"顺昌县"},{code:350722,name:"浦城县"},{code:350723,name:"光泽县"},{code:350724,name:"松溪县"},{code:350725,name:"政和县"},{code:350781,name:"邵武市"},{code:350782,name:"武夷山市"},{code:350783,name:"建瓯市"}]},{code:350800,name:"龙岩市",children:[{code:350802,name:"新罗区"},{code:350803,name:"永定区"},{code:350821,name:"长汀县"},{code:350823,name:"上杭县"},{code:350824,name:"武平县"},{code:350825,name:"连城县"},{code:350881,name:"漳平市"}]},{code:350900,name:"宁德市",children:[{code:350902,name:"蕉城区"},{code:350921,name:"霞浦县"},{code:350922,name:"古田县"},{code:350923,name:"屏南县"},{code:350924,name:"寿宁县"},{code:350925,name:"周宁县"},{code:350926,name:"柘荣县"},{code:350981,name:"福安市"},{code:350982,name:"福鼎市"}]}]},{code:36e4,name:"江西省",children:[{code:360100,name:"南昌市",children:[{code:360102,name:"东湖区"},{code:360103,name:"西湖区"},{code:360104,name:"青云谱区"},{code:360111,name:"青山湖区"},{code:360112,name:"新建区"},{code:360113,name:"红谷滩区"},{code:360121,name:"南昌县"},{code:360123,name:"安义县"},{code:360124,name:"进贤县"}]},{code:360200,name:"景德镇市",children:[{code:360202,name:"昌江区"},{code:360203,name:"珠山区"},{code:360222,name:"浮梁县"},{code:360281,name:"乐平市"}]},{code:360300,name:"萍乡市",children:[{code:360302,name:"安源区"},{code:360313,name:"湘东区"},{code:360321,name:"莲花县"},{code:360322,name:"上栗县"},{code:360323,name:"芦溪县"}]},{code:360400,name:"九江市",children:[{code:360402,name:"濂溪区"},{code:360403,name:"浔阳区"},{code:360404,name:"柴桑区"},{code:360423,name:"武宁县"},{code:360424,name:"修水县"},{code:360425,name:"永修县"},{code:360426,name:"德安县"},{code:360428,name:"都昌县"},{code:360429,name:"湖口县"},{code:360430,name:"彭泽县"},{code:360481,name:"瑞昌市"},{code:360482,name:"共青城市"},{code:360483,name:"庐山市"}]},{code:360500,name:"新余市",children:[{code:360502,name:"渝水区"},{code:360521,name:"分宜县"}]},{code:360600,name:"鹰潭市",children:[{code:360602,name:"月湖区"},{code:360603,name:"余江区"},{code:360681,name:"贵溪市"}]},{code:360700,name:"赣州市",children:[{code:360702,name:"章贡区"},{code:360703,name:"南康区"},{code:360704,name:"赣县区"},{code:360722,name:"信丰县"},{code:360723,name:"大余县"},{code:360724,name:"上犹县"},{code:360725,name:"崇义县"},{code:360726,name:"安远县"},{code:360728,name:"定南县"},{code:360729,name:"全南县"},{code:360730,name:"宁都县"},{code:360731,name:"于都县"},{code:360732,name:"兴国县"},{code:360733,name:"会昌县"},{code:360734,name:"寻乌县"},{code:360735,name:"石城县"},{code:360781,name:"瑞金市"},{code:360783,name:"龙南市"}]},{code:360800,name:"吉安市",children:[{code:360802,name:"吉州区"},{code:360803,name:"青原区"},{code:360821,name:"吉安县"},{code:360822,name:"吉水县"},{code:360823,name:"峡江县"},{code:360824,name:"新干县"},{code:360825,name:"永丰县"},{code:360826,name:"泰和县"},{code:360827,name:"遂川县"},{code:360828,name:"万安县"},{code:360829,name:"安福县"},{code:360830,name:"永新县"},{code:360881,name:"井冈山市"}]},{code:360900,name:"宜春市",children:[{code:360902,name:"袁州区"},{code:360921,name:"奉新县"},{code:360922,name:"万载县"},{code:360923,name:"上高县"},{code:360924,name:"宜丰县"},{code:360925,name:"靖安县"},{code:360926,name:"铜鼓县"},{code:360981,name:"丰城市"},{code:360982,name:"樟树市"},{code:360983,name:"高安市"}]},{code:361e3,name:"抚州市",children:[{code:361002,name:"临川区"},{code:361003,name:"东乡区"},{code:361021,name:"南城县"},{code:361022,name:"黎川县"},{code:361023,name:"南丰县"},{code:361024,name:"崇仁县"},{code:361025,name:"乐安县"},{code:361026,name:"宜黄县"},{code:361027,name:"金溪县"},{code:361028,name:"资溪县"},{code:361030,name:"广昌县"}]},{code:361100,name:"上饶市",children:[{code:361102,name:"信州区"},{code:361103,name:"广丰区"},{code:361104,name:"广信区"},{code:361123,name:"玉山县"},{code:361124,name:"铅山县"},{code:361125,name:"横峰县"},{code:361126,name:"弋阳县"},{code:361127,name:"余干县"},{code:361128,name:"鄱阳县"},{code:361129,name:"万年县"},{code:361130,name:"婺源县"},{code:361181,name:"德兴市"}]}]},{code:37e4,name:"山东省",children:[{code:370100,name:"济南市",children:[{code:370102,name:"历下区"},{code:370103,name:"市中区"},{code:370104,name:"槐荫区"},{code:370105,name:"天桥区"},{code:370112,name:"历城区"},{code:370113,name:"长清区"},{code:370114,name:"章丘区"},{code:370115,name:"济阳区"},{code:370116,name:"莱芜区"},{code:370117,name:"钢城区"},{code:370124,name:"平阴县"},{code:370126,name:"商河县"},{code:370171,name:"济南高新技术产业开发区"}]},{code:370200,name:"青岛市",children:[{code:370202,name:"市南区"},{code:370203,name:"市北区"},{code:370211,name:"黄岛区"},{code:370212,name:"崂山区"},{code:370213,name:"李沧区"},{code:370214,name:"城阳区"},{code:370215,name:"即墨区"},{code:370271,name:"青岛高新技术产业开发区"},{code:370281,name:"胶州市"},{code:370283,name:"平度市"},{code:370285,name:"莱西市"}]},{code:370300,name:"淄博市",children:[{code:370302,name:"淄川区"},{code:370303,name:"张店区"},{code:370304,name:"博山区"},{code:370305,name:"临淄区"},{code:370306,name:"周村区"},{code:370321,name:"桓台县"},{code:370322,name:"高青县"},{code:370323,name:"沂源县"}]},{code:370400,name:"枣庄市",children:[{code:370402,name:"市中区"},{code:370403,name:"薛城区"},{code:370404,name:"峄城区"},{code:370405,name:"台儿庄区"},{code:370406,name:"山亭区"},{code:370481,name:"滕州市"}]},{code:370500,name:"东营市",children:[{code:370502,name:"东营区"},{code:370503,name:"河口区"},{code:370505,name:"垦利区"},{code:370522,name:"利津县"},{code:370523,name:"广饶县"},{code:370571,name:"东营经济技术开发区"},{code:370572,name:"东营港经济开发区"}]},{code:370600,name:"烟台市",children:[{code:370602,name:"芝罘区"},{code:370611,name:"福山区"},{code:370612,name:"牟平区"},{code:370613,name:"莱山区"},{code:370614,name:"蓬莱区"},{code:370671,name:"烟台高新技术产业开发区"},{code:370672,name:"烟台经济技术开发区"},{code:370681,name:"龙口市"},{code:370682,name:"莱阳市"},{code:370683,name:"莱州市"},{code:370685,name:"招远市"},{code:370686,name:"栖霞市"},{code:370687,name:"海阳市"}]},{code:370700,name:"潍坊市",children:[{code:370702,name:"潍城区"},{code:370703,name:"寒亭区"},{code:370704,name:"坊子区"},{code:370705,name:"奎文区"},{code:370724,name:"临朐县"},{code:370725,name:"昌乐县"},{code:370772,name:"潍坊滨海经济技术开发区"},{code:370781,name:"青州市"},{code:370782,name:"诸城市"},{code:370783,name:"寿光市"},{code:370784,name:"安丘市"},{code:370785,name:"高密市"},{code:370786,name:"昌邑市"}]},{code:370800,name:"济宁市",children:[{code:370811,name:"任城区"},{code:370812,name:"兖州区"},{code:370826,name:"微山县"},{code:370827,name:"鱼台县"},{code:370828,name:"金乡县"},{code:370829,name:"嘉祥县"},{code:370830,name:"汶上县"},{code:370831,name:"泗水县"},{code:370832,name:"梁山县"},{code:370871,name:"济宁高新技术产业开发区"},{code:370881,name:"曲阜市"},{code:370883,name:"邹城市"}]},{code:370900,name:"泰安市",children:[{code:370902,name:"泰山区"},{code:370911,name:"岱岳区"},{code:370921,name:"宁阳县"},{code:370923,name:"东平县"},{code:370982,name:"新泰市"},{code:370983,name:"肥城市"}]},{code:371e3,name:"威海市",children:[{code:371002,name:"环翠区"},{code:371003,name:"文登区"},{code:371071,name:"威海火炬高技术产业开发区"},{code:371072,name:"威海经济技术开发区"},{code:371073,name:"威海临港经济技术开发区"},{code:371082,name:"荣成市"},{code:371083,name:"乳山市"}]},{code:371100,name:"日照市",children:[{code:371102,name:"东港区"},{code:371103,name:"岚山区"},{code:371121,name:"五莲县"},{code:371122,name:"莒县"},{code:371171,name:"日照经济技术开发区"}]},{code:371300,name:"临沂市",children:[{code:371302,name:"兰山区"},{code:371311,name:"罗庄区"},{code:371312,name:"河东区"},{code:371321,name:"沂南县"},{code:371322,name:"郯城县"},{code:371323,name:"沂水县"},{code:371324,name:"兰陵县"},{code:371325,name:"费县"},{code:371326,name:"平邑县"},{code:371327,name:"莒南县"},{code:371328,name:"蒙阴县"},{code:371329,name:"临沭县"},{code:371371,name:"临沂高新技术产业开发区"}]},{code:371400,name:"德州市",children:[{code:371402,name:"德城区"},{code:371403,name:"陵城区"},{code:371422,name:"宁津县"},{code:371423,name:"庆云县"},{code:371424,name:"临邑县"},{code:371425,name:"齐河县"},{code:371426,name:"平原县"},{code:371427,name:"夏津县"},{code:371428,name:"武城县"},{code:371471,name:"德州经济技术开发区"},{code:371472,name:"德州运河经济开发区"},{code:371481,name:"乐陵市"},{code:371482,name:"禹城市"}]},{code:371500,name:"聊城市",children:[{code:371502,name:"东昌府区"},{code:371503,name:"茌平区"},{code:371521,name:"阳谷县"},{code:371522,name:"莘县"},{code:371524,name:"东阿县"},{code:371525,name:"冠县"},{code:371526,name:"高唐县"},{code:371581,name:"临清市"}]},{code:371600,name:"滨州市",children:[{code:371602,name:"滨城区"},{code:371603,name:"沾化区"},{code:371621,name:"惠民县"},{code:371622,name:"阳信县"},{code:371623,name:"无棣县"},{code:371625,name:"博兴县"},{code:371681,name:"邹平市"}]},{code:371700,name:"菏泽市",children:[{code:371702,name:"牡丹区"},{code:371703,name:"定陶区"},{code:371721,name:"曹县"},{code:371722,name:"单县"},{code:371723,name:"成武县"},{code:371724,name:"巨野县"},{code:371725,name:"郓城县"},{code:371726,name:"鄄城县"},{code:371728,name:"东明县"},{code:371771,name:"菏泽经济技术开发区"},{code:371772,name:"菏泽高新技术开发区"}]}]},{code:41e4,name:"河南省",children:[{code:410100,name:"郑州市",children:[{code:410102,name:"中原区"},{code:410103,name:"二七区"},{code:410104,name:"管城回族区"},{code:410105,name:"金水区"},{code:410106,name:"上街区"},{code:410108,name:"惠济区"},{code:410122,name:"中牟县"},{code:410171,name:"郑州经济技术开发区"},{code:410172,name:"郑州高新技术产业开发区"},{code:410173,name:"郑州航空港经济综合实验区"},{code:410181,name:"巩义市"},{code:410182,name:"荥阳市"},{code:410183,name:"新密市"},{code:410184,name:"新郑市"},{code:410185,name:"登封市"}]},{code:410200,name:"开封市",children:[{code:410202,name:"龙亭区"},{code:410203,name:"顺河回族区"},{code:410204,name:"鼓楼区"},{code:410205,name:"禹王台区"},{code:410212,name:"祥符区"},{code:410221,name:"杞县"},{code:410222,name:"通许县"},{code:410223,name:"尉氏县"},{code:410225,name:"兰考县"}]},{code:410300,name:"洛阳市",children:[{code:410302,name:"老城区"},{code:410303,name:"西工区"},{code:410304,name:"瀍河回族区"},{code:410305,name:"涧西区"},{code:410306,name:"吉利区"},{code:410311,name:"洛龙区"},{code:410322,name:"孟津县"},{code:410323,name:"新安县"},{code:410324,name:"栾川县"},{code:410325,name:"嵩县"},{code:410326,name:"汝阳县"},{code:410327,name:"宜阳县"},{code:410328,name:"洛宁县"},{code:410329,name:"伊川县"},{code:410371,name:"洛阳高新技术产业开发区"},{code:410381,name:"偃师市"}]},{code:410400,name:"平顶山市",children:[{code:410402,name:"新华区"},{code:410403,name:"卫东区"},{code:410404,name:"石龙区"},{code:410411,name:"湛河区"},{code:410421,name:"宝丰县"},{code:410422,name:"叶县"},{code:410423,name:"鲁山县"},{code:410425,name:"郏县"},{code:410471,name:"平顶山高新技术产业开发区"},{code:410472,name:"平顶山市城乡一体化示范区"},{code:410481,name:"舞钢市"},{code:410482,name:"汝州市"}]},{code:410500,name:"安阳市",children:[{code:410502,name:"文峰区"},{code:410503,name:"北关区"},{code:410505,name:"殷都区"},{code:410506,name:"龙安区"},{code:410522,name:"安阳县"},{code:410523,name:"汤阴县"},{code:410526,name:"滑县"},{code:410527,name:"内黄县"},{code:410571,name:"安阳高新技术产业开发区"},{code:410581,name:"林州市"}]},{code:410600,name:"鹤壁市",children:[{code:410602,name:"鹤山区"},{code:410603,name:"山城区"},{code:410611,name:"淇滨区"},{code:410621,name:"浚县"},{code:410622,name:"淇县"},{code:410671,name:"鹤壁经济技术开发区"}]},{code:410700,name:"新乡市",children:[{code:410702,name:"红旗区"},{code:410703,name:"卫滨区"},{code:410704,name:"凤泉区"},{code:410711,name:"牧野区"},{code:410721,name:"新乡县"},{code:410724,name:"获嘉县"},{code:410725,name:"原阳县"},{code:410726,name:"延津县"},{code:410727,name:"封丘县"},{code:410771,name:"新乡高新技术产业开发区"},{code:410772,name:"新乡经济技术开发区"},{code:410773,name:"新乡市平原城乡一体化示范区"},{code:410781,name:"卫辉市"},{code:410782,name:"辉县市"},{code:410783,name:"长垣市"}]},{code:410800,name:"焦作市",children:[{code:410802,name:"解放区"},{code:410803,name:"中站区"},{code:410804,name:"马村区"},{code:410811,name:"山阳区"},{code:410821,name:"修武县"},{code:410822,name:"博爱县"},{code:410823,name:"武陟县"},{code:410825,name:"温县"},{code:410871,name:"焦作城乡一体化示范区"},{code:410882,name:"沁阳市"},{code:410883,name:"孟州市"}]},{code:410900,name:"濮阳市",children:[{code:410902,name:"华龙区"},{code:410922,name:"清丰县"},{code:410923,name:"南乐县"},{code:410926,name:"范县"},{code:410927,name:"台前县"},{code:410928,name:"濮阳县"},{code:410971,name:"河南濮阳工业园区"},{code:410972,name:"濮阳经济技术开发区"}]},{code:411e3,name:"许昌市",children:[{code:411002,name:"魏都区"},{code:411003,name:"建安区"},{code:411024,name:"鄢陵县"},{code:411025,name:"襄城县"},{code:411071,name:"许昌经济技术开发区"},{code:411081,name:"禹州市"},{code:411082,name:"长葛市"}]},{code:411100,name:"漯河市",children:[{code:411102,name:"源汇区"},{code:411103,name:"郾城区"},{code:411104,name:"召陵区"},{code:411121,name:"舞阳县"},{code:411122,name:"临颍县"},{code:411171,name:"漯河经济技术开发区"}]},{code:411200,name:"三门峡市",children:[{code:411202,name:"湖滨区"},{code:411203,name:"陕州区"},{code:411221,name:"渑池县"},{code:411224,name:"卢氏县"},{code:411271,name:"河南三门峡经济开发区"},{code:411281,name:"义马市"},{code:411282,name:"灵宝市"}]},{code:411300,name:"南阳市",children:[{code:411302,name:"宛城区"},{code:411303,name:"卧龙区"},{code:411321,name:"南召县"},{code:411322,name:"方城县"},{code:411323,name:"西峡县"},{code:411324,name:"镇平县"},{code:411325,name:"内乡县"},{code:411326,name:"淅川县"},{code:411327,name:"社旗县"},{code:411328,name:"唐河县"},{code:411329,name:"新野县"},{code:411330,name:"桐柏县"},{code:411371,name:"南阳高新技术产业开发区"},{code:411372,name:"南阳市城乡一体化示范区"},{code:411381,name:"邓州市"}]},{code:411400,name:"商丘市",children:[{code:411402,name:"梁园区"},{code:411403,name:"睢阳区"},{code:411421,name:"民权县"},{code:411422,name:"睢县"},{code:411423,name:"宁陵县"},{code:411424,name:"柘城县"},{code:411425,name:"虞城县"},{code:411426,name:"夏邑县"},{code:411471,name:"豫东综合物流产业聚集区"},{code:411472,name:"河南商丘经济开发区"},{code:411481,name:"永城市"}]},{code:411500,name:"信阳市",children:[{code:411502,name:"浉河区"},{code:411503,name:"平桥区"},{code:411521,name:"罗山县"},{code:411522,name:"光山县"},{code:411523,name:"新县"},{code:411524,name:"商城县"},{code:411525,name:"固始县"},{code:411526,name:"潢川县"},{code:411527,name:"淮滨县"},{code:411528,name:"息县"},{code:411571,name:"信阳高新技术产业开发区"}]},{code:411600,name:"周口市",children:[{code:411602,name:"川汇区"},{code:411603,name:"淮阳区"},{code:411621,name:"扶沟县"},{code:411622,name:"西华县"},{code:411623,name:"商水县"},{code:411624,name:"沈丘县"},{code:411625,name:"郸城县"},{code:411627,name:"太康县"},{code:411628,name:"鹿邑县"},{code:411671,name:"河南周口经济开发区"},{code:411681,name:"项城市"}]},{code:411700,name:"驻马店市",children:[{code:411702,name:"驿城区"},{code:411721,name:"西平县"},{code:411722,name:"上蔡县"},{code:411723,name:"平舆县"},{code:411724,name:"正阳县"},{code:411725,name:"确山县"},{code:411726,name:"泌阳县"},{code:411727,name:"汝南县"},{code:411728,name:"遂平县"},{code:411729,name:"新蔡县"},{code:411771,name:"河南驻马店经济开发区"}]},{code:419e3,name:"省直辖县级行政区划",children:[{code:419001,name:"济源市"}]}]},{code:42e4,name:"湖北省",children:[{code:420100,name:"武汉市",children:[{code:420102,name:"江岸区"},{code:420103,name:"江汉区"},{code:420104,name:"硚口区"},{code:420105,name:"汉阳区"},{code:420106,name:"武昌区"},{code:420107,name:"青山区"},{code:420111,name:"洪山区"},{code:420112,name:"东西湖区"},{code:420113,name:"汉南区"},{code:420114,name:"蔡甸区"},{code:420115,name:"江夏区"},{code:420116,name:"黄陂区"},{code:420117,name:"新洲区"}]},{code:420200,name:"黄石市",children:[{code:420202,name:"黄石港区"},{code:420203,name:"西塞山区"},{code:420204,name:"下陆区"},{code:420205,name:"铁山区"},{code:420222,name:"阳新县"},{code:420281,name:"大冶市"}]},{code:420300,name:"十堰市",children:[{code:420302,name:"茅箭区"},{code:420303,name:"张湾区"},{code:420304,name:"郧阳区"},{code:420322,name:"郧西县"},{code:420323,name:"竹山县"},{code:420324,name:"竹溪县"},{code:420325,name:"房县"},{code:420381,name:"丹江口市"}]},{code:420500,name:"宜昌市",children:[{code:420502,name:"西陵区"},{code:420503,name:"伍家岗区"},{code:420504,name:"点军区"},{code:420505,name:"猇亭区"},{code:420506,name:"夷陵区"},{code:420525,name:"远安县"},{code:420526,name:"兴山县"},{code:420527,name:"秭归县"},{code:420528,name:"长阳土家族自治县"},{code:420529,name:"五峰土家族自治县"},{code:420581,name:"宜都市"},{code:420582,name:"当阳市"},{code:420583,name:"枝江市"}]},{code:420600,name:"襄阳市",children:[{code:420602,name:"襄城区"},{code:420606,name:"樊城区"},{code:420607,name:"襄州区"},{code:420624,name:"南漳县"},{code:420625,name:"谷城县"},{code:420626,name:"保康县"},{code:420682,name:"老河口市"},{code:420683,name:"枣阳市"},{code:420684,name:"宜城市"}]},{code:420700,name:"鄂州市",children:[{code:420702,name:"梁子湖区"},{code:420703,name:"华容区"},{code:420704,name:"鄂城区"}]},{code:420800,name:"荆门市",children:[{code:420802,name:"东宝区"},{code:420804,name:"掇刀区"},{code:420822,name:"沙洋县"},{code:420881,name:"钟祥市"},{code:420882,name:"京山市"}]},{code:420900,name:"孝感市",children:[{code:420902,name:"孝南区"},{code:420921,name:"孝昌县"},{code:420922,name:"大悟县"},{code:420923,name:"云梦县"},{code:420981,name:"应城市"},{code:420982,name:"安陆市"},{code:420984,name:"汉川市"}]},{code:421e3,name:"荆州市",children:[{code:421002,name:"沙市区"},{code:421003,name:"荆州区"},{code:421022,name:"公安县"},{code:421023,name:"监利县"},{code:421024,name:"江陵县"},{code:421071,name:"荆州经济技术开发区"},{code:421081,name:"石首市"},{code:421083,name:"洪湖市"},{code:421087,name:"松滋市"}]},{code:421100,name:"黄冈市",children:[{code:421102,name:"黄州区"},{code:421121,name:"团风县"},{code:421122,name:"红安县"},{code:421123,name:"罗田县"},{code:421124,name:"英山县"},{code:421125,name:"浠水县"},{code:421126,name:"蕲春县"},{code:421127,name:"黄梅县"},{code:421171,name:"龙感湖管理区"},{code:421181,name:"麻城市"},{code:421182,name:"武穴市"}]},{code:421200,name:"咸宁市",children:[{code:421202,name:"咸安区"},{code:421221,name:"嘉鱼县"},{code:421222,name:"通城县"},{code:421223,name:"崇阳县"},{code:421224,name:"通山县"},{code:421281,name:"赤壁市"}]},{code:421300,name:"随州市",children:[{code:421303,name:"曾都区"},{code:421321,name:"随县"},{code:421381,name:"广水市"}]},{code:422800,name:"恩施土家族苗族自治州",children:[{code:422801,name:"恩施市"},{code:422802,name:"利川市"},{code:422822,name:"建始县"},{code:422823,name:"巴东县"},{code:422825,name:"宣恩县"},{code:422826,name:"咸丰县"},{code:422827,name:"来凤县"},{code:422828,name:"鹤峰县"}]},{code:429e3,name:"省直辖县级行政区划",children:[{code:429004,name:"仙桃市"},{code:429005,name:"潜江市"},{code:429006,name:"天门市"},{code:429021,name:"神农架林区"}]}]},{code:43e4,name:"湖南省",children:[{code:430100,name:"长沙市",children:[{code:430102,name:"芙蓉区"},{code:430103,name:"天心区"},{code:430104,name:"岳麓区"},{code:430105,name:"开福区"},{code:430111,name:"雨花区"},{code:430112,name:"望城区"},{code:430121,name:"长沙县"},{code:430181,name:"浏阳市"},{code:430182,name:"宁乡市"}]},{code:430200,name:"株洲市",children:[{code:430202,name:"荷塘区"},{code:430203,name:"芦淞区"},{code:430204,name:"石峰区"},{code:430211,name:"天元区"},{code:430212,name:"渌口区"},{code:430223,name:"攸县"},{code:430224,name:"茶陵县"},{code:430225,name:"炎陵县"},{code:430271,name:"云龙示范区"},{code:430281,name:"醴陵市"}]},{code:430300,name:"湘潭市",children:[{code:430302,name:"雨湖区"},{code:430304,name:"岳塘区"},{code:430321,name:"湘潭县"},{code:430371,name:"湖南湘潭高新技术产业园区"},{code:430372,name:"湘潭昭山示范区"},{code:430373,name:"湘潭九华示范区"},{code:430381,name:"湘乡市"},{code:430382,name:"韶山市"}]},{code:430400,name:"衡阳市",children:[{code:430405,name:"珠晖区"},{code:430406,name:"雁峰区"},{code:430407,name:"石鼓区"},{code:430408,name:"蒸湘区"},{code:430412,name:"南岳区"},{code:430421,name:"衡阳县"},{code:430422,name:"衡南县"},{code:430423,name:"衡山县"},{code:430424,name:"衡东县"},{code:430426,name:"祁东县"},{code:430471,name:"衡阳综合保税区"},{code:430472,name:"湖南衡阳高新技术产业园区"},{code:430473,name:"湖南衡阳松木经济开发区"},{code:430481,name:"耒阳市"},{code:430482,name:"常宁市"}]},{code:430500,name:"邵阳市",children:[{code:430502,name:"双清区"},{code:430503,name:"大祥区"},{code:430511,name:"北塔区"},{code:430522,name:"新邵县"},{code:430523,name:"邵阳县"},{code:430524,name:"隆回县"},{code:430525,name:"洞口县"},{code:430527,name:"绥宁县"},{code:430528,name:"新宁县"},{code:430529,name:"城步苗族自治县"},{code:430581,name:"武冈市"},{code:430582,name:"邵东市"}]},{code:430600,name:"岳阳市",children:[{code:430602,name:"岳阳楼区"},{code:430603,name:"云溪区"},{code:430611,name:"君山区"},{code:430621,name:"岳阳县"},{code:430623,name:"华容县"},{code:430624,name:"湘阴县"},{code:430626,name:"平江县"},{code:430671,name:"岳阳市屈原管理区"},{code:430681,name:"汨罗市"},{code:430682,name:"临湘市"}]},{code:430700,name:"常德市",children:[{code:430702,name:"武陵区"},{code:430703,name:"鼎城区"},{code:430721,name:"安乡县"},{code:430722,name:"汉寿县"},{code:430723,name:"澧县"},{code:430724,name:"临澧县"},{code:430725,name:"桃源县"},{code:430726,name:"石门县"},{code:430771,name:"常德市西洞庭管理区"},{code:430781,name:"津市市"}]},{code:430800,name:"张家界市",children:[{code:430802,name:"永定区"},{code:430811,name:"武陵源区"},{code:430821,name:"慈利县"},{code:430822,name:"桑植县"}]},{code:430900,name:"益阳市",children:[{code:430902,name:"资阳区"},{code:430903,name:"赫山区"},{code:430921,name:"南县"},{code:430922,name:"桃江县"},{code:430923,name:"安化县"},{code:430971,name:"益阳市大通湖管理区"},{code:430972,name:"湖南益阳高新技术产业园区"},{code:430981,name:"沅江市"}]},{code:431e3,name:"郴州市",children:[{code:431002,name:"北湖区"},{code:431003,name:"苏仙区"},{code:431021,name:"桂阳县"},{code:431022,name:"宜章县"},{code:431023,name:"永兴县"},{code:431024,name:"嘉禾县"},{code:431025,name:"临武县"},{code:431026,name:"汝城县"},{code:431027,name:"桂东县"},{code:431028,name:"安仁县"},{code:431081,name:"资兴市"}]},{code:431100,name:"永州市",children:[{code:431102,name:"零陵区"},{code:431103,name:"冷水滩区"},{code:431121,name:"祁阳县"},{code:431122,name:"东安县"},{code:431123,name:"双牌县"},{code:431124,name:"道县"},{code:431125,name:"江永县"},{code:431126,name:"宁远县"},{code:431127,name:"蓝山县"},{code:431128,name:"新田县"},{code:431129,name:"江华瑶族自治县"},{code:431171,name:"永州经济技术开发区"},{code:431172,name:"永州市金洞管理区"},{code:431173,name:"永州市回龙圩管理区"}]},{code:431200,name:"怀化市",children:[{code:431202,name:"鹤城区"},{code:431221,name:"中方县"},{code:431222,name:"沅陵县"},{code:431223,name:"辰溪县"},{code:431224,name:"溆浦县"},{code:431225,name:"会同县"},{code:431226,name:"麻阳苗族自治县"},{code:431227,name:"新晃侗族自治县"},{code:431228,name:"芷江侗族自治县"},{code:431229,name:"靖州苗族侗族自治县"},{code:431230,name:"通道侗族自治县"},{code:431271,name:"怀化市洪江管理区"},{code:431281,name:"洪江市"}]},{code:431300,name:"娄底市",children:[{code:431302,name:"娄星区"},{code:431321,name:"双峰县"},{code:431322,name:"新化县"},{code:431381,name:"冷水江市"},{code:431382,name:"涟源市"}]},{code:433100,name:"湘西土家族苗族自治州",children:[{code:433101,name:"吉首市"},{code:433122,name:"泸溪县"},{code:433123,name:"凤凰县"},{code:433124,name:"花垣县"},{code:433125,name:"保靖县"},{code:433126,name:"古丈县"},{code:433127,name:"永顺县"},{code:433130,name:"龙山县"}]}]},{code:44e4,name:"广东省",children:[{code:440100,name:"广州市",children:[{code:440103,name:"荔湾区"},{code:440104,name:"越秀区"},{code:440105,name:"海珠区"},{code:440106,name:"天河区"},{code:440111,name:"白云区"},{code:440112,name:"黄埔区"},{code:440113,name:"番禺区"},{code:440114,name:"花都区"},{code:440115,name:"南沙区"},{code:440117,name:"从化区"},{code:440118,name:"增城区"}]},{code:440200,name:"韶关市",children:[{code:440203,name:"武江区"},{code:440204,name:"浈江区"},{code:440205,name:"曲江区"},{code:440222,name:"始兴县"},{code:440224,name:"仁化县"},{code:440229,name:"翁源县"},{code:440232,name:"乳源瑶族自治县"},{code:440233,name:"新丰县"},{code:440281,name:"乐昌市"},{code:440282,name:"南雄市"}]},{code:440300,name:"深圳市",children:[{code:440303,name:"罗湖区"},{code:440304,name:"福田区"},{code:440305,name:"南山区"},{code:440306,name:"宝安区"},{code:440307,name:"龙岗区"},{code:440308,name:"盐田区"},{code:440309,name:"龙华区"},{code:440310,name:"坪山区"},{code:440311,name:"光明区"}]},{code:440400,name:"珠海市",children:[{code:440402,name:"香洲区"},{code:440403,name:"斗门区"},{code:440404,name:"金湾区"}]},{code:440500,name:"汕头市",children:[{code:440507,name:"龙湖区"},{code:440511,name:"金平区"},{code:440512,name:"濠江区"},{code:440513,name:"潮阳区"},{code:440514,name:"潮南区"},{code:440515,name:"澄海区"},{code:440523,name:"南澳县"}]},{code:440600,name:"佛山市",children:[{code:440604,name:"禅城区"},{code:440605,name:"南海区"},{code:440606,name:"顺德区"},{code:440607,name:"三水区"},{code:440608,name:"高明区"}]},{code:440700,name:"江门市",children:[{code:440703,name:"蓬江区"},{code:440704,name:"江海区"},{code:440705,name:"新会区"},{code:440781,name:"台山市"},{code:440783,name:"开平市"},{code:440784,name:"鹤山市"},{code:440785,name:"恩平市"}]},{code:440800,name:"湛江市",children:[{code:440802,name:"赤坎区"},{code:440803,name:"霞山区"},{code:440804,name:"坡头区"},{code:440811,name:"麻章区"},{code:440823,name:"遂溪县"},{code:440825,name:"徐闻县"},{code:440881,name:"廉江市"},{code:440882,name:"雷州市"},{code:440883,name:"吴川市"}]},{code:440900,name:"茂名市",children:[{code:440902,name:"茂南区"},{code:440904,name:"电白区"},{code:440981,name:"高州市"},{code:440982,name:"化州市"},{code:440983,name:"信宜市"}]},{code:441200,name:"肇庆市",children:[{code:441202,name:"端州区"},{code:441203,name:"鼎湖区"},{code:441204,name:"高要区"},{code:441223,name:"广宁县"},{code:441224,name:"怀集县"},{code:441225,name:"封开县"},{code:441226,name:"德庆县"},{code:441284,name:"四会市"}]},{code:441300,name:"惠州市",children:[{code:441302,name:"惠城区"},{code:441303,name:"惠阳区"},{code:441322,name:"博罗县"},{code:441323,name:"惠东县"},{code:441324,name:"龙门县"}]},{code:441400,name:"梅州市",children:[{code:441402,name:"梅江区"},{code:441403,name:"梅县区"},{code:441422,name:"大埔县"},{code:441423,name:"丰顺县"},{code:441424,name:"五华县"},{code:441426,name:"平远县"},{code:441427,name:"蕉岭县"},{code:441481,name:"兴宁市"}]},{code:441500,name:"汕尾市",children:[{code:441502,name:"城区"},{code:441521,name:"海丰县"},{code:441523,name:"陆河县"},{code:441581,name:"陆丰市"}]},{code:441600,name:"河源市",children:[{code:441602,name:"源城区"},{code:441621,name:"紫金县"},{code:441622,name:"龙川县"},{code:441623,name:"连平县"},{code:441624,name:"和平县"},{code:441625,name:"东源县"}]},{code:441700,name:"阳江市",children:[{code:441702,name:"江城区"},{code:441704,name:"阳东区"},{code:441721,name:"阳西县"},{code:441781,name:"阳春市"}]},{code:441800,name:"清远市",children:[{code:441802,name:"清城区"},{code:441803,name:"清新区"},{code:441821,name:"佛冈县"},{code:441823,name:"阳山县"},{code:441825,name:"连山壮族瑶族自治县"},{code:441826,name:"连南瑶族自治县"},{code:441881,name:"英德市"},{code:441882,name:"连州市"}]},{code:441900,name:"东莞市",children:[{code:441900003,name:"东城街道"},{code:441900004,name:"南城街道"},{code:441900005,name:"万江街道"},{code:441900006,name:"莞城街道"},{code:441900101,name:"石碣镇"},{code:441900102,name:"石龙镇"},{code:441900103,name:"茶山镇"},{code:441900104,name:"石排镇"},{code:441900105,name:"企石镇"},{code:441900106,name:"横沥镇"},{code:441900107,name:"桥头镇"},{code:441900108,name:"谢岗镇"},{code:441900109,name:"东坑镇"},{code:441900110,name:"常平镇"},{code:441900111,name:"寮步镇"},{code:441900112,name:"樟木头镇"},{code:441900113,name:"大朗镇"},{code:441900114,name:"黄江镇"},{code:441900115,name:"清溪镇"},{code:441900116,name:"塘厦镇"},{code:441900117,name:"凤岗镇"},{code:441900118,name:"大岭山镇"},{code:441900119,name:"长安镇"},{code:441900121,name:"虎门镇"},{code:441900122,name:"厚街镇"},{code:441900123,name:"沙田镇"},{code:441900124,name:"道滘镇"},{code:441900125,name:"洪梅镇"},{code:441900126,name:"麻涌镇"},{code:441900127,name:"望牛墩镇"},{code:441900128,name:"中堂镇"},{code:441900129,name:"高埗镇"},{code:441900401,name:"松山湖"},{code:441900402,name:"东莞港"},{code:441900403,name:"东莞生态园"}]},{code:442e3,name:"中山市",children:[{code:442000001,name:"石岐街道"},{code:442000002,name:"东区街道"},{code:442000003,name:"中山港街道"},{code:442000004,name:"西区街道"},{code:442000005,name:"南区街道"},{code:442000006,name:"五桂山街道"},{code:442000100,name:"小榄镇"},{code:442000101,name:"黄圃镇"},{code:442000102,name:"民众镇"},{code:442000103,name:"东凤镇"},{code:442000104,name:"东升镇"},{code:442000105,name:"古镇镇"},{code:442000106,name:"沙溪镇"},{code:442000107,name:"坦洲镇"},{code:442000108,name:"港口镇"},{code:442000109,name:"三角镇"},{code:442000110,name:"横栏镇"},{code:442000111,name:"南头镇"},{code:442000112,name:"阜沙镇"},{code:442000113,name:"南朗镇"},{code:442000114,name:"三乡镇"},{code:442000115,name:"板芙镇"},{code:442000116,name:"大涌镇"},{code:442000117,name:"神湾镇"}]},{code:445100,name:"潮州市",children:[{code:445102,name:"湘桥区"},{code:445103,name:"潮安区"},{code:445122,name:"饶平县"}]},{code:445200,name:"揭阳市",children:[{code:445202,name:"榕城区"},{code:445203,name:"揭东区"},{code:445222,name:"揭西县"},{code:445224,name:"惠来县"},{code:445281,name:"普宁市"}]},{code:445300,name:"云浮市",children:[{code:445302,name:"云城区"},{code:445303,name:"云安区"},{code:445321,name:"新兴县"},{code:445322,name:"郁南县"},{code:445381,name:"罗定市"}]}]},{code:45e4,name:"广西壮族自治区",children:[{code:450100,name:"南宁市",children:[{code:450102,name:"兴宁区"},{code:450103,name:"青秀区"},{code:450105,name:"江南区"},{code:450107,name:"西乡塘区"},{code:450108,name:"良庆区"},{code:450109,name:"邕宁区"},{code:450110,name:"武鸣区"},{code:450123,name:"隆安县"},{code:450124,name:"马山县"},{code:450125,name:"上林县"},{code:450126,name:"宾阳县"},{code:450127,name:"横县"}]},{code:450200,name:"柳州市",children:[{code:450202,name:"城中区"},{code:450203,name:"鱼峰区"},{code:450204,name:"柳南区"},{code:450205,name:"柳北区"},{code:450206,name:"柳江区"},{code:450222,name:"柳城县"},{code:450223,name:"鹿寨县"},{code:450224,name:"融安县"},{code:450225,name:"融水苗族自治县"},{code:450226,name:"三江侗族自治县"}]},{code:450300,name:"桂林市",children:[{code:450302,name:"秀峰区"},{code:450303,name:"叠彩区"},{code:450304,name:"象山区"},{code:450305,name:"七星区"},{code:450311,name:"雁山区"},{code:450312,name:"临桂区"},{code:450321,name:"阳朔县"},{code:450323,name:"灵川县"},{code:450324,name:"全州县"},{code:450325,name:"兴安县"},{code:450326,name:"永福县"},{code:450327,name:"灌阳县"},{code:450328,name:"龙胜各族自治县"},{code:450329,name:"资源县"},{code:450330,name:"平乐县"},{code:450332,name:"恭城瑶族自治县"},{code:450381,name:"荔浦市"}]},{code:450400,name:"梧州市",children:[{code:450403,name:"万秀区"},{code:450405,name:"长洲区"},{code:450406,name:"龙圩区"},{code:450421,name:"苍梧县"},{code:450422,name:"藤县"},{code:450423,name:"蒙山县"},{code:450481,name:"岑溪市"}]},{code:450500,name:"北海市",children:[{code:450502,name:"海城区"},{code:450503,name:"银海区"},{code:450512,name:"铁山港区"},{code:450521,name:"合浦县"}]},{code:450600,name:"防城港市",children:[{code:450602,name:"港口区"},{code:450603,name:"防城区"},{code:450621,name:"上思县"},{code:450681,name:"东兴市"}]},{code:450700,name:"钦州市",children:[{code:450702,name:"钦南区"},{code:450703,name:"钦北区"},{code:450721,name:"灵山县"},{code:450722,name:"浦北县"}]},{code:450800,name:"贵港市",children:[{code:450802,name:"港北区"},{code:450803,name:"港南区"},{code:450804,name:"覃塘区"},{code:450821,name:"平南县"},{code:450881,name:"桂平市"}]},{code:450900,name:"玉林市",children:[{code:450902,name:"玉州区"},{code:450903,name:"福绵区"},{code:450921,name:"容县"},{code:450922,name:"陆川县"},{code:450923,name:"博白县"},{code:450924,name:"兴业县"},{code:450981,name:"北流市"}]},{code:451e3,name:"百色市",children:[{code:451002,name:"右江区"},{code:451003,name:"田阳区"},{code:451022,name:"田东县"},{code:451024,name:"德保县"},{code:451026,name:"那坡县"},{code:451027,name:"凌云县"},{code:451028,name:"乐业县"},{code:451029,name:"田林县"},{code:451030,name:"西林县"},{code:451031,name:"隆林各族自治县"},{code:451081,name:"靖西市"},{code:451082,name:"平果市"}]},{code:451100,name:"贺州市",children:[{code:451102,name:"八步区"},{code:451103,name:"平桂区"},{code:451121,name:"昭平县"},{code:451122,name:"钟山县"},{code:451123,name:"富川瑶族自治县"}]},{code:451200,name:"河池市",children:[{code:451202,name:"金城江区"},{code:451203,name:"宜州区"},{code:451221,name:"南丹县"},{code:451222,name:"天峨县"},{code:451223,name:"凤山县"},{code:451224,name:"东兰县"},{code:451225,name:"罗城仫佬族自治县"},{code:451226,name:"环江毛南族自治县"},{code:451227,name:"巴马瑶族自治县"},{code:451228,name:"都安瑶族自治县"},{code:451229,name:"大化瑶族自治县"}]},{code:451300,name:"来宾市",children:[{code:451302,name:"兴宾区"},{code:451321,name:"忻城县"},{code:451322,name:"象州县"},{code:451323,name:"武宣县"},{code:451324,name:"金秀瑶族自治县"},{code:451381,name:"合山市"}]},{code:451400,name:"崇左市",children:[{code:451402,name:"江州区"},{code:451421,name:"扶绥县"},{code:451422,name:"宁明县"},{code:451423,name:"龙州县"},{code:451424,name:"大新县"},{code:451425,name:"天等县"},{code:451481,name:"凭祥市"}]}]},{code:46e4,name:"海南省",children:[{code:460100,name:"海口市",children:[{code:460105,name:"秀英区"},{code:460106,name:"龙华区"},{code:460107,name:"琼山区"},{code:460108,name:"美兰区"}]},{code:460200,name:"三亚市",children:[{code:460202,name:"海棠区"},{code:460203,name:"吉阳区"},{code:460204,name:"天涯区"},{code:460205,name:"崖州区"}]},{code:460300,name:"三沙市",children:[{code:460321,name:"西沙群岛"},{code:460322,name:"南沙群岛"},{code:460323,name:"中沙群岛的岛礁及其海域"}]},{code:460400,name:"儋州市",children:[{code:460400100,name:"那大镇"},{code:460400101,name:"和庆镇"},{code:460400102,name:"南丰镇"},{code:460400103,name:"大成镇"},{code:460400104,name:"雅星镇"},{code:460400105,name:"兰洋镇"},{code:460400106,name:"光村镇"},{code:460400107,name:"木棠镇"},{code:460400108,name:"海头镇"},{code:460400109,name:"峨蔓镇"},{code:460400111,name:"王五镇"},{code:460400112,name:"白马井镇"},{code:460400113,name:"中和镇"},{code:460400114,name:"排浦镇"},{code:460400115,name:"东成镇"},{code:460400116,name:"新州镇"},{code:460400499,name:"洋浦经济开发区"},{code:460400500,name:"华南热作学院"}]},{code:469e3,name:"省直辖县级行政区划",children:[{code:469001,name:"五指山市"},{code:469002,name:"琼海市"},{code:469005,name:"文昌市"},{code:469006,name:"万宁市"},{code:469007,name:"东方市"},{code:469021,name:"定安县"},{code:469022,name:"屯昌县"},{code:469023,name:"澄迈县"},{code:469024,name:"临高县"},{code:469025,name:"白沙黎族自治县"},{code:469026,name:"昌江黎族自治县"},{code:469027,name:"乐东黎族自治县"},{code:469028,name:"陵水黎族自治县"},{code:469029,name:"保亭黎族苗族自治县"},{code:469030,name:"琼中黎族苗族自治县"}]}]},{code:5e5,name:"重庆市",children:[{code:500100,name:"重庆市",children:[{code:500101,name:"万州区"},{code:500102,name:"涪陵区"},{code:500103,name:"渝中区"},{code:500104,name:"大渡口区"},{code:500105,name:"江北区"},{code:500106,name:"沙坪坝区"},{code:500107,name:"九龙坡区"},{code:500108,name:"南岸区"},{code:500109,name:"北碚区"},{code:500110,name:"綦江区"},{code:500111,name:"大足区"},{code:500112,name:"渝北区"},{code:500113,name:"巴南区"},{code:500114,name:"黔江区"},{code:500115,name:"长寿区"},{code:500116,name:"江津区"},{code:500117,name:"合川区"},{code:500118,name:"永川区"},{code:500119,name:"南川区"},{code:500120,name:"璧山区"},{code:500151,name:"铜梁区"},{code:500152,name:"潼南区"},{code:500153,name:"荣昌区"},{code:500154,name:"开州区"},{code:500155,name:"梁平区"},{code:500156,name:"武隆区"}]},{code:500200,name:"县",children:[{code:500229,name:"城口县"},{code:500230,name:"丰都县"},{code:500231,name:"垫江县"},{code:500233,name:"忠县"},{code:500235,name:"云阳县"},{code:500236,name:"奉节县"},{code:500237,name:"巫山县"},{code:500238,name:"巫溪县"},{code:500240,name:"石柱土家族自治县"},{code:500241,name:"秀山土家族苗族自治县"},{code:500242,name:"酉阳土家族苗族自治县"},{code:500243,name:"彭水苗族土家族自治县"}]}]},{code:51e4,name:"四川省",children:[{code:510100,name:"成都市",children:[{code:510104,name:"锦江区"},{code:510105,name:"青羊区"},{code:510106,name:"金牛区"},{code:510107,name:"武侯区"},{code:510108,name:"成华区"},{code:510112,name:"龙泉驿区"},{code:510113,name:"青白江区"},{code:510114,name:"新都区"},{code:510115,name:"温江区"},{code:510116,name:"双流区"},{code:510117,name:"郫都区"},{code:510118,name:"新津区"},{code:510121,name:"金堂县"},{code:510129,name:"大邑县"},{code:510131,name:"蒲江县"},{code:510181,name:"都江堰市"},{code:510182,name:"彭州市"},{code:510183,name:"邛崃市"},{code:510184,name:"崇州市"},{code:510185,name:"简阳市"}]},{code:510300,name:"自贡市",children:[{code:510302,name:"自流井区"},{code:510303,name:"贡井区"},{code:510304,name:"大安区"},{code:510311,name:"沿滩区"},{code:510321,name:"荣县"},{code:510322,name:"富顺县"}]},{code:510400,name:"攀枝花市",children:[{code:510402,name:"东区"},{code:510403,name:"西区"},{code:510411,name:"仁和区"},{code:510421,name:"米易县"},{code:510422,name:"盐边县"}]},{code:510500,name:"泸州市",children:[{code:510502,name:"江阳区"},{code:510503,name:"纳溪区"},{code:510504,name:"龙马潭区"},{code:510521,name:"泸县"},{code:510522,name:"合江县"},{code:510524,name:"叙永县"},{code:510525,name:"古蔺县"}]},{code:510600,name:"德阳市",children:[{code:510603,name:"旌阳区"},{code:510604,name:"罗江区"},{code:510623,name:"中江县"},{code:510681,name:"广汉市"},{code:510682,name:"什邡市"},{code:510683,name:"绵竹市"}]},{code:510700,name:"绵阳市",children:[{code:510703,name:"涪城区"},{code:510704,name:"游仙区"},{code:510705,name:"安州区"},{code:510722,name:"三台县"},{code:510723,name:"盐亭县"},{code:510725,name:"梓潼县"},{code:510726,name:"北川羌族自治县"},{code:510727,name:"平武县"},{code:510781,name:"江油市"}]},{code:510800,name:"广元市",children:[{code:510802,name:"利州区"},{code:510811,name:"昭化区"},{code:510812,name:"朝天区"},{code:510821,name:"旺苍县"},{code:510822,name:"青川县"},{code:510823,name:"剑阁县"},{code:510824,name:"苍溪县"}]},{code:510900,name:"遂宁市",children:[{code:510903,name:"船山区"},{code:510904,name:"安居区"},{code:510921,name:"蓬溪县"},{code:510923,name:"大英县"},{code:510981,name:"射洪市"}]},{code:511e3,name:"内江市",children:[{code:511002,name:"市中区"},{code:511011,name:"东兴区"},{code:511024,name:"威远县"},{code:511025,name:"资中县"},{code:511071,name:"内江经济开发区"},{code:511083,name:"隆昌市"}]},{code:511100,name:"乐山市",children:[{code:511102,name:"市中区"},{code:511111,name:"沙湾区"},{code:511112,name:"五通桥区"},{code:511113,name:"金口河区"},{code:511123,name:"犍为县"},{code:511124,name:"井研县"},{code:511126,name:"夹江县"},{code:511129,name:"沐川县"},{code:511132,name:"峨边彝族自治县"},{code:511133,name:"马边彝族自治县"},{code:511181,name:"峨眉山市"}]},{code:511300,name:"南充市",children:[{code:511302,name:"顺庆区"},{code:511303,name:"高坪区"},{code:511304,name:"嘉陵区"},{code:511321,name:"南部县"},{code:511322,name:"营山县"},{code:511323,name:"蓬安县"},{code:511324,name:"仪陇县"},{code:511325,name:"西充县"},{code:511381,name:"阆中市"}]},{code:511400,name:"眉山市",children:[{code:511402,name:"东坡区"},{code:511403,name:"彭山区"},{code:511421,name:"仁寿县"},{code:511423,name:"洪雅县"},{code:511424,name:"丹棱县"},{code:511425,name:"青神县"}]},{code:511500,name:"宜宾市",children:[{code:511502,name:"翠屏区"},{code:511503,name:"南溪区"},{code:511504,name:"叙州区"},{code:511523,name:"江安县"},{code:511524,name:"长宁县"},{code:511525,name:"高县"},{code:511526,name:"珙县"},{code:511527,name:"筠连县"},{code:511528,name:"兴文县"},{code:511529,name:"屏山县"}]},{code:511600,name:"广安市",children:[{code:511602,name:"广安区"},{code:511603,name:"前锋区"},{code:511621,name:"岳池县"},{code:511622,name:"武胜县"},{code:511623,name:"邻水县"},{code:511681,name:"华蓥市"}]},{code:511700,name:"达州市",children:[{code:511702,name:"通川区"},{code:511703,name:"达川区"},{code:511722,name:"宣汉县"},{code:511723,name:"开江县"},{code:511724,name:"大竹县"},{code:511725,name:"渠县"},{code:511771,name:"达州经济开发区"},{code:511781,name:"万源市"}]},{code:511800,name:"雅安市",children:[{code:511802,name:"雨城区"},{code:511803,name:"名山区"},{code:511822,name:"荥经县"},{code:511823,name:"汉源县"},{code:511824,name:"石棉县"},{code:511825,name:"天全县"},{code:511826,name:"芦山县"},{code:511827,name:"宝兴县"}]},{code:511900,name:"巴中市",children:[{code:511902,name:"巴州区"},{code:511903,name:"恩阳区"},{code:511921,name:"通江县"},{code:511922,name:"南江县"},{code:511923,name:"平昌县"},{code:511971,name:"巴中经济开发区"}]},{code:512e3,name:"资阳市",children:[{code:512002,name:"雁江区"},{code:512021,name:"安岳县"},{code:512022,name:"乐至县"}]},{code:513200,name:"阿坝藏族羌族自治州",children:[{code:513201,name:"马尔康市"},{code:513221,name:"汶川县"},{code:513222,name:"理县"},{code:513223,name:"茂县"},{code:513224,name:"松潘县"},{code:513225,name:"九寨沟县"},{code:513226,name:"金川县"},{code:513227,name:"小金县"},{code:513228,name:"黑水县"},{code:513230,name:"壤塘县"},{code:513231,name:"阿坝县"},{code:513232,name:"若尔盖县"},{code:513233,name:"红原县"}]},{code:513300,name:"甘孜藏族自治州",children:[{code:513301,name:"康定市"},{code:513322,name:"泸定县"},{code:513323,name:"丹巴县"},{code:513324,name:"九龙县"},{code:513325,name:"雅江县"},{code:513326,name:"道孚县"},{code:513327,name:"炉霍县"},{code:513328,name:"甘孜县"},{code:513329,name:"新龙县"},{code:513330,name:"德格县"},{code:513331,name:"白玉县"},{code:513332,name:"石渠县"},{code:513333,name:"色达县"},{code:513334,name:"理塘县"},{code:513335,name:"巴塘县"},{code:513336,name:"乡城县"},{code:513337,name:"稻城县"},{code:513338,name:"得荣县"}]},{code:513400,name:"凉山彝族自治州",children:[{code:513401,name:"西昌市"},{code:513422,name:"木里藏族自治县"},{code:513423,name:"盐源县"},{code:513424,name:"德昌县"},{code:513425,name:"会理县"},{code:513426,name:"会东县"},{code:513427,name:"宁南县"},{code:513428,name:"普格县"},{code:513429,name:"布拖县"},{code:513430,name:"金阳县"},{code:513431,name:"昭觉县"},{code:513432,name:"喜德县"},{code:513433,name:"冕宁县"},{code:513434,name:"越西县"},{code:513435,name:"甘洛县"},{code:513436,name:"美姑县"},{code:513437,name:"雷波县"}]}]},{code:52e4,name:"贵州省",children:[{code:520100,name:"贵阳市",children:[{code:520102,name:"南明区"},{code:520103,name:"云岩区"},{code:520111,name:"花溪区"},{code:520112,name:"乌当区"},{code:520113,name:"白云区"},{code:520115,name:"观山湖区"},{code:520121,name:"开阳县"},{code:520122,name:"息烽县"},{code:520123,name:"修文县"},{code:520181,name:"清镇市"}]},{code:520200,name:"六盘水市",children:[{code:520201,name:"钟山区"},{code:520203,name:"六枝特区"},{code:520221,name:"水城县"},{code:520281,name:"盘州市"}]},{code:520300,name:"遵义市",children:[{code:520302,name:"红花岗区"},{code:520303,name:"汇川区"},{code:520304,name:"播州区"},{code:520322,name:"桐梓县"},{code:520323,name:"绥阳县"},{code:520324,name:"正安县"},{code:520325,name:"道真仡佬族苗族自治县"},{code:520326,name:"务川仡佬族苗族自治县"},{code:520327,name:"凤冈县"},{code:520328,name:"湄潭县"},{code:520329,name:"余庆县"},{code:520330,name:"习水县"},{code:520381,name:"赤水市"},{code:520382,name:"仁怀市"}]},{code:520400,name:"安顺市",children:[{code:520402,name:"西秀区"},{code:520403,name:"平坝区"},{code:520422,name:"普定县"},{code:520423,name:"镇宁布依族苗族自治县"},{code:520424,name:"关岭布依族苗族自治县"},{code:520425,name:"紫云苗族布依族自治县"}]},{code:520500,name:"毕节市",children:[{code:520502,name:"七星关区"},{code:520521,name:"大方县"},{code:520522,name:"黔西县"},{code:520523,name:"金沙县"},{code:520524,name:"织金县"},{code:520525,name:"纳雍县"},{code:520526,name:"威宁彝族回族苗族自治县"},{code:520527,name:"赫章县"}]},{code:520600,name:"铜仁市",children:[{code:520602,name:"碧江区"},{code:520603,name:"万山区"},{code:520621,name:"江口县"},{code:520622,name:"玉屏侗族自治县"},{code:520623,name:"石阡县"},{code:520624,name:"思南县"},{code:520625,name:"印江土家族苗族自治县"},{code:520626,name:"德江县"},{code:520627,name:"沿河土家族自治县"},{code:520628,name:"松桃苗族自治县"}]},{code:522300,name:"黔西南布依族苗族自治州",children:[{code:522301,name:"兴义市"},{code:522302,name:"兴仁市"},{code:522323,name:"普安县"},{code:522324,name:"晴隆县"},{code:522325,name:"贞丰县"},{code:522326,name:"望谟县"},{code:522327,name:"册亨县"},{code:522328,name:"安龙县"}]},{code:522600,name:"黔东南苗族侗族自治州",children:[{code:522601,name:"凯里市"},{code:522622,name:"黄平县"},{code:522623,name:"施秉县"},{code:522624,name:"三穗县"},{code:522625,name:"镇远县"},{code:522626,name:"岑巩县"},{code:522627,name:"天柱县"},{code:522628,name:"锦屏县"},{code:522629,name:"剑河县"},{code:522630,name:"台江县"},{code:522631,name:"黎平县"},{code:522632,name:"榕江县"},{code:522633,name:"从江县"},{code:522634,name:"雷山县"},{code:522635,name:"麻江县"},{code:522636,name:"丹寨县"}]},{code:522700,name:"黔南布依族苗族自治州",children:[{code:522701,name:"都匀市"},{code:522702,name:"福泉市"},{code:522722,name:"荔波县"},{code:522723,name:"贵定县"},{code:522725,name:"瓮安县"},{code:522726,name:"独山县"},{code:522727,name:"平塘县"},{code:522728,name:"罗甸县"},{code:522729,name:"长顺县"},{code:522730,name:"龙里县"},{code:522731,name:"惠水县"},{code:522732,name:"三都水族自治县"}]}]},{code:53e4,name:"云南省",children:[{code:530100,name:"昆明市",children:[{code:530102,name:"五华区"},{code:530103,name:"盘龙区"},{code:530111,name:"官渡区"},{code:530112,name:"西山区"},{code:530113,name:"东川区"},{code:530114,name:"呈贡区"},{code:530115,name:"晋宁区"},{code:530124,name:"富民县"},{code:530125,name:"宜良县"},{code:530126,name:"石林彝族自治县"},{code:530127,name:"嵩明县"},{code:530128,name:"禄劝彝族苗族自治县"},{code:530129,name:"寻甸回族彝族自治县"},{code:530181,name:"安宁市"}]},{code:530300,name:"曲靖市",children:[{code:530302,name:"麒麟区"},{code:530303,name:"沾益区"},{code:530304,name:"马龙区"},{code:530322,name:"陆良县"},{code:530323,name:"师宗县"},{code:530324,name:"罗平县"},{code:530325,name:"富源县"},{code:530326,name:"会泽县"},{code:530381,name:"宣威市"}]},{code:530400,name:"玉溪市",children:[{code:530402,name:"红塔区"},{code:530403,name:"江川区"},{code:530423,name:"通海县"},{code:530424,name:"华宁县"},{code:530425,name:"易门县"},{code:530426,name:"峨山彝族自治县"},{code:530427,name:"新平彝族傣族自治县"},{code:530428,name:"元江哈尼族彝族傣族自治县"},{code:530481,name:"澄江市"}]},{code:530500,name:"保山市",children:[{code:530502,name:"隆阳区"},{code:530521,name:"施甸县"},{code:530523,name:"龙陵县"},{code:530524,name:"昌宁县"},{code:530581,name:"腾冲市"}]},{code:530600,name:"昭通市",children:[{code:530602,name:"昭阳区"},{code:530621,name:"鲁甸县"},{code:530622,name:"巧家县"},{code:530623,name:"盐津县"},{code:530624,name:"大关县"},{code:530625,name:"永善县"},{code:530626,name:"绥江县"},{code:530627,name:"镇雄县"},{code:530628,name:"彝良县"},{code:530629,name:"威信县"},{code:530681,name:"水富市"}]},{code:530700,name:"丽江市",children:[{code:530702,name:"古城区"},{code:530721,name:"玉龙纳西族自治县"},{code:530722,name:"永胜县"},{code:530723,name:"华坪县"},{code:530724,name:"宁蒗彝族自治县"}]},{code:530800,name:"普洱市",children:[{code:530802,name:"思茅区"},{code:530821,name:"宁洱哈尼族彝族自治县"},{code:530822,name:"墨江哈尼族自治县"},{code:530823,name:"景东彝族自治县"},{code:530824,name:"景谷傣族彝族自治县"},{code:530825,name:"镇沅彝族哈尼族拉祜族自治县"},{code:530826,name:"江城哈尼族彝族自治县"},{code:530827,name:"孟连傣族拉祜族佤族自治县"},{code:530828,name:"澜沧拉祜族自治县"},{code:530829,name:"西盟佤族自治县"}]},{code:530900,name:"临沧市",children:[{code:530902,name:"临翔区"},{code:530921,name:"凤庆县"},{code:530922,name:"云县"},{code:530923,name:"永德县"},{code:530924,name:"镇康县"},{code:530925,name:"双江拉祜族佤族布朗族傣族自治县"},{code:530926,name:"耿马傣族佤族自治县"},{code:530927,name:"沧源佤族自治县"}]},{code:532300,name:"楚雄彝族自治州",children:[{code:532301,name:"楚雄市"},{code:532322,name:"双柏县"},{code:532323,name:"牟定县"},{code:532324,name:"南华县"},{code:532325,name:"姚安县"},{code:532326,name:"大姚县"},{code:532327,name:"永仁县"},{code:532328,name:"元谋县"},{code:532329,name:"武定县"},{code:532331,name:"禄丰县"}]},{code:532500,name:"红河哈尼族彝族自治州",children:[{code:532501,name:"个旧市"},{code:532502,name:"开远市"},{code:532503,name:"蒙自市"},{code:532504,name:"弥勒市"},{code:532523,name:"屏边苗族自治县"},{code:532524,name:"建水县"},{code:532525,name:"石屏县"},{code:532527,name:"泸西县"},{code:532528,name:"元阳县"},{code:532529,name:"红河县"},{code:532530,name:"金平苗族瑶族傣族自治县"},{code:532531,name:"绿春县"},{code:532532,name:"河口瑶族自治县"}]},{code:532600,name:"文山壮族苗族自治州",children:[{code:532601,name:"文山市"},{code:532622,name:"砚山县"},{code:532623,name:"西畴县"},{code:532624,name:"麻栗坡县"},{code:532625,name:"马关县"},{code:532626,name:"丘北县"},{code:532627,name:"广南县"},{code:532628,name:"富宁县"}]},{code:532800,name:"西双版纳傣族自治州",children:[{code:532801,name:"景洪市"},{code:532822,name:"勐海县"},{code:532823,name:"勐腊县"}]},{code:532900,name:"大理白族自治州",children:[{code:532901,name:"大理市"},{code:532922,name:"漾濞彝族自治县"},{code:532923,name:"祥云县"},{code:532924,name:"宾川县"},{code:532925,name:"弥渡县"},{code:532926,name:"南涧彝族自治县"},{code:532927,name:"巍山彝族回族自治县"},{code:532928,name:"永平县"},{code:532929,name:"云龙县"},{code:532930,name:"洱源县"},{code:532931,name:"剑川县"},{code:532932,name:"鹤庆县"}]},{code:533100,name:"德宏傣族景颇族自治州",children:[{code:533102,name:"瑞丽市"},{code:533103,name:"芒市"},{code:533122,name:"梁河县"},{code:533123,name:"盈江县"},{code:533124,name:"陇川县"}]},{code:533300,name:"怒江傈僳族自治州",children:[{code:533301,name:"泸水市"},{code:533323,name:"福贡县"},{code:533324,name:"贡山独龙族怒族自治县"},{code:533325,name:"兰坪白族普米族自治县"}]},{code:533400,name:"迪庆藏族自治州",children:[{code:533401,name:"香格里拉市"},{code:533422,name:"德钦县"},{code:533423,name:"维西傈僳族自治县"}]}]},{code:54e4,name:"西藏自治区",children:[{code:540100,name:"拉萨市",children:[{code:540102,name:"城关区"},{code:540103,name:"堆龙德庆区"},{code:540104,name:"达孜区"},{code:540121,name:"林周县"},{code:540122,name:"当雄县"},{code:540123,name:"尼木县"},{code:540124,name:"曲水县"},{code:540127,name:"墨竹工卡县"},{code:540171,name:"格尔木藏青工业园区"},{code:540172,name:"拉萨经济技术开发区"},{code:540173,name:"西藏文化旅游创意园区"},{code:540174,name:"达孜工业园区"}]},{code:540200,name:"日喀则市",children:[{code:540202,name:"桑珠孜区"},{code:540221,name:"南木林县"},{code:540222,name:"江孜县"},{code:540223,name:"定日县"},{code:540224,name:"萨迦县"},{code:540225,name:"拉孜县"},{code:540226,name:"昂仁县"},{code:540227,name:"谢通门县"},{code:540228,name:"白朗县"},{code:540229,name:"仁布县"},{code:540230,name:"康马县"},{code:540231,name:"定结县"},{code:540232,name:"仲巴县"},{code:540233,name:"亚东县"},{code:540234,name:"吉隆县"},{code:540235,name:"聂拉木县"},{code:540236,name:"萨嘎县"},{code:540237,name:"岗巴县"}]},{code:540300,name:"昌都市",children:[{code:540302,name:"卡若区"},{code:540321,name:"江达县"},{code:540322,name:"贡觉县"},{code:540323,name:"类乌齐县"},{code:540324,name:"丁青县"},{code:540325,name:"察雅县"},{code:540326,name:"八宿县"},{code:540327,name:"左贡县"},{code:540328,name:"芒康县"},{code:540329,name:"洛隆县"},{code:540330,name:"边坝县"}]},{code:540400,name:"林芝市",children:[{code:540402,name:"巴宜区"},{code:540421,name:"工布江达县"},{code:540422,name:"米林县"},{code:540423,name:"墨脱县"},{code:540424,name:"波密县"},{code:540425,name:"察隅县"},{code:540426,name:"朗县"}]},{code:540500,name:"山南市",children:[{code:540502,name:"乃东区"},{code:540521,name:"扎囊县"},{code:540522,name:"贡嘎县"},{code:540523,name:"桑日县"},{code:540524,name:"琼结县"},{code:540525,name:"曲松县"},{code:540526,name:"措美县"},{code:540527,name:"洛扎县"},{code:540528,name:"加查县"},{code:540529,name:"隆子县"},{code:540530,name:"错那县"},{code:540531,name:"浪卡子县"}]},{code:540600,name:"那曲市",children:[{code:540602,name:"色尼区"},{code:540621,name:"嘉黎县"},{code:540622,name:"比如县"},{code:540623,name:"聂荣县"},{code:540624,name:"安多县"},{code:540625,name:"申扎县"},{code:540626,name:"索县"},{code:540627,name:"班戈县"},{code:540628,name:"巴青县"},{code:540629,name:"尼玛县"},{code:540630,name:"双湖县"}]},{code:542500,name:"阿里地区",children:[{code:542521,name:"普兰县"},{code:542522,name:"札达县"},{code:542523,name:"噶尔县"},{code:542524,name:"日土县"},{code:542525,name:"革吉县"},{code:542526,name:"改则县"},{code:542527,name:"措勤县"}]}]},{code:61e4,name:"陕西省",children:[{code:610100,name:"西安市",children:[{code:610102,name:"新城区"},{code:610103,name:"碑林区"},{code:610104,name:"莲湖区"},{code:610111,name:"灞桥区"},{code:610112,name:"未央区"},{code:610113,name:"雁塔区"},{code:610114,name:"阎良区"},{code:610115,name:"临潼区"},{code:610116,name:"长安区"},{code:610117,name:"高陵区"},{code:610118,name:"鄠邑区"},{code:610122,name:"蓝田县"},{code:610124,name:"周至县"}]},{code:610200,name:"铜川市",children:[{code:610202,name:"王益区"},{code:610203,name:"印台区"},{code:610204,name:"耀州区"},{code:610222,name:"宜君县"}]},{code:610300,name:"宝鸡市",children:[{code:610302,name:"渭滨区"},{code:610303,name:"金台区"},{code:610304,name:"陈仓区"},{code:610322,name:"凤翔县"},{code:610323,name:"岐山县"},{code:610324,name:"扶风县"},{code:610326,name:"眉县"},{code:610327,name:"陇县"},{code:610328,name:"千阳县"},{code:610329,name:"麟游县"},{code:610330,name:"凤县"},{code:610331,name:"太白县"}]},{code:610400,name:"咸阳市",children:[{code:610402,name:"秦都区"},{code:610403,name:"杨陵区"},{code:610404,name:"渭城区"},{code:610422,name:"三原县"},{code:610423,name:"泾阳县"},{code:610424,name:"乾县"},{code:610425,name:"礼泉县"},{code:610426,name:"永寿县"},{code:610428,name:"长武县"},{code:610429,name:"旬邑县"},{code:610430,name:"淳化县"},{code:610431,name:"武功县"},{code:610481,name:"兴平市"},{code:610482,name:"彬州市"}]},{code:610500,name:"渭南市",children:[{code:610502,name:"临渭区"},{code:610503,name:"华州区"},{code:610522,name:"潼关县"},{code:610523,name:"大荔县"},{code:610524,name:"合阳县"},{code:610525,name:"澄城县"},{code:610526,name:"蒲城县"},{code:610527,name:"白水县"},{code:610528,name:"富平县"},{code:610581,name:"韩城市"},{code:610582,name:"华阴市"}]},{code:610600,name:"延安市",children:[{code:610602,name:"宝塔区"},{code:610603,name:"安塞区"},{code:610621,name:"延长县"},{code:610622,name:"延川县"},{code:610625,name:"志丹县"},{code:610626,name:"吴起县"},{code:610627,name:"甘泉县"},{code:610628,name:"富县"},{code:610629,name:"洛川县"},{code:610630,name:"宜川县"},{code:610631,name:"黄龙县"},{code:610632,name:"黄陵县"},{code:610681,name:"子长市"}]},{code:610700,name:"汉中市",children:[{code:610702,name:"汉台区"},{code:610703,name:"南郑区"},{code:610722,name:"城固县"},{code:610723,name:"洋县"},{code:610724,name:"西乡县"},{code:610725,name:"勉县"},{code:610726,name:"宁强县"},{code:610727,name:"略阳县"},{code:610728,name:"镇巴县"},{code:610729,name:"留坝县"},{code:610730,name:"佛坪县"}]},{code:610800,name:"榆林市",children:[{code:610802,name:"榆阳区"},{code:610803,name:"横山区"},{code:610822,name:"府谷县"},{code:610824,name:"靖边县"},{code:610825,name:"定边县"},{code:610826,name:"绥德县"},{code:610827,name:"米脂县"},{code:610828,name:"佳县"},{code:610829,name:"吴堡县"},{code:610830,name:"清涧县"},{code:610831,name:"子洲县"},{code:610881,name:"神木市"}]},{code:610900,name:"安康市",children:[{code:610902,name:"汉滨区"},{code:610921,name:"汉阴县"},{code:610922,name:"石泉县"},{code:610923,name:"宁陕县"},{code:610924,name:"紫阳县"},{code:610925,name:"岚皋县"},{code:610926,name:"平利县"},{code:610927,name:"镇坪县"},{code:610928,name:"旬阳县"},{code:610929,name:"白河县"}]},{code:611e3,name:"商洛市",children:[{code:611002,name:"商州区"},{code:611021,name:"洛南县"},{code:611022,name:"丹凤县"},{code:611023,name:"商南县"},{code:611024,name:"山阳县"},{code:611025,name:"镇安县"},{code:611026,name:"柞水县"}]}]},{code:62e4,name:"甘肃省",children:[{code:620100,name:"兰州市",children:[{code:620102,name:"城关区"},{code:620103,name:"七里河区"},{code:620104,name:"西固区"},{code:620105,name:"安宁区"},{code:620111,name:"红古区"},{code:620121,name:"永登县"},{code:620122,name:"皋兰县"},{code:620123,name:"榆中县"},{code:620171,name:"兰州新区"}]},{code:620200,name:"嘉峪关市",children:[{code:620201001,name:"雄关街道"},{code:620201002,name:"钢城街道"},{code:620201100,name:"新城镇"},{code:620201101,name:"峪泉镇"},{code:620201102,name:"文殊镇"}]},{code:620300,name:"金昌市",children:[{code:620302,name:"金川区"},{code:620321,name:"永昌县"}]},{code:620400,name:"白银市",children:[{code:620402,name:"白银区"},{code:620403,name:"平川区"},{code:620421,name:"靖远县"},{code:620422,name:"会宁县"},{code:620423,name:"景泰县"}]},{code:620500,name:"天水市",children:[{code:620502,name:"秦州区"},{code:620503,name:"麦积区"},{code:620521,name:"清水县"},{code:620522,name:"秦安县"},{code:620523,name:"甘谷县"},{code:620524,name:"武山县"},{code:620525,name:"张家川回族自治县"}]},{code:620600,name:"武威市",children:[{code:620602,name:"凉州区"},{code:620621,name:"民勤县"},{code:620622,name:"古浪县"},{code:620623,name:"天祝藏族自治县"}]},{code:620700,name:"张掖市",children:[{code:620702,name:"甘州区"},{code:620721,name:"肃南裕固族自治县"},{code:620722,name:"民乐县"},{code:620723,name:"临泽县"},{code:620724,name:"高台县"},{code:620725,name:"山丹县"}]},{code:620800,name:"平凉市",children:[{code:620802,name:"崆峒区"},{code:620821,name:"泾川县"},{code:620822,name:"灵台县"},{code:620823,name:"崇信县"},{code:620825,name:"庄浪县"},{code:620826,name:"静宁县"},{code:620881,name:"华亭市"}]},{code:620900,name:"酒泉市",children:[{code:620902,name:"肃州区"},{code:620921,name:"金塔县"},{code:620922,name:"瓜州县"},{code:620923,name:"肃北蒙古族自治县"},{code:620924,name:"阿克塞哈萨克族自治县"},{code:620981,name:"玉门市"},{code:620982,name:"敦煌市"}]},{code:621e3,name:"庆阳市",children:[{code:621002,name:"西峰区"},{code:621021,name:"庆城县"},{code:621022,name:"环县"},{code:621023,name:"华池县"},{code:621024,name:"合水县"},{code:621025,name:"正宁县"},{code:621026,name:"宁县"},{code:621027,name:"镇原县"}]},{code:621100,name:"定西市",children:[{code:621102,name:"安定区"},{code:621121,name:"通渭县"},{code:621122,name:"陇西县"},{code:621123,name:"渭源县"},{code:621124,name:"临洮县"},{code:621125,name:"漳县"},{code:621126,name:"岷县"}]},{code:621200,name:"陇南市",children:[{code:621202,name:"武都区"},{code:621221,name:"成县"},{code:621222,name:"文县"},{code:621223,name:"宕昌县"},{code:621224,name:"康县"},{code:621225,name:"西和县"},{code:621226,name:"礼县"},{code:621227,name:"徽县"},{code:621228,name:"两当县"}]},{code:622900,name:"临夏回族自治州",children:[{code:622901,name:"临夏市"},{code:622921,name:"临夏县"},{code:622922,name:"康乐县"},{code:622923,name:"永靖县"},{code:622924,name:"广河县"},{code:622925,name:"和政县"},{code:622926,name:"东乡族自治县"},{code:622927,name:"积石山保安族东乡族撒拉族自治县"}]},{code:623e3,name:"甘南藏族自治州",children:[{code:623001,name:"合作市"},{code:623021,name:"临潭县"},{code:623022,name:"卓尼县"},{code:623023,name:"舟曲县"},{code:623024,name:"迭部县"},{code:623025,name:"玛曲县"},{code:623026,name:"碌曲县"},{code:623027,name:"夏河县"}]}]},{code:63e4,name:"青海省",children:[{code:630100,name:"西宁市",children:[{code:630102,name:"城东区"},{code:630103,name:"城中区"},{code:630104,name:"城西区"},{code:630105,name:"城北区"},{code:630106,name:"湟中区"},{code:630121,name:"大通回族土族自治县"},{code:630123,name:"湟源县"}]},{code:630200,name:"海东市",children:[{code:630202,name:"乐都区"},{code:630203,name:"平安区"},{code:630222,name:"民和回族土族自治县"},{code:630223,name:"互助土族自治县"},{code:630224,name:"化隆回族自治县"},{code:630225,name:"循化撒拉族自治县"}]},{code:632200,name:"海北藏族自治州",children:[{code:632221,name:"门源回族自治县"},{code:632222,name:"祁连县"},{code:632223,name:"海晏县"},{code:632224,name:"刚察县"}]},{code:632300,name:"黄南藏族自治州",children:[{code:632321,name:"同仁县"},{code:632322,name:"尖扎县"},{code:632323,name:"泽库县"},{code:632324,name:"河南蒙古族自治县"}]},{code:632500,name:"海南藏族自治州",children:[{code:632521,name:"共和县"},{code:632522,name:"同德县"},{code:632523,name:"贵德县"},{code:632524,name:"兴海县"},{code:632525,name:"贵南县"}]},{code:632600,name:"果洛藏族自治州",children:[{code:632621,name:"玛沁县"},{code:632622,name:"班玛县"},{code:632623,name:"甘德县"},{code:632624,name:"达日县"},{code:632625,name:"久治县"},{code:632626,name:"玛多县"}]},{code:632700,name:"玉树藏族自治州",children:[{code:632701,name:"玉树市"},{code:632722,name:"杂多县"},{code:632723,name:"称多县"},{code:632724,name:"治多县"},{code:632725,name:"囊谦县"},{code:632726,name:"曲麻莱县"}]},{code:632800,name:"海西蒙古族藏族自治州",children:[{code:632801,name:"格尔木市"},{code:632802,name:"德令哈市"},{code:632803,name:"茫崖市"},{code:632821,name:"乌兰县"},{code:632822,name:"都兰县"},{code:632823,name:"天峻县"},{code:632857,name:"大柴旦行政委员会"}]}]},{code:64e4,name:"宁夏回族自治区",children:[{code:640100,name:"银川市",children:[{code:640104,name:"兴庆区"},{code:640105,name:"西夏区"},{code:640106,name:"金凤区"},{code:640121,name:"永宁县"},{code:640122,name:"贺兰县"},{code:640181,name:"灵武市"}]},{code:640200,name:"石嘴山市",children:[{code:640202,name:"大武口区"},{code:640205,name:"惠农区"},{code:640221,name:"平罗县"}]},{code:640300,name:"吴忠市",children:[{code:640302,name:"利通区"},{code:640303,name:"红寺堡区"},{code:640323,name:"盐池县"},{code:640324,name:"同心县"},{code:640381,name:"青铜峡市"}]},{code:640400,name:"固原市",children:[{code:640402,name:"原州区"},{code:640422,name:"西吉县"},{code:640423,name:"隆德县"},{code:640424,name:"泾源县"},{code:640425,name:"彭阳县"}]},{code:640500,name:"中卫市",children:[{code:640502,name:"沙坡头区"},{code:640521,name:"中宁县"},{code:640522,name:"海原县"}]}]},{code:65e4,name:"新疆维吾尔自治区",children:[{code:650100,name:"乌鲁木齐市",children:[{code:650102,name:"天山区"},{code:650103,name:"沙依巴克区"},{code:650104,name:"新市区"},{code:650105,name:"水磨沟区"},{code:650106,name:"头屯河区"},{code:650107,name:"达坂城区"},{code:650109,name:"米东区"},{code:650121,name:"乌鲁木齐县"}]},{code:650200,name:"克拉玛依市",children:[{code:650202,name:"独山子区"},{code:650203,name:"克拉玛依区"},{code:650204,name:"白碱滩区"},{code:650205,name:"乌尔禾区"}]},{code:650400,name:"吐鲁番市",children:[{code:650402,name:"高昌区"},{code:650421,name:"鄯善县"},{code:650422,name:"托克逊县"}]},{code:650500,name:"哈密市",children:[{code:650502,name:"伊州区"},{code:650521,name:"巴里坤哈萨克自治县"},{code:650522,name:"伊吾县"}]},{code:652300,name:"昌吉回族自治州",children:[{code:652301,name:"昌吉市"},{code:652302,name:"阜康市"},{code:652323,name:"呼图壁县"},{code:652324,name:"玛纳斯县"},{code:652325,name:"奇台县"},{code:652327,name:"吉木萨尔县"},{code:652328,name:"木垒哈萨克自治县"}]},{code:652700,name:"博尔塔拉蒙古自治州",children:[{code:652701,name:"博乐市"},{code:652702,name:"阿拉山口市"},{code:652722,name:"精河县"},{code:652723,name:"温泉县"}]},{code:652800,name:"巴音郭楞蒙古自治州",children:[{code:652801,name:"库尔勒市"},{code:652822,name:"轮台县"},{code:652823,name:"尉犁县"},{code:652824,name:"若羌县"},{code:652825,name:"且末县"},{code:652826,name:"焉耆回族自治县"},{code:652827,name:"和静县"},{code:652828,name:"和硕县"},{code:652829,name:"博湖县"},{code:652871,name:"库尔勒经济技术开发区"}]},{code:652900,name:"阿克苏地区",children:[{code:652901,name:"阿克苏市"},{code:652902,name:"库车市"},{code:652922,name:"温宿县"},{code:652924,name:"沙雅县"},{code:652925,name:"新和县"},{code:652926,name:"拜城县"},{code:652927,name:"乌什县"},{code:652928,name:"阿瓦提县"},{code:652929,name:"柯坪县"}]},{code:653e3,name:"克孜勒苏柯尔克孜自治州",children:[{code:653001,name:"阿图什市"},{code:653022,name:"阿克陶县"},{code:653023,name:"阿合奇县"},{code:653024,name:"乌恰县"}]},{code:653100,name:"喀什地区",children:[{code:653101,name:"喀什市"},{code:653121,name:"疏附县"},{code:653122,name:"疏勒县"},{code:653123,name:"英吉沙县"},{code:653124,name:"泽普县"},{code:653125,name:"莎车县"},{code:653126,name:"叶城县"},{code:653127,name:"麦盖提县"},{code:653128,name:"岳普湖县"},{code:653129,name:"伽师县"},{code:653130,name:"巴楚县"},{code:653131,name:"塔什库尔干塔吉克自治县"}]},{code:653200,name:"和田地区",children:[{code:653201,name:"和田市"},{code:653221,name:"和田县"},{code:653222,name:"墨玉县"},{code:653223,name:"皮山县"},{code:653224,name:"洛浦县"},{code:653225,name:"策勒县"},{code:653226,name:"于田县"},{code:653227,name:"民丰县"}]},{code:654e3,name:"伊犁哈萨克自治州",children:[{code:654002,name:"伊宁市"},{code:654003,name:"奎屯市"},{code:654004,name:"霍尔果斯市"},{code:654021,name:"伊宁县"},{code:654022,name:"察布查尔锡伯自治县"},{code:654023,name:"霍城县"},{code:654024,name:"巩留县"},{code:654025,name:"新源县"},{code:654026,name:"昭苏县"},{code:654027,name:"特克斯县"},{code:654028,name:"尼勒克县"}]},{code:654200,name:"塔城地区",children:[{code:654201,name:"塔城市"},{code:654202,name:"乌苏市"},{code:654221,name:"额敏县"},{code:654223,name:"沙湾县"},{code:654224,name:"托里县"},{code:654225,name:"裕民县"},{code:654226,name:"和布克赛尔蒙古自治县"}]},{code:654300,name:"阿勒泰地区",children:[{code:654301,name:"阿勒泰市"},{code:654321,name:"布尔津县"},{code:654322,name:"富蕴县"},{code:654323,name:"福海县"},{code:654324,name:"哈巴河县"},{code:654325,name:"青河县"},{code:654326,name:"吉木乃县"}]},{code:659e3,name:"自治区直辖县级行政区划",children:[{code:659001,name:"石河子市"},{code:659002,name:"阿拉尔市"},{code:659003,name:"图木舒克市"},{code:659004,name:"五家渠市"},{code:659005,name:"北屯市"},{code:659006,name:"铁门关市"},{code:659007,name:"双河市"},{code:659008,name:"可克达拉市"},{code:659009,name:"昆玉市"},{code:659010,name:"胡杨河市"}]}]},{name:"台湾省",code:71e4,children:[{name:"台北市",code:710100,children:[{name:"中正区",code:710101},{name:"大同区",code:710102},{name:"中山区",code:710103},{name:"松山区",code:710104},{name:"大安区",code:710105},{name:"万华区",code:710106},{name:"信义区",code:710107},{name:"士林区",code:710108},{name:"北投区",code:710109},{name:"内湖区",code:710110},{name:"南港区",code:710111},{name:"文山区",code:710112},{name:"其它区",code:710199}]},{name:"高雄市",code:710200,children:[{name:"新兴区",code:710201},{name:"前金区",code:710202},{name:"芩雅区",code:710203},{name:"盐埕区",code:710204},{name:"鼓山区",code:710205},{name:"旗津区",code:710206},{name:"前镇区",code:710207},{name:"三民区",code:710208},{name:"左营区",code:710209},{name:"楠梓区",code:710210},{name:"小港区",code:710211},{name:"苓雅区",code:710241},{name:"仁武区",code:710242},{name:"大社区",code:710243},{name:"冈山区",code:710244},{name:"路竹区",code:710245},{name:"阿莲区",code:710246},{name:"田寮区",code:710247},{name:"燕巢区",code:710248},{name:"桥头区",code:710249},{name:"梓官区",code:710250},{name:"弥陀区",code:710251},{name:"永安区",code:710252},{name:"湖内区",code:710253},{name:"凤山区",code:710254},{name:"大寮区",code:710255},{name:"林园区",code:710256},{name:"鸟松区",code:710257},{name:"大树区",code:710258},{name:"旗山区",code:710259},{name:"美浓区",code:710260},{name:"六龟区",code:710261},{name:"内门区",code:710262},{name:"杉林区",code:710263},{name:"甲仙区",code:710264},{name:"桃源区",code:710265},{name:"那玛夏区",code:710266},{name:"茂林区",code:710267},{name:"茄萣区",code:710268},{name:"其它区",code:710299}]},{name:"台南市",code:710300,children:[{name:"中西区",code:710301},{name:"东区",code:710302},{name:"南区",code:710303},{name:"北区",code:710304},{name:"安平区",code:710305},{name:"安南区",code:710306},{name:"永康区",code:710339},{name:"归仁区",code:710340},{name:"新化区",code:710341},{name:"左镇区",code:710342},{name:"玉井区",code:710343},{name:"楠西区",code:710344},{name:"南化区",code:710345},{name:"仁德区",code:710346},{name:"关庙区",code:710347},{name:"龙崎区",code:710348},{name:"官田区",code:710349},{name:"麻豆区",code:710350},{name:"佳里区",code:710351},{name:"西港区",code:710352},{name:"七股区",code:710353},{name:"将军区",code:710354},{name:"学甲区",code:710355},{name:"北门区",code:710356},{name:"新营区",code:710357},{name:"后壁区",code:710358},{name:"白河区",code:710359},{name:"东山区",code:710360},{name:"六甲区",code:710361},{name:"下营区",code:710362},{name:"柳营区",code:710363},{name:"盐水区",code:710364},{name:"善化区",code:710365},{name:"大内区",code:710366},{name:"山上区",code:710367},{name:"新市区",code:710368},{name:"安定区",code:710369},{name:"其它区",code:710399}]},{name:"台中市",code:710400,children:[{name:"中区",code:710401},{name:"东区",code:710402},{name:"南区",code:710403},{name:"西区",code:710404},{name:"北区",code:710405},{name:"北屯区",code:710406},{name:"西屯区",code:710407},{name:"南屯区",code:710408},{name:"太平区",code:710431},{name:"大里区",code:710432},{name:"雾峰区",code:710433},{name:"乌日区",code:710434},{name:"丰原区",code:710435},{name:"后里区",code:710436},{name:"石冈区",code:710437},{name:"东势区",code:710438},{name:"和平区",code:710439},{name:"新社区",code:710440},{name:"潭子区",code:710441},{name:"大雅区",code:710442},{name:"神冈区",code:710443},{name:"大肚区",code:710444},{name:"沙鹿区",code:710445},{name:"龙井区",code:710446},{name:"梧栖区",code:710447},{name:"清水区",code:710448},{name:"大甲区",code:710449},{name:"外埔区",code:710450},{name:"大安区",code:710451},{name:"其它区",code:710499}]},{name:"金门县",code:710500,children:[{name:"金沙镇",code:710507},{name:"金湖镇",code:710508},{name:"金宁乡",code:710509},{name:"金城镇",code:710510},{name:"烈屿乡",code:710511},{name:"乌坵乡",code:710512}]},{name:"南投县",code:710600,children:[{name:"南投市",code:710614},{name:"中寮乡",code:710615},{name:"草屯镇",code:710616},{name:"国姓乡",code:710617},{name:"埔里镇",code:710618},{name:"仁爱乡",code:710619},{name:"名间乡",code:710620},{name:"集集镇",code:710621},{name:"水里乡",code:710622},{name:"鱼池乡",code:710623},{name:"信义乡",code:710624},{name:"竹山镇",code:710625},{name:"鹿谷乡",code:710626}]},{name:"基隆市",code:710700,children:[{name:"仁爱区",code:710701},{name:"信义区",code:710702},{name:"中正区",code:710703},{name:"中山区",code:710704},{name:"安乐区",code:710705},{name:"暖暖区",code:710706},{name:"七堵区",code:710707},{name:"其它区",code:710799}]},{name:"新竹市",code:710800,children:[{name:"东区",code:710801},{name:"北区",code:710802},{name:"香山区",code:710803},{name:"其它区",code:710899}]},{name:"嘉义市",code:710900,children:[{name:"东区",code:710901},{name:"西区",code:710902},{name:"其它区",code:710999}]},{name:"新北市",code:711100,children:[{name:"万里区",code:711130},{name:"板桥区",code:711132},{name:"汐止区",code:711133},{name:"深坑区",code:711134},{name:"瑞芳区",code:711136},{name:"平溪区",code:711137},{name:"双溪区",code:711138},{name:"新店区",code:711140},{name:"坪林区",code:711141},{name:"乌来区",code:711142},{name:"永和区",code:711143},{name:"中和区",code:711144},{name:"土城区",code:711145},{name:"三峡区",code:711146},{name:"树林区",code:711147},{name:"三重区",code:711149},{name:"新庄区",code:711150},{name:"泰山区",code:711151},{name:"林口区",code:711152},{name:"五股区",code:711154},{name:"八里区",code:711155},{name:"淡水区",code:711156},{name:"三芝区",code:711157}]},{name:"宜兰县",code:711200,children:[{name:"宜兰市",code:711287},{name:"头城镇",code:711288},{name:"礁溪乡",code:711289},{name:"壮围乡",code:711290},{name:"员山乡",code:711291},{name:"罗东镇",code:711292},{name:"三星乡",code:711293},{name:"大同乡",code:711294},{name:"五结乡",code:711295},{name:"冬山乡",code:711296},{name:"苏澳镇",code:711297},{name:"南澳乡",code:711298},{name:"钓鱼台",code:711299}]},{name:"新竹县",code:711300,children:[{name:"竹北市",code:711387},{name:"湖口乡",code:711388},{name:"新丰乡",code:711389},{name:"新埔镇",code:711390},{name:"关西镇",code:711391},{name:"芎林乡",code:711392},{name:"宝山乡",code:711393},{name:"竹东镇",code:711394},{name:"五峰乡",code:711395},{name:"横山乡",code:711396},{name:"尖石乡",code:711397},{name:"北埔乡",code:711398},{name:"峨眉乡",code:711399}]},{name:"桃园县",code:711400,children:[{name:"中坜市",code:711487},{name:"平镇市",code:711488},{name:"龙潭乡",code:711489},{name:"杨梅市",code:711490},{name:"新屋乡",code:711491},{name:"观音乡",code:711492},{name:"桃园市",code:711493},{name:"龟山乡",code:711494},{name:"八德市",code:711495},{name:"大溪镇",code:711496},{name:"复兴乡",code:711497},{name:"大园乡",code:711498},{name:"芦竹乡",code:711499}]},{name:"苗栗县",code:711500,children:[{name:"竹南镇",code:711582},{name:"头份镇",code:711583},{name:"三湾乡",code:711584},{name:"南庄乡",code:711585},{name:"狮潭乡",code:711586},{name:"后龙镇",code:711587},{name:"通霄镇",code:711588},{name:"苑里镇",code:711589},{name:"苗栗市",code:711590},{name:"造桥乡",code:711591},{name:"头屋乡",code:711592},{name:"公馆乡",code:711593},{name:"大湖乡",code:711594},{name:"泰安乡",code:711595},{name:"铜锣乡",code:711596},{name:"三义乡",code:711597},{name:"西湖乡",code:711598},{name:"卓兰镇",code:711599}]},{name:"彰化县",code:711700,children:[{name:"彰化市",code:711774},{name:"芬园乡",code:711775},{name:"花坛乡",code:711776},{name:"秀水乡",code:711777},{name:"鹿港镇",code:711778},{name:"福兴乡",code:711779},{name:"线西乡",code:711780},{name:"和美镇",code:711781},{name:"伸港乡",code:711782},{name:"员林镇",code:711783},{name:"社头乡",code:711784},{name:"永靖乡",code:711785},{name:"埔心乡",code:711786},{name:"溪湖镇",code:711787},{name:"大村乡",code:711788},{name:"埔盐乡",code:711789},{name:"田中镇",code:711790},{name:"北斗镇",code:711791},{name:"田尾乡",code:711792},{name:"埤头乡",code:711793},{name:"溪州乡",code:711794},{name:"竹塘乡",code:711795},{name:"二林镇",code:711796},{name:"大城乡",code:711797},{name:"芳苑乡",code:711798},{name:"二水乡",code:711799}]},{name:"嘉义县",code:711900,children:[{name:"番路乡",code:711982},{name:"梅山乡",code:711983},{name:"竹崎乡",code:711984},{name:"阿里山乡",code:711985},{name:"中埔乡",code:711986},{name:"大埔乡",code:711987},{name:"水上乡",code:711988},{name:"鹿草乡",code:711989},{name:"太保市",code:711990},{name:"朴子市",code:711991},{name:"东石乡",code:711992},{name:"六脚乡",code:711993},{name:"新港乡",code:711994},{name:"民雄乡",code:711995},{name:"大林镇",code:711996},{name:"溪口乡",code:711997},{name:"义竹乡",code:711998},{name:"布袋镇",code:711999}]},{name:"云林县",code:712100,children:[{name:"斗南镇",code:712180},{name:"大埤乡",code:712181},{name:"虎尾镇",code:712182},{name:"土库镇",code:712183},{name:"褒忠乡",code:712184},{name:"东势乡",code:712185},{name:"台西乡",code:712186},{name:"仑背乡",code:712187},{name:"麦寮乡",code:712188},{name:"斗六市",code:712189},{name:"林内乡",code:712190},{name:"古坑乡",code:712191},{name:"莿桐乡",code:712192},{name:"西螺镇",code:712193},{name:"二仑乡",code:712194},{name:"北港镇",code:712195},{name:"水林乡",code:712196},{name:"口湖乡",code:712197},{name:"四湖乡",code:712198},{name:"元长乡",code:712199}]},{name:"屏东县",code:712400,children:[{name:"屏东市",code:712467},{name:"三地门乡",code:712468},{name:"雾台乡",code:712469},{name:"玛家乡",code:712470},{name:"九如乡",code:712471},{name:"里港乡",code:712472},{name:"高树乡",code:712473},{name:"盐埔乡",code:712474},{name:"长治乡",code:712475},{name:"麟洛乡",code:712476},{name:"竹田乡",code:712477},{name:"内埔乡",code:712478},{name:"万丹乡",code:712479},{name:"潮州镇",code:712480},{name:"泰武乡",code:712481},{name:"来义乡",code:712482},{name:"万峦乡",code:712483},{name:"莰顶乡",code:712484},{name:"新埤乡",code:712485},{name:"南州乡",code:712486},{name:"林边乡",code:712487},{name:"东港镇",code:712488},{name:"琉球乡",code:712489},{name:"佳冬乡",code:712490},{name:"新园乡",code:712491},{name:"枋寮乡",code:712492},{name:"枋山乡",code:712493},{name:"春日乡",code:712494},{name:"狮子乡",code:712495},{name:"车城乡",code:712496},{name:"牡丹乡",code:712497},{name:"恒春镇",code:712498},{name:"满州乡",code:712499}]},{name:"台东县",code:712500,children:[{name:"台东市",code:712584},{name:"绿岛乡",code:712585},{name:"兰屿乡",code:712586},{name:"延平乡",code:712587},{name:"卑南乡",code:712588},{name:"鹿野乡",code:712589},{name:"关山镇",code:712590},{name:"海端乡",code:712591},{name:"池上乡",code:712592},{name:"东河乡",code:712593},{name:"成功镇",code:712594},{name:"长滨乡",code:712595},{name:"金峰乡",code:712596},{name:"大武乡",code:712597},{name:"达仁乡",code:712598},{name:"太麻里乡",code:712599}]},{name:"花莲县",code:712600,children:[{name:"花莲市",code:712686},{name:"新城乡",code:712687},{name:"太鲁阁",code:712688},{name:"秀林乡",code:712689},{name:"吉安乡",code:712690},{name:"寿丰乡",code:712691},{name:"凤林镇",code:712692},{name:"光复乡",code:712693},{name:"丰滨乡",code:712694},{name:"瑞穗乡",code:712695},{name:"万荣乡",code:712696},{name:"玉里镇",code:712697},{name:"卓溪乡",code:712698},{name:"富里乡",code:712699}]},{name:"澎湖县",code:712700,children:[{name:"马公市",code:712794},{name:"西屿乡",code:712795},{name:"望安乡",code:712796},{name:"七美乡",code:712797},{name:"白沙乡",code:712798},{name:"湖西乡",code:712799}]},{name:"连江县",code:712800,children:[{name:"南竿乡",code:712896},{name:"北竿乡",code:712897},{name:"东引乡",code:712898},{name:"莒光乡",code:712899}]}]},{name:"香港特别行政区",code:81e4,children:[{name:"香港城区",code:810100,children:[{name:"中西区",code:810101},{name:"湾仔区",code:810102},{name:"东区",code:810103},{name:"南区",code:810104},{name:"油尖旺区",code:810105},{name:"深水埗区",code:810106},{name:"九龙城区",code:810107},{name:"黄大仙区",code:810108},{name:"观塘区",code:810109},{name:"荃湾区",code:810110},{name:"屯门区",code:810111},{name:"元朗区",code:810112},{name:"北区",code:810113},{name:"大埔区",code:810114},{name:"西贡区",code:810115},{name:"沙田区",code:810116},{name:"葵青区",code:810117},{name:"离岛区",code:810118}]}]},{name:"澳门特别行政区",code:82e4,children:[{name:"澳门城区",code:820100,children:[{name:"花地玛堂区",code:820101},{name:"花王堂区",code:820102},{name:"望德堂区",code:820103},{name:"大堂区",code:820104},{name:"风顺堂区",code:820105},{name:"嘉模堂区",code:820106},{name:"路凼填海区",code:820107},{name:"圣方济各堂区",code:820108}]}]}]},"Woz+":function(e,t,n){"use strict";var a=n("WoZJ"),i={name:"VDistpicker",props:{province:{type:[String,Number],default:""},city:{type:[String,Number],default:""},area:{type:[String,Number],default:""},hideArea:{type:Boolean,default:!1},onlyProvince:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},provinceDisabled:{type:Boolean,default:!1},cityDisabled:{type:Boolean,default:!1},areaDisabled:{type:Boolean,default:!1},wrapper:{type:String,default:"distpicker-address-wrapper"}},data:function(){return{provinces:[],cities:[],areas:[],currentProvince:"",currentCity:"",currentArea:""}},watch:{currentProvince:function(e){this.$emit("province",this.setData(e,this.provinces)),this.onlyProvince&&this.emit("selected")},currentCity:function(e){this.$emit("city",this.setData(e,this.cities)),this.hideArea&&this.emit("selected")},currentArea:function(e){this.$emit("area",this.setData(e,this.areas)),this.emit("selected")},province:function(e){this.currentProvince=this.province,this.cities=this.getDataList(this.currentProvince,this.provinces)},city:function(e){this.currentCity=this.city,this.areas=this.getDataList(this.currentCity,this.cities)},area:function(e){this.currentArea=this.area}},created:function(){this.provinces=a.a,this.currentProvince=this.getNameValue(this.province,this.provinces),this.cities=this.province?this.getDataList(this.province,this.provinces):[],this.currentCity=this.getNameValue(this.city,this.cities),this.areas=this.city?this.getDataList(this.city,this.cities):[],this.currentArea=this.getNameValue(this.area,this.areas)},methods:{setData:function(e,t){var n=t?t.find(function(t){return t.name===e}):null;return n?{code:n.code,value:n.name}:{code:"",value:""}},emit:function(e){var t={province:this.setData(this.currentProvince,this.provinces)};this.onlyProvince||this.$set(t,"city",this.setData(this.currentCity,this.cities)),this.onlyProvince&&!this.hideArea||this.$set(t,"area",this.setData(this.currentArea,this.areas)),this.$emit(e,t)},getCities:function(){this.currentCity="",this.currentArea="",this.cities=this.getDataList(this.currentProvince,this.provinces),this.cleanList("areas"),0===this.cities.length&&this.emit("selected")},getAreas:function(){this.currentArea="",this.areas=this.getDataList(this.currentCity,this.cities),0===this.areas.length&&this.emit("selected")},getDataList:function(e,t){for(var n="number"==typeof e,a=0;a<t.length;a++){var i=t[a];if(n&&i.code===e||!n&&i.name===e)return i.children}},getNameValue:function(e,t){if("number"==typeof e)for(var n=0;n<t.length;n++){var a=t[n];if(a.code===e)return a.name}return e},cleanList:function(e){this[e]=[]}}},o=(n("A7Qi"),n("KHd+")),s=Object(o.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.wrapper},[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.name,label:e.name}})})),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.name,label:e.name}})})),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.name,label:e.name}})}))]],2)},[],!1,null,null,null);s.options.__file="Distpicker.vue";var c=s.exports;t.a=c},WufG:function(e,t,n){"use strict";var a=n("Zp2C");n.n(a).a},WvyH:function(e,t,n){},X0Ro:function(e,t,n){},X23l:function(e,t,n){"use strict";var a=n("ykWn");n.n(a).a},X4fA:function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return m}),n.d(t,"b",function(){return h});var a=n("4d7F"),i=n.n(a),o=n("vDqi"),s=n.n(o),c=n("a0Nf"),r=n("4peS"),l=n.n(r),d=n("Q2AE");function u(){return new i.a(function(e,t){c.a.rmAxiosCache(),d.a.commit("SET_ALLAUTH",null),delete s.a.defaults.headers.authKey,delete s.a.defaults.headers.sessionId,e(!0)})}function m(e,t){return new i.a(function(n,a){s.a.defaults.headers.authKey=e,s.a.defaults.headers.sessionId=t,n(!0)})}function h(){return l.a.get("authKey")&&!s.a.defaults.headers.authKey&&c.a.updateAxiosCache(),!!s.a.defaults.headers.authKey}},X7CW:function(e,t,n){},XAon:function(e,t,n){"use strict";var a=n("KTTK"),i=n("6XTx"),o={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+"),c=Object(s.a)(o,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);c.options.__file="SelectDropdown.vue";var r=c.exports,l=n("7AXb"),d=n("0BDH"),u=n.n(d),m=n("gSIQ"),h=n("7Qib"),p=n("a/5N"),f={name:"WkUserSelect",components:{WkSelectDropdown:r,WkUser:l.a},mixins:[u.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(p.b)(this.value)?this.dataValue=[]:this.dataValue=[parseInt(this.value)]):Object(m.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=a.y,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(s.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,a){return n("span",{key:a,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,a)}}})])})),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},XF1R:function(e,t,n){"use strict";var a=n("PBdo");n.n(a).a},XSoD:function(e,t,n){"use strict";var a=n("kZYV");n.n(a).a},XV2P:function(e,t,n){},XWzT:function(e,t,n){},Y4Le:function(e,t,n){"use strict";n.d(t,"k",function(){return s}),n.d(t,"g",function(){return c}),n.d(t,"j",function(){return r}),n.d(t,"i",function(){return l}),n.d(t,"l",function(){return d}),n.d(t,"d",function(){return u}),n.d(t,"c",function(){return m}),n.d(t,"e",function(){return h}),n.d(t,"b",function(){return p}),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 a=n("GQeE"),i=n.n(a),o=n("t3Un");function s(e){var t=e.id?"update":"save";return Object(o.a)({url:"crm/product/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(o.a)({url:"crm/product/index",method:"post",data:e})}function r(e){return Object(o.a)({url:"crm/product/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(o.a)({url:"crm/product/read",method:"post",data:e})}function d(e){return Object(o.a)({url:"crm/product/status",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(o.a)({url:"crm/product/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function m(e){return Object(o.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 i()(e).forEach(function(n){t.append(n,e[n])}),Object(o.a)({url:"crm/product/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}window.BASE_URL;function p(e){return Object(o.a)({url:"crm/product/excelDownload",method:"get",data:e,responseType:"blob"})}function f(e){return Object(o.a)({url:"admin/file/index",method:"post",data:e})}function g(e){return Object(o.a)({url:"crm/product/count",method:"post",data:e})}function v(e){return Object(o.a)({url:"crm/product/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(o.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 a=n("bHsw");n.n(a).a},YDfX:function(e,t,n){},YEWy:function(e,t,n){"use strict";var a=n("jnHr");n.n(a).a},Yb89:function(e,t,n){"use strict";var a=n("6cK+");n.n(a).a},YpqK:function(e,t,n){"use strict";var a=n("t/zt");n.n(a).a},Z7Yd:function(e,t,n){"use strict";var a=n("Zo2s");n.n(a).a},"Z8+v":function(e,t,n){"use strict";var a=n("2uUd");n.n(a).a},ZMf7:function(e,t,n){"use strict";var a=n("1lV3");n.n(a).a},ZOqw:function(e,t,n){},Zo2s:function(e,t,n){},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]}}},Zp2C:function(e,t,n){},"a/1z":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxNTUyMDUwRjA1MkYxMUV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qGKlWxCFSvZhCpWsglVrGQTqljJJlSxkk2oYiWbUMUq1GxCFatQswlVrEIdzOnzFqtQxYpQxUpLhipWoYoVoYqVlg1VrELNLtZ/HFqh5hLreYdXqLnEeswhFmousR5J41+HWqg5xHomjY8dbqHmshpwII3jDnuWoV5qhVDHx1qsCPSm8VHx+CWQVajdrRDq+FjHgn0rjcfSOJTG2TSuS6KUBlst1ELbyMiIQ5+hoauxttIRg+n3rKXHULf/BBgASgXIZDhuDdkAAAAASUVORK5CYII="},"a/5N":function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c});var a=n("GQeE"),i=n.n(a);function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function c(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===i()(e).length:"string"==typeof e&&""===e.trim()))}},a0Nf:function(e,t,n){"use strict";var a=n("Q2AE"),i=n("4peS"),o=n.n(i),s=n("vDqi"),c=n.n(s),r={loadingCache:function(){if(o.a.get("authKey")&&!c.a.defaults.headers.authKey){var e=o.a.get("loginUserInfo");e&&a.a.commit("SET_USERINFO",e)}a.a.commit("SET_APPNAME",o.a.get("systemName")),a.a.commit("SET_APPLOGO",o.a.get("systemLogo"))},updateAxiosCache:function(){c.a.defaults.headers.authKey=o.a.get("authKey"),c.a.defaults.headers.sessionId=o.a.get("sessionId"),a.a.dispatch("GetUserInfo"),a.a.dispatch("SystemLogoAndName")},updateAxiosHeaders:function(){c.a.defaults.headers.authKey=o.a.get("authKey"),c.a.defaults.headers.sessionId=o.a.get("sessionId")},rmAxiosCache:function(){o.a.rm("authKey"),o.a.rm("sessionId")}};t.a=r},a9vW:function(e,t,n){},aNhf:function(e,t,n){"use strict";var a=n("vc04");n.n(a).a},aQ3C:function(e,t,n){},aYNI:function(e,t,n){"use strict";var a=n("X7CW");n.n(a).a},aqT4:function(e,t,n){},b3AG:function(e,t,n){"use strict";var a=n("qSqi");n.n(a).a},b5rP:function(e,t,n){"use strict";var a=n("oxiq"),i=n.n(a),o=n("gSIQ"),s=n("7Qib"),c={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(o.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 a=-1,i=0;i<this.dataValue.length;i++){var o=this.dataValue[i];if(e[this.props.value]==o){a=i;break}}-1==a&&e.isCheck?this.dataValue.push(e[this.props.value]):-1!=a&&this.dataValue.splice(a,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 a=this.dataValue[n];if(e[this.props.value]==a){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+")),l=Object(r.a)(c,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,a){return n("el-breadcrumb-item",{key:a},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){e.breadcrumbBtn(t,a)}}},[e._v(e._s(t.label))])])})),e._v(" "),e._l(e.showDataList,function(t,a){return n("flexbox",{key:a,staticClass:"stru-list"},[n("el-checkbox",{staticClass:"stru-check",attrs:{disabled:t.disabled},on:{change:function(n){e.checkChange(t,a)}},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);l.options.__file="WkDep.vue";t.a=l.exports},b7Nu:function(e,t,n){"use strict";var a=n("EsIn");n.n(a).a},bHsw:function(e,t,n){},"bSL/":function(e,t,n){"use strict";var a=n("wWym");n.n(a).a},bWDp:function(e,t,n){"use strict";t.a={methods:{isTrimInput:function(e){return["mobile","email","website"].includes(e)},depOrUserChange:function(e,t,n,a){this.$emit("change",e,t,n,a)},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&&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+")":""},getShowValue:function(e){return!e.hasOwnProperty("show")||e.show},getInputIcon:function(e){return{mobile:"wk wk-icon-mobile",email:"wk wk-icon-email-outline",website:"wk wk-icon-link"}[e]},getInputMaxlength:function(e){return"website"===e?800:100}}}},"bl/l":function(e,t,n){},c2Co:function(e,t,n){"use strict";n.d(t,"j",function(){return s}),n.d(t,"g",function(){return c}),n.d(t,"a",function(){return r}),n.d(t,"i",function(){return l}),n.d(t,"m",function(){return d}),n.d(t,"n",function(){return u}),n.d(t,"d",function(){return m}),n.d(t,"c",function(){return h}),n.d(t,"e",function(){return p}),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 a=n("GQeE"),i=n.n(a),o=n("t3Un");function s(e){var t=e.id&&e.name?"update":"save";return Object(o.a)({url:"crm/leads/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(o.a)({url:"crm/leads/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(o.a)({url:"crm/leads/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(o.a)({url:"crm/leads/read",method:"post",data:e})}function d(e){return Object(o.a)({url:"crm/leads/transfer",method:"post",data:e})}function u(e){return Object(o.a)({url:"crm/leads/transform",method:"post",data:e})}function m(e){return Object(o.a)({url:"crm/leads/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function h(e){return Object(o.a)({url:"crm/leads/excelExport",method:"post",data:e,responseType:"blob"})}function p(e){var t=new FormData;return i()(e).forEach(function(n){t.append(n,e[n])}),Object(o.a)({url:"crm/leads/excelImport",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}window.BASE_URL;function f(e){return Object(o.a)({url:"crm/leads/excelDownload",method:"get",data:e,responseType:"blob"})}function g(e){return Object(o.a)({url:"crm/message/allDeal",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(e){return Object(o.a)({url:"admin/file/index",method:"post",data:e})}function b(e){return Object(o.a)({url:"crm/leads/count",method:"post",data:e})}function y(e){return Object(o.a)({url:"/crm/leads/star",method:"post",data:e})}},c7Em:function(e,t,n){"use strict";var a=n("mTxA");n.n(a).a},cEue:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bX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GDLpAAABSElEQVR42oySvU4CURCFD/cVVHp+X0Cihp4QXkBXDBW/L0HCW0CgJGC0tSCEghJNtLDmr8ME9QUs0DPu3XXvLmaZ5BQ7d767c89M5LtehycUdUVdUxfUCfVOPVK31B21c4ojHjhO3VOn+D9eqEtq5fzJAWchIPT5TNf/wkq3E8VhEdX1SkCLyrhHrRYQi5nlySTQbHozUm8JXDIKBwOg0WBj8T+wWgWGQ38HJTFM3Dw20qkUUKkA4zGQzwPdLrBc+uE3FQAl5nNgMqGvNHY02gdKHAn8EUin00AuR1voS6EAJBL74E+BnwNguQx0OsB0CvR6QK1mv92MV4H7Rsqi+e02sF7b34uFfUGx6If7Yphc8GSMKzyk23Old1VmvT0Q3Or6nbOeYmdW7y5Cdjur693ddi44o+RxD9SG+pJ56u8bfe7O7UeAAQCsHFF+l0CFAgAAAABJRU5ErkJggg=="},czLG:function(e,t,n){"use strict";var a=n("evJ2");n.n(a).a},"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 i}),n.d(t,"f",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"m",function(){return c}),n.d(t,"h",function(){return r}),n.d(t,"o",function(){return l}),n.d(t,"j",function(){return d}),n.d(t,"k",function(){return u}),n.d(t,"p",function(){return m}),n.d(t,"a",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"g",function(){return f}),n.d(t,"d",function(){return g}),n.d(t,"c",function(){return v}),n.d(t,"l",function(){return b}),n.d(t,"i",function(){return y});var a=n("t3Un");function i(e){var t=e.id?"update":"save";return Object(a.a)({url:"crm/contract/"+t,method:"post",data:e})}function o(e){return Object(a.a)({url:"crm/contract/index",method:"post",data:e})}function s(e){return Object(a.a)({url:"crm/contract/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"crm/contract/read",method:"post",data:e})}function r(e){return Object(a.a)({url:"crm/contract/product",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a.a)({url:"crm/contract/transfer",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(a.a)({url:"crm/receivables/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(a.a)({url:"crm/receivables_plan/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function m(e){return Object(a.a)({url:"crm/receivables_plan/index",method:"post",data:e})}function h(e){return Object(a.a)({url:"crm/contract/cancel",method:"post",data:e})}function p(e){return Object(a.a)({url:"admin/file/index",method:"post",data:e})}function f(e){return Object(a.a)({url:"crm/contract/count",method:"post",data:e})}function g(e){return Object(a.a)({url:"crm/contract/excelExport",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob",timeout:6e4})}function v(e){return Object(a.a)({url:"crm/contract/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(e){return Object(a.a)({url:"crm/visit/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function y(e){return Object(a.a)({url:"bi/product/listProduct",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}}}},dOsk:function(e,t,n){"use strict";var a=n("45On");n.n(a).a},dPzk:function(e,t,n){"use strict";var a=n("Xjjk"),i=n.n(a),o={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",i()(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)}}},s=(n("szeO"),n("KHd+")),c=Object(s.a)(o,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);c.options.__file="ReplyComment.vue";t.a=c.exports},dZj0:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIge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SVXHtLkTjhaC0CNwE4v8rJhkon+XIyooPzu1rfNR4PfD5FhWMGuG47CbK44cf6uy767siMXrAhvTMeqDLDuq+m1XzyCabArcfPrc6nzpZ6IHKiYaScCN1VZuzeQi71wGkIOqbKTGK11pN3bQYfWf6wU5j1PfHoQkp66vmCj3ue9U7BShKKwmn/maOlK7eYVHNoBw/5SdbUVeDBS34/WwWlaUtCyTs1q7KV4GLmReWtgzHSJ8HJQs52o3QpU7NXVzBLll1qmZa7/Qd1AvIMzp+/zm7jE+eoFiIwdvdjDKWja1Kzb1VS51AoLIQ9WDkmQujxbqQnn+81zg6o0SgGbUQE/WEeq914proQp5bmHozO/rd0nCviUyuQ+qPUyx5+z5rGKbUJ1RRKb2QxEVke6XXFCoXWZJy6naF8WmJfkSG38X8dQbsMbaYSf7qBE2ZGhPUx37AQx3yKuQsonNfkn+I/ukdCmikKO/7YT9BOOMSl+Y0MQ45xciRP05D8LUOG3xFBTzBCaeeIXUU9nAM6fIKBrv45ZZo+voSIgxsqrL7udtpK0mScdZ4Wpa3nuwUPVUSDgJbJZjx8YcyQxqrS+I5JlbyPNQYerI/GrA/HMI4RrHs6B12kH2WBO0hgkoYQc11td5I2cNE6EeOIrha+xYauLMC3pmz2zY/esskrk9jsOxu5HccTXaXruDwpJNxLP0+nb6bCu1xqshhFEg6zuk89RCR768GEmUG+GQDEiyT+li4oFC16stPVBVORXRFIjp9PzogCwbWnY+OVrhDKaJSQ5Bz8tZfqbaGT4r2KnA5EHR3rM1zI9urCPD868HFoxstIKFyF5V2KxzZzmSfonmDCREv5wFXUx4lTCaf405OE/OHBgupCYl166XunyXmL7ThlC02RE9Px+6R44oFz4Q67YGhuceiFmDI7MPxI6gyAMxUcHzlX8FGAADLZCrVjrXHwAAAABJRU5ErkJggg=="},ddAi:function(e,t,n){"use strict";var a=n("r426");n.n(a).a},eKkT:function(e,t,n){"use strict";var a=n("d+tI");n.n(a).a},"eU/g":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoA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AyAqArICsAMgKgKyArADICoCsgKwAyAqArICsAMgKgKyArADICoCsgKwAyAqArICsAMgKgKyArADICsgKgKwAyArt8VT/YTPhStBu3DoHYcqzECZk5/nz53eRtQL6TgB3zr+h3D86OnqKrI7RGQY6a1YHdNQuKjmrc3QWbSuiIqtj7LyuVkRFVse0JiqyOka9/pZERVbnaUBLoiIruBEVWcGNqMgKbkRFVsgt6udDRUVWyCpqKMdj/hGyggtRkRXciIqs4EZUZAU3oiIruBEVWcGNqMgKbkRFVnAjKrKCG1GRFdyIiqzgRlRkBTeiIiu4ERVZwY2oyApuREVWcCMqsoIbUZEV3IiKrOBGVGQFN6IiK7gRFVnBjajICm5ERVZwIyqyghtRkRXciIqs4EZUZAU3oiIruBEVWcGNqMiKqG5ERVZEPfb0pZEVUZEVEBVZoUlRkRVRkRUQFVmhWVGRFVHdyXrOfUVUL7L+w71FVC+y/sb9RVQvsj4O5YL7jKgeZP0rlJ+514jqZTTgYShPuOcu+a8FUbuyakTg61B+CuWS++9K1PstiNqV1YT9IZRPQ3kUyt+hvMKHIjluTVQxm8/n3HqHPHv27KOjo6Pj8On6OsI1DP67/wswAGaRUM7rPS0xAAAAAElFTkSuQmCC"},edWl:function(e,t,n){},"ef+5":function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"b",function(){return c});var a=n("t3Un");function i(e){return Object(a.a)({url:"admin/users/updateImg",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}})}function o(e){return Object(a.a)({url:"admin/users/read",method:"post",data:e})}function s(e){return Object(a.a)({url:"admin/users/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"admin/users/resetPassword",method:"post",data:e})}},eqpj:function(e,t,n){"use strict";var a=n("Ialk");n.n(a).a},evJ2:function(e,t,n){},f9JD:function(e,t,n){"use strict";var a=n("R+T8");n.n(a).a},fHwu:function(e,t,n){},fPCH:function(e,t,n){"use strict";var a=n("2E8L");n.n(a).a},fe1z:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"d",function(){return r}),n.d(t,"a",function(){return l});var a=n("t3Un");function i(e){return Object(a.a)({url:"admin/base/login",method:"post",data:e})}function o(){return Object(a.a)({url:"admin/base/logout",method:"post"})}function s(e){return Object(a.a)({url:"cloud/sendSms",method:"post",data:e})}function c(e){return Object(a.a)({url:"verfyCode",method:"post",data:e})}function r(){return Object(a.a)({url:"adminUser/querySystemStatus",method:"post"})}function l(e){return Object(a.a)({url:"adminUser/initUser",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},g5ku:function(e,t,n){},gVZb:function(e,t,n){"use strict";var a=n("ViDN"),i=n("ehos"),o={name:"XrCreate",components:{CreateView:a.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(i.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")}}},s=(n("X23l"),n("KHd+")),c=Object(s.a)(o,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);c.options.__file="index.vue";t.a=c.exports},gWfY:function(e,t,n){},glbJ:function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("KTTK"),s=0,c={name:"Tinymce",components:{Editor:n("ynI1").a},inheritAttrs:!1,props:{value:String,init:Object,height:[String,Number],plugins:[String,Array],toolbar:[String,Array],menubar:[String,Array]},data:function(){return{id:this.uuid(),dataValue:"",languageTypeList:{en:"en",zh:"zh_CN",es:"es_MX",ja:"ja"},showInit:{}}},computed:{editor:function(){return window.tinymce.get(this.id)},showToolbar:function(){return void 0!=this.toolbar?this.toolbar:"undo redo | bold italic underline strikethrough | charmap emoticons | fontselect fontsizeselect formatselect | rowspacingtop rowspacingbottom | lineheight | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | table | forecolor backcolor removeformat | pagebreak | fullscreen preview save print | insertfile image media link anchor codesample | ltr rtl"},showPlugins:function(){return void 0!=this.plugins?this.plugins:"print preview paste importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern noneditable help charmap quickbars emoticons lineheight rowspacing"}},watch:{value:{handler:function(e){e!=this.dataValue&&(this.dataValue=e)},immediate:!0,deep:!0},dataValue:function(){this.$emit("input",this.dataValue)},init:{handler:function(){this.initTinymce()},immediate:!0,deep:!0}},mounted:function(){},methods:{initTinymce:function(){var e=i()({skin:"wukong",resize:!1,branding:!1,language:this.languageTypeList.zh,menubar:!!this.menubar&&this.menubar,body_class:"panel-body",image_advtab:!0,end_container_on_empty_block:!0,powerpaste_word_import:"clean",content_css:["./static/tinymce/css/tiny-wukong.css"],fontsize_formats:"12px 14px 16px 18px 24px 36px 48px 56px 72px",font_formats:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats;微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,quickbars_insert_toolbar:!1,nonbreaking_force_tab:!0,convert_urls:!1,toolbar_mode:"sliding",images_upload_handler:function(e,t,n,a){a(0),Object(o.A)({file:e.blob()}).then(function(e){t(e.data.url),a(100)}).catch(function(){n("出现未知问题,刷新页面,或者联系管理员")})}},this.init);void 0!=this.height&&(e.height=this.height),this.showInit=e},uuid:function(){var e=Date.now();return"wukong_"+Math.floor(1e9*Math.random())+ ++s+String(e)},imageSuccessCBK:function(e){var t=this;e.forEach(function(e){t.editor.insertContent('<img class="wscnph" src="'+e.url+'" >')})}}},r=(n("FzPI"),n("KHd+")),l=Object(r.a)(c,function(){var e=this,t=e.$createElement;return(e._self._c||t)("editor",e._g(e._b({ref:"mceEditor",attrs:{id:e.id,init:e.showInit,plugins:e.showPlugins,toolbar:e.showToolbar,"tinymce-script-src":"https://www.72crm.com/npm/tinymce/tinymce.min.js"},model:{value:e.dataValue,callback:function(t){e.dataValue=t},expression:"dataValue"}},"editor",e.$attrs,!1),e.$listeners))},[],!1,null,null,null);l.options.__file="index.vue";t.a=l.exports},gxdH:function(e,t,n){},"h+1H":function(e,t,n){},hSIE:function(e,t,n){"use strict";n.d(t,"f",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"h",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"d",function(){return r}),n.d(t,"e",function(){return l}),n.d(t,"g",function(){return d}),n.d(t,"a",function(){return u});var a=n("t3Un");function i(e){return Object(a.a)({url:"work/task/myTask",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(){return Object(a.a)({url:"work/task/taskUsers",method:"post"})}function s(e){return Object(a.a)({url:"work/task/updateTop",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"work/work/index",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function r(e){return Object(a.a)({url:"work/task/search",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(a.a)({url:"work/task/archive",method:"post",data:e})}function d(e){return Object(a.a)({url:"work/task/recover",method:"post",data:e})}function u(e){return Object(a.a)({url:"work/task/excelExport",method:"post",data:e,responseType:"blob"})}},hwzM:function(e,t,n){"use strict";var a=n("7Qib"),i=n("KTTK"),o={name:"FileCell",filters:{getFileSize:function(e){return Object(a.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(a.n)(t)},previewShow:function(){return this.list}},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{downloadClick:function(){Object(a.d)({path:this.data.filePath||this.data.url,save_name:this.data.save_name,name:this.data.name})},previewClick:function(){Object(a.a)(this.data.name)?Object(a.B)(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(i.c)({id:e.data.file_id,save_name:e.data.save_name,module:"work_task"}).then(function(t){e.$message.success("操作成功"),e.$emit("delete",e.cellIndex,e.data)}).catch(function(){})}).catch(function(){e.$message({type:"info",message:"已取消删除"})})}}},s=(n("98xk"),n("KHd+")),c=Object(s.a)(o,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,"9d9d7252",null);c.options.__file="index.vue";t.a=c.exports},iJiE:function(e,t,n){},jHPx:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return r}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return d}),n.d(t,"h",function(){return u}),n.d(t,"c",function(){return m});var a=n("ZhIB"),i=n.n(a),o=function(e){return i()(e).format("0.0a")},s=function(e){return i()(e).format("0 b")},c=function(e,t){return i()(e).format(t)},r=function(e){return i()(e).format("0.[00]e+0")},l=function(e){return i()(e).format("Oo")},d=function(e){return i()(e).format("0.[00]%")},u=function(e){return i()(e).format("0,0.00")},m=function(e){return i()(e).format("$0,0.00")}},jM2j:function(e,t,n){"use strict";var a=n("ViDN"),i=n("8GhS"),o=n("FoeY"),s=n("7Qib"),c={components:{CreateView:a.a,XhStrucUserCell:i.m},props:{action:{type:Object,default:function(){return{type:"save"}}}},data:function(){var e=this,t=function(t,n,a){"startTime"==t.field&&!e.formData.startTime&&e.formData.endTime||"endTime"==t.field&&!e.formData.endTime&&e.formData.startTime?a(new Error("请完善时间")):e.formData.startTime&&e.formData.endTime&&Object(s.k)(e.formData.startTime)>=Object(s.k)(e.formData.endTime)&&a(new Error("开始时间必须小于结束时间")),a()};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.structureList}})},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(o.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)}}},r=(n("YpqK"),n("KHd+")),l=Object(r.a)(c,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,a){return n("el-form-item",{key:a,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,"72c948d3",null);l.options.__file="NewDialog.vue";t.a=l.exports},jR8U:function(e,t,n){},jVVe:function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return s}),n.d(t,"m",function(){return c}),n.d(t,"e",function(){return r}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"l",function(){return u}),n.d(t,"a",function(){return m}),n.d(t,"h",function(){return h}),n.d(t,"k",function(){return p}),n.d(t,"i",function(){return f}),n.d(t,"j",function(){return g});var a=n("t3Un");function i(e){return Object(a.a)({url:"admin/groups/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"admin/groups/delete",method:"post",data:e})}function s(e){return Object(a.a)({url:"admin/groups/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"admin/groups/update",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function r(e){return Object(a.a)({url:"admin/groups/copy",method:"post",data:e})}function l(e){return Object(a.a)({url:"admin/users/copyRole",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function d(e){return Object(a.a)({url:"admin/users/groups",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function u(e){return Object(a.a)({url:"admin/users/groupsDel",method:"post",data:e})}function m(e){return Object(a.a)({url:"admin/groups/typeList",method:"post",data:e})}function h(e){return Object(a.a)({url:"admin/groups/index",method:"post",data:e})}function p(e){return Object(a.a)({url:"admin/rules/index",method:"post",data:e})}function f(e){return Object(a.a)({url:"admin/fieldGrant/index",method:"post",data:e})}function g(e){return Object(a.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 a=n("QbLZ"),i=n.n(a),o=n("KTTK"),s=n("oxiq"),c=n.n(s),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=!c.a.match(t.realname,e),t})},depSearchChange:function(e){this.depShowList=this.depShowList.map(function(t){return t.hidden=!c.a.match(t.name,e),t})},getDepList:function(){var e=this;this.depLoading=!0,Object(o.k)({type:"tree"}).then(function(t){e.depShowList=t.data.map(function(t,n,a){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,a){return e.type="dep",e.hidden=!c.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,a){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?[i()({},e)]:[],this.handleAllCheckStatus(),this.valueChange()),this.radio||this.updateCheckedUserDepListByCheck(e,"dep")},getUserList:function(){var e=this;this.userLoading=!0;var t=o.y,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?[i()({},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,a=0;a<this.checkedUserDepList.length;a++){var i=this.checkedUserDepList[a];"user"==i.type&&e.id==i.id&&"user"==t?n=a:"dep"==i.type&&e.id==i.id&&"dep"==t&&(n=a)}-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,a=0;a<this.checkedUserDepList.length;a++){var i=this.checkedUserDepList[a];if("user"==i.type&&e.id==i.id&&"user"==t){n=!0;break}if("dep"==i.type&&e.id==i.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,a){return e.isCheck=n.getItemCheckInfo(e,"dep"),e}):this.userList=this.userList.map(function(e,t,a){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")})}}},l=(n("CPtR"),n("KHd+")),d=Object(l.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,a){return t.hidden?e._e():n("div",{key:a,staticClass:"colleagues-list"},[n("el-checkbox",{on:{change:function(n){e.userCheckboxChange(t,a)}},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,a){return n("el-breadcrumb-item",{key:a},[n("a",{attrs:{href:"javascript:;"},on:{click:function(n){e.breadcrumbBtn(t,a)}}},[e._v(e._s(t.label))])])})),e._v(" "),n("div",{staticClass:"checkout-boxs"},e._l(e.depShowList,function(t,a){return t.hidden?e._e():n("div",{key:a,staticClass:"checkout-box"},[n("el-checkbox",{on:{change:function(n){e.depCheckboxChange(t,a)}},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,a){return n("div",{key:a,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,a)}}})])}))],1)]):e._e()])},[],!1,null,"4825b835",null);d.options.__file="main.vue";t.a=d.exports},jnHr:function(e,t,n){},jtZb:function(e,t,n){"use strict";t.a=function(e){for(var t=1,n=arguments.length;t<n;t++){var a=arguments[t]||{};for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];void 0!==o&&(e[i]=o)}}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/zvfv6784GJNK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F3U0q+3rAUF6TZ7bGB110jDDvZFFpnPi3qayM3BsCS392FG0i3rufWNe9aBzp/wNXGAVSlK+WiwAAAABJRU5ErkJggg=="},kZYV:function(e,t,n){},kfhP:function(e,t,n){"use strict";var a=n("I0XR");n.n(a).a},kkmX:function(e,t,n){"use strict";var a=n("KQfp");n.n(a).a},"krL/":function(e,t,n){},l1nQ:function(e,t,n){},lJ9t:function(e,t,n){},lbb6:function(e,t,n){},"lcu+":function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("/861"),s=n("7qmR"),c=n("8GhS"),r=n("Ktth"),l=n.n(r),d={name:"CreateExamineInfo",components:{XhUserCell:c.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:s.c,crm_contract:o.i,crm_invoice:o.i,crm_receivables:o.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",i()({},e.examineInfo,{value:[e.draftUser]}))):(e.form.name="",e.draftUser=null,e.$emit("value-change",i()({},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 a=0;a<t.$refs.form.fields.length;a++){var i=t.$refs.form.fields[a];if("error"==i.validateState){t.$message.error(i.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",i()({},this.examineInfo,{value:e.value})),this.$refs.form.validateField("name")}}},u=(n("3iNF"),n("KHd+")),m=Object(u.a)(d,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[0==e.examineInfo.config?a("el-form",{ref:"form",staticClass:"crm-create-box",attrs:{model:e.form,rules:e.rules,"label-position":"top"}},[a("el-form-item",{staticClass:"crm-create-item",attrs:{prop:"name"}},[a("div",{staticStyle:{display:"inline-block"},attrs:{slot:"label"},slot:"label"},[a("div",{staticStyle:{margin:"5px 0","font-size":"12px","word-wrap":"break-word","word-break":"break-all"}},[e._v("\n 审核人\n "),a("span",{staticStyle:{color:"#999"}})])]),e._v(" "),a("xh-user-cell",{attrs:{"info-type":e.types,value:e.draftUser?[e.draftUser]:[]},on:{"value-change":e.fieldValueChange}})],1)],1):1==e.examineInfo.config?a("flexbox",{staticClass:"fixed-examine",attrs:{wrap:"wrap"}},e._l(e.examineInfo.stepList,function(t,i){return a("el-popover",{key:i,attrs:{disabled:0==t.user_id_info.length,content:e._f("contentFilters")(t.user_id_info),placement:"bottom",trigger:"hover"}},[a("div",{staticClass:"fixed-examine-item",attrs:{slot:"reference"},slot:"reference"},[a("img",{attrs:{src:n("dZj0")}}),e._v(" "),a("div",{staticClass:"detail"},[e._v(e._s(e._f("detail")(t)))]),e._v(" "),a("div",{staticClass:"step"},[e._v(e._s(e._f("step")(i+1)))])])])})):e._e()],1)},[],!1,null,"52ba0913",null);m.options.__file="CreateExamineInfo.vue";t.a=m.exports},lhZU:function(e,t,n){},lhtO:function(e,t,n){"use strict";var a=n("2n8H");n.n(a).a},llf0:function(e,t,n){"use strict";var a=n("z8ug");n.n(a).a},mAyt:function(e,t,n){},mBRK:function(e,t,n){"use strict";var a=n("YDfX");n.n(a).a},"mN+P":function(e,t,n){},mTxA:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},mXRo:function(e,t,n){"use strict";n.d(t,"h",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"n",function(){return c}),n.d(t,"d",function(){return r}),n.d(t,"g",function(){return l}),n.d(t,"o",function(){return d}),n.d(t,"j",function(){return u}),n.d(t,"k",function(){return m}),n.d(t,"m",function(){return h}),n.d(t,"i",function(){return p}),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 a=n("t3Un");function i(e){return Object(a.a)({url:"oa/event/save",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function o(e){return Object(a.a)({url:"oa/event/delete",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function s(e){return Object(a.a)({url:"oa/event/index",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function c(e){return Object(a.a)({url:"oa/event/update",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function r(e){return Object(a.a)({url:"oa/event/read",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function l(e){return Object(a.a)({url:"oa/event/schedule",method:"post",data:e})}function d(e){return Object(a.a)({url:"oa/event/saveSchedule",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function u(e){return Object(a.a)({url:"oa/event/eventContract",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function m(e){return Object(a.a)({url:"oa/event/eventCustomer",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function h(e){return Object(a.a)({url:"oa/event/eventLeads",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function p(e){return Object(a.a)({url:"oa/event/eventBusiness",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function f(e){return Object(a.a)({url:"oa/event/eventDealBusiness",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function g(e){return Object(a.a)({url:"oa/event/listStatus",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function v(e){return Object(a.a)({url:"oa/event/eventCrm",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function b(e){return Object(a.a)({url:"oa/event/eventTask",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})}function y(e){return Object(a.a)({url:"admin/users/subordinate",method:"post",data:e})}},migV:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUG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=n.n(o),c=n("L2JU"),r=n("ZoMv"),l=n("c2Co"),d=n("7Dod"),u=n("AAeT"),m=n("ERJp"),h=n("d9x6"),p=n("Y4Le"),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:s()({},Object(c.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:r.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:d.H,contacts:d.I,contract:d.J},contacts:{business:u.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 a in this.action.data.params)n[a]=this.action.data.params[a]}else n.page=this.currentPage,n.limit=10;this.action.request&&(t=this.action.request),this.action.params&&(n=s()({},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(a,i){t.forEach(function(t,i){a[e.crmType+"_id"]==t[e.crmType+"_id"]&&(t.has=!0,n.push(a))})}),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?d.k:"contacts"===this.crmType?u.g:"business"===this.crmType?m.f:"contract"===this.crmType?h.f:"product"===this.crmType?p.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,a){a!==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("OXh7"),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,a){return n("el-table-column",{key:a,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,"3adbb558",null);b.options.__file="CrmRelativeTable.vue";var y=b.exports,k=n("7Qib"),_={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&&i()(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?"关联发票抬头":"关联相关信息"}}},w=(n("u63K"),Object(v.a)(_,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,a){return n("div",{key:a,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,a){return n("crm-relative-table",{directives:[{name:"show",rawName:"v-show",value:t.type==e.leftType,expression:"item.type == leftType"}],key:a,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));w.options.__file="CrmRelative.vue";t.a=w.exports},mqBO:function(e,t,n){},mvNj:function(e,t,n){"use strict";var a=n("21Uy");n.n(a).a},nsv0:function(e,t,n){"use strict";var a=n("0JSX");n.n(a).a},o0dq:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},oXF7:function(e,t,n){e.exports=n.p+"static/img/favicon.15ca17f.png"},oYx3:function(e,t,n){"use strict";var a=n("Kw5r"),i=n("jE9Z"),o=n("QbLZ"),s=n.n(o),c=n("KTTK"),r=n("4XAY"),l=n("SApG"),d=n("Ew9n"),u=n("jM2j"),m={name:"MessageCell",components:{},props:{data:Object,dataIndex:[String,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,27].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.getImportContent(this.data),1500:this.data.user_name+"取消导入客户数据,已导入,"+this.getImportContent(this.data),18:this.data.user_name+"导入联系人数据,"+this.getImportContent(this.data),1700:this.data.user_name+"取消导入联系人数据,已导入"+this.data.title+"条,"+this.getImportContent(this.data),19:this.data.user_name+"导入线索数据,"+this.getImportContent(this.data),1900:this.data.user_name+"取消导入线索数据,已导入,"+this.getImportContent(this.data),20:this.data.user_name+"导入产品数据,"+this.getImportContent(this.data),2100:this.data.user_name+"取消导入产品数据,已导入,"+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.getImportContent(this.data)}[this.data.type]},centerCotent:function(){if(this.isImportType){var e=this.data.content.split(",")||[];return Number(e[3]||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,27].includes(this.data.type)){var n=t.split(",")||[],a=Number(n[1]||"0"),i=Number(n[3]||"0");return"覆盖"+a+"条,导入成功"+Number(n[2]||"0")+"条,导入失败"+i+"条。"}}}},h=(n("3j/7"),n("KHd+")),p=Object(h.a)(m,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,"a0b75c1c",null);p.options.__file="MessageCell.vue";var f=p.exports,g=n("7Qib"),v=n("L2JU"),b={name:"SystemMessage",components:{SlideView:d.a,NewDialog:u.a,MessageCell:f,TodayListDetail:l.a,CRMFullScreenDetail:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-4ba5")]).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:s()({},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(c.t)(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,a){"schedule"===e?(this.relationID=t,a.content&&(this.todayDetailData=a.content),this.showTodayDetail=!0):(this.relationID=t,this.relationCrmType=e,this.showFullDetail=!0)},downloadError:function(e){Object(r.f)({name:"导入错误数据",path:e.error_file_path}).then(function(e){Object(g.c)(e)}).catch(function(){})},readMessageClick:function(e,t){var n=this;Object(c.u)({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(c.s)({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(c.v)({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(c.r)({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("TgpP"),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,a){return n("el-badge",{key:a,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,a){return n("message-cell",{key:a,attrs:{data:t,"data-index":a},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,"1f678ada",null));y.options.__file="SystemMessage.vue";var k=y.exports,_=n("2nGb"),w=n("t2rG"),C=n.n(w),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:s()({},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],a=this.allItemsObj[n];a&&e.length<8&&e.push(a)}this.topList=e}else{var i=[];for(var o in this.allItemsObj)i.length<8&&i.push(this.allItemsObj[o]);this.topList=i}},saveClick:function(){var e=this,t=this.topList.map(function(e){return e.module});this.loading=!0,Object(_.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,a){return n("div",{key:a,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,a)}}}):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,a){return n("div",{key:a,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,a)}}}):e._e()])}))],1)])])])},[],!1,null,"345c6c52",null));x.options.__file="NavManager.vue";var I=x.exports,j=n("XJYT"),T=n("JqEL"),D={components:{SystemMessage:k,NavManager:I},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:s()({},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(T.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(T.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],a=this.allItemsObj[n];a&&e.length<8&&e.push(a)}this.items=e}else{var i=[];for(var o in this.allItemsObj)i.length<8&&i.push(this.allItemsObj[o]);this.items=i}this.changeMenu(document.documentElement.clientWidth)},changeMenu:function(e){for(var t=[],n=[],a=0;a<this.items.length;a++){var i=this.items[a];e-450-130*(a+1)>0?t.push(i):n.push(i)}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 a=e?"other":this.navIndex;this.navActiveIndex!=a&&this.$store.commit("SET_NAVACTIVEINDEX",a)},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(c.w)().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=j.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 a=t;this.headerModule.includes(n)||(a="other"),this.$store.commit("SET_NAVACTIVEINDEX",a)},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(),a=0;a<t.length;a++){var i=t[a].length;t[a]=n[i]+t[a]}return t.join("")}},checkMessageDetail:function(e){this.mesOnlyAnnouncement=e,this.sysMessageShow=!0}}},S=(n("rYux"),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,a){return n("el-menu-item",{key:a,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,a){return n("el-dropdown-item",{key:a,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,"07ce0732",null));S.options.__file="Navbar.vue";var F=S.exports,O={components:{},props:{navIndex:String},data:function(){return{}},computed:s()({},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=j.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,L=n("33yf"),U=n.n(L);function V(e){return/^(https?:|mailto:|tel:)/.test(e)}var M={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:{}},N=(n("eqpj"),Object(h.a)(M,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));N.options.__file="Item.vue";var B=N.exports,W={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return V(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},P=Object(h.a)(W,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);P.options.__file="Link.vue";var Y={name:"SidebarItem",components:{Item:B,AppLink:P.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],a=t.filter(function(t){return!t.hidden&&(e.onlyOneChild=t,!0)});return 1===a.length||0===a.length&&(this.onlyOneChild=s()({},n,{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return V(e)?e:V(this.basePath)?this.basePath:U.a.resolve(this.basePath,e)}}},Z=(n("P4SL"),Object(h.a)(Y,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));Z.options.__file="SidebarItem.vue";var G=Z.exports,z=n("VflR"),Q=n.n(z),q={components:{SidebarItem:G},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:s()({},Object(v.b)(["collapse"]),{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path,a=e.params,i=this.WKConfig.companyName;return t.title?i+=" - "+t.title:a&&a.title&&(i+=" - "+a.title),document.title=i,t.activeMenu?t.activeMenu:n},variables:function(){return Q.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("3MsT"),Object(h.a)(q,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sidebar-container"},[a("div",{staticClass:"create-button-container",style:{"padding-top":""!=e.createButtonTitle?"40px":"25px","background-color":e.variables.menuBg}},[""!=e.createButtonTitle?a("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(" "),a("div",{staticClass:"create-button",attrs:{slot:"reference"},on:{click:e.quicklyCreate},slot:"reference"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!e.buttonCollapse,expression:"!buttonCollapse"}],staticClass:"button-name"},[e._v(e._s(e.createButtonTitle))]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.buttonCollapse,expression:"!buttonCollapse"}],staticClass:"button-line"}),e._v(" "),a("i",{staticClass:"button-mark",class:e.createButtonIcon})])],2):e._e()],1),e._v(" "),a("el-scrollbar",{style:{"border-right-color":e.variables.menuBg,"padding-top":""!=e.createButtonTitle?"90px":"40px"},attrs:{"wrap-class":"scrollbar-wrapper"}},[a("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 a("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(" "),a("div",{staticClass:"sidebar-bottom",style:{"background-color":e.variables.menuBg}},[a("div",{staticClass:"sidebar-bottom-content"},[e.collapse?e._e():a("div",{staticClass:"copyright"},[a("img",{attrs:{src:n("oXF7"),width:"20px"}}),e._v(" "),a("span",[e._v("Power by 悟空")])]),e._v(" "),a("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,"1bd09edc",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:s()({},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,a){return n("p",{key:a,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,ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{path:"/crm",component:ne,meta:s()({requiresAuth:!0},e)}},ie=[s()({},ae({permissions:["crm"]}),{children:[{path:"workbench",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-16fe")]).then(n.bind(null,"oEHD"))},meta:{title:"仪表盘",icon:"board"}}]}),s()({},ae({permissions:["crm"]}),{children:[{path:"message",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-0987")]).then(n.bind(null,"jDh9"))},meta:{title:"待办事项",icon:"message",num:0}}]}),s()({},ae({permissions:["crm","leads"]}),{children:[{path:"leads",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-371b"),n.e("chunk-4991")]).then(n.bind(null,"KPHR"))},meta:{title:"线索",icon:"leads"}}]}),s()({},ae({permissionList:[["crm","customer"],["crm","pool"],["crm","customer","nearbyCustomer"]]}),{children:[{path:"customer",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-5f72")]).then(n.bind(null,"zqSx"))},meta:{title:"客户",icon:"customer"}}]}),s()({},ae({permissions:["crm","contacts"]}),{children:[{path:"contacts",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-3f57")]).then(n.bind(null,"B649"))},meta:{title:"联系人",icon:"contacts"}}]}),s()({},ae({permissions:["crm","business"]}),{children:[{path:"business",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-7cba")]).then(n.bind(null,"UUUa"))},meta:{title:"商机",icon:"business"}}]}),s()({},ae({permissions:["crm","contract"]}),{children:[{path:"contract",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-6466")]).then(n.bind(null,"s0OI"))},meta:{title:"合同",icon:"contract"}}]}),s()({},ae({permissions:["crm","receivables","index"]}),{children:[{path:"receivables",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-5e59")]).then(n.bind(null,"7c4Y"))},meta:{title:"回款",icon:"receivables"}}]}),{name:"print",path:"/print",hidden:!0,component:function(){return n.e("chunk-79bb").then(n.bind(null,"67Ak"))},meta:{permissionList:[["crm","receivables","print"],["crm","contract","print"],["crm","business","print"]],title:"打印",icon:"print"}},s()({},ae({permissions:["crm","invoice"]}),{children:[{path:"invoice",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-5622")]).then(n.bind(null,"Kdq/"))},meta:{title:"发票",icon:"invoice"}}]}),s()({},ae({permissions:["crm","visit"]}),{children:[{path:"visit",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-74c5")]).then(n.bind(null,"2uQb"))},meta:{title:"回访",icon:"house"}}]}),s()({},ae({permissions:["crm","product"]}),{children:[{path:"product",component:function(){return Promise.all([n.e("chunk-ddd6"),n.e("chunk-371b"),n.e("chunk-e000")]).then(n.bind(null,"x/0Y"))},meta:{title:"产品",icon:"product"}}]})],oe=n("rRnC"),se=n("hSIE"),ce=n("LWkM"),re={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)(re,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 de=le.exports,ue={name:"SectionHead",components:{},props:{iconClass:String,label:String},data:function(){return{}},computed:{},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{}},me=(n("JF0c"),Object(h.a)(ue,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));me.options.__file="SectionHead.vue";var he=me.exports,pe={name:"ProjectBoard",components:{ProjectCell:de,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(se.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(ce.A)({workIds:this.list.map(function(e){return e.work_id})}).then(function(e){}).catch(function(){})}},collectClick:function(e){Object(ce.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)(pe,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,a){return n("project-cell",{key:a,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,a){return n("project-cell",{key:a,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:de,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(T.b)(document,"click",this.handleDocumentClick)},beforeDestroy:function(){Object(T.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,a){return n("project-cell",{key:a,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,_e={name:"PmLayout",components:{Navbar:F,Sidebar:X,AppMain:$,AddProject:oe.a,ProjectBoard:ge,TagBoard:ke},data:function(){return{isCreate:!1,projectBoardShow:!1,tagBoardShow:!1}},computed:s()({},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}}},we=(n("bSL/"),Object(h.a)(_e,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));we.options.__file="PmLayout.vue";var Ce=we.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:s()({requiresAuth:!0,permissions:["project"]},t)}},xe=[s()({},Ae(),{children:[{path:"workbench",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-64cb")]).then(n.bind(null,"IJOt"))},meta:{title:"工作台",icon:"workbench"}}]}),s()({},Ae("/project-list"),{hidden:!0,children:[{name:"project-list",path:"project/:id",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-3146"),n.e("chunk-2cb1"),n.e("chunk-5452")]).then(n.bind(null,"q1aG"))},meta:{activeMenu:"/project/list"}}]}),s()({},Ae(),{hidden:!0,children:[{path:"search",component:function(){return n.e("chunk-74e7").then(n.bind(null,"UjDL"))},meta:{title:"搜索",activeMenu:"/project/list"}}]}),s()({},Ae(),{children:[{path:"list",component:function(){return n.e("chunk-a2ba").then(n.bind(null,"39TU"))},meta:{title:"项目",icon:"project"}}]}),s()({},Ae(),{children:[{path:"statistics",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-2cb1"),n.e("chunk-5be5")]).then(n.bind(null,"/3Ri"))},meta:{title:"统计分析",icon:"results-solid"}}]}),s()({},Ae(),{children:[{path:"archive",component:function(){return n.e("chunk-9d67").then(n.bind(null,"s7/I"))},meta:{title:"归档项目",icon:"archive"}}]}),s()({},Ae("/tag-list"),{children:[{name:"tag-list",path:"tag/:id",component:function(){return n.e("chunk-54c0").then(n.bind(null,"7rD8"))},hidden:!0,meta:{activeMenu:"/tag-list/index"}},{path:"index",meta:{title:"标签",icon:"label",disabled:!0}}]}),s()({},Ae(),{children:[{path:"recycle",component:function(){return n.e("chunk-0ca9").then(n.bind(null,"jcXo"))},meta:{title:"回收站",icon:"recycle-bin"}}]})],Ie={name:"AdminLayout",components:{ManagerNavbar:E,Sidebar:X,AppMain:$},data:function(){return{routerItems:[]}},computed:s()({},Object(v.b)(["manage","manageRouters"])),mounted:function(){},methods:{navClick:function(e){}}},je=(n("mvNj"),Object(h.a)(Ie,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));je.options.__file="AdminLayout.vue";var Te=je.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:Te,meta:s()({requiresAuth:n},e)}},Se=[s()({},De({permissions:["manage","system","read"]}),{children:[{name:"systemconfig",path:"systemconfig",component:function(){return Promise.all([n.e("fnnb"),n.e("chunk-a0da")]).then(n.bind(null,"9OqV"))},meta:{title:"企业首页",icon:"enterprise"}}]}),s()({},De({permissions:["manage","configSet","read"]}),{children:[{name:"application",path:"application",component:function(){return n.e("chunk-221c").then(n.bind(null,"iJuG"))},meta:{title:"应用管理",icon:"all"}}]}),s()({},De({permissions:["manage","users","read"]}),{children:[{name:"employee-dep",path:"employee-dep",component:function(){return Promise.all([n.e("chunk-68be"),n.e("chunk-1f3c")]).then(n.bind(null,"ZJ6w"))},meta:{title:"员工与部门管理",icon:"s-seas"}}]}),s()({},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-68be"),n.e("chunk-250d")]).then(n.bind(null,"M1nL"))},meta:{}}]}),s()({},De({permissions:["manage","examineFlow"]}),{children:[{name:"system-examine",path:"system-examine",component:function(){return n.e("chunk-7653").then(n.bind(null,"2Xr9"))},meta:{title:"业务审批流",icon:"approve"}}]}),s()({},De({permissions:["manage","oa"]}),{children:[{name:"system-workbench",path:"system-workbench",component:function(){return n.e("chunk-6ed4").then(n.bind(null,"EIxH"))},meta:{title:"办公审批流",icon:"approve"}},{name:"workbenchHandlefield",path:"workbench-custom-field/:type/:id/:label",component:function(){return n.e("chunk-7094").then(n.bind(null,"5jDI"))},hidden:!0,meta:{activeMenu:"/manage/system-workbench"}}]}),s()({},De({permissions:["manage","work"]}),{children:[{name:"system-project",path:"system-project",component:function(){return n.e("chunk-091e").then(n.bind(null,"gqmq"))},meta:{title:"项目管理",icon:"project"}}]}),s()({},De({permissions:["manage","crm"],title:"客户管理",icon:"customer"},"/manage/customer"),{alwaysShow:!0,children:[{path:"custom-field",component:function(){return n.e("chunk-3fb1").then(n.bind(null,"N10N"))},meta:{title:"自定义字段设置",requiresAuth:!0,permissions:["manage","crm","field"]}},{path:"customer",component:function(){return n.e("chunk-7cf6").then(n.bind(null,"qpl/"))},meta:{title:"客户公海规则设置",requiresAuth:!0,permissions:["manage","crm","pool"]}},{path:"print-templates",component:function(){return n.e("chunk-1f38").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-291c").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-5874").then(n.bind(null,"WcnQ"))},meta:{title:"业务参数设置",requiresAuth:!0,permissions:["manage","crm","setting"]}},{name:"crmBizGoals",path:"biz-goals",component:function(){return n.e("chunk-6369").then(n.bind(null,"JT+4"))},meta:{title:"业绩目标设置",requiresAuth:!0,permissions:["manage","crm","achievement"]}},{name:"customField",path:"custom-field/:type/:label/:id",component:function(){return n.e("chunk-7094").then(n.bind(null,"5jDI"))},hidden:!0,meta:{activeMenu:"/manage/customer/custom-field",requiresAuth:!0,permissionList:[["manage","crm","field"],["manage","crm","activityForm"]]}},{name:"handlefield",path:"custom-field/:type/:id/:label",component:function(){return n.e("chunk-2299").then(n.bind(null,"LKRs"))},hidden:!0,meta:{activeMenu:"/manage/customer/custom-field",requiresAuth:!0,permissions:["manage","crm","field"]}}]}),s()({},De({permissions:["manage","adminLog"],title:"系统日志",icon:"record"},"/manage/log/"),{alwaysShow:!0,children:[{path:"handle",component:function(){return n.e("chunk-2d2d").then(n.bind(null,"Il4T"))},meta:{title:"数据操作日志",requiresAuth:!0,permissions:["manage","adminLog","actionRecord"]}},{path:"sys",component:function(){return n.e("chunk-1247").then(n.bind(null,"VYvY"))},meta:{title:"系统操作日志",requiresAuth:!0,permissions:["manage","adminLog","systemLog"]}},{path:"login",component:function(){return n.e("chunk-6b0c").then(n.bind(null,"9wY2"))},meta:{title:"登录日志",requiresAuth:!0,permissions:["manage","adminLog","loginLog"]}}]}),s()({},De({permissions:["manage","other_rule","setwelcome"]},"/manage",!0),{children:[{name:"system-other",path:"system-other",component:function(){return n.e("chunk-a8b8").then(n.bind(null,"CEXg"))},meta:{title:"其他设置",icon:"manage"}}]}),s()({},De({permissions:["manage","init","initData"]},"/manage",!0),{children:[{path:"init",component:function(){return n.e("chunk-06f2").then(n.bind(null,"bOnO"))},meta:{title:"初始化数据",icon:"results-solid"}}]})],Fe={name:"UserLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:s()({},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-1d19")]).then(n.bind(null,"44Km"))}}]},Ee={name:"BiLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:s()({},Object(v.b)(["biRouters"])),methods:{navClick:function(e){}}},Le=(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));Le.options.__file="BiLayout.vue";var Ue=Le.exports,Ve=function(e,t,n){return{path:e,component:Ue,alwaysShow:t,meta:s()({requiresAuth:!0},n)}},Me=[s()({},Ve("/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-15ce"),n.e("chunk-6aed")]).then(n.bind(null,"xI5Q"))},meta:{title:"客户总量分析"}},{path:"record",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-15ce"),n.e("chunk-b74f")]).then(n.bind(null,"rPZC"))},meta:{title:"客户跟进次数分析"}},{path:"recordmode",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-15ce"),n.e("chunk-2508")]).then(n.bind(null,"AfsK"))},meta:{title:"客户跟进方式分析"}},{path:"conversion",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-510f")]).then(n.bind(null,"KbJk"))},meta:{title:"客户转化率分析"}},{path:"pool",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-15ce"),n.e("chunk-7cac")]).then(n.bind(null,"+Dqn"))},meta:{title:"公海客户分析"}},{path:"cycle",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-15ce"),n.e("chunk-e2e2")]).then(n.bind(null,"ECOn"))},meta:{title:"成交周期分析"}},{path:"customerSatisfaction",component:function(){return Promise.all([n.e("chunk-15ce"),n.e("chunk-4a97")]).then(n.bind(null,"SMVw"))},meta:{title:"员工客户满意度分析"}},{path:"productSatisfaction",component:function(){return Promise.all([n.e("chunk-15ce"),n.e("chunk-5e9b")]).then(n.bind(null,"kZvv"))},meta:{title:"产品满意度分析"}}]}),s()({},Ve("/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-116a")]).then(n.bind(null,"IKVb"))},meta:{title:"销售漏斗"}},{path:"addBusiness",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-0dd1")]).then(n.bind(null,"Pu8u"))},meta:{title:"新增商机分析"}},{path:"conversion",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-436a")]).then(n.bind(null,"ZxH2"))},meta:{title:"商机转化率分析"}}]}),s()({},Ve("/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-1604"),n.e("chunk-fd1f")]).then(n.bind(null,"nm8A"))},meta:{title:"合同数量分析"}},{path:"money",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-1604"),n.e("chunk-0d35")]).then(n.bind(null,"uosD"))},meta:{title:"合同金额分析"}},{path:"backMoney",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-1604"),n.e("chunk-6cdb")]).then(n.bind(null,"Jq73"))},meta:{title:"回款金额分析"}},{path:"summary",component:function(){return Promise.all([n.e("chunk-1604"),n.e("chunk-4577")]).then(n.bind(null,"f+T/"))},meta:{title:"合同汇总表"}},{path:"invoice",component:function(){return Promise.all([n.e("chunk-1604"),n.e("chunk-166e")]).then(n.bind(null,"KJIt"))},meta:{title:"发票统计分析"}}]}),s()({},Ve("/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-30f4")]).then(n.bind(null,"hC2P"))},meta:{title:"城市分布分析"}},{path:"customer/:type",hidden:!0,component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-b381")]).then(n.bind(null,"7DYL"))}},{path:"customer/industry",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-b381")]).then(n.bind(null,"7DYL"))},ignore:!0,meta:{title:"客户行业分析"}},{path:"customer/level",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-b381")]).then(n.bind(null,"7DYL"))},ignore:!0,meta:{title:"客户级别分析"}},{path:"customer/source",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-b381")]).then(n.bind(null,"7DYL"))},ignore:!0,meta:{title:"客户来源分析"}}]}),s()({},Ve("/bi/product",!0,{permissions:["bi","product"],icon:"product",title:"产品分析"}),{children:[{path:"sales",component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-6907")]).then(n.bind(null,"Rw0F"))},meta:{title:"产品销售情况统计"}},{path:"category",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-32c9")]).then(n.bind(null,"d0mj"))},meta:{title:"产品分类销量分析"}}]}),s()({},Ve("/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-0c74"),n.e("chunk-07c6")]).then(n.bind(null,"nd5u"))},meta:{title:"合同金额排行"}},{path:"receivables",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0c74"),n.e("chunk-60f7")]).then(n.bind(null,"5xTn"))},meta:{title:"回款金额排行"}},{path:"signing",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0c74"),n.e("chunk-316c")]).then(n.bind(null,"rWyX"))},meta:{title:"签约合同排行"}},{path:"product",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0c74"),n.e("chunk-28cb")]).then(n.bind(null,"1Rfc"))},meta:{title:"产品销量排行"}},{path:"addCustomer",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0c74"),n.e("chunk-2910")]).then(n.bind(null,"IXg7"))},meta:{title:"新增客户数排行"}},{path:"addContacts",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0c74"),n.e("chunk-f706")]).then(n.bind(null,"bHo1"))},meta:{title:"新增联系人数排行"}},{path:"recordNun",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0c74"),n.e("chunk-31469")]).then(n.bind(null,"o2d2"))},meta:{title:"跟进次数排行"}},{path:"recordCustomer",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0c74"),n.e("chunk-c928")]).then(n.bind(null,"tn4V"))},meta:{title:"跟进客户数排行"}},{path:"examine",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-0c74"),n.e("chunk-6dd2")]).then(n.bind(null,"pmCI"))},meta:{title:"出差次数排行"}}]}),s()({},Ve("/bi/oa",!0,{permissions:["bi","oa"],icon:"office",title:"办公分析"}),{children:[{path:"log",component:function(){return n.e("chunk-0d57").then(n.bind(null,"AO2w"))},meta:{title:"日志分析"}},{path:"examine",component:function(){return n.e("chunk-82b3").then(n.bind(null,"2kKq"))},meta:{title:"审批分析"}}]}),s()({},Ve("/bi/target",!1,{permissions:["bi","achievement"]}),{children:[{path:"complete",component:function(){return Promise.all([n.e("chunk-753d"),n.e("chunk-32da")]).then(n.bind(null,"IISu"))},meta:{icon:"target-solid",title:"业绩目标完成情况"}}]})],Ne={name:"TaskExamineLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:s()({},Object(v.b)(["taskExamineRouters"])),created:function(){},methods:{navClick:function(e){}}},Be=(n("K8Pg"),Object(h.a)(Ne,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 We=Be.exports,Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{path:"/taskExamine",component:We,alwaysShow:!1,hidden:e,meta:s()({requiresAuth:!0,permissions:["oa","taskExamine"]},t)}},Ye=[s()({},Pe(!0),{children:[{path:"task-index/:type",meta:{redirect:"task-index/1"},component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-33b9")]).then(n.bind(null,"ersz"))}}]}),s()({},Pe(!1),{ignore:!0,children:[{path:"task-index/1",meta:{title:"我的任务",icon:"my-task"}}]}),s()({},Pe(!1),{ignore:!0,children:[{path:"task-index/2",meta:{title:"下属的任务",icon:"o-task"}}]}),s()({},Pe(!0),{children:[{path:"examine-index/:type",meta:{redirect:"examine-index/my"},component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-4fe3")]).then(n.bind(null,"cMzD"))}}]}),s()({},Pe(!1),{ignore:!0,children:[{path:"examine-index/my",meta:{title:"我发出的审批",icon:"apply-for"}}]}),s()({},Pe(!1),{ignore:!0,children:[{path:"examine-index/wait",meta:{title:"待我审批(办公)",icon:"approve"}}]}),s()({},Pe(!0),{children:[{path:"crm/:type",meta:{redirect:"crm/contract"},component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-4b8d")]).then(n.bind(null,"u+/2"))}}]}),s()({},Pe(!1),{ignore:!0,children:[{path:"crm/contract",meta:{title:"待我审批(合同)",icon:"contract"}}]}),s()({},Pe(!1),{ignore:!0,children:[{path:"crm/receivables",meta:{title:"待我审批(回款)",icon:"receivables"}}]}),s()({},Pe(!1),{ignore:!0,children:[{path:"crm/invoice",meta:{title:"待我审批(发票)",icon:"invoice"}}]})],Ze={name:"WorkLogLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:s()({},Object(v.b)(["workLogRouters"])),created:function(){},methods:{navClick:function(e){}}},Ge=(n("yw5q"),Object(h.a)(Ze,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));Ge.options.__file="WorkLogLayout.vue";var ze=Ge.exports,Qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{path:"/workLog",component:ze,alwaysShow:!1,hidden:e,meta:s()({requiresAuth:!0,permissions:["oa","log"]},t)}},qe=[s()({},Qe(!0),{children:[{path:"index/:type",meta:{redirect:"index/all"},component:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-6ff8")]).then(n.bind(null,"da4V"))}}]}),s()({},Qe(!1),{ignore:!0,children:[{path:"index/all",meta:{title:"全部",icon:"all"}}]}),s()({},Qe(!1),{ignore:!0,children:[{path:"index/send",meta:{title:"我发出的",icon:"copy-to"}}]}),s()({},Qe(!1),{ignore:!0,children:[{path:"index/received",meta:{title:"我收到的",icon:"email"}}]}),s()({},Qe(!1,{permissions:["crm","followRecord","read"]}),{children:[{path:"follow",component:function(){return Promise.all([n.e("chunk-2a3e"),n.e("chunk-06bc")]).then(n.bind(null,"z6WW"))},meta:{title:"跟进记录",icon:"message"}}]})],Je={name:"AddressBookLayout",components:{Navbar:F,Sidebar:X,AppMain:$},data:function(){return{}},computed:s()({},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:s()({requiresAuth:!1,permissions:["oa","book"]},t)}},$e=[s()({},He(!0),{children:[{path:"index/:type",meta:{redirect:"index/all"},component:function(){return n.e("chunk-7eaf").then(n.bind(null,"20Z4"))}}]}),s()({},He(!1),{ignore:!0,children:[{path:"index/all",meta:{title:"全部",icon:"all"}}]}),s()({},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:at}},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,at=[s()({},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{path:"/calendar",component:nt,meta:s()({requiresAuth:!1},e)}}({permissions:["crm"]}),{children:[{path:"index",component:function(){return Promise.all([n.e("chunk-3dd2"),n.e("chunk-47b9")]).then(n.bind(null,"buqt"))},meta:{title:"我的日历",icon:"board"}}]})];n.d(t,"c",function(){return ct}),n.d(t,"a",function(){return rt}),a.default.use(i.a);var it=[{path:"/login",name:"login",component:function(){return n.e("chunk-18ab").then(n.bind(null,"ntYl"))},hidden:!0},{path:"/welcome",component:function(){return n.e("chunk-71f1").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}],ot=function(){return new i.a({scrollBehavior:function(){return{y:0}},routes:it})},st=ot();function ct(){var e=ot();st.matcher=e.matcher}t.b=st;var rt=[{type:"crm",router:ie},{type:"taskExamine",router:Ye},{type:"workLog",router:qe},{type:"addressBook",router:$e},{type:"project",router:xe},{type:"bi",router:Me},{type:"manage",router:Se},{type:"calendar",router:at}]},oZyZ:function(e,t,n){},p4KX:function(e,t,n){"use strict";var a=n("bl/l");n.n(a).a},p65V:function(e,t,n){},p7yW:function(e,t,n){},pKm3:function(e,t,n){"use strict";var a=n("FyfS"),i=n.n(a),o=n("QbLZ"),s=n.n(o),c=n("Ew9n"),r=n("Xjjk"),l=n.n(r),d=n("hSIE"),u=n("zsVz"),m=n("Ir+r"),h=n("Flj7"),p=n("LWkM"),f=n("2X1c"),g=n("U8n8"),v=n("HslM"),b=n("z5u8"),y=n("u+Mw"),k=n("EBQf"),_=n("8GhS"),w=n("hwzM"),C=n("L2JU"),A=n("z7oh"),x=n("dPzk"),I=n("wd/R"),j=n.n(I),T=n("7Qib"),D=n("kK4T"),S={name:"TaskDetail",components:{SlideView:c.a,MembersDep:g.a,Emoji:y.a,RelatedBusiness:k.a,TagIndex:v.a,CRMFullScreenDetail:function(){return Promise.all([n.e("chunk-3146"),n.e("chunk-29ec"),n.e("chunk-ddd6"),n.e("chunk-2a3e"),n.e("chunk-4ba5")]).then(n.bind(null,"3z7q"))},SubTask:b.a,FileCell:w.a,XhUserCell:_.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)&&j()(t).isAfter(e.taskData.stop_time)}},stopTimeOptions:{disabledDate:function(t){return!(!e.taskData||!e.taskData.start_time)&&j()(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:s()({},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?p.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?u.c:u.b)({task_id:this.id}).then(function(t){var n=t.data;if(n.checked=5==n.status,n.subTaskList){var a=!0,o=!1,s=void 0;try{for(var c,r=i()(n.subTaskList);!(a=(c=r.next()).done);a=!0){var l=c.value;5==l.status?(l.checked=!0,e.subTaskComplete++):l.checked=!1}}catch(e){o=!0,s=e}finally{try{!a&&r.return&&r.return()}finally{if(o)throw s}}}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(u.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(d.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(m.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 a=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){Object(m.a)({work_id:a.workId,comment_id:e.comment_id,task_id:a.id}).then(function(e){t.splice(n,1),a.$emit("on-handle",{type:"change-comments",value:"delete",index:a.detailIndex,section:a.detailSection})}).catch(function(){})}).catch(function(){a.$message({type:"info",message:"已取消删除"})})},checkInfos:function(e,t){var n=this;Object(u.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 a=this;this.$confirm("确认取消关联?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"is-particulars"}).then(function(){var i={work_id:a.workId,task_id:a.taskData.task_id,id:t[e+"_id"],type:{customer:1,contacts:2,business:3,contract:4}[e]},o=Object(T.t)(a.allData);o[e].splice(n,1),Object(u.a)(i).then(function(e){a.allData=o,a.$message.success("关联取消成功")}).catch(function(){})}).catch(function(){a.$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 a=t.taskData.subTaskList;for(var i in a)if(a[i].task_id==e.task_id){a.splice(i,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(d.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("BLll"),n("KHd+")),O=Object(F.a)(S,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("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?a("flexbox",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"main",attrs:{direction:"column",align:"stretch"}},[e.taskData?a("div",{staticClass:"main__hd task-hd"},[a("flexbox",{staticClass:"task-hd__top",attrs:{justify:"space-between"}},[e.taskData.create_user_info?a("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(" "),a("div",[e.isArchive?a("span",{staticClass:"task-hd__top--info"},[e._v("该任务已于 "+e._s(e.taskData.archive_time)+" 被归档")]):e._e(),e._v(" "),e.isArchive?a("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?a("span",{staticClass:"task-hd__top--info"},[e._v("该任务已于 "+e._s(e.taskData.hidden_time)+" 被放入回收站")]):e._e(),e._v(" "),e.isRecycle&&e.getPermission("restoreTask")?a("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")?a("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")?a("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")?a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.morkDropdownClick}},[a("el-button",{attrs:{icon:"el-icon-more"}}),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{icon:e._f("wkIconPre")("delete"),command:"delete"}},[e._v("删除")])],1)],1):e._e()],1)]),e._v(" "),a("flexbox",{staticClass:"task-hd__middle",attrs:{align:"stretch"}},[a("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?a("div",{staticClass:"show-input"},[a("el-input",{attrs:{maxlength:100,size:"medium"},model:{value:e.taskDataName,callback:function(t){e.taskDataName=t},expression:"taskDataName"}}),e._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.submiteTaskName(e.taskDataName)}}},[e._v("保 存")]),e._v(" "),a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.nameVinput=!1}}},[e._v("取 消")])],1)],1):a("el-tooltip",{attrs:{content:e.taskData.name,effect:"dark",placement:"top"}},[a("div",{class:["task-name",{"is-checked":e.taskData.checked}],on:{click:e.editTaskName}},[e._v(e._s(e.taskData.name))])])],1),e._v(" "),a("flexbox",{staticClass:"task-hd__bottom"},[a("flexbox-item",{staticClass:"priority"},[a("flexbox",{nativeOn:{click:function(t){e.priorityVisible=!0}}},[a("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"}},[a("flexbox",{staticClass:"priority-select"},e._l(e.priorityList,function(t,n){return a("div",{key:n,staticClass:"priority-select-item",on:{click:function(n){e.priorityBtn(t,e.taskData.priority)}}},[a("span",{staticClass:"priority--icon",style:{backgroundColor:t.color}},[e._v(e._s(t.label))])])})),e._v(" "),a("span",{staticClass:"priority--icon",style:{backgroundColor:e.priority.color},attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.priority.label))])],1),e._v(" "),a("div",{staticClass:"head-btn__bd"},[a("div",{staticClass:"head-btn__bd--des"},[e._v("优先级")])])],1)],1),e._v(" "),a("flexbox-item",[a("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}},[a("flexbox",{staticClass:"head-btn",attrs:{slot:"reference"},slot:"reference"},[e.taskData.main_user?a("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:""}}):a("i",{staticClass:"wk wk-l-plus head-btn__icon is-null"}),e._v(" "),a("div",{staticClass:"head-btn__bd"},[e.taskData.main_user?a("div",{staticClass:"head-btn__bd--title"},[e._v(e._s(e.taskData.main_user.realname))]):e._e(),e._v(" "),a("div",{staticClass:"head-btn__bd--des"},[e._v("负责人")])]),e._v(" "),a("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(" "),a("flexbox-item",[a("flexbox",{staticClass:"head-btn"},[a("i",{staticClass:"wk wk-l-time head-btn__icon",class:[e.taskData.start_time?"is-valve":"is-null"]}),e._v(" "),a("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(" "),a("div",{staticClass:"head-btn__bd"},[e.taskData.start_time?a("div",{staticClass:"head-btn__bd--title"},[e._v(e._s(e._f("moment")(e.taskData.start_time,"YYYY年MM月DD日")))]):e._e(),e._v(" "),a("div",{staticClass:"head-btn__bd--des"},[e._v("开始时间")])]),e._v(" "),a("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(" "),a("flexbox-item",[a("flexbox",{staticClass:"head-btn"},[a("i",{staticClass:"wk wk-l-minus head-btn__icon",class:[e.taskData.stop_time?"is-valve":"is-null"]}),e._v(" "),a("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(" "),a("div",{staticClass:"head-btn__bd"},[e.taskData.stop_time?a("div",{staticClass:"head-btn__bd--title"},[e._v(e._s(e._f("moment")(e.taskData.stop_time,"YYYY年MM月DD日")))]):e._e(),e._v(" "),a("div",{staticClass:"head-btn__bd--des"},[e._v("结束时间")])]),e._v(" "),a("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?a("flexbox",{staticClass:"main__bd",attrs:{align:"stretch"}},[a("div",{staticClass:"main__bd--left"},[a("flexbox",[a("flexbox-item",{staticClass:"participant"},[a("div",{staticClass:"participant-title"},[e._v("参与人")]),e._v(" "),a("flexbox",{staticClass:"participant-bd",attrs:{wrap:"wrap"}},[e._l(e.taskData.owner_list,function(t,i){return a("span",{key:i,staticClass:"owner-list"},[a("el-tooltip",{attrs:{placement:"bottom",effect:"light","popper-class":"tooltip-change-border"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[e._v(e._s(t.realname))])]),e._v(" "),a("xr-avatar",{staticClass:"user-img",attrs:{name:t.realname,size:32,src:t.img||t.thumb_img}})],1),e._v(" "),e.getPermission("setTaskOwnerUser")?a("img",{staticClass:"el-icon-close",attrs:{src:n("cEue")},on:{click:function(n){e.deleteOwnerList(t,i)}}}):e._e()],1)}),e._v(" "),e.getPermission("setTaskOwnerUser")?a("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}},[a("i",{staticClass:"wk wk-l-plus participant-add",attrs:{slot:"membersDep"},slot:"membersDep"})]):e._e()],2)],1),e._v(" "),e.labelList?a("flexbox-item",{staticClass:"label"},[a("div",{staticClass:"label-title"},[e._v("标签")]),e._v(" "),e._l(e.labelList,function(t,n){return a("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")?a("div",{staticClass:"add-tag"},[a("tag-index",{attrs:{placement:"right","task-data":e.taskData}},[a("span",{staticClass:"add-btn",attrs:{slot:"editIndex"},slot:"editIndex"},[a("i",{staticClass:"wk wk-l-plus"}),e._v(" "),a("span",{staticClass:"label"},[e._v("标签")])])])],1):e._e()],2):e._e()],1),e._v(" "),a("div",{staticClass:"secitons"},[a("div",{staticClass:"section"},[a("div",{staticClass:"section__hd"},[a("i",{staticClass:"wk wk-write"}),e._v(" "),a("span",[e._v("描述")])]),e._v(" "),a("div",{staticClass:"section__bd description"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!e.addDescriptionShow,expression:"!addDescriptionShow"}]},[e.taskData.description?a("div",{staticClass:"description-content",on:{click:e.editTaskDescription}},[e._v(e._s(e.taskData.description))]):a("div",{staticClass:"description-empty"},[a("span",{staticClass:"color-label"},[e._v("暂无描述")]),e._v(" "),e.getPermission("setTaskDescription")?a("span",{staticClass:"add-btn",on:{click:function(t){e.addDescriptionShow=!0}}},[a("i",{staticClass:"wk wk-l-plus"}),e._v(" "),a("span",{staticClass:"label"},[e._v("描述")])]):e._e()])]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.addDescriptionShow,expression:"addDescriptionShow"}]},[a("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(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submiteDescription}},[e._v("保 存")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){e.addDescriptionTextarea="",e.addDescriptionShow=!1}}},[e._v("取 消")])],1)],1)])]),e._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"section__hd"},[a("i",{staticClass:"wukong wukong-relevance"}),e._v(" "),a("span",[e._v("相关信息")])]),e._v(" "),a("div",{staticClass:"section__bd"},[a("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(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"section__hd"},[a("i",{staticClass:"wukong wukong-sub-task"}),e._v(" "),a("span",[e._v("子任务("+e._s(e.subTaskComplete)+"/"+e._s(e.taskData.subTaskList.length)+")")])]),e._v(" "),a("div",{staticClass:"section__bd"},[0==e.taskData.pid?a("div",[a("div",[0!=e.taskData.subTaskList.length?[a("el-progress",{attrs:{percentage:e.subTaskProgress,"stroke-width":10}})]:[a("el-progress",{attrs:{percentage:0}})]],2),e._v(" "),0!=e.taskData.subTaskList.length?e._l(e.taskData.subTaskList,function(t,n){return a("div",{key:n},[t.showEdit?a("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)}}}):a("flexbox",{staticClass:"sub-task"},[a("div",{on:{click:function(e){e.stopPropagation()}}},[a("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(" "),a("div",{staticClass:"sub-task__bd text-one-line",class:{"is-checked":t.checked}},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),a("div",{staticClass:"edit-del-box"},[e.getPermission("updateChildTask")?a("span",{staticClass:"xr-text-btn primary",on:{click:function(n){e.editSubTask(t)}}},[e._v("编辑")]):e._e(),e._v(" "),e.getPermission("deleteChildTask")?a("span",{staticClass:"xr-text-btn delete",on:{click:function(n){e.deleteSubTask(t)}}},[e._v("删除")]):e._e()]),e._v(" "),t.stop_time?a("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?a("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?a("div",[a("span",{staticClass:"add-btn",on:{click:function(t){e.addSubtasks=!1}}},[a("i",{staticClass:"wk wk-l-plus"}),e._v(" "),a("span",{staticClass:"label"},[e._v("子任务")])])]):a("sub-task",{attrs:{"sub-task-com":"new","task-data":e.taskData},on:{"on-handle":e.handleSubTasksBlock}})]:e._e()],2):e._e()])]),e._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"section__hd"},[a("i",{staticClass:"wukong wukong-file"}),e._v(" "),a("span",[e._v("附件")]),e._v(" "),e.fileList.length?a("span",[e._v("("+e._s(e.fileList.length)+")")]):e._e()]),e._v(" "),a("div",{staticClass:"section__bd"},[e._l(e.fileList,function(t,n){return a("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")?a("el-upload",{staticClass:"upload-file",attrs:{"http-request":e.httpRequest,action:"https://jsonplaceholder.typicode.com/posts/",multiple:"","list-type":"picture"}},[a("span",{staticClass:"add-btn"},[a("i",{staticClass:"wk wk-l-plus"}),e._v(" "),a("span",{staticClass:"label"},[e._v("附件")])])]):e._e()],2)])])],1),e._v(" "),a("div",{staticClass:"main__bd--right"},[a("el-tabs",{staticClass:"d-container-bd--right",attrs:{value:"comment",type:"border-card"}},[a("el-tab-pane",{attrs:{label:"评论",name:"comment",lazy:""}},[a("flexbox",{directives:[{name:"loading",rawName:"v-loading",value:e.commentsLoading,expression:"commentsLoading"}],staticClass:"comment-cells",attrs:{direction:"column",align:"stretch"}},[a("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(" "),a("reply-comment",{ref:"f_reply",on:{toggle:e.closeOtherReply,reply:e.handleReply}})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"活动",name:"activity",lazy:""}},[a("div",{staticClass:"activity-cells"},e._l(e.activityList,function(t,n){return a("flexbox",{key:n,staticClass:"activity-cell",attrs:{align:"stretch"}},[a("xr-avatar",{staticClass:"user-img",attrs:{name:t.realname,size:26,src:t.img||t.thumb_img}}),e._v(" "),a("div",{staticClass:"activity-cell__bd"},[a("div",{staticClass:"activity-info"},[a("span",{staticClass:"activity-info--name"},[e._v(e._s(t.realname))]),e._v(" "),a("span",{staticClass:"activity-info--time"},[e._v(e._s(t.create_time))])]),e._v(" "),a("div",{staticClass:"activity-content"},[e._v(e._s(t.content))])])],1)}))])],1)],1)]):e._e()],1):e._e(),e._v(" "),a("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,"c5841a6a",null);O.options.__file="TaskDetail.vue";t.a=O.exports},plF6:function(e,t,n){"use strict";var a=n("lbb6");n.n(a).a},po7t:function(e,t,n){"use strict";var a=n("jR8U");n.n(a).a},qATP:function(e,t,n){"use strict";var a=n("a9vW");n.n(a).a},qGmm:function(e,t,n){},qRjM:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK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zrjTz52NLrj8dqsXqyByaFbVmWWlT3PTE6sd/ij5OAy9JEzU/4PP3mR3qchuoqe3WOch6qMAtPzeZPOqCVH3L2cCj3IWTiZVVM9kLTUSu9OrIqBnzSpAXWvLswo92ul9Yu/4VLavkUfjxrV8XP9kSdetD0XUuFku/eNhtaY2O0doyzROIEjC34FBxdLW2VKqvlaj5wopKCFvqzHxXNHWulIknOnbjieieW8JqS829R8LeuPPGz8jNFXVdbVsslpbErlslad6rPjNXp/zeX5NiNPdg2fzrF6NCo3ERBujqc7l96ZhqrT0vBd36f3OgvKlzz+zNrmiNQiJKEJWtZdbTJZbW0m3Xv8uQX6fUDLCWtbr1CoWmttUa3Va/90L5czy1e0op2xKNpZ7f/a1bb1/qvl6pHWBFMTVBqRNNRHaJ26IodVuickR9qs29nrp7aYAb94pbL2U95Lg3k263SfjbVJrX+dzLlc1Q5ITV07FKLoHWrV89aqkXlJbIbDod3wXkraxqSN16ogY+rrugxNU7HQwvlN+9El8aTcIq36nNiMe6IlQXttprLDG+6vP6yeyK2GqvUE10GKBG1TPt0YJ13XKrNbhSvvFKb3Yuqqb4SaBq5Xn1OUrxaJSvhX2l7r6tumuFwfPtlclrKqZuH67P2ve7rRsbeZHvOZytT7UI1j+RyVTjg3KpmNzzbQmz57X4t3FMMmqTxXOz34+cJJ3bVlKPb4+cjP+iUuZG68c0b0Fx7ewRO87ofPVcq159RtK2xYKqyQowVlmZdQXegKyArADICsgKgKwAyArICoCsAGOX9R2aARLO5ZysR2kLSDidOVl30haQcP6ck/WXYRmgPSChyM3tOVkPhWUbbQIJZVvbliFH380GbM51tQAJYvewm5YvqzICG8Lyk7AM0kZQYwaH7/YPhb3qu9mq/GUt+uE3wvLTsDwWlnVh0WKHBtoOqkBPWDqG7/Dbc7f+fP4vwAACCep9RzCbwgAAAABJRU5ErkJggg=="},qSqi:function(e,t,n){},qX8a:function(e,t,n){},qcdG:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAA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JEQjMyNjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6MJayEAAAAYklEQVR42mL4////kf/kg8NAzICOmRgoA4xYBUEmUxFwAfFUBmzOJxNrAvHl/1Q0MAGIv8ICmoHMiEKOoCh0SSYqRNBPDFkqeT8O3fvUwjpAfB1kKLWTFDcQT2EYMjkKIMAAUDH69/mVXckAAAAASUVORK5CYII="},qj6v:function(e,t,n){},qpGn:function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("GQeE"),s=n.n(o),c=n("4XAY"),r=n("AAeT"),l=n("gVZb"),d=n("EP+0"),u=n("IV42"),m=n("8GhS"),h=n("IEYw"),p=n("a/5N"),f={name:"ContactsCreate",components:{XrCreate:l.a,CreateSections:d.a,CrmRelativeCell:m.a,WkFormItems:u.default},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,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(c.x)(t).then(function(t){var n=t.data||[];Object(p.b)(e.phone)||n.forEach(function(t){"mobile"===t.form_type&&(t.default_value=e.phone)});var a=e.getFormAssistIds(n),i=[],o=[],s={},c={};n.forEach(function(t){var n=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId);var r=e.getItemIsCanEdit(t,e.action.type);if(o.show&&r&&(s[o.field]=e.getRules(t)),o.disabled=!r,"customer"==o.form_type&&"relative"==e.action.type){var l={customer:{customer:!0},business:{customer:!0}}[e.action.crmType];l&&(o.disabled=l[t.form_type]||!1)}e.getItemRadio(t,o),o.show&&(c[o.field]=e.getItemValue(t,e.action.data,e.action.type)),n.push(o),i.push(t)}),o.push(n)}),e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var a=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(a.id=e.action.id),e.submiteParams(a)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.id=this.action.id),this.action.relativeData&&s()(this.action.relativeData).length&&(e=i()({},e,this.action.relativeData)),Object(r.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,a){if(["select","checkbox"].includes(e.formType)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)},close:function(){this.$emit("close")}}},g=(n("G7kj"),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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t},on:{change:e.formChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return[a&&"customer"==a.form_type?n("crm-relative-cell",{attrs:{value:e.fieldForm[a.field],disabled:a.disabled,"relative-type":"customer"},on:{"value-change":function(t){e.otherChange(t,a)}}}):e._e()]}}])})}))],1)],1)},[],!1,null,"14d14b59",null);v.options.__file="Create.vue";t.a=v.exports},qu7a:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxMjc3MDcyQzA1MkYxMUVBQkNDNUYwRjNEOERBRTEwNSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxMjc3MDcyRDA1MkYxMUVBQkNDNUYwRjNEOERBRTEwNSI+IDx4bXBNTTpEZX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17Kf3nLQI7FR2syokolfnt8pmPWvogX2/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=="},r426:function(e,t,n){},rJsn:function(e,t,n){"use strict";var a=n("iJiE");n.n(a).a},rRnC:function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("KTTK"),s=n("LWkM"),c=n("Rb0w"),r=n("U8n8"),l=n("ViDN"),d=n("L2JU"),u=n("7Qib"),m={components:{CreateView:l.a,MembersDep:r.a},props:{enterDetail:Boolean,id:[Number,String]},data:function(){return{loading:!1,name:"",batchId:Object(u.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:i()({},Object(d.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(s.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(u.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.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?s.z:s.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(o.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(c.c)().then(function(t){e.projectRoleList=t.data||[],e.projectRoleList.length&&(e.ownerRole=e.ownerRole||e.projectRoleList[0].id),e.loading=!1}).catch(function(){e.loading=!1})}}},h=(n("SaWp"),n("KHd+")),p=Object(h.a)(m,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,a){return n("span",{key:a,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,a){return n("flexbox-item",{key:a,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,"e23b7a7a",null);p.options.__file="AddProject.vue";t.a=p.exports},rW5V:function(e,t,n){"use strict";var a=n("Q3cC");n.n(a).a},rWxh:function(e,t,n){"use strict";var a=n("Ki5h");n.n(a).a},rYux:function(e,t,n){"use strict";var a=n("2dzy");n.n(a).a},rcqw:function(e,t,n){},rrw3:function(e,t,n){"use strict";var a={name:"WkDescText",components:{Tinymce:n("glbJ").a},inheritAttrs:!1,props:{},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{}},i=(n("yrOW"),n("KHd+")),o=Object(i.a)(a,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wk-desc-text"},[t("tinymce",this._b({attrs:{disabled:!0,toolbar:[],init:{statusbar:!1,placeholder:"描述文字内容",content_style:" * {color: #262626; margin: 0;} body { font-size: 14px; }",quickbars_selection_toolbar:!1,contextmenu:"",plugins:"autoresize",autoresize_bottom_margin:0}}},"tinymce",this.$attrs,!1))],1)},[],!1,null,null,null);o.options.__file="index.vue";t.a=o.exports},s5fA:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAADEk4LFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9za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heKDOwCrzopEqerS+ygyqDmY9vUBFTGr5uIetVJABaxax6gNIka9smJABawaiwdTFApVDKiAVedwVdaUrRxQAavOYUDtKRUFKmDVmlazokAFrJA2oAJWSBtQASvkNagXFwoqYIW8BZVoZ1FhOjwH6QAqYIW0ARWwQtqAClghbUAFrJA2oAJWSBtQASukDaiAFdIGVMAKaQMqYIW0ARWwQtqAClghbUAFrJA2oAJWSBtQASukDaiAFdIGVMAKaQMqYIW0ARWwQtqAClghbUAFrJA2oAJWSBtQASukDaiAFdIGVMAKaQMqYIW0ARWwQtqAClghbUAFrJA2oAJWgKoNqIAVoGoDKmAFqDt1umzAClABKwRQAStUkaACVoAKWCGAClihigUVsAJU7WBN4s4CVF1g3YG7C1B1gXUl7jBA1QXWJ0TL4E4DVB1gbRNtIe42QNVlNuBO0V7BXdcS1N2VAGpfWHlGYKpoj4lmgQCtQG2pBFD7wtoL7B2ijRFtgWhbREuACF9qZ6WBygpls1nceh3Vs+c0ig/eKf6rtx3xwQV/9H8CDABwC10Jf0Mp4QAAAABJRU5ErkJggg=="},s5mF:function(e,t,n){"use strict";var a=n("XWzT");n.n(a).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 a=n("d5Rn");n.n(a).a},"t/zt":function(e,t,n){},t3Un:function(e,t,n){"use strict";var a=n("4d7F"),i=n.n(a),o=n("vDqi"),s=n.n(o),c=n("XJYT"),r=n("X4fA"),l=n("Qyje"),d=n.n(l),u=n("ehos"),m=n("oYx3"),h=Object(u.debounce)(500,function(){Object(r.c)().then(function(){location.reload()}).catch(function(){location.reload()})}),p=Object(u.debounce)(500,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";Object(c.Message)({message:e,duration:1500,type:t})}),f=Object(u.debounce)(1e3,function(e){c.MessageBox.confirm(e,"提示",{confirmButtonText:"确定",showCancelButton:!1,type:"warning"}).then(function(){h()}).catch(function(){})});s.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=s.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:d.a.stringify(e.data)}return e},function(e){return i.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?m.b.push("/welcome"):t.error&&p(t.error),i.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"}),a=new FileReader;a.onload=function(){var e=JSON.parse(this.result);e.msg&&p(e.msg,1==e.code?"success":"error")},a.readAsText(n)},function(e){if(e.response){var t=e.response;500==t.status?p("网络错误,请检查您的网络"):t.data&&t.data.msg&&p(t.data.msg)}return i.a.reject(e)}),t.a=b},t6ro:function(e,t,n){},t8Uk:function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("GQeE"),s=n.n(o),c=n("4XAY"),r=n("c2Co"),l=n("gVZb"),d=n("EP+0"),u=n("IV42"),m=n("IEYw"),h=n("a/5N"),p={name:"LeadsCreate",components:{XrCreate:l.a,CreateSections:d.a,WkFormItems:u.default},mixins:[m.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,format:2};"update"==this.action.type&&(t.action_id=this.action.id),Object(c.x)(t).then(function(t){var n=t.data||[];Object(h.b)(e.phone)||n.forEach(function(t){"mobile"===t.form_type&&(t.default_value=e.phone)});var a=e.getFormAssistIds(n),i=[],o=[],s={},c={};n.forEach(function(t){var n=[];t.forEach(function(t){var o=e.getFormItemDefaultProperty(t);o.show=!a.includes(t.formAssistId);var r=e.getItemIsCanEdit(t,e.action.type);o.show&&r&&(s[o.field]=e.getRules(t)),o.disabled=!r,e.getItemRadio(t,o),o.show&&(c[o.field]=e.getItemValue(t,e.action.data,e.action.type)),n.push(o),i.push(t)}),o.push(n)}),e.baseFields=i,e.fieldList=o,e.fieldForm=c,e.fieldRules=s,e.loading=!1}).catch(function(){e.loading=!1})},saveClick:function(){var e=this;this.loading=!0;var t=this.$refs.crmForm;t.validate(function(n){if(!n)return e.loading=!1,e.getFormErrorMessage(t),!1;var a=e.getSubmiteParams(e.baseFields,e.fieldForm);"update"===e.action.type&&(a.id=e.action.id),e.submiteParams(a)})},submiteParams:function(e){var t=this;"update"==this.action.type&&(e.action_id=this.action.id),this.action.relativeData&&s()(this.action.relativeData).length&&(e=i()({},e,this.action.relativeData)),Object(r.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,a){if(["select","checkbox"].includes(e.form_type)&&"options_type"===e.remark&&e.optionsData){var i=this.getFormContentByOptionsChange(this.fieldList,this.fieldForm),o=i.fieldForm,s=i.fieldRules;this.fieldForm=o,this.fieldRules=s}},otherChange:function(e,t){this.$set(this.fieldForm,t.field,e.value),this.$refs.crmForm.validateField(t.field)},close:function(){this.$emit("close")}}},f=(n("yeeh"),n("KHd+")),g=Object(f.a)(p,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("el-form",{ref:"crmForm",staticClass:"wk-form",attrs:{model:e.fieldForm,rules:e.fieldRules,"validate-on-rule-change":!1,"label-position":"top"}},e._l(e.fieldList,function(t,a){return n("wk-form-items",{key:a,attrs:{"field-from":e.fieldForm,"field-list":t},on:{change:e.formChange}})}))],1)],1)},[],!1,null,"7143abe4",null);g.options.__file="Create.vue";t.a=g.exports},tFzm:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAAD/CAYAAACNZX/5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuM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KXCFfKZPI1033mzDONkaQYFD5ACbObU94O2MUPdRSvFD/NidAYScppEr/4LXayezGFn/8R1XzVbTwVaIyE9AWlyw5Wfcl0tdMQJaIiEZZPvsTDT2MkZDBgiF9QzRG/QnhXAj8jUpduNZ8RFYm4yRiNkZCcwAZcqBB+uOpOYyZJ4DeqI1XnqjbwMNMYCQnD0+IXozjURFmuFsJFPuJxqjOFpcJSRVl3d7e07+JSThIrU1SXqi5QTXRgWOA2011+hofOLapramiMxDkqxZ/FhkEuVlVZ8r7Q5X9M9VPxU5C28VDRGGmMpBSMET9RHPvOnKoaUeTXx+QJUm4wfoglj2t4SGiMNEZiE4gcF6qOMTpa1RDxa7SLv3XDo+Jv5fAQI0MaI42RuMZ+4k/eTFdNy9Bo1Sh8B1QjzX2x6mS7iQKxVBF7ZmP2+GXxtxTAOu+V4u/jTGiMQ/L/AgwAhUL2XK6VZd0AAAAASUVORK5CYII="},tbm1:function(e,t,n){"use strict";n.d(t,"a",function(){return i});n("GQeE");var a=n("t3Un");function i(e){return Object(a.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 a=n("GQeE"),i=n.n(a),o=n("sCIN"),s={name:"Emoji",data:function(){return{emojiData:o.a,pannels:["表情","自然","物品","地点","符号"],activeIndex:0}},computed:{emojis:function(){var e=this;return this.pannels.map(function(t){return i()(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)}}},c=(n("GBkM"),n("KHd+")),r=Object(c.a)(s,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,a){return n("li",{key:a,class:{active:a===e.activeIndex},on:{click:function(t){e.changeActive(a)}}},[e._v("\n "+e._s(t)+"\n ")])})),e._v(" "),n("ul",{staticClass:"emoji-container"},e._l(e.emojis,function(t,a){return a===e.activeIndex?n("li",{key:a,staticStyle:{padding:"0"}},[e._v("\n "+e._s(t)+"--"+e._s(a)+"\n "),e._l(t,function(t,a){return n("a",{key:a,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);r.options.__file="Emoji.vue";t.a=r.exports},u63K:function(e,t,n){"use strict";var a=n("p7yW");n.n(a).a},"uit/":function(e,t,n){"use strict";var a=n("qj6v");n.n(a).a},uwtX:function(e,t,n){},vAiE:function(e,t,n){"use strict";var a=n("VYvA");n.n(a).a},vHwe:function(e,t,n){e.exports={xrColorPrimary:"#2362FB"}},vbWX:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADdCAYAAAGzlLJTAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAq6ADAAQAAAABAAAA3QAAAAATJCntAAAeIUlEQVR4Ae2dC5gUxbWAz8y+l91lgUXcXXkJCohguGhY3spHSGIun5pEIZrEENAYzVVyNd58XK+JfAmJGiOYizEg4ZpEBTRKrsbcEATloWuMjxgNDxEWFhYWdtll37uzM3P79FJDd09VP2a6ZnpmTvEt3V2PU6f+OlNdVV1dDSDJ+aZvW9CtyM51Kv+Fq34OQ3yVPlE6fyxCmbD68LEwOzceUXBcTiQ8bsGoFU94tlbdwec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JbaSk2rhrhsrPlmasX0hmN3Gebdus66DEWo8o3d8VIutph2DxX5uuTI5b9XNMOpn97oz2AU/2ftEJDouTKnIHwLDCssBR/4F2fkQUOZju4I90BQ4oxpnQ3dTxj0MYIBSap6VKU3HzCOA86yen7rKvGqhEosIkLGKyJC/5wiQsXquSkghEQEyVhEZ8vccATTWHs9pRQoRAT2BNrzER9WP6/3pigh4i4Dy3GMdaqSu+p22bcFq5US/CsRb+pI2GUpAWb/6+BtzNt6BxY8sUR+/6frc0jLfzxWvbyv+1JfNUOPwSLFDih5rQ/mh77457bnIljz/DyrjiuIkQErVAAAAAElFTkSuQmCC"},vc04:function(e,t,n){},vtCG:function(e,t,n){"use strict";var a=n("Lkl6");n.n(a).a},wExK:function(e,t,n){"use strict";n.r(t);var a=n("84Wq"),i=n("bWDp"),o={name:"WkFormItem",components:{WkField:a.a},mixins:[i.a],props:{propPrefix:{type:String,default:""},item:Object,index:Number,fieldFrom:{type:Object,default:function(){return{}}},ignoreFields:{type:Array,default:function(){return[]}},disabled:Boolean},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{fieldChange:function(e,t,n,a){this.$emit("change",e,t,n,a)}}},s=(n("zSE9"),n("C5t8"),n("KHd+")),c=Object(s.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.getShowValue(e.item)?n("el-form-item",{key:e.index,staticClass:"wk-form-item",class:[e.item.className||"","is-"+e.item.form_type],style:{width:e.item.style_percent?e.item.style_percent+"%":"auto"},attrs:{prop:""+(e.propPrefix||"")+e.item.field,rules:e.item.rules}},[n("template",{slot:"label"},[e._v("\n "+e._s(e.item.name)+"\n "),"tooltip"==e.item.tipType?n("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(e.getTips(e.item))},slot:"content"}),e._v(" "),n("i",{staticClass:"wk wk-help wk-help-tips"})]):n("span",{staticStyle:{color:"#999"}},[e._v("\n "+e._s(e.getTips(e.item))+"\n ")])],1),e._v(" "),n("wk-field",{attrs:{item:e.item,index:e.index,"field-from":e.fieldFrom,"ignore-fields":e.ignoreFields,disabled:e.disabled},on:{change:e.fieldChange},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.data,a=t.index;return[e._t("default",null,{data:n,index:a})]}}])})],2):e._e()},[],!1,null,"66f025de",null);c.options.__file="WkFormItem.vue";t.default=c.exports},wWym:function(e,t,n){},wmfQ:function(e,t,n){"use strict";var a=n("EOSc");n.n(a).a},"wu/m":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkJFRDI1M0Q1NDE2NTExRTk4NTFFODEzNjdCN0UzRTFCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkJFRDI1M0Q2NDE2NTExRTk4NTFFODEzNjdCN0UzRTFCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkVEMjUzRDM0MTY1MTFFOTg1MUU4MTM2N0I3RTNFMUIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkVEMjUzRDQ0MTY1MTFFOTg1MUU4MTM2N0I3RTNFMUIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4ZL3N5AAABQklEQVR42mJ0O3ueAQtgA+IAKLYEYikg/gXET4AYpGE9EG+EiqEAFiyGBQJxFxCrYLFEA4ojgfgOEJcD8TpkRUxIbGYg7oQqUGEgDEBq1kL1MGNzYRsQlzGQDmB6ypFdGEKmYciGhsAMBIVNPz7VvWqqYEwATACZBfJyKBDL4FOpw8NNjCulgTiMCZo0qAUCQAaaUtFAE5CXJbCFGTZv7jQygLOvfPnKUHzrNroSSSZsqZ0YwIhDHOTC50DMiyyIbjPMZe7nLhCy5znIhZeoGIZnQAZuoKKBG0AGroaWIjgBKAKuAjEB8BRkFgs0UoqAeBUulVhiExsoBOKfsLwMcmU3BV7thpqBUnxVAvEUMgybCtWLUR7+BeJcaKlxhwiD7kDLgRyoXpwlNqjQ3AxVDCq9jaEZHxbwZ6FVwGpsmQIgwAD7IEenGBpwRwAAAABJRU5ErkJggg=="},x893:function(e,t,n){},xBJR:function(e,t,n){"use strict";var a=n("DuPV");n.n(a).a},xXyP:function(e,t,n){"use strict";var a=n("L7w9");n.n(a).a},xpQc:function(e,t,n){"use strict";var a=n("mqBO");n.n(a).a},y4JV:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgo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TFFOTk4NjVFNkY3QTAzODYwQTgiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5ZqqPOAAAB00lEQVR42mJ0O3ueAQtgA+IAKLYEYikg/gXET4AYpGE9EG+EiqEAFiyGBQJxFxCrYLFEA4ojgfgOEJcD8TpkRUxIbGYg7oQqUGEgDEBq1kL1MGNzYRsQlzGQDmB6ypFdGEKmYciGhsAMBIVNPwPlYALILJCBoUAsQwUDpYE4jAmaNEgCMuzsDHO0NBh61DDiLgBkoCkphqlycTH0qqsyyHJwMPz69x9d2gRkoARGYAA1TNdUZxBjY0MRN+TlZehWVWEQYGFhOP7xI0PjvfvoWiWZsKV2kMVKnJwM/UCDFTg5wGK2AgIMLSpKDJzMTAw7375jaLr3gOHnv38YPmAEZr2bQFoNWZCTiYmhVkmRwZiPl+HL378MO968ZQgSE2VgYmRkWPXyFcO8p88Y/mMPkYcgF15CF/0OtLnu7j2Gg+8/MPAwMzOEiIsxMAINm/XkKcNc3IaBwBmQgRuwyfz5/5+h/f4DhvWvXoNd2f3gEcNaIJsA2ADyMijk71IhLT4FYmVYpBRRIWEXAvFPWF5eDcTdFBjWDTUDpfiqBOIpZBg2FaoXozz8C8S50FLjDhEG3YGWAzlQvThLbFChuRmqGFR6G0MzPizgz0KrgNXYMgVAgAEAQ6R42TeJ/UsAAAAASUVORK5CYII="},yCFu:function(e,t,n){"use strict";var a=n("44s6");n.n(a).a},yTGT:function(e,t,n){"use strict";var a=n("0pT4");n.n(a).a},yeeh:function(e,t,n){"use strict";var a=n("p65V");n.n(a).a},ykWn:function(e,t,n){},yrOW:function(e,t,n){"use strict";var a=n("9Wai");n.n(a).a},yw5q:function(e,t,n){"use strict";var a=n("d0vG");n.n(a).a},z5u8:function(e,t,n){"use strict";var a=n("gDS+"),i=n.n(a),o=n("QbLZ"),s=n.n(o),c=n("Flj7"),r=n("0hym"),l=n("LWkM"),d=n("L2JU"),u={components:{XhUser:r.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:s()({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].id==this.subData.mainUser.id)}},Object(d.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,"{}"!==i()(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(c.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(c.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 a in n)if(n[a].task_id==t.taskId){var i=n[a];i.name=t.subtasksTextarea,i.stop_time=t.subtasksDate,i.mainUser=t.xhUserData.length>0?t.xhUserData[0]:null,n.splice(a,1,i);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()}}},m=(n("OSKm"),n("KHd+")),h=Object(m.a)(u,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,a){return n("span",{key:a},[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,"12411432",null);h.options.__file="SubTask.vue";t.a=h.exports},z7oh:function(e,t,n){"use strict";var a=n("QbLZ"),i=n.n(a),o=n("dPzk"),s=n("Ir+r"),c=n("L2JU"),r=n("Xjjk"),l=n.n(r),d={name:"CommentList",components:{ReplyComment:o.a},props:{list:{type:Array,required:!0},id:{type:[String,Number],required:!0},type:[String,Number]},data:function(){return{replyIndex:null,commentLoading:!1}},computed:i()({},Object(c.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},a=null,i=this.replyIndex.split("-"),o=this.list[i[0]];i[1]&&(a=o.childCommentList[i[1]]),o&&(n.main_id=o.comment_id,n.comment_id=o.childCommentList.comment_id||o.comment_id),a&&(n.comment_id=a.comment_id),this.commentLoading=!0,Object(s.c)(n).then(function(e){e.data.userInfo={user_id:t.userInfo.id,realname:t.userInfo.realname,img:t.userInfo.img},e.data.replyuserInfo=a?a.userInfo:o.userInfo,t.list[i[0]].childCommentList.push(e.data),t.replyIndex=null,t.commentLoading=!1}).catch(function(){t.commentLoading=!1})},handleToDelete:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.a)({comment_id:e.comment_id,task_id:n.id}).then(function(e){n.$message({type:"success",message:"删除成功!"}),a>=0?n.list[t].childCommentList.splice(a,1):n.$emit("delete",t)})}).catch(function(){n.$message({type:"info",message:"已取消删除"})})}}},u=(n("J1me"),n("KHd+")),m=Object(u.a)(d,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"comment-list"},e._l(e.list,function(t,a){return n("div",{key:a,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(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,a)}}},[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(a)?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,i){return n("div",{key:i},[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(a,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,a,i)}}},[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===a+"-"+i?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);m.options.__file="CommentList.vue";t.a=m.exports},z8ug:function(e,t,n){},zSE9:function(e,t,n){"use strict";var a=n("AwwL");n.n(a).a},zhwh:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"d",function(){return r});var a=n("t3Un");function i(e){var t=e.id?"update":"save";return Object(a.a)({url:"crm/visit/"+t,method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:"crm/visit/index",method:"post",data:e})}function s(e){return Object(a.a)({url:"crm/visit/delete",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(a.a)({url:"admin/file/index",method:"post",data:e})}function r(e){return Object(a.a)({url:"crm/visit/read",method:"post",data:e})}},zlvj:function(e,t,n){"use strict";var a=n("G1gW");n.n(a).a},zsVz:function(e,t,n){"use strict";n.d(t,"g",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"e",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return d}),n.d(t,"h",function(){return u});var a=n("t3Un");function i(e){return Object(a.a)({url:"oa/task/myTask",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function o(e){return Object(a.a)({url:(e.work_id?"work":"oa")+"/task/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function s(e){return Object(a.a)({url:"work/task/read",method:"post",data:e})}function c(e){return Object(a.a)({url:"work/task/read",method:"post",data:e})}function r(e){return Object(a.a)({url:"work/task/readLoglist",method:"post",data:e})}function l(e){return Object(a.a)({url:(e.work_id?"work":"oa")+"/task/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(a.a)({url:"oa/task/delrelation",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(a.a)({url:"oa/task/excelExport",method:"post",data:e,responseType:"blob",headers:{"Content-Type":"application/json;charset=UTF-8"}})}}},[[1,"runtime","chunk-elementUI","chunk-libs"]]]); |