1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e624b7a2"],{"226b":function(t,e,a){},2881:function(t,e,a){},"2dd5":function(t,e,a){},"8d3b":function(t,e,a){"use strict";a("2881")},"990f":function(t,e,a){"use strict";a("2dd5")},d3097:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.components?t._e():a("div",{staticStyle:{padding:"10px",background:"#fff"}},[a("el-descriptions",{attrs:{title:"展会信息"}},[a("el-descriptions-item",{attrs:{label:"展会名称"}},[t._v(t._s(t.activity.ftitle))]),a("el-descriptions-item",{attrs:{label:"开始时间"}},[t._v(t._s(t.activity.fbegdate))]),a("el-descriptions-item",{attrs:{label:"结束时间"}},[t._v(t._s(t.activity.fenddate))]),a("el-descriptions-item",{attrs:{label:"状态"}},[a("el-tag",{attrs:{size:"small"}},[t._v(t._s(t.activity.fstatus))])],1),a("el-descriptions-item",{attrs:{label:"展会介绍"}},[t._v(t._s(t.activity.fnotes))]),a("el-descriptions-item",{attrs:{label:"主页地址"}},[a("a",{staticClass:"link",on:{click:function(e){return t.toRescue(t.activity.fshow_url)}}},[t._v(t._s(t.activity.fshow_url))])]),a("el-descriptions-item",{attrs:{label:"参展商户数"}},[t._v(t._s(t.activity.fagentcount))])],1)],1),a("div",{staticStyle:{"margin-top":"10px",background:"#fff","padding-bottom":"10px"}},[t.components?t._e():a("search",{on:{onSearch:t.onSearch}},[a("div",{attrs:{slot:"content"},slot:"content"},[t.show?a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",icon:"el-icon-arrow-left"},on:{click:function(e){t.show=!1}}},[t._v("返 回")]):a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary",icon:"el-icon-user"},on:{click:function(e){t.show=!0}}},[t._v("添加参展商户")])],1)]),a("div",[t.show?a("merchantTable",{attrs:{components:!0,tactivityid:t.activity.tactivityid},on:{onSelect:t.onSelect}}):a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,border:"",size:"mini",stripe:"",height:"calc(100vh - 445px)"}},[a("el-table-column",{attrs:{prop:"fbrand",label:"参展品牌"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fbrand?e.row.fbrand:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"fagentname",label:"经销商名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fagentname?e.row.fagentname:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"flocationclass",label:"经营类目"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.flocationclass?e.row.flocationclass:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"fcontact",label:"联系人"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fcontact?e.row.fcontact:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"fphonenumber",label:"联系电话"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fphonenumber?e.row.fphonenumber:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"flocation",label:"门牌号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.flocation?e.row.flocation:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"fintroduction",label:"品牌介绍"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fintroduction?e.row.fintroduction:"--"))])]}}])}),t.components?a("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return t.onRowSelect(e.row)}}},[t._v("选 择")])]}}],null,!1,634819458)}):a("el-table-column",{attrs:{prop:"fstatus",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("prod",{attrs:{row:e.row}}),a("el-divider",{attrs:{direction:"vertical"}}),a("edit-row",{attrs:{row:e.row},on:{onSuccess:t.listData}}),a("el-divider",{attrs:{direction:"vertical"}}),a("delete-row",{attrs:{row:e.row},on:{onDelete:t.listData}})]}}])})],1),a("div",{staticStyle:{margin:"20px 0"}},[a("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)],1)])},n=[],o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:function(e){t.dialogFormVisible=!0}}},[t._v("新 增")]),a("el-dialog",{attrs:{title:"创建展会",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{attrs:{model:t.form,"label-position":"left","label-width":"100px",size:"small"}},[a("el-form-item",{attrs:{label:"参展商名称"}},[a("el-input",{attrs:{placeholder:"请输入参展商名称",autocomplete:"off"},model:{value:t.form.fbrand,callback:function(e){t.$set(t.form,"fbrand",e)},expression:"form.fbrand"}})],1),a("el-form-item",{attrs:{label:"参展商联系人"}},[a("el-input",{attrs:{placeholder:"请输入参展商联系人址",autocomplete:"off"},model:{value:t.form.fcontact,callback:function(e){t.$set(t.form,"fcontact",e)},expression:"form.fcontact"}})],1),a("el-form-item",{attrs:{label:"参展商联系电话"}},[a("el-input",{attrs:{placeholder:"请输入参展商联系电话",autocomplete:"off"},model:{value:t.form.fphonenumber,callback:function(e){t.$set(t.form,"fphonenumber",e)},expression:"form.fphonenumber"}})],1),a("el-form-item",{attrs:{label:"展会商介绍"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6},placeholder:"请输入展会商介绍"},model:{value:t.form.fintroduction,callback:function(e){t.$set(t.form,"fintroduction",e)},expression:"form.fintroduction"}})],1),a("el-form-item",{attrs:{label:"门牌号"}},[a("el-input",{attrs:{placeholder:"请输入门牌号",autocomplete:"off"},model:{value:t.form.flocation,callback:function(e){t.$set(t.form,"flocation",e)},expression:"form.flocation"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.create}},[t._v("确 定")])],1)],1)],1)},l=[],s={data:function(){return{dialogFormVisible:!1,form:{tactivityid:0,ftitle:null,fnotes:null,fshow_url:null,fstatus:"未开始",fbegdate:null,fenddate:null},date:[]}},methods:{create:function(){var t=this;this.$api.requested({classname:"enterprise.activity.activity",method:"insertormodify_activity",content:this.form}).then((function(e){1===e.code&&(t.dialogFormVisible=!1),1===e.code&&t.$emit("onSuccess")}))}}},r=s,c=a("2877"),u=Object(c["a"])(r,o,l,!1,null,null,null),d=u.exports,f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{display:"inline"}},[a("el-popconfirm",{attrs:{"confirm-button-text":"确定","cancel-button-text":"不用了",icon:"el-icon-info","icon-color":"red",title:"确定删除该条数据吗?"},on:{confirm:t.deleteRow}},[a("el-button",{attrs:{slot:"reference",type:"text",size:"mini"},slot:"reference"},[t._v("删 除")])],1)],1)},p=[],m={props:["row"],methods:{deleteRow:function(){var t=this;this.$api.requested({classname:"enterprise.activity.activity",method:"delete_activityAgent",content:{tactivityid:this.row.tactivityid,tagentsid:this.row.tagentsid}}).then((function(e){1===e.code?t.$notify({title:"成功",message:"数据已删除",type:"success"}):t.$notify({title:"失败",message:e.data,type:"error"}),1===e.code&&t.$emit("onDelete")}))}}},h=m,b=Object(c["a"])(h,f,p,!1,null,null,null),g=b.exports,v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{display:"inline"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:t.showDialog}},[t._v("编 辑")]),a("el-dialog",{attrs:{title:"编辑商户",visible:t.dialogTableVisible,width:"500px"},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[a("el-form",{attrs:{"label-position":"left","label-width":"90px",model:t.form,size:"small"}},[a("el-form-item",{attrs:{label:"参展品牌"}},[a("el-input",{attrs:{placeholder:"输入参展品牌",clearable:""},model:{value:t.form.fbrand,callback:function(e){t.$set(t.form,"fbrand",e)},expression:"form.fbrand"}})],1),a("el-form-item",{attrs:{label:"门牌号"}},[a("el-input",{attrs:{placeholder:"输入门牌号",clearable:""},model:{value:t.form.flocation,callback:function(e){t.$set(t.form,"flocation",e)},expression:"form.flocation"}})],1),a("el-form-item",{attrs:{label:"联系人"}},[a("el-input",{attrs:{placeholder:"输入商户联系人",clearable:""},model:{value:t.form.fcontact,callback:function(e){t.$set(t.form,"fcontact",e)},expression:"form.fcontact"}})],1),a("el-form-item",{attrs:{label:"手机号"}},[a("el-input",{attrs:{placeholder:"输入商户联系人手机号",clearable:""},model:{value:t.form.fphonenumber,callback:function(e){t.$set(t.form,"fphonenumber",e)},expression:"form.fphonenumber"}})],1),a("el-form-item",{attrs:{label:"经营类目"}},[a("el-input",{attrs:{placeholder:"输入经营类目",clearable:""},model:{value:t.form.flocationclass,callback:function(e){t.$set(t.form,"flocationclass",e)},expression:"form.flocationclass"}})],1),a("el-form-item",{attrs:{label:"商户介绍"}},[a("el-input",{attrs:{placeholder:"输入商户介绍",clearable:""},model:{value:t.form.fintroduction,callback:function(e){t.$set(t.form,"fintroduction",e)},expression:"form.fintroduction"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogTableVisible=!1}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[t._v("保 存")])],1)],1)],1)},y=[],_=a("6c87"),w={props:["row"],components:{uploadAvatar:_["a"]},data:function(){return{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}},mounted:function(){},methods:{showDialog:function(){this.form=Object.assign({},this.form,this.row),this.dialogTableVisible=!0},save:function(){var t=this,e={classname:"enterprise.activity.activity",method:"insertormodify_activityAgent",content:this.form};this.$api.requested(e).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"})}))},onSuccess:function(t){this.file=t.data[0]}}},S=w,k=(a("f3adf"),Object(c["a"])(S,v,y,!1,null,null,null)),x=k.exports,z=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{display:"inline"}},[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.onShow}},[t._v("参展商品")]),a("el-dialog",{attrs:{title:"参展商品",visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[t.show?a("div",[a("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"small",type:"primary"},on:{click:t.onShowCommdity}},[t._v("添加参展商品")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,border:"",size:"mini",stripe:"",height:"400px"}},[a("el-table-column",{attrs:{label:"缩略图"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.attinfos>0?a("p",[t._v("--")]):a("img",{attrs:{width:"50",src:e.row.attinfos[0].fobsurl,alt:""}})]}}],null,!1,4261979932)}),a("el-table-column",{attrs:{prop:"fprodname",label:"产品名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fprodname?e.row.fprodname:"--"))])]}}],null,!1,2581213091)}),a("el-table-column",{attrs:{prop:"fintroduction",label:"产品介绍"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fintroduction?e.row.fintroduction:"--"))])]}}],null,!1,2838379043)}),a("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popconfirm",{attrs:{"confirm-button-text":"确定","cancel-button-text":"不用了",icon:"el-icon-info","icon-color":"red",title:"确定删除该条数据吗?"},on:{confirm:function(a){return t.onDelete(e.row)}}},[a("el-button",{attrs:{slot:"reference",type:"text",size:"mini"},slot:"reference"},[t._v("删 除")])],1)]}}],null,!1,2713669840)})],1),a("div",{staticStyle:{margin:"20px 0"}},[a("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1):a("prod",{attrs:{tagentsid:t.row.tagentsid},on:{onBack:t.onBack}}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogTableVisible=!1}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.dialogTableVisible=!1}}},[t._v("确 定")])],1)],1)],1)},$=[],C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"small",icon:"el-icon-arrow-left"},on:{click:t.onBack}},[t._v("返 回")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,border:"",size:"mini",stripe:"",height:"400px"}},[a("el-table-column",{attrs:{prop:"fprodname",label:"产品名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fprodname?e.row.fprodname:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"fintroduction",label:"产品介绍"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.fintroduction?e.row.fintroduction:"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return t.onSelect(e.row)}}},[t._v("选 择")])]}}])})],1),a("div",{staticStyle:{margin:"20px 0"}},[a("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},D=[],V={props:["tagentsid"],data:function(){return{param:{classname:"enterprise.products.products",method:"query_productsList",content:{getdatafromdbanyway:!0,pageNumber:1,pageSize:20,tagentsid:"",where:{condition:"",fisonsale:"1",notin:{tactivity_agentproducts:{}}}}},total:0,list:[],currentPage:0}},methods:{onBack:function(){this.$emit("onBack")},listData:function(){var t=this;this.param.content.tagentsid=this.tagentsid,this.param.content.where.notin.tactivity_agentproducts.tactivityid=JSON.parse(sessionStorage.getItem("activity")).tactivityid,this.$api.requested(this.param).then((function(e){t.list=e.data,t.total=e.total,t.currentPage=e.pageNumber}))},handleSizeChange:function(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange:function(t){this.param.content.pageNumber=t,this.listData()},onSelect:function(t){var e=this;this.activity=JSON.parse(sessionStorage.getItem("activity"));var a={classname:"enterprise.activity.activity",method:"insertormodify_activityAgentProd",content:{tactivityid:this.activity.tactivityid,tagentsid:this.tagentsid,tagents_productid:t.tagents_productid,fintroduction:t.fintroduction}};this.$api.requested(a).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("onBack")}))}},mounted:function(){this.listData()}},N=V,O=Object(c["a"])(N,C,D,!1,null,null,null),T=O.exports,q={props:["row"],components:{prod:T},data:function(){return{param:{classname:"enterprise.activity.activity",method:"query_activityAgentMain_prodlist",content:{getdatafromdbanyway:!0,pageNumber:1,pageSize:20,tactivityid:null,tagentsid:null,where:{condition:""}}},total:0,list:[],currentPage:0,show:!0,tagentsid:"",dialogTableVisible:!1}},methods:{onShow:function(){this.dialogTableVisible=!0},onShowCommdity:function(){this.show=!1},onBack:function(){this.show=!0,this.listData()},onDelete:function(t){var e=this;this.$api.requested({classname:"enterprise.activity.activity",method:"delete_activityAgentProd",content:{tactivityid:JSON.parse(sessionStorage.getItem("activity")).tactivityid,tagentsid:this.row.tagentsid,tagents_productid:t.tagents_productid}}).then((function(t){1===t.code?e.$notify({title:"成功",message:"删除展会商品成功",type:"success"}):e.$notify({title:"失败",message:t.data,type:"error"}),1===t.code&&e.listData()}))},listData:function(){var t=this;this.param.content.tactivityid=JSON.parse(sessionStorage.getItem("activity")).tactivityid,this.param.content.tagentsid=this.row.tagentsid,this.$api.requested(this.param).then((function(e){t.list=e.data,t.total=e.total,t.currentPage=e.pageNumber}))},handleSizeChange:function(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange:function(t){this.param.content.pageNumber=t,this.listData()}},mounted:function(){this.listData()}},j=q,P=Object(c["a"])(j,z,$,!1,null,null,null),R=P.exports,A=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入查询内容",size:"small",clearable:""},on:{clear:t.onSearch},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}}),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:t.onSearch}},[t._v("查 询")]),a("div",[t._t("content")],2)],1)},B=[],E={data:function(){return{input:""}},methods:{onSearch:function(){this.$emit("onSearch",this.input)}}},J=E,F=(a("990f"),Object(c["a"])(J,A,B,!1,null,"51a14c76",null)),I=F.exports,L=a("0ac6"),M={props:["components","activeid"],components:{merchantTable:L["a"],search:I,add:d,deleteRow:g,editRow:x,prod:R},data:function(){return{param:{classname:"enterprise.activity.activity",method:"query_activityAgentList",content:{getdatafromdbanyway:!0,pageNumber:1,pageSize:20,tactivityid:0,where:{condition:""}}},total:0,list:[],currentPage:0,activity:{},show:!1}},methods:{listData:function(){var t=this;this.param.content.tactivityid=this.activeid?this.activeid:this.activity.tactivityid,this.$api.requested(this.param).then((function(e){t.list=e.data,t.total=e.total,t.currentPage=e.pageNumber}))},handleSizeChange:function(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange:function(t){this.param.content.pageNumber=t,this.listData()},onSearch:function(t){this.param.content.pageNumber=1,this.param.content.where.condition=t,this.listData()},onSelect:function(t){var e=this,a={classname:"enterprise.activity.activity",method:"insertormodify_activityAgent",content:{tactivityid:this.activity.tactivityid,tagentsid:t.tagentsid,fbrand:t.fbrand,fcontact:t.fcontact,fintroduction:t.fintroduction,flocation:t.flocation,flocationclass:t.saleprodclass[0],fphonenumber:t.fphonenumber,fstatus:""}};this.$api.requested(a).then((function(t){1===t.code?e.$notify({title:"成功",message:"添加商户成功",type:"success"}):e.$notify({title:"失败",message:t.data,type:"error"}),1===t.code&&(e.show=!1),e.listData()}))},onRowSelect:function(t){this.$emit("onSelect",t)},toRescue:function(t){t.indexOf("http://")>-1||t.indexOf("https://")>-1?window.open(t):window.open("http://"+t)}},mounted:function(){this.listData()},created:function(){this.activity=JSON.parse(sessionStorage.getItem("activity"))}},G=M,H=(a("8d3b"),Object(c["a"])(G,i,n,!1,null,null,null));e["default"]=H.exports},f3adf:function(t,e,a){"use strict";a("226b")}}]);
|