| 1 |
- System.register(["./index-legacy.a130dba2.js","./composables-legacy.0c6ce36a.js","./LJWWData-legacy.844c3ebc.js","./LJUploadFiles-legacy.8442d71c.js","./LJWWMSelect-legacy.84eca530.js","./LJUploadImages-legacy.ba71ea83.js"],(function(e,t){"use strict";var a,i,s,l,o,n,r,c,d,m,u,f,p,v,_,g=document.createElement("style");return g.textContent="[data-v-ac872e4a] .el-dialog__body,[data-v-62d0f085] .el-dialog__body{padding:0 20px}.clue-details[data-v-bf7c2781]{margin-top:20px}.form[data-v-bf7c2781],.image[data-v-bf7c2781]{font-size:14px;margin-bottom:30px}.form span[data-v-bf7c2781],.image span[data-v-bf7c2781]{color:#606266}.group[data-v-bf7c2781]{display:grid;grid-template-columns:1fr 1fr}.image[data-v-bf7c2781]{display:flex;flex-direction:column}.image .img-list[data-v-bf7c2781]{margin-top:10px;display:flex;flex-direction:row;flex-wrap:wrap;width:210px;justify-content:space-between}.annex .annex-list[data-v-bf7c2781]{margin-top:5px}.annex .annex-list[data-v-bf7c2781]{margin-top:5px;display:flex;position:relative}.annex .annex-list .annex_item[data-v-bf7c2781]{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAElUlEQVRYCd1WTYhcRRCufu/Nm9kf80N2CfHg2RzEixcFr14UFEUQhGhEEaLehEiMEgIxG3NS8JDkInrQQ1wU9JSTiKB482A8iYv4mzUb3Ozu/PTrtr7urnndPbNLIAuCBW+qurp+vq7qnyH6j0lNy3/sPTu/tkW9O3hyPRiIDA6CXnQYO/1N2rx4Sm1ifKs0AeDZ8/Z9a+kZwozlb8Jim9BsW1V0bX4fXXjnOfXGNlYT6iT8kSV7l1W0AivJDe4p02RDpRSVpaX9i4qaEZ1593l1Ujx34kU8OTI02xgifDbikI1RTgfuPkY65iw3xpJhDio79Porl+yZOPZ2cgIARgg07WN1SMJgIllsjQOMsniqajpxKyASAEP2tbwKfK4KgUM2DpjnkGEjXOyJdTEBxMuX7NlYl8sJAGIEsiLeiE4G93LLfZtQqdbeVQWGGXVqem0nECkAdkYpfTlb3iaKEobkYg8AkKcRQLx00S5Nm0sAoAUuEIJlnys568Cl5MIdwMZSnwMMBtPSENVdOn7sgj2XzyZNe/ikPayU/cEZoZx8tFz9cy+MZQ4cQ/7YgwoWOt0RGTUa6zDvyTZKF/cvvzn3nWgqEcCLhmwT1wQRxyQpfEIPjOWs7+iC3qqoqhsqqtHYOwilMZ3FWJkAQPUUag/OK7McHBwkMjjIw+F5N/Kr9zqvaPpdLrvlO0EHi6BPRnx7ZuNoI8nyhcMykiXbdghY39/qUZf6VGUg4pwJgOFwyCsu4/kdZIARFL4Tsi3gJLJuapqZtVyNxsXS2nM34J8EAJQN72aQlLwqLB1/ikFJrrDiD64QPfaAoj1zsmlSQHA497GmkVa0vt6leTugbi9NjjwJAHeECn+YfT5LFed+6D5JAhdPn36t6cF7Cjq4PyAa7wYZEy19ZEmHBd240aE9exlWhiEBgHugzCow0lHfJTtzBJ4+0xrhVpWKA9b1tYq6qvi1tcgqgKt4pKQCfArIUMEr+/6nyStufdPQ1RVDf621K44DQx4MDelwCBTHAWR+MZOrKqvAgI9hUOEN5p3U5zf68pfarRapZNV/XDf0+TeaZrsegGw6cEdsOODkJlTUdYiPsM66mQBABXSogN91hnq1otNH6xC1ZUeW+vTqkzUdOiAZ2zmRvvh2g4bjnnvopU4KkG1CeArisFY5FRJUOPor1RBdzuGrGwEIa7VzBYYMruRjB0J49O1m39IjJzacLv5Z+dPS0bc3qQ7Xhg/ftgi28JWbkwXXUpPdzmkL2GkUKgDcADHD1b98as6NfFs8wKff2qDzL87QneMWeA9vw+ZM977wj3sh/Qi/lh8rqYjXJgBwE5LchCGerhTvAxiLo+dYULdDbo/4ULGN1+D/gdbhBIV4/Ny15iwlALA9qvAYyWoHjOnDK/zD6EXHAv222tDyV0PaNyfAoI2I1VuDxv1r8lqPoMzMk+GBJ1bvLk1xNQqz62JTmMN/f7LwowROTiU/xZM3jljuEs9zJAAOVgs/c6F/2aVcE2EQGzniiaQFmFh4/NqhwpaP8h+RXmx4uzIfx75RzWery4u/326s/5f/v+I6cFLiM+rfAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-position:50% 30%;display:inline-block;margin-right:20px;background-color:#f6f7f9;border:1px solid #eeeeee;border-radius:8px;width:140px;height:85px}.annex .annex-list .annex_item .file_tip[data-v-bf7c2781]{width:120px;height:80px;border-radius:8px;position:absolute;background-color:#fff;box-shadow:0 2px 4px #ccc;top:-90%;right:0;display:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAG6ADAAQAAAABAAAAGwAAAAD2D1T5AAABhklEQVRIDWNkIAGIBb77BVTOiq6FkYFV/OV63lfo4uh8JnQBWvJHLaNK6I4G42gw4g0BRlyyYkHvpjH8ZzBAk7cA8jH0MP7/f+Y/I+NvuFpGhpd83wUj7mxn/AkXAzJYkDnI7H9//k5kYmY+AxTjQRbHxgZaZIIk/p/h/393dItA8jiT/ptNojeBPstEMoQo5n8GhvZX64V3Y1OM0zKQ4lcbhJYwMvyfj00jDrEjr1kE63DI4fYZTAPzn585QNdeh/Hx0G//MP6PZFjN+BeXGrw+A2l6tlnqG1BRGJD5HZchIHFgqkl4t074CT41BC0DaX65XugKI+P/PNwGMfYB1WzBLQ+RIcoykNKX64TnAKnlEG0I8j8D4+lXogIVCBHcLKItAxnx7+/fdGB43UEy7iPTH8ZwhllIeQxJEp1JkmXA7PD5HwNTONAQcGb9z/g/5eVmgfvohlKVLxr0PhdcwlDVVHyGpf3HaPjgUz685RiBbcHPdPLif1CpT7BUp5ZjSEr6lFoKALmPY0P95MN7AAAAAElFTkSuQmCC);background-repeat:no-repeat;background-position:50% 55%}.annex .annex-list .annex_item .file_tip .upload[data-v-bf7c2781]{position:absolute;bottom:0;left:50%;transform:translate(-50%);color:#1651ee}.annex .annex-list .annex_item .file_tip .file_name[data-v-bf7c2781]{top:0;left:50%}.annex .annex-list .annex_item .file_tip .triangle[data-v-bf7c2781]{border-top:20px solid #fff;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid transparent;position:absolute;bottom:-20px;right:20px}.annex .annex-list .annex_item:hover .file_tip[data-v-bf7c2781]{display:block;cursor:pointer}.annex .annex-list .annex_item .file_name[data-v-bf7c2781]{position:absolute;bottom:0;left:50%;transform:translate(-50%);width:80%;height:30px;overflow:hidden;text-overflow:ellipsis;line-height:30px}.form[data-v-bf7c2781]{display:flex}.form .span[data-v-bf7c2781]{display:inline-block;width:8.5em;text-align:left;white-space:nowrap;color:#989898}.form .title[data-v-bf7c2781]{display:inline-block;width:calc(100% - 7em);text-align:left}.clue-title[data-v-bf7c2781]{margin-top:20px;color:#606266;font-size:14px}.intention[data-v-bf7c2781]{margin-top:20px}.client-grade[data-v-bf7c2781]{margin-top:20px;color:#989898;font-size:14px}.client-grade span[data-v-bf7c2781]{color:#606266}.client-tag[data-v-bf7c2781]{display:flex;margin-top:20px}.client-tag .tag-item[data-v-bf7c2781]{font-size:14px;padding:5px 10px;color:#8a38f5;background-color:rgba(138,56,245,.2);margin-right:10px}.clue-details[data-v-ccc20272]{margin-top:20px}.clue-details .submit-box[data-v-ccc20272]{padding-bottom:20px}.btn[data-v-ccc20272]{display:flex;justify-content:flex-end}.history[data-v-ccc20272]{border:1px solid #DCDCDC;border-radius:8px;overflow:hidden}.history .title[data-v-ccc20272]{width:100%;height:40px;line-height:40px;color:#333;background-image:linear-gradient(rgba(38,92,240,.1),rgba(38,92,240,.04));padding:0 0 0 20px;font-size:14px}.history .title span[data-v-ccc20272]{width:4px;background-color:#409eff;margin-right:5px}.history .his-cont[data-v-ccc20272]{padding:0 20px 20px;height:240px;overflow:hidden;overflow-y:auto}.list[data-v-ccc20272]{margin-top:15px;font-size:14px;color:#606266;display:flex}.annex[data-v-ccc20272]{margin-left:325px}.radio[data-v-ccc20272]{position:absolute;left:170px;top:40px;z-index:9999}.tag-box[data-v-ccc20272]{border-top:1px solid #E4E7ED;display:flex}.tag-box .tag-sort-list[data-v-ccc20272]{width:20%;max-height:400px;overflow-y:scroll}.tag-box .tag-sort-list .tag-sort-item[data-v-ccc20272]{padding:17px;background-color:#f5f7fa;border-right:1px solid #E4E7ED;color:#3d3d3d;font-size:12px;cursor:pointer;display:flex}.tag-box .tag-sort-list .tag-sort-item span[data-v-ccc20272]{margin-left:20px;color:#fa5151}.tag-box .tag-sort-list .tag-sort-item .sort-name[data-v-ccc20272]{color:#3d3d3d;margin:0;width:100px}.tag-box .tag-sort-list .active[data-v-ccc20272]{color:#1651ee;background-color:#fff}.tag-box .tag-list[data-v-ccc20272]{width:80%;padding:15px 25px;max-height:400px;overflow-y:scroll}.tag-box .tag-list .tag-item .tag-sort-name[data-v-ccc20272]{color:#3d3d3d;font-size:12px;margin-bottom:13px;font-weight:700}.tag-box .tag-list .tag-item .tag-item-list[data-v-ccc20272]{display:flex;flex-wrap:wrap}.tag-box .tag-list .tag-item .tag-item-list .tag-item-name[data-v-ccc20272]{padding:8px 14px;color:#3d3d3d;background-color:#f5f7fa;font-size:12px;margin:0 20px 20px 0;display:flex;cursor:pointer;border-radius:4px}.tag-box .tag-list .tag-item .tag-item-list .active[data-v-ccc20272]{color:#fff;background-color:#1651ee}.tag-box-list[data-v-ccc20272]{margin-right:10px}[data-v-a2dc4a5d] .el-dialog__body{padding:0 20px}.member-select .lj-ww-member-dept-select{width:100%!important}.clue-details[data-v-f3bc3e7c]{margin-top:20px}.time-item[data-v-f3bc3e7c]{display:flex;position:relative;font-weight:700}.time-item .time[data-v-f3bc3e7c]{position:absolute;left:-170px;font-size:13px;font-size:12px;color:#333}.time-item .week[data-v-f3bc3e7c]{left:-85px}.reason[data-v-f3bc3e7c]{color:#b6b6b6;margin:10px 0 0 230px}.detail .lj-ww-data{color:#265cf0}.el-timeline-item__node--normal{width:10px;height:10px}.el-timeline-item__tail{left:3px}.contwnt[data-v-65e9f5bd]{padding:0 15px}.listBtn[data-v-65e9f5bd]{display:flex;margin-bottom:10px}.listBtn .btn[data-v-65e9f5bd]{margin-right:10px}.title[data-v-65e9f5bd]{display:flex;align-items:center;margin:20px 0 20px 35px}[data-v-65e9f5bd] .el-drawer.rtl{width:50%!important;background-color:#fff;border-radius:20px 0 0 20px}[data-v-65e9f5bd] .el-tabs__header{padding:0 40px}[data-v-65e9f5bd] .el-tabs__item.is-active{color:#265cf0}[data-v-65e9f5bd] .el-tabs__active-bar{background-color:#265cf0}[data-v-65e9f5bd] .el-tabs__item:hover{color:#265cf0}[data-v-65e9f5bd] .el-tabs__content{background-color:#fff;padding:20px 40px;margin-bottom:60px}[data-v-65e9f5bd] .el-tabs__header{margin:0}\n",document.head.appendChild(g),{setters:[function(e){a=e.n,i=e.r,s=e.f,l=e.e,o=e.$,n=e.y,r=e.w,c=e.o,d=e.S,m=e.x},function(e){u=e.u},function(e){f=e.L},function(e){p=e.L},function(e){v=e.L},function(e){_=e.L}],execute:function(){var t={__name:"transferCustomerDialog",emits:["getList"],setup:function(e,t){var a=t.expose,o=t.emit,n=i(!1),r=i(),c=i([{value:"联系不上客户",label:"联系不上客户"},{value:"客户暂无需求",label:"客户暂无需求"},{value:"未满足客户需求",label:"未满足客户需求"},{value:"已购买其他家产品",label:"已购买其他家产品"},{value:"5",label:"其他"}]),d=i(!1),m=s({customer_id_list:[],other:"",reason:""}),u=s({other:[{required:!0,message:"请选择放入公海理由",trigger:"change"}],reason:[{required:!0,message:"请输入理由",trigger:"blur"}]});function f(e){e.map((function(e){m.customer_id_list.push(e.id)})),n.value=!0}function p(){5==m.other&&(m.other=m.reason);var e={customer_id_list:m.customer_id_list,reason:m.other};HTTP.post("put_in_customers_high_seas",e).then((function(e){0==e.code?(l.exports.Message.success("操作成功"),o("getList"),$Bus.$emit("refresh"),n.value=!1):(l.exports.Message.error(e.msg),n.value=!1)}))}return a({init:f}),{__sfc:!0,allocationdialogVisible:n,reasonRefform:r,emits:o,rsasonClueList:c,other:d,reasonform:m,reasonrules:u,init:f,save:p,allocationSave:function(e){r.value.validate((function(e){if(!e)return!1;p(),$Bus.$emit("refresh"),m.reason="",m.other="",d.value=!1}))},getReason:function(e){d.value=5==e}}}},g=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("el-dialog",{attrs:{title:"放入公海","append-to-body":!0,"close-on-click-modal":!1,visible:a.allocationdialogVisible,width:"25%"},on:{"update:visible":function(e){a.allocationdialogVisible=e}}},[t("div",[t("el-form",{ref:"reasonRefform",attrs:{"label-position":"top",model:a.reasonform,rules:a.reasonrules}},[t("el-form-item",{attrs:{label:"放入公海理由",prop:"other"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},on:{change:a.getReason},model:{value:a.reasonform.other,callback:function(t){e.$set(a.reasonform,"other",t)},expression:"reasonform.other"}},e._l(a.rsasonClueList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a.other?t("el-form-item",{attrs:{prop:"reason"}},[t("el-input",{attrs:{type:"textarea","show-word-limit":"",maxlength:"200",placeholder:"请输入理由(必填)"},model:{value:a.reasonform.reason,callback:function(t){e.$set(a.reasonform,"reason",t)},expression:"reasonform.reason"}})],1):e._e()],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(e){return a.allocationSave("reasonRefform")}}},[e._v("保 存")]),t("el-button",{on:{click:function(e){a.allocationdialogVisible=!1}}},[e._v("取 消")])],1)])},b=[];g._withStripped=!0;var x=a(t,g,b,!1,null,"ac872e4a",null,null);x.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/transferCustomerDialog.vue";var h=e("t",x.exports),y={__name:"transferHeadDialog",emits:["getList"],setup:function(e,t){var a=t.expose,n=t.emit,r=i(!1),c=i(),d=s({offset:0,limit:9999,ordering:"-id",customer_pools:""}),m=o.getters.company,u=i([]),f=i(),p=i(!1),_=s({customer_id_list:[],member_id:""}),g=s({member_id:[{required:!0,message:"请选择转移负责人",trigger:"change"}]});function b(e){p.value=!0,f.value=e[0].customer_pools_id,d.customer_pools=e[0].customer_pools_id,_.customer_id_list=[],e.map((function(e){_.customer_id_list.push(e.id)})),r.value=!0}return a({init:b}),{__sfc:!0,transferdialogVisible:r,headformRef:c,emits:n,filter:d,customer_pools:m,headList:u,getId:f,shuaXin:p,headform:_,rules:g,getHeadList:function(){HTTP.getRead("customerMember",d).then((function(e){console.log(e),0==e.code&&(u.value=e.data.results)}))},transferSave:function(e){c.value.validate((function(e){if(!e)return console.log("error submit!!"),!1;HTTP.post("transfer_customer_manager",_).then((function(e){0==e.code?(l.exports.Message.success("转移成功"),r.value=!1,p.value=!1,_.member_id="",n("getList"),$Bus.$emit("refresh")):(l.exports.Message.error(e.msg),p.value=!1,_.member_id="",r.value=!1)}))}))},cancle:function(e){_.member_id="",p.value=!1,r.value=!1},init:b,LJWWMSelect:v}}},A=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("el-dialog",{attrs:{title:"转移负责人","append-to-body":!0,"close-on-click-modal":!1,visible:a.transferdialogVisible,width:"25%"},on:{"update:visible":function(e){a.transferdialogVisible=e}}},[t("div",[t("el-form",{ref:"headformRef",attrs:{"label-position":"top",model:a.headform,rules:a.rules}},[t("el-form-item",{attrs:{label:"变更负责人为",prop:"member_id"}},[t("div",{staticClass:"member-select"},[a.shuaXin?t(a.LJWWMSelect,{attrs:{type:"5",fields:"member_name,member","value-key":"member",filters:{company:a.customer_pools,del_flag:0,is_resign:0,is_auth_role:1,is_real:1}},model:{value:a.headform.member_id,callback:function(t){e.$set(a.headform,"member_id",t)},expression:"headform.member_id"}}):e._e()],1)])],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(e){return a.transferSave("headformRef")}}},[e._v("保 存")]),t("el-button",{on:{click:a.cancle}},[e._v("取 消")])],1)])},w=[];A._withStripped=!0;var k=a(y,A,w,!1,null,"62d0f085",null,null);k.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/transferHeadDialog.vue";var C=e("a",k.exports),L={__name:"tabDetail",setup:function(e){var t=n("rowObj"),a=n("templateList"),s=i([]),l=i([]),o=i(4);r(t,(function(){v()}));var m=i({}),u=i([]),p=i([]);function v(){s.value=[],t.value.clue_field_json&&(t.value.clue_field_json=JSON.parse(t.value.clue_field_json)),HTTP.getById("customer_templates",t.value.customer_templates).then((function(e){e.data.field_json=JSON.parse(e.data.field_json),e.data.field_json=e.data.field_json.filter((function(e){return"company_name"!=e.key&&"dept_name"!=e.key&&0==e.is_hide})),l.value=e.data.field_json})),p.value=a.value,p.value.map((function(e,a){"company_name"!=e.key&&"dept_name"!=e.key||p.value.splice(a,1),t.value.clue_field_json&&Object.keys(t.value.clue_field_json).map((function(t){e.key==t&&s.value.push(e)}))})),setTimeout((function(){t.value.img_urls&&(t.value.img_urls=t.value.img_urls.split(",")),t.value.annex&&(t.value.annex=t.value.annex.split(",")),t.value.customer_label&&(t.value.customer_label=t.value.customer_label.split(",")),m.value=t.value,console.log(m.value)}),500)}return c((function(){v()})),{__sfc:!0,rowObj:t,templateList:a,clue_field_json:s,clineList:l,value:o,form:m,list:u,formList:p,getList:v,openFile:function(e){var t=document.createElement("a");t.style.display="none",t.href=e,t.download="",t.click()},LJWWData:f,SystemConfig:d}}},S=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"clue-details"},[t("div",{staticClass:"group"},e._l(a.clineList,(function(i,s){return t("div",["pre_member_name"!==i.key&&"member_name"!==i.key&&"create_member_name"!==i.key?t("div",{staticClass:"form"},[t("span",{staticClass:"span"},[e._v(e._s(i.name)+":")]),t("span",{staticClass:"title"},[e._v(e._s(a.form[i.key]))])]):e._e(),"pre_member_name"==i.key?t("div",{staticClass:"form",staticStyle:{display:"flex"}},[t("span",{staticClass:"span"},[e._v(e._s(i.name)+":")]),a.SystemConfig.isDD?t("div",[e._v(e._s(a.form[i.key]))]):t(a.LJWWData,{attrs:{type:2,openid:a.form[i.key]}})],1):e._e(),"member_name"==i.key?t("div",{staticClass:"form",staticStyle:{display:"flex"}},[t("span",{staticClass:"span"},[e._v(e._s(i.name)+":")]),a.SystemConfig.isDD?t("div",[e._v(e._s(a.form[i.key]))]):t(a.LJWWData,{attrs:{type:2,openid:a.form[i.key]}})],1):e._e(),"create_member_name"==i.key?t("div",{staticClass:"form",staticStyle:{display:"flex"}},[t("span",{staticClass:"span"},[e._v(e._s(i.name)+":")]),a.SystemConfig.isDD?t("div",[e._v(e._s(a.form[i.key]))]):t(a.LJWWData,{attrs:{type:2,openid:a.form[i.key]}})],1):e._e()])})),0),a.form.img_urls?t("div",{staticClass:"image"},[e._m(0),t("div",{staticClass:"img-list",staticStyle:{"padding-left":"60px"}},e._l(a.form.img_urls,(function(e){return t("div",[t("el-image",{staticStyle:{width:"140px",height:"85px","border-radius":"8px"},attrs:{src:e,fit:"fill","preview-src-list":a.form.img_urls}})],1)})),0)]):e._e(),a.form.annex?t("div",{staticClass:"image annex"},[e._m(1),t("div",{staticClass:"annex-list",staticStyle:{"padding-left":"60px"}},e._l(a.form.annex,(function(i,s){return t("div",{key:s,staticClass:"annex_item"},[t("div",{staticClass:"file_tip",on:{click:function(e){return a.openFile(i)}}},[t("p",{staticClass:"file_name"},[e._v(" "+e._s(i)+" ")]),t("span",{staticClass:"upload"},[e._v("下载")]),t("i",{staticClass:"triangle"})]),t("p",{staticClass:"file_name"},[e._v(" "+e._s(i)+" ")])])})),0)]):e._e(),a.clue_field_json.length>0?t("div",{staticClass:"clue-title"},[e._v("原线索")]):e._e(),a.clue_field_json.length>0?t("div",{staticClass:"group",staticStyle:{"margin-top":"20px"}},e._l(a.clue_field_json,(function(i,s){return t("div",{staticClass:"form"},[t("span",{staticClass:"span"},[e._v(e._s(i.name)+":")]),t("span",{staticClass:"title"},[e._v(e._s(a.rowObj.clue_field_json[i.key]))])])})),0):e._e(),t("div",{staticClass:"clue-title"},[e._v("客户意向度")]),t("div",{staticClass:"intention"},[t("el-rate",{attrs:{disabled:"","text-color":"#ff9900","score-template":"{value}"},model:{value:a.form.intention_level,callback:function(t){e.$set(a.form,"intention_level",t)},expression:"form.intention_level"}})],1),t("div",{staticClass:"clue-title"},[e._v("客户等级")]),t("div",{staticClass:"client-grade"},[e._v(" 客户等级: "),t("span",[e._v(e._s(a.form.member_level))])]),t("div",{staticClass:"clue-title"},[e._v("客户标签")]),t("div",{staticClass:"client-tag"},e._l(a.form.customer_label,(function(a){return t("el-tag",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(a))])})),1)])},D=[function(){var e=this,t=e._self._c;return e._self._setupProxy,t("span",{staticStyle:{color:"#989898"}},[t("i",{staticClass:"el-icon-picture-outline",staticStyle:{color:"#66b1ff","margin-right":"5px","padding-left":"40px"}}),e._v("图片")])},function(){var e=this,t=e._self._c;return e._self._setupProxy,t("span",{staticStyle:{color:"#989898"}},[t("i",{staticClass:"el-icon-paperclip",staticStyle:{color:"#66b1ff","margin-right":"5px","padding-left":"40px"}}),e._v("附件")])}];S._withStripped=!0;var T=a(L,S,D,!1,null,"bf7c2781",null,null);T.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/tabDetail.vue";var E=T.exports,B={__name:"tabFollowUp",props:{row:{type:Object,default:function(){}}},emits:["getList"],setup:function(e,t){var a=t.emit,m=e,u=s({way:0,intention_level:1,level_id:""}),v=i(),_=n("rowObj");r(_,(function(){L()}));var g=i([]),b=i([]),x=i(null),h=i([]),y=i([]),A=i([]),w=i(0),k=i(!1);function C(){u.way=0,u.content="",u.intention_level=1}function L(){var e={offset:0,limit:9999,ordering:"-id",customer:_.value.id};HTTP.get("customer_follow_up_readonly",e).then((function(e){0==e.code&&(e.data.results.map((function(e){0==e.way?e.way="电话拜访":1==e.way?e.way="上门拜访":2==e.way?e.way="网络拜访":3==e.way?e.way="放弃":e.way="领回"})),e.data.results.map((function(e){e.annex&&(e.annex=e.annex.split(",")),e.pic&&(e.pic=e.pic.split(","))})),b.value=e.data.results)})),console.log(_.value),S(),v.value=_.value.tips,_.value.member==o.getters.member.id&&"chance"==_.value.tips?x.value=!0:x.value=!1,console.log(_.value),u.level_id=_.value.member_level_id,u.intention_level=_.value.intention_level,y.value=[],_.value.customer_label&&_.value.customer_label.split(",").map((function(e){y.value.push({name:e})}))}function S(){var e={offset:0,limit:999,fileds:"id,name",company:o.getters.company,del_flag:0,customer_templates:_.value.customer_templates};HTTP.get("customer_templates_member_level",e).then((function(e){0==e.code&&(h.value=e.data.results)}))}function D(){var e={customer_id:_.value.id};HTTP.post("get_customer_label",e).then((function(e){0==e.code&&(A.value=e.data.label_cate,e.data.customer_label.length>0?A.value.unshift({name:"已选标签",cate_label_list:e.data.customer_label}):A.value.unshift({name:"已选标签",cate_label_list:[]}))}))}return c((function(){L()})),{__sfc:!0,emits:a,props:m,form:u,assign_state_num:v,rowObj:_,fileList:g,historyList:b,memberState:x,gradeList:h,tagList:y,sortList:A,sortIndex:w,dialogVisible:k,submit:function(){u.customer_id=_.value.id,0==u.intention_level&&delete u.intention_level,u.label_id_list=[],y.value.map((function(e){u.label_id_list.push(e.id)})),HTTP.post("create_clue_customer_follow_up",u).then((function(e){console.log(e),0==e.code&&(l.exports.Message.success("发布成功"),$Bus.$emit("refresh"),a("getList"),C(),L())}))},openFile:function(e){window.open(e)},empty:C,getFollowUp:L,getGradeList:S,setLabel:function(){k.value=!0,D()},getTagList:D,getSortItem:function(e){w.value=e},handleClose:function(){k.value=!1},submitTag:function(){k.value=!1,y.value=A.value[0].cate_label_list},changeTag:function(e){e.is_choose=!e.is_choose,e.is_choose?A.value[0].cate_label_list.push(e):A.value[0].cate_label_list=A.value[0].cate_label_list.filter((function(t){return t.id!=e.id}))},LJWWData:f,SystemConfig:d,LJUploadFiles:p}}},j=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"clue-details"},[a.memberState||"items"==a.assign_state_num?t("div",{staticClass:"submit-box"},[t("el-form",{ref:"formRef",attrs:{model:a.form,"label-position":"right","label-width":"130px"}},[t("div",{staticClass:"radio"},[t("el-form-item",{attrs:{label:""}},[t("el-radio-group",{model:{value:a.form.way,callback:function(t){e.$set(a.form,"way",t)},expression:"form.way"}},[t("el-radio",{attrs:{label:0}},[e._v("电话拜访")]),t("el-radio",{attrs:{label:1}},[e._v("上门拜访")]),t("el-radio",{attrs:{label:2}},[e._v("网络拜访")])],1)],1)],1),t("el-form-item",{attrs:{label:"新增客户跟进记录:"}}),t("el-form-item",{attrs:{label:"客户等级"}},[t("el-select",{staticStyle:{width:"25%"},attrs:{placeholder:"请选择"},model:{value:a.form.level_id,callback:function(t){e.$set(a.form,"level_id",t)},expression:"form.level_id"}},e._l(a.gradeList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"意向度"}},[t("el-rate",{model:{value:a.form.intention_level,callback:function(t){e.$set(a.form,"intention_level",t)},expression:"form.intention_level"}})],1),t("el-form-item",{attrs:{label:"客户标签"}},[t("div",{staticStyle:{display:"flex"}},[e._l(a.tagList,(function(a){return t("div",{staticClass:"tag-box-list"},[t("el-tag",[e._v(e._s(a.name))])],1)})),t("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:a.setLabel}},[e._v("设置客户标签")])],2)]),t("el-form-item",{attrs:{label:"备注"}},[t("el-input",{staticStyle:{width:"80%"},attrs:{type:"textarea"},model:{value:a.form.content,callback:function(t){e.$set(a.form,"content",t)},expression:"form.content"}})],1),t("el-form-item",[t(a.LJUploadFiles,{attrs:{"file-list":a.fileList,accept:".doc, .docx, .pdf, .xls, .xlsx, .ppt, .pptx, .zip"},model:{value:a.form.annex,callback:function(t){e.$set(a.form,"annex",t)},expression:"form.annex"}})],1)],1),t("div",{staticClass:"btn"},[t("el-button",{attrs:{plain:"",size:"mini"},on:{click:a.empty}},[e._v("清空")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32217,expression:"32217"}],staticStyle:{"margin-left":"20px"},attrs:{type:"primary",size:"mini"},on:{click:a.submit}},[e._v("发布")])],1)],1):e._e(),t("div",{staticClass:"history"},[t("div",{staticClass:"title"},[e._v(" 客户跟进历史 ")]),t("div",{staticClass:"his-cont"},e._l(a.historyList,(function(i,s){return t("div",[t("div",{staticClass:"list"},[t("div",{staticStyle:{width:"180px"}},[e._v(e._s(i.create_date))]),t("div",{staticStyle:{width:"140px"}},[a.SystemConfig.isDD?t("div",[e._v(e._s(i.member.name))]):t(a.LJWWData,{attrs:{type:2,openid:i.member.name}})],1),t("div",{class:i.annex?"margin":"",staticStyle:{width:"300px"}},[e._v("【"+e._s(i.way)+"】"+e._s(i.content))])]),t("div",{staticClass:"annex"},e._l(i.pic,(function(e){return t("el-image",{staticStyle:{width:"140px",height:"85px","border-radius":"6px","margin-right":"4px"},attrs:{src:e,"preview-src-list":i.pic}})})),1),t("div",{staticClass:"annex"},e._l(i.annex,(function(i){return t("div",[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32214,expression:"32214"}],attrs:{type:"text"},on:{click:function(e){return a.openFile(i)}}},[e._v(e._s(i))])],1)})),0)])})),0)]),t("el-dialog",{attrs:{title:"设置客户标签",visible:a.dialogVisible,width:"35%","append-to-body":!0,"modal-append-to-body":!1,"before-close":a.handleClose},on:{"update:visible":function(e){a.dialogVisible=e}}},[t("div",{staticClass:"tag-box"},[t("div",{staticClass:"tag-sort-list"},e._l(a.sortList,(function(i,s){return t("div",{key:s,class:a.sortIndex==s?"tag-sort-item active":"tag-sort-item",on:{click:function(e){return a.getSortItem(s)}}},[t("span",{staticClass:"sort-name"},[e._v(e._s(i.name))]),t("span",[e._v(e._s(i.cate_label_list.filter((function(e){return e.is_choose})).length))])])})),0),t("div",{staticClass:"tag-list"},e._l(a.sortList,(function(i,s){return t("div",{key:s,staticClass:"tag-item"},[t("div",{staticClass:"tag-sort-name"},[e._v(e._s(i.name))]),t("div",{staticClass:"tag-item-list"},e._l(i.cate_label_list,(function(i,s){return t("div",{class:i.is_choose?"tag-item-name active":"tag-item-name",on:{click:function(e){return a.changeTag(i)}}},[e._v(e._s(i.name))])})),0)])})),0)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:a.handleClose}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:a.submitTag}},[e._v("确 定")])],1)])],1)},P=[];j._withStripped=!0;var R=a(B,j,P,!1,null,"ccc20272",null,null);R.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/tabFollowUp.vue";var N=R.exports,J={__name:"allocationDialog",emits:["getList"],setup:function(e,t){var a=t.expose,o=t.emit,n=i(!1),r=i(),d=s({customer_id_list:[],member_id:"",type:1}),m=s({offset:0,limit:9999,ordering:"-id",fileds:"id,member_name",del_flag:0}),u=i([]),f=i(),p=i(!1);function _(e){console.log(e),p.value=!0,d.customer_id_list=[],e.map((function(e){d.customer_id_list.push(e.id)})),n.value=!0}var g=s({member_id:[{required:!0,message:"请选择负责人",trigger:"change"}]});return c((function(){})),a({init:_}),{__sfc:!0,dialogVisible:n,headformRef:r,emits:o,headform:d,filter:m,headList:u,getId:f,shuaXin:p,allocationSave:function(e){r.value.validate((function(e){if(!e)return console.log("error submit!!"),!1;HTTP.post("assignCustomer",d).then((function(e){console.log(e),0==e.code?(l.exports.Message({type:"success",message:"分配成功"}),n.value=!1,d.member_id="",p.value=!1,o("getList"),$Bus.$emit("refresh")):(l.exports.Message({type:"error",message:e.msg}),p.value=!1,d.member_id="",n.value=!1)}))}))},getHeadList:function(){HTTP.getRead("high_seas_member_readonly",m).then((function(e){console.log(e),0==e.code&&(u.value=e.data.results)}))},cancle:function(){n.value=!1,d.member_id="",p.value=!1,d.customer_id_list=[]},init:_,rules:g,LJWWMSelect:v}}},M=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("el-dialog",{attrs:{title:"批量分配","append-to-body":!0,"close-on-click-modal":!1,visible:a.dialogVisible,width:"25%"},on:{"update:visible":function(e){a.dialogVisible=e}}},[t("div",[t("el-form",{ref:"headformRef",attrs:{"label-position":"top",model:a.headform,rules:a.rules}},[t("el-form-item",{attrs:{label:"负责人",prop:"member_id"}},[t("div",{staticClass:"member-select"},[a.shuaXin?t(a.LJWWMSelect,{attrs:{type:"5",fields:"member,member_name","value-key":"member",filters:{del_flag:0,is_resign:0,is_auth_role:1}},model:{value:a.headform.member_id,callback:function(t){e.$set(a.headform,"member_id",t)},expression:"headform.member_id"}}):e._e()],1)])],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(e){return a.allocationSave("headformRef")}}},[e._v("保 存")]),t("el-button",{on:{click:a.cancle}},[e._v("取 消")])],1)])},U=[];M._withStripped=!0;var F=a(J,M,U,!1,null,"a2dc4a5d",null,null);F.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/allocationDialog.vue";var V=e("e",F.exports),H={__name:"tabRecord",props:{row:{type:Object,default:function(){}}},setup:function(e){var t=e,a=n("rowObj"),s=i([]),l=t.row.id;function o(e){var t={offset:0,limit:9999,ordering:"-id",customer:e};HTTP.get("customerVisitRecord",t).then((function(e){if(console.log(e),0==e.code){var t=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];s.value=e.data.results,s.value.map((function(e){e.tiem=e.create_date.split(" ")[1],e.timestamp=e.create_date.split(" ")[0],e.week=t[new Date(e.create_date.split(" ")[0]).getDay()]})),s.value[0].color="#1651EE"}}))}return r(a,(function(){o(a.value.id)})),c((function(){o(l)})),{__sfc:!0,props:t,rowObj:a,activities:s,id:l,historyList:o,LJWWData:f,SystemConfig:d}}},I=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",{staticClass:"clue-details"},[t("div",{staticStyle:{"padding-left":"105px"}},[t("el-timeline",{attrs:{reverse:!1}},e._l(a.activities,(function(i,s){return t("el-timeline-item",{key:s,attrs:{color:i.color}},[t("div",{staticClass:"time-item"},[t("div",{staticClass:"detail",staticStyle:{"margin-right":"20px"}},[e._v(e._s(i.tiem))]),t("div",{staticClass:"detail",staticStyle:{"margin-right":"20px"}},[a.SystemConfig.isDD?t("div",[e._v(e._s(i.member_name))]):t(a.LJWWData,{attrs:{type:2,openid:i.member_name}})],1),t("div",{staticClass:"detail"},[e._v(e._s(i.info))]),t("div",{staticClass:"time"},[e._v(e._s(i.timestamp))]),t("div",{staticClass:"time week"},[e._v(e._s(i.week))])])])})),1)],1)])},z=[];I._withStripped=!0;var O=a(H,I,z,!1,null,"f3bc3e7c",null,null);O.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/tabRecord.vue";var W=O.exports,G={__name:"giveUpDialog",emits:["getList"],setup:function(e,t){var a=t.expose,o=t.emit,n=i(!1),r=i(),c=s({content:"",pic:"",annex:"",is_abandon:"",customer_id:""}),d=i([]),m=i([]),u=s({content:[{required:!0,message:"请输入原因",trigger:"blur"}]});function f(e,t){c.is_abandon=e,c.customer_id=t,n.value=!0}function v(){n.value=!1,d.value=[],m.value=[],r.value.resetFields()}return a({init:f}),{__sfc:!0,emits:o,dialogVisible:n,headformRef:r,headform:c,fileList:d,imgfileList:m,rules:u,init:f,cancle:v,transferSave:function(){r.value.validate((function(e){if(!e)return console.log("error submit!!"),!1;console.log(c);var t={is_abandon:c.is_abandon,customer_id:c.customer_id,content:c.content,annex:c.annex,pic:c.pic};HTTP.post("abandon_or_retrieve_clue_customer",t).then((function(e){0==e.code&&(l.exports.Message({message:"操作成功",type:"success"}),n.value=!1,$Bus.$emit("refresh"),o("getList"),v())}))}))},LJUploadFiles:p,LJUploadImages:_}}},Q=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("el-dialog",{attrs:{title:"放弃/领回","append-to-body":!0,"close-on-click-modal":!1,visible:a.dialogVisible,width:"30%"},on:{"update:visible":function(e){a.dialogVisible=e}}},[t("el-form",{ref:"headformRef",attrs:{model:a.headform,rules:a.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"原因",prop:"content"}},[t("el-input",{attrs:{placeholder:"请输入原因"},model:{value:a.headform.content,callback:function(t){e.$set(a.headform,"content",t)},expression:"headform.content"}})],1),t("el-form-item",{attrs:{label:"上传图片"}},[t(a.LJUploadImages,{attrs:{limit:3,"file-list":a.imgfileList,accept:""},model:{value:a.headform.pic,callback:function(t){e.$set(a.headform,"pic",t)},expression:"headform.pic"}})],1),t("el-form-item",{attrs:{label:"附件"}},[t(a.LJUploadFiles,{attrs:{"file-list":a.fileList,accept:""},model:{value:a.headform.annex,callback:function(t){e.$set(a.headform,"annex",t)},expression:"headform.annex"}})],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(e){return a.transferSave("headformRef")}}},[e._v("保 存")]),t("el-button",{on:{click:a.cancle}},[e._v("取 消")])],1)],1)},q=[];Q._withStripped=!0;var $=a(G,Q,q,!1,null,null,null,null);$.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/giveUpDialog.vue";var Y=$.exports,Z={__name:"changeGrade",emits:["getList"],setup:function(e,t){var a=t.expose,n=t.emit,r=i(!1),c=i(),d=s({level_id:"",remarks:"",customer_id:""}),m=s({remarks:[{required:!0,message:"请输入备注",trigger:"blur"}]}),u=i([]);function f(e,t){d.customer_id=e;var a={company:o.getters.company,offset:0,limit:9999,ordering:"-id",del_flag:0,customer_templates:t};HTTP.get("customer_templates_member_level",a).then((function(e){0==e.code&&(u.value=e.data.results)})),r.value=!0}function p(){r.value=!1,d.level_id="",c.value.resetFields()}return a({init:f}),{__sfc:!0,emits:n,dialogVisible:r,headformRef:c,headform:d,rules:m,clientGrade:u,init:f,cancle:p,transferSave:function(){c.value.validate((function(e){if(!e)return console.log("error submit!!"),!1;console.log(d),HTTP.post("modify_customer_level",d).then((function(e){0==e.code&&(l.exports.Message({message:"操作成功",type:"success"}),r.value=!1,$Bus.$emit("refresh"),n("getList"),p())}))}))}}}},K=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("el-dialog",{attrs:{title:"等级变更","append-to-body":!0,"close-on-click-modal":!1,visible:a.dialogVisible,width:"30%"},on:{"update:visible":function(e){a.dialogVisible=e}}},[t("el-form",{ref:"headformRef",attrs:{model:a.headform,rules:a.rules,"label-width":"80px"}},[t("el-form-item",{attrs:{label:"客户等级",prop:"remarks"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"客户等级"},model:{value:a.headform.level_id,callback:function(t){e.$set(a.headform,"level_id",t)},expression:"headform.level_id"}},e._l(a.clientGrade,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[t("el-input",{attrs:{placeholder:"请输入备注"},model:{value:a.headform.remarks,callback:function(t){e.$set(a.headform,"remarks",t)},expression:"headform.remarks"}})],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:function(e){return a.transferSave("headformRef")}}},[e._v("保 存")]),t("el-button",{on:{click:a.cancle}},[e._v("取 消")])],1)],1)},X=[];K._withStripped=!0;var ee=a(Z,K,X,!1,null,null,null,null);ee.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/changeGrade.vue";var te=ee.exports,ae={__name:"transferOpportunity",emits:["getList"],setup:function(e,t){var a=t.expose,o=t.emit,n=i(!1),r=s({customer_id_list:"",remarks:"",money:"",expected_order_time:""}),c=s({remarks:[{required:!0,message:"请输入客户意向备注",trigger:"blur"}]}),d=i();function m(e){r.customer_id_list=e,n.value=!0}function u(){n.value=!1,d.value.resetFields(),r.customer_id_list="",r.remarks="",r.money="",r.expected_order_time=""}return a({init:m}),{__sfc:!0,dialogVisible:n,emits:o,ruleForm:r,rules:c,ruleFormRef:d,init:m,handleClose:u,submit:function(){d.value.validate((function(e){if(!e)return!1;var t={customer_id_list:[r.customer_id_list],remarks:r.remarks,money:parseFloat(r.money),expected_order_time:r.expected_order_time};r.expected_order_time||delete t.expected_order_time,HTTP.post("convert_to_sale_chance",t).then((function(e){0==e.code?(l.exports.Message({type:"success",message:"操作成功!"}),u(),o("getList"),$Bus.$emit("refresh")):l.exports.Message({type:"error",message:e.msg})}))}))},validateNumber:function(){r.money=r.money.replace(/[^0-9]/g,"")}}}},ie=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("el-dialog",{attrs:{title:"是否将该客户转为销售机会?","append-to-body":!0,"close-on-click-modal":!1,visible:a.dialogVisible,width:"30%","before-close":a.handleClose},on:{"update:visible":function(e){a.dialogVisible=e}}},[t("el-form",{ref:"ruleFormRef",staticClass:"demo-ruleForm",attrs:{model:a.ruleForm,rules:a.rules,"label-width":"120px"}},[t("el-form-item",{attrs:{label:"客户意向备注",prop:"remarks"}},[t("el-input",{attrs:{type:"textarea",placeholder:"请输入客户意向备注"},model:{value:a.ruleForm.remarks,callback:function(t){e.$set(a.ruleForm,"remarks",t)},expression:"ruleForm.remarks"}})],1),t("el-form-item",{attrs:{label:"客户金额备注"}},[t("el-input",{attrs:{placeholder:"请输入客户金额备注"},on:{input:a.validateNumber},model:{value:a.ruleForm.money,callback:function(t){e.$set(a.ruleForm,"money",t)},expression:"ruleForm.money"}},[t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"预计成单时间"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"请选择预计成单时间"},model:{value:a.ruleForm.expected_order_time,callback:function(t){e.$set(a.ruleForm,"expected_order_time",t)},expression:"ruleForm.expected_order_time"}})],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){a.dialogVisible=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:a.submit}},[e._v("确 定")])],1)],1)},se=[];ie._withStripped=!0;var le=a(ae,ie,se,!1,null,null,null,null);le.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/transferOpportunity.vue";var oe=e("b",le.exports),ne={__name:"clientsDetailDialog",props:{state:{type:String,default:function(){}},row:{type:Object,default:function(){}}},emits:["getList"],setup:function(e,t){var a=t.expose,s=t.emit,n=e,r=u(),d=i(!1),f=i(null),p=i(),v=i(),_=i(),g=i(""),b=i(),x=i(!1),y=i(),A=i(),w=i(),k=i(),L=i("first");function S(e,t){e.tips=t,console.log(e),k.value=JSON.parse(JSON.stringify(e)),b.value=k.value.assign_state,g.value=k.value.name,f.value=t,d.value=!0,e.member==o.getters.member.id?x.value=!0:x.value=!1}function D(){d.value=!1}return c((function(){$Bus.$on("refresh",D)})),m((function(){$Bus.$off("refresh")})),a({init:S}),{__sfc:!0,router:r,emits:s,drawer:d,pageState:f,allocationRef:p,transfercustomer:v,transferhead:_,title:g,assign_state_num:b,memberState:x,giveUpref:y,transferOpportunityRef:A,changeGradeDialogRef:w,props:n,form:k,activeName:L,init:S,edit:function(e){r.push({path:"/markets/clients/clientsCEViews/",query:{type:"edit",id:k.value.id,sala:1==e,was_clue:k.value.was_clue}})},transferSale:function(){A.value.init(k.value.id)},allocation:function(){p.value.init([k.value])},receive:function(){l.exports.MessageBox.confirm("确定要领取该客户吗?","提示",{type:"warning"}).then((function(){var e={customer_id_list:[k.value.id]};HTTP.post("claims_customer",e).then((function(e){0==e.code?l.exports.Message({message:"领取成功",type:"success"}):l.exports.Message({message:e.msg,type:"waring"})}))})).catch((function(e){console.log(e)}))},addContact:function(){r.push({path:"/markets/contracts/ordersCEViews/",query:{customer:k.value.id}})},handleClick:function(e,t){},cencleChance:function(){l.exports.MessageBox.confirm("确定取消销售机会吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e={customer_id_list:[k.value.id]};HTTP.post("unconvert_to_sale_chance",e).then((function(e){0==e.code?(l.exports.Message({message:"操作成功",type:"success"}),s("getList"),d.value=!1):l.exports.Message.error(e.msg)}))})).catch((function(){}))},refresh:D,backSea:function(){v.value.init([k.value])},transferHeader:function(){_.value.init([k.value])},closeBtn:function(){d.value=!1,L.value="first"},giveUp:function(e){y.value.init(e,k.value.id)},changeGrade:function(){w.value.init(k.value.id,k.value.customer_templates)},tabDetail:E,tabFollowUp:N,allocationDialog:V,transferCustomerDialog:h,transferHeadDialog:C,tabRecord:W,giveUpDialog:Y,changeGradeDialog:te,transferOpportunity:oe}}},re=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("div",[t("el-drawer",{attrs:{title:a.title,"with-header":!1,visible:a.drawer,direction:"rtl","append-to-body":!0},on:{"update:visible":function(e){a.drawer=e}}},[t("div",{staticClass:"contwnt"},[t("div",{staticClass:"title"},[t("span",[e._v(e._s(a.title))]),t("el-button",{staticStyle:{"font-size":"18px","margin-left":"auto",color:"gray"},attrs:{icon:"el-icon-close",type:"text"},on:{click:a.closeBtn}})],1),t("div",{staticClass:"listBtn",staticStyle:{"margin-left":"35px"}},["list"==a.pageState?t("div",{staticClass:"listBtn"},[t("div",{staticClass:"btn"},[1!=a.assign_state_num?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32104,expression:"32104"}],on:{click:a.receive}},[e._v("领取")]):e._e()],1),t("div",{staticClass:"btn"},[1!=a.assign_state_num?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32105,expression:"32105"}],on:{click:a.allocation}},[e._v("分配")]):e._e()],1)]):e._e(),"chance"==a.pageState?t("div",{staticClass:"listBtn"},[t("div",{staticClass:"btn"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32204,expression:"32204"}],on:{click:function(e){return a.edit(1)}}},[e._v("编辑")])],1),t("div",{staticClass:"btn"},[a.memberState?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32305,expression:"32305"}],on:{click:a.cencleChance}},[e._v("取消销售机会")]):e._e()],1)]):e._e(),"items"==a.pageState?t("div",{staticClass:"listBtn"},[t("div",{staticClass:"btn"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32204,expression:"32204"}],on:{click:a.edit}},[e._v("编辑")])],1),t("div",{staticClass:"btn"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32206,expression:"32206"}],on:{click:a.backSea}},[e._v("放回客户公海")])],1),t("div",{staticClass:"btn"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32205,expression:"32205"}],on:{click:a.transferHeader}},[e._v("转移负责人")])],1),t("div",{staticClass:"btn"},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:32207,expression:"32207"}],on:{click:a.transferSale}},[e._v("转为销售机会")])],1),t("div",{staticClass:"btn"},[t("el-button",{on:{click:a.addContact}},[e._v("新增合同")])],1),0==a.form.is_abandon?t("el-button",{staticClass:"btn",on:{click:function(e){return a.giveUp(1)}}},[e._v("放弃")]):t("el-button",{staticClass:"btn",on:{click:function(e){return a.giveUp(0)}}},[e._v("领回")]),t("el-button",{staticClass:"btn",on:{click:a.changeGrade}},[e._v("等级变更")])],1):e._e()]),t("div",{staticClass:"tab-list"},[t("el-tabs",{on:{"tab-click":a.handleClick},model:{value:a.activeName,callback:function(e){a.activeName=e},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"详情",name:"first"}},[t(a.tabDetail,{attrs:{row:a.form}})],1),t("el-tab-pane",{attrs:{label:"跟进",name:"second"}},[t(a.tabFollowUp,{attrs:{row:a.form}})],1),t("el-tab-pane",{attrs:{label:"操作记录",name:"third"}},[t(a.tabRecord,{attrs:{row:a.form}})],1)],1)],1)])]),t(a.allocationDialog,{ref:"allocationRef"}),t(a.transferCustomerDialog,{ref:"transfercustomer"}),t(a.transferHeadDialog,{ref:"transferhead"}),t(a.giveUpDialog,{ref:"giveUpref"}),t(a.transferOpportunity,{ref:"transferOpportunityRef"}),t(a.changeGradeDialog,{ref:"changeGradeDialogRef"})],1)},ce=[];re._withStripped=!0;var de=a(ne,re,ce,!1,null,"65e9f5bd",null,null);de.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/markets/clients/components/clientsDetailDialog.vue",e("c",de.exports),e("_","/assets/img_keh.1a19edee.png"),e("d","/assets/total-icon8.631a0ab0.svg")}}}));
|