chunk-6c6ab78a.6b26f6d9.js 35 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c6ab78a"],{"0ac6":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,border:"",size:"mini",stripe:"",height:"calc(100vh - 288px)"}},[r("el-table-column",{attrs:{prop:"fbrnad",label:"品牌"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.fbrand?t.row.fbrand:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"fagentname",label:"商户名"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.fagentname?t.row.fagentname:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"faddress",label:"地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.faddress?t.row.faddress:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"fprodclassname",label:"经营类目"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.saleprodclass,(function(t){return r("el-tag",{key:t.index,staticStyle:{margin:"0 2px"},attrs:{size:"mini",type:"primary"}},[e._v(e._s(t))])}))}}])}),r("el-table-column",{attrs:{prop:"fcontact",label:"联系人名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.fcontact?t.row.fcontact:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"fphonenumber",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.fphonenumber?t.row.fphonenumber:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"createdate",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.createdate?t.row.createdate.split(".")[0]:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"checkdate",label:"认证时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.checkdate?t.row.checkdate.split(".")[0]:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"fteamsize",label:"团队人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.fteamsize?t.row.fteamsize:"--"))])]}}])}),e.components?r("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(r){return e.onRowSelect(t.row)}}},[e._v("选 择")])]}}],null,!1,634819458)}):r("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("edit-row",{attrs:{row:t.row},on:{onSuccess:e.onRefresh}}),r("el-divider",{attrs:{direction:"vertical"}}),r("startOrStop",{attrs:{row:t.row},on:{onChange:e.onRefresh}}),r("el-divider",{attrs:{direction:"vertical"}}),r("delete-row",{attrs:{tagentsid:t.row.tagentsid},on:{onDelete:e.onRefresh}})]}}])})],1),r("div",{staticStyle:{margin:"20px 0"}},[r("el-pagination",{attrs:{background:"",small:"","current-page":e.currentPage,"page-size":e.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},a=[],o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{display:"inline"}},[r("el-button",{attrs:{type:"text",size:"mini"},on:{click:e.changeUseStatus}},[e._v(e._s(0===e.row.fisused?"启用":"停用"))])],1)},i=[],s={props:["row"],methods:{changeUseStatus:function(){var e=this;this.$api.requested({classname:"enterprise.tagents.tagents",method:"use_agent",content:{tagentsid:this.row.tagentsid,fisused:0===this.row.fisused?1:0}}).then((function(t){1===t.code?e.$notify({title:"成功",message:0===e.row.fisused?"启用成功":"停用成功",type:"success"}):e.$notify({title:"失败",message:t.data,type:"error"}),e.$emit("onChange")}))}}},l=s,c=r("2877"),u=Object(c["a"])(l,o,i,!1,null,null,null),f=u.exports,d=r("2283"),p=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{display:"inline"}},[r("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.showDialog}},[e._v("编 辑")]),r("el-dialog",{attrs:{title:"编辑商户",visible:e.dialogTableVisible,width:"500px"},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[r("el-form",{ref:"ruleForm",attrs:{"label-position":"left","label-width":"90px",model:e.form,rules:e.rules,size:"small"}},[r("el-form-item",{attrs:{label:"商户LOGO"}},[r("uploadAvatar",{attrs:{ownertable:"tagents",ownerid:e.form.tagentsid,uploadtype:"avatar",type:"brandlogo",isDeletefile:!0,deleteFile:e.deleteFile,image_Url:e.image_Url},on:{onDeleteSuccess:e.onDeleteSuccess}})],1),r("el-form-item",{attrs:{label:"品牌名",prop:"fbrand"}},[r("el-input",{attrs:{placeholder:"输入品牌名",clearable:""},model:{value:e.form.fbrand,callback:function(t){e.$set(e.form,"fbrand",t)},expression:"form.fbrand"}})],1),r("el-form-item",{attrs:{label:"商户名称",prop:"fagentname"}},[r("el-input",{attrs:{placeholder:"输入商户名称",clearable:""},model:{value:e.form.fagentname,callback:function(t){e.$set(e.form,"fagentname",t)},expression:"form.fagentname"}})],1),r("el-form-item",{attrs:{label:"地址",prop:"faddress"}},[r("el-input",{attrs:{placeholder:"输入商户地址",clearable:""},model:{value:e.form.faddress,callback:function(t){e.$set(e.form,"faddress",t)},expression:"form.faddress"}})],1),r("el-form-item",{attrs:{label:"联系人",prop:"fcontact"}},[r("el-input",{attrs:{placeholder:"输入商户联系人",clearable:""},model:{value:e.form.fcontact,callback:function(t){e.$set(e.form,"fcontact",t)},expression:"form.fcontact"}})],1),r("el-form-item",{attrs:{label:"手机号",prop:"fphonenumber"}},[r("el-input",{attrs:{placeholder:"输入商户联系人手机号",clearable:""},model:{value:e.form.fphonenumber,callback:function(t){e.$set(e.form,"fphonenumber",t)},expression:"form.fphonenumber"}})],1),r("el-form-item",{attrs:{label:"经营类目",prop:"saleprodclass"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:"选择经营类目"},model:{value:e.form.saleprodclass,callback:function(t){e.$set(e.form,"saleprodclass",t)},expression:"form.saleprodclass"}},e._l(e.options,(function(e){return r("el-option",{key:e.ttypedetailid,attrs:{label:e.ftype,value:e.ftype}})})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogTableVisible=!1}}},[e._v("取 消")]),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.save("ruleForm")}}},[e._v("保 存")])],1)],1)],1)},m=[],h=r("1da1"),A=(r("96cf"),r("6c87")),g={props:["row"],components:{uploadAvatar:A["a"]},data:function(){return{rules:{fbrand:[{required:!0,message:"输入品牌名",trigger:"blur"}],fagentname:[{required:!0,message:"输入商户名称",trigger:"blur"}],faddress:[{required:!0,message:"输入商户地址",trigger:"blur"}],fcontact:[{required:!0,message:"输入商户联系人",trigger:"blur"}],fphonenumber:[{required:!0,message:"输入商户联系人手机号",trigger:"blur"},{pattern:/^[1][3,4,5,6,7,8,9][0-9]{9}$/,message:"手机号格式不正确",trigger:"blur"}],saleprodclass:[{required:!0,message:"经营类目",trigger:"blur"}]},options:[],param:{classname:"enterprise.tagents.tagents",method:"modify_agent",content:{tagentsid:0,ftype:"普通修改",data:[]}},form:{fagentname:null,faddress:null,fcontact:null,fphonenumber:null,fprodclassname:null},dialogTableVisible:!1,image_Url:"",date:function(){var e=(new Date).getTime();return e},deleteFile:{}}},mounted:function(){},methods:{showDialog:function(){var e=this;return Object(h["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.mainData();case 2:return t.next=4,e.listData();case 4:e.dialogTableVisible=!0;case 5:case"end":return t.stop()}}),t)})))()},listData:function(){var e=this;this.$api.requested({classname:"enterprise.system.prodclass",method:"query_typeList",content:{getdatafromdbanyway:!0}}).then((function(t){e.options=t.data}))},mainData:function(){var e=this;this.$api.requested({classname:"enterprise.tagents.tagents",method:"query_agentsMain",content:{tagentsid:this.row.tagentsid}}).then((function(t){e.form={fbrand:t.data[0].fbrand,tagentsid:t.data[0].tagentsid,fagentname:t.data[0].fagentname,faddress:t.data[0].faddress,fcontact:t.data[0].fcontact,fphonenumber:t.data[0].fphonenumber,saleprodclass:t.data[0].saleprodclass},e.image_Url=t.data[0].attinfos[t.data[0].attinfos.length-1].fobsurl,e.deleteFile=t.data[0].attinfos[0]}))},save:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.param.content.data=[],t.param.content.data.push(t.form),t.param.content.tagentsid=t.form.tagentsid,t.$api.requested(t.param).then((function(e){1===e.code?(t.$notify({title:"成功",message:"保存数据成功",type:"success"}),t.$emit("onSuccess"),t.dialogTableVisible=!1):t.$notify({title:"失败",message:e.data,type:"error"})}))}))},onDeleteSuccess:function(e){this.file=e.data[0],this.image_Url=e.data[e.data.length-1].fobsurl}}},b=g,y=(r("a8ff"),Object(c["a"])(b,p,m,!1,null,null,null)),v=y.exports,w=r("3655"),_={props:["condition","components","tactivityid","iscreatelive"],components:{deleteRow:d["a"],editRow:v,startOrStop:f,search:w["a"]},data:function(){return{total:0,list:[],currentPage:0,param:{classname:"enterprise.tagents.tagents",method:"query_agentsList",content:{getdatafromdbanyway:!0,pageNumber:1,pageSize:20,where:{condition:"",notin:{}}}}}},methods:{listData:function(){var e=this;this.components&&this.tactivityid&&(this.param.content.where.notin.tactivity_agentmsg={tactivityid:this.tactivityid}),this.param.content.where.iscreatelive=this.iscreatelive,this.$api.requested(this.param).then((function(t){e.list=t.data,e.total=t.total,e.currentPage=t.pageNumber}))},handleSizeChange:function(e){this.param.content.pageSize=e,this.listData()},handleCurrentChange:function(e){this.param.content.pageNumber=e,this.listData()},onRefresh:function(){this.param.content.pageNumber=1,this.listData()},onRowSelect:function(e){this.$emit("onSelect",e)}},mounted:function(){this.listData()},watch:{condition:function(e){this.param.content.pageNumber=1,this.param.content.where.condition=e,this.listData()}}},x=_,S=Object(c["a"])(x,n,a,!1,null,null,null);t["a"]=S.exports},"0b42":function(e,t,r){var n=r("da84"),a=r("e8b5"),o=r("68ee"),i=r("861d"),s=r("b622"),l=s("species"),c=n.Array;e.exports=function(e){var t;return a(e)&&(t=e.constructor,o(t)&&(t===c||a(t.prototype))?t=void 0:i(t)&&(t=t[l],null===t&&(t=void 0))),void 0===t?c:t}},1148:function(e,t,r){"use strict";var n=r("da84"),a=r("5926"),o=r("577e"),i=r("1d80"),s=n.RangeError;e.exports=function(e){var t=o(i(this)),r="",n=a(e);if(n<0||n==1/0)throw s("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r}},1707:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABACAMAAACHi2FiAAAAAXNSR0IArs4c6QAAAOpQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAxuEsSQAAAE50Uk5TAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xN+NTDUAAAAstJREFUWMOtmNla4kAQRotAxgUEFJjoiBsgjAsjIIIIuCAikpz3f525SAJh1aRTN3ykk/Ml3V1//dUidqTK3aFJgDCH3XJKvJF+RCke0zNWyUIxrJLLuiOEuLNZl87H95qNANHsOVNdEhFJWwDjYkwCRqw4BrDSItIBeIuLQsTfADoiaYCxEkskPgZISQWgKIpRBKhIDzB1VZhuAj0ZAn1Rjj4wFBNoqcNagCkAzbnru4V657F2uuUL1gRYgsXv3Qyu/lKFGV+zDPlIq8GMuZT/SqrAdp33Go3t3/eoAqwBYF1tiyRqAJSDw7YtwDLsPwWAz0hg2BnAjTveBsgEhlUBEu74IUAhMOwBsGY7DuAqMKwBoLnjST8rsAy7Bsi54xcAp4FhBkDXWcDYECAeGKZ9AtQ1ERG9A/CssGmL9r4v5Yy/IwAMBZjWmy+G90qJvjXwsrpRNQnSPa6jpq14aidzaGRS+s/EUYyuBWC29pdA2lFj5KpT9+aP/j1M5FfuJJ9dLvB6ebTgpp7O9W9hK0MrjVe5s/v9ALDcYJ39ecr5hMVq7qPjxmU+f16u9SYeq5fyA8sMncc6v6diqR2UX6dW758+g20uwpGKU2W6i+u7d+vO42gwhdHaYDa2Os79J6u+v+BdYRvGy1rawYd9R2PNHVHPKos7G2sqx4VtMsfHG169sQhbLanRuj3Y3928b4YLMHOFF4i/2GNV7Tt71piHMViSiCN7Nib5HyRIewp7/gKoL+TPrWMRkj4l6JSlGpl4tllt3beePQBYnp1UsNPFClLq9HcAq+JskH1Hvke5QEqbtM3U23lC3zluu4KwHVC2s5OlTq0ckaA1ILsgfq8+TOiyBMX7HtTkMiIqMImcugr1ee3PuLuw+aZi7+yqelPKauI37KYi1HYn1EYs1BYxFWbzGmpbHW7DH+pRRLiHJOEe34R7sBTWkdd/M/kE5IZSJFAAAAAASUVORK5CYII="},"1b5a":function(e,t,r){},"1da1":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("d3b7");function n(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,l,"next",e)}function l(e){n(i,a,o,s,l,"throw",e)}s(void 0)}))}}},"1dde":function(e,t,r){var n=r("d039"),a=r("b622"),o=r("2d00"),i=a("species");e.exports=function(e){return o>=51||!n((function(){var t=[],r=t.constructor={};return r[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2283:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{display:"inline"}},[r("el-popconfirm",{attrs:{"confirm-button-text":"确定","cancel-button-text":"不用了",icon:"el-icon-info","icon-color":"red",title:"确定删除该条数据吗?"},on:{confirm:e.deleteRow}},[r("el-button",{attrs:{slot:"reference",type:"text",size:"mini"},slot:"reference"},[e._v("删 除")])],1)],1)},a=[],o={props:["tagentsid"],methods:{deleteRow:function(){var e=this;this.$api.requested({classname:"enterprise.tagents.tagents",method:"delete_agent",content:{tagentsid:this.tagentsid}}).then((function(t){1===t.code?e.$notify({title:"成功",message:"数据已删除",type:"success"}):e.$notify({title:"失败",message:t.data,type:"error"}),1===t.code&&e.$emit("onDelete")}))}}},i=o,s=r("2877"),l=Object(s["a"])(i,n,a,!1,null,null,null);t["a"]=l.exports},"29c6":function(e,t,r){},3655:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"flex"},[r("el-radio-group",{attrs:{size:"small"},on:{change:e.onChecked},model:{value:e.radio1,callback:function(t){e.radio1=t},expression:"radio1"}},[r("el-radio-button",{attrs:{label:"个人类型"}}),r("el-radio-button",{attrs:{label:"商户类型"}})],1),r("div",{staticClass:"flex-search"},[r("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入查询内容",size:"small",clearable:""},on:{clear:e.onSearch},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}}),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:e.onSearch}},[e._v("查询")])],1),r("add",{on:{onSuccess:e.onSuccess}})],1)},a=[],o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{"margin-left":"10px"}},[r("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:e.showDialog}},[e._v("新 增")]),r("el-dialog",{attrs:{title:"新增商户",visible:e.dialogTableVisible,width:"500px"},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[r("el-form",{ref:"ruleForm",attrs:{"label-position":"left","label-width":"90px",model:e.form,rules:e.rules,size:"small"}},[r("el-form-item",{attrs:{label:"商户LOGO"}},[r("uploadAvatar",{ref:"myupload",attrs:{ownertable:e.date(),ownerid:0,uploadtype:"avatar",type:"brandlogo",image_Url:e.image_Url},on:{onSuccess:e.onSuccess}})],1),r("el-form-item",{attrs:{label:"品牌名",prop:"fbrand"}},[r("el-input",{attrs:{placeholder:"品牌名",clearable:""},model:{value:e.form.fbrand,callback:function(t){e.$set(e.form,"fbrand",t)},expression:"form.fbrand"}})],1),r("el-form-item",{attrs:{label:"商户名称",prop:"fagentname"}},[r("el-input",{attrs:{placeholder:"输入商户名称",clearable:""},model:{value:e.form.fagentname,callback:function(t){e.$set(e.form,"fagentname",t)},expression:"form.fagentname"}})],1),r("el-form-item",{attrs:{label:"地址",prop:"faddress"}},[r("el-input",{attrs:{placeholder:"输入商户地址",clearable:""},model:{value:e.form.faddress,callback:function(t){e.$set(e.form,"faddress",t)},expression:"form.faddress"}})],1),r("el-form-item",{attrs:{label:"联系人",prop:"fcontact"}},[r("el-input",{attrs:{placeholder:"输入商户联系人",clearable:""},model:{value:e.form.fcontact,callback:function(t){e.$set(e.form,"fcontact",t)},expression:"form.fcontact"}})],1),r("el-form-item",{attrs:{label:"手机号",prop:"fphonenumber"}},[r("el-input",{attrs:{placeholder:"输入商户联系人手机号",clearable:""},model:{value:e.form.fphonenumber,callback:function(t){e.$set(e.form,"fphonenumber",t)},expression:"form.fphonenumber"}})],1),r("el-form-item",{attrs:{label:"经营类目",prop:"saleprodclass"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:"选择经营类目"},model:{value:e.form.saleprodclass,callback:function(t){e.$set(e.form,"saleprodclass",t)},expression:"form.saleprodclass"}},e._l(e.options,(function(e){return r("el-option",{key:e.ttypedetailid,attrs:{label:e.ftype,value:e.ftype}})})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogTableVisible=!1}}},[e._v("取 消")]),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.add("ruleForm")}}},[e._v("保 存")])],1)],1)],1)},i=[],s=r("6c87"),l={components:{uploadAvatar:s["a"]},data:function(){return{rules:{fbrand:[{required:!0,message:"输入品牌名",trigger:"blur"}],fagentname:[{required:!0,message:"输入商户名称",trigger:"blur"}],faddress:[{required:!0,message:"输入商户地址",trigger:"blur"}],fcontact:[{required:!0,message:"输入商户联系人",trigger:"blur"}],fphonenumber:[{required:!0,message:"输入商户联系人手机号",trigger:"blur"},{pattern:/^[1][3,4,5,6,7,8,9][0-9]{9}$/,message:"手机号格式不正确",trigger:"blur"}],saleprodclass:[{required:!0,message:"经营类目",trigger:"blur"}]},param:{classname:"enterprise.tagents.tagents",method:"modify_agent",content:{tagentsid:0,ftype:"新增",data:[]}},form:{fbrand:null,fagentname:null,faddress:null,fcontact:null,fphonenumber:null,fprodclassname:null},dialogTableVisible:!1,options:[],date:function(){var e=(new Date).getTime();return e},file:{},image_Url:""}},mounted:function(){this.listData()},methods:{showDialog:function(){this.dialogTableVisible=!0},listData:function(){var e=this;this.$api.requested({classname:"enterprise.system.prodclass",method:"query_typeList",content:{getdatafromdbanyway:!0}}).then((function(t){e.options=t.data}))},add:function(e){var t=this;this.$refs[e].validate((function(r){if(!r)return!1;t.param.content.data=[],t.param.content.data.push(t.form),t.$api.requested(t.param).then((function(r){1===r.code?t.$notify({title:"成功",message:"新增成功",type:"success"}):t.$notify({title:"失败",message:r.data,type:"error"}),1===r.code&&t.$refs[e].resetFields(),1===r.code&&(t.$refs.myupload.imageUrl=""),t.file.tattachmentid?t.changeFileInfo(r):(t.$emit("onSuccess"),t.dialogTableVisible=!1)}))}))},changeFileInfo:function(e){var t=this;this.$api.requested({classname:"system.system.docManage",method:"changeFilesData",content:{files:[{tattachmentid:this.file.tattachmentid,fdocument:this.file.fdocument,ownertable:"tagents",ownerid:e.data[0].tagentsid,ftype:"brandlogo"}]}}).then((function(e){1===e.code&&(t.dialogTableVisible=!1),1===e.code&&t.$emit("onSuccess")}))},onSuccess:function(e){this.file=e.data[0],this.image_Url=e.data[0].fobsurl}}},c=l,u=r("2877"),f=Object(u["a"])(c,o,i,!1,null,null,null),d=f.exports,p={components:{add:d},data:function(){return{radio1:"个人类型",input:""}},methods:{onSearch:function(){this.$emit("onSearch",this.input)},onChecked:function(e){this.$emit("onChecked",e)},onSuccess:function(){this.$emit("onSuccess")}}},m=p,h=(r("3718"),Object(u["a"])(m,n,a,!1,null,"5544fbdc",null));t["a"]=h.exports},3718:function(e,t,r){"use strict";r("29c6")},"408a":function(e,t,r){var n=r("e330");e.exports=n(1..valueOf)},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,r){var n=r("e330"),a=r("1d80"),o=r("577e"),i=r("5899"),s=n("".replace),l="["+i+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),f=function(e){return function(t){var r=o(a(t));return 1&e&&(r=s(r,c,"")),2&e&&(r=s(r,u,"")),r}};e.exports={start:f(1),end:f(2),trim:f(3)}},"65f0":function(e,t,r){var n=r("0b42");e.exports=function(e,t){return new(n(e))(0===t?0:t)}},"6c87":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["avatar"===e.uploadtype?n("el-upload",{ref:"my-upload",staticClass:"avatar-uploader",attrs:{action:"#","auto-upload":!1,"show-file-list":!1,"on-change":e.handleChange}},[e.image_Url?n("img",{staticClass:"avatar",attrs:{src:e.image_Url}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]):e._e(),"banner"===e.uploadtype?n("el-upload",{ref:"my-upload",class:"banner"===e.uploadtype?"upload-demo":"",staticStyle:{width:"100%"},attrs:{action:"#","auto-upload":!1,"show-file-list":!1,"on-change":e.handleChange,drag:"",multiple:""}},[n("i",{staticClass:"el-icon-upload"}),n("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),n("em",[e._v("点击上传")])])]):e._e(),"chat"===e.uploadtype?n("el-upload",{ref:"my-upload",attrs:{action:"#","auto-upload":!1,"show-file-list":!1,"on-change":e.handleChange}},[n("img",{staticStyle:{margin:"0 20px"},attrs:{src:r("1707"),alt:"",width:"25"}})]):e._e(),"file"===e.uploadtype?n("el-upload",{ref:"my-upload",attrs:{action:"#","auto-upload":!1,"show-file-list":!1,limit:6,multiple:"","on-change":e.handleChange}},[n("el-button",{attrs:{icon:"el-icon-upload2",size:"small",type:"primary"}},[e._v("点击上传")])],1):e._e()],1)},a=[],o=(r("b680"),r("a9e3"),r("d81d"),r("a434"),r("b0c0"),r("bc3a")),i=r.n(o),s={props:["uploadtype","ownertable","ownerid","type","image_Url","isDeletefile","deleteFile"],data:function(){return{requestCount:0,uploadList:[],obsfilenamelist:[],upload_url:"",imageUrl:null}},watch:{image_Url:function(e){this.image_Url=e}},methods:{uploadFile:function(e){var t=this,r=this;this.show=!0;var n={method:"PUT",url:this.upload_url,timeout:36e5,withCredentials:!1,headers:"application/pdf"===e.type?{"Content-Type":"application/pdf"}:{"Content-Type":"application/octet-stream"},validateStatus:function(e){return e>=200},maxRedirects:0,responseType:"text",onUploadProgress:function(t){r.percent=100*Number(t.loaded/t.total).toFixed(2),r.$set(e,"progress",r.percent),r.uploadList.map((function(t,n){t.uid===e.uid&&r.uploadList.splice(n,1,e)}))},data:e};i.a.request(n).then((function(){t.requestCount--,0===t.requestCount&&t.$api.requested({classname:"system.system.docManage",method:"uploadSuccesses",content:{obsfilenames:t.obsfilenamelist,fisreturnallfile:0}}).then((function(e){t.imageUrl=e.data[e.data.length-1].fobsurl,t.$refs["my-upload"].clearFiles(),t.isDeletefile&&t.deleteFiles(t.deleteFile),t.$emit("onSuccess",e)}))})).catch((function(n){t.requestCount--,r.$set(e,"status","failed"),r.uploadList.map((function(t,n){t.uid===e.uid&&r.uploadList.splice(n,1,e)}))}))},handleChange:function(e,t){var r=this;this.requestCount++,this.uploadList=t;var n=e.raw.name.lastIndexOf("."),a=e.name.substr(n+1);this.fileType=e.raw.name.substr(n+1),this.$api.requested({classname:"system.system.docManage",method:"getFileName",content:{filename:e.raw.name,filetype:a,ownertable:this.ownertable,ownerid:this.ownerid,ftype:this.type}}).then((function(t){r.upload_url=t.data.obsuploadurl,r.uploadFile(e.raw),r.obsfilenamelist.push(t.data.obsfilename)}))},clearFiles:function(){this.$refs["my-upload"].clearFiles()},deleteFiles:function(e){var t=this;e.ownertable&&this.$api.requested({classname:"system.system.docManage",method:"deleteDoc",content:{ownertable:e.ownertable,ownerid:e.ownerid,tattachmentid:e.tattachmentid}}).then((function(e){1===e.code?t.$emit("onDeleteSuccess",e):t.$notify({title:"失败",message:e.data,type:"error"})}))}}},l=s,c=(r("9672"),r("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["a"]=u.exports},7156:function(e,t,r){var n=r("1626"),a=r("861d"),o=r("d2bb");e.exports=function(e,t,r){var i,s;return o&&n(i=t.constructor)&&i!==r&&a(s=i.prototype)&&s!==r.prototype&&o(e,s),e}},8418:function(e,t,r){"use strict";var n=r("a04b"),a=r("9bf2"),o=r("5c6c");e.exports=function(e,t,r){var i=n(t);i in e?a.f(e,i,o(0,r)):e[i]=r}},9672:function(e,t,r){"use strict";r("1b5a")},"96cf":function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof A?t:A,o=Object.create(a.prototype),i=new F(n||[]);return o._invoke=k(e,r,i),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",m="completed",h={};function A(){}function g(){}function b(){}var y={};l(y,o,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(N([])));w&&w!==r&&n.call(w,o)&&(y=w);var _=b.prototype=A.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(a,o,i,s){var l=u(e[a],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var a;function o(e,n){function o(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(o,o):o()}this._invoke=o}function k(e,t,r){var n=f;return function(a,o){if(n===p)throw new Error("Generator is already running");if(n===m){if("throw"===a)throw o;return q()}r.method=a,r.arg=o;while(1){var i=r.delegate;if(i){var s=E(i,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var l=u(e,t,r);if("normal"===l.type){if(n=r.done?m:d,l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=m,r.method="throw",r.arg=l.arg)}}}function E(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator["return"]&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=u(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function N(e){if(e){var r=e[o];if(r)return r.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){while(++a<e.length)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:q}}function q(){return{value:t,done:!0}}return g.prototype=b,l(_,"constructor",b),l(b,"constructor",g),g.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},x(S.prototype),l(S.prototype,i,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new S(c(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(_),l(_,s,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){while(t.length){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=N,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=n}catch(a){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},a434:function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),o=r("23cb"),i=r("5926"),s=r("07fa"),l=r("7b0b"),c=r("65f0"),u=r("8418"),f=r("1dde"),d=f("splice"),p=a.TypeError,m=Math.max,h=Math.min,A=9007199254740991,g="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var r,n,a,f,d,b,y=l(this),v=s(y),w=o(e,v),_=arguments.length;if(0===_?r=n=0:1===_?(r=0,n=v-w):(r=_-2,n=h(m(i(t),0),v-w)),v+r-n>A)throw p(g);for(a=c(y,n),f=0;f<n;f++)d=w+f,d in y&&u(a,f,y[d]);if(a.length=n,r<n){for(f=w;f<v-n;f++)d=f+n,b=f+r,d in y?y[b]=y[d]:delete y[b];for(f=v;f>v-n+r;f--)delete y[f-1]}else if(r>n)for(f=v-n;f>w;f--)d=f+n-1,b=f+r-1,d in y?y[b]=y[d]:delete y[b];for(f=0;f<r;f++)y[f+w]=arguments[f+2];return y.length=v-n+r,a}})},a8ff:function(e,t,r){"use strict";r("d94e")},a9e3:function(e,t,r){"use strict";var n=r("83ab"),a=r("da84"),o=r("e330"),i=r("94ca"),s=r("6eeb"),l=r("1a2d"),c=r("7156"),u=r("3a9b"),f=r("d9b5"),d=r("c04e"),p=r("d039"),m=r("241c").f,h=r("06cf").f,A=r("9bf2").f,g=r("408a"),b=r("58a8").trim,y="Number",v=a[y],w=v.prototype,_=a.TypeError,x=o("".slice),S=o("".charCodeAt),k=function(e){var t=d(e,"number");return"bigint"==typeof t?t:E(t)},E=function(e){var t,r,n,a,o,i,s,l,c=d(e,"number");if(f(c))throw _("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=b(c),t=S(c,0),43===t||45===t){if(r=S(c,2),88===r||120===r)return NaN}else if(48===t){switch(S(c,1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+c}for(o=x(c,2),i=o.length,s=0;s<i;s++)if(l=S(o,s),l<48||l>a)return NaN;return parseInt(o,n)}return+c};if(i(y,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var $,L=function(e){var t=arguments.length<1?0:v(k(e)),r=this;return u(w,r)&&p((function(){g(r)}))?c(Object(t),r,L):t},F=n?m(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),N=0;F.length>N;N++)l(v,$=F[N])&&!l(L,$)&&A(L,$,h(v,$));L.prototype=w,w.constructor=L,s(a,y,L)}},b680:function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),o=r("e330"),i=r("5926"),s=r("408a"),l=r("1148"),c=r("d039"),u=a.RangeError,f=a.String,d=Math.floor,p=o(l),m=o("".slice),h=o(1..toFixed),A=function(e,t,r){return 0===t?r:t%2===1?A(e,t-1,r*e):A(e*e,t/2,r)},g=function(e){var t=0,r=e;while(r>=4096)t+=12,r/=4096;while(r>=2)t+=1,r/=2;return t},b=function(e,t,r){var n=-1,a=r;while(++n<6)a+=t*e[n],e[n]=a%1e7,a=d(a/1e7)},y=function(e,t){var r=6,n=0;while(--r>=0)n+=e[r],e[r]=d(n/t),n=n%t*1e7},v=function(e){var t=6,r="";while(--t>=0)if(""!==r||0===t||0!==e[t]){var n=f(e[t]);r=""===r?n:r+p("0",7-n.length)+n}return r},w=c((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!c((function(){h({})}));n({target:"Number",proto:!0,forced:w},{toFixed:function(e){var t,r,n,a,o=s(this),l=i(e),c=[0,0,0,0,0,0],d="",h="0";if(l<0||l>20)throw u("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return f(o);if(o<0&&(d="-",o=-o),o>1e-21)if(t=g(o*A(2,69,1))-69,r=t<0?o*A(2,-t,1):o/A(2,t,1),r*=4503599627370496,t=52-t,t>0){b(c,0,r),n=l;while(n>=7)b(c,1e7,0),n-=7;b(c,A(10,n,1),0),n=t-1;while(n>=23)y(c,1<<23),n-=23;y(c,1<<n),b(c,1,1),y(c,2),h=v(c)}else b(c,0,r),b(c,1<<-t,0),h=v(c)+p("0",l);return l>0?(a=h.length,h=d+(a<=l?"0."+p("0",l-a)+h:m(h,0,a-l)+"."+m(h,a-l))):h=d+h,h}})},b727:function(e,t,r){var n=r("0366"),a=r("e330"),o=r("44ad"),i=r("7b0b"),s=r("07fa"),l=r("65f0"),c=a([].push),u=function(e){var t=1==e,r=2==e,a=3==e,u=4==e,f=6==e,d=7==e,p=5==e||f;return function(m,h,A,g){for(var b,y,v=i(m),w=o(v),_=n(h,A),x=s(w),S=0,k=g||l,E=t?k(m,x):r||d?k(m,0):void 0;x>S;S++)if((p||S in w)&&(b=w[S],y=_(b,S,v),e))if(t)E[S]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:c(E,b)}else switch(e){case 4:return!1;case 7:c(E,b)}return f?-1:a||u?u:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},d81d:function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").map,o=r("1dde"),i=o("map");n({target:"Array",proto:!0,forced:!i},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},d94e:function(e,t,r){},e8b5:function(e,t,r){var n=r("c6b6");e.exports=Array.isArray||function(e){return"Array"==n(e)}}}]);