2925.d1df3eda.js 23 KB

1
  1. "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[2925],{62925:function(e,t,s){s.r(t),s.d(t,{default:function(){return p}});var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.show}},[e._v("新 建")]),s("el-drawer",{attrs:{title:"新建客户",visible:e.dialogFormVisible,size:"600px",direction:"rtl","show-close":!1,"append-to-body":""},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.onClose}},[s("div",{staticClass:"drawer__panel"},[s("el-row",{attrs:{gutter:20}},[s("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px","label-position":"right",size:"mini"}},[s("el-col",{attrs:{span:20}},[s("el-form-item",{attrs:{label:"客户名称:",prop:"enterprisename"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入客户名称"},model:{value:e.form.enterprisename,callback:function(t){e.$set(e.form,"enterprisename",t)},expression:"form.enterprisename"}})],1)],1),s("el-col",{attrs:{span:4}},[s("el-popover",{attrs:{placement:"right",width:"900",trigger:"manual"},model:{value:e.businessShow,callback:function(t){e.businessShow=t},expression:"businessShow"}},[s("el-input",{staticStyle:{width:"300px","margin-bottom":"10px"},attrs:{placeholder:"请输入内容",clearable:"",size:"mini"},on:{clear:e.businessSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.businessSearch.apply(null,arguments)}},model:{value:e.form.enterprisename,callback:function(t){e.$set(e.form,"enterprisename",t)},expression:"form.enterprisename"}},[s("i",{staticClass:"el-icon-search",attrs:{slot:"prefix"},on:{click:e.businessSearch},slot:"prefix"})]),s("el-table",{attrs:{data:e.businessData,"header-cell-style":{background:"#EEEEEE",color:"#333"},size:"mini"},on:{"row-click":e.businessSelect}},[s("el-table-column",{attrs:{width:"260",label:"客户名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.companyName?t.row.companyName:"--"))])]}}])}),s("el-table-column",{attrs:{label:"客户地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.address?t.row.address:"--"))])]}}])}),s("el-table-column",{attrs:{width:"200",label:"客户税号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.taxNum?t.row.taxNum:"--"))])]}}])})],1),s("el-button",{staticStyle:{width:"100%"},attrs:{slot:"reference",size:"mini",type:"primary",disabled:""===e.form.enterprisename},on:{click:e.businessSearch},slot:"reference"},[e._v("工商查询")])],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"企业简称:",prop:"abbreviation"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入企业简称"},model:{value:e.form.abbreviation,callback:function(t){e.$set(e.form,"abbreviation",t)},expression:"form.abbreviation"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"客户类型:",prop:"type"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择客户类型"},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.options.type,(function(t){return s("el-option",{key:t.value,attrs:{label:t.value,value:t.value}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.value))]),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"12px"}},[e._v(e._s(t.remarks?t.remarks:"暂无描述"))])])})),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"客户等级:"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择客户等级"},model:{value:e.form.grade,callback:function(t){e.$set(e.form,"grade",t)},expression:"form.grade"}},e._l(e.options.customerGrade,(function(t){return s("el-option",{key:t.rowindex,attrs:{label:t.value,value:t.value}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.value))]),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"12px"}},[e._v(e._s(t.remarks?t.remarks:"暂无描述"))])])})),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"客户分类:"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择客户分类"},model:{value:e.form.customergrade,callback:function(t){e.$set(e.form,"customergrade",t)},expression:"form.customergrade"}},e._l(e.options.customerClassification,(function(t){return s("el-option",{key:t.rowindex,attrs:{label:t.value,value:t.value}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.value))]),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"12px"}},[e._v(e._s(t.remarks?t.remarks:"暂无描述"))])])})),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"客户行业:"}},[s("el-select",{ref:"sle",staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择所属行业",size:"mini"},model:{value:e.form.industry,callback:function(t){e.$set(e.form,"industry",t)},expression:"form.industry"}},e._l(e.options.industryData,(function(t){return s("el-option",{key:t.value,attrs:{label:t.value,value:t.value}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.value))]),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"12px"}},[e._v(e._s(t.remarks?t.remarks:"暂无描述"))])])})),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"税号:",prop:"taxno"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入企业税号"},model:{value:e.form.taxno,callback:function(t){e.$set(e.form,"taxno",t)},expression:"form.taxno"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"法人:",prop:"contact"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入法人信息"},model:{value:e.form.contact,callback:function(t){e.$set(e.form,"contact",t)},expression:"form.contact"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"电话:",prop:"contact"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入电话"},model:{value:e.form.telephone,callback:function(t){e.$set(e.form,"telephone",t)},expression:"form.telephone"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"省市县:"}},[s("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.basicData.data().areaData,clearable:""},on:{change:e.cascaderChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"详细地址:",prop:"address"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入详细地址"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"上级企业:"}},[s("el-popover",{attrs:{placement:"bottom",width:"700",trigger:"click"},on:{show:e.customerList},model:{value:e.customerShow,callback:function(t){e.customerShow=t},expression:"customerShow"}},[s("el-input",{staticStyle:{width:"300px","margin-bottom":"10px"},attrs:{placeholder:"请输入内容",clearable:"",size:"mini"},on:{clear:function(t){return e.customerList(e.customerParam.content.pageNumber=1)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.customerList(e.customerParam.content.pageNumber=1)}},model:{value:e.customerParam.content.where.condition,callback:function(t){e.$set(e.customerParam.content.where,"condition",t)},expression:"customerParam.content.where.condition"}},[s("i",{staticClass:"el-icon-search",attrs:{slot:"prefix"},on:{click:function(t){return e.customerList(e.customerParam.content.pageNumber=1)}},slot:"prefix"})]),s("el-table",{attrs:{data:e.customer.customerData,height:"396px","header-cell-style":{background:"#EEEEEE",color:"#333"},size:"mini"},on:{"row-click":e.customerData}},[s("el-table-column",{attrs:{label:"客户编号",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.sa_customersid?t.row.sa_customersid:"--"))])]}}])}),s("el-table-column",{attrs:{label:"客户名称",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.enterprisename?t.row.enterprisename:"--"))])]}}])}),s("el-table-column",{attrs:{label:"地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.address?t.row.address:"--"))])]}}])})],1),s("div",{staticClass:"container normal-panel",staticStyle:{"text-align":"right"}},[s("el-pagination",{attrs:{background:"",small:"","page-sizes":[10,20,50,100],layout:"total,sizes, prev, pager, next, jumper","current-page":e.customer.currentPage,total:e.customer.total},on:{"size-change":e.handleSizeChangeCustomer,"current-change":e.handleCurrentChangeCustomer}})],1),s("el-input",{attrs:{slot:"reference",readonly:!0,autocomplete:"off",placeholder:"请选择客户"},on:{input:e.selectCustomer},slot:"reference",model:{value:e.form.superiorenterprisename,callback:function(t){e.$set(e.form,"superiorenterprisename",t)},expression:"form.superiorenterprisename"}})],1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"客户来源:"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入客户来源"},model:{value:e.form.source,callback:function(t){e.$set(e.form,"source",t)},expression:"form.source"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"归属经销商:"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择经销商"},model:{value:e.form.sa_agentsid,callback:function(t){e.$set(e.form,"sa_agentsid",t)},expression:"form.sa_agentsid"}},e._l(e.options.distributor,(function(e){return s("el-option",{key:e.sa_agentsid,attrs:{label:e.enterprisename,value:e.sa_agentsid}})})),1)],1)],1)],1)],1)],1),s("div",{staticClass:"fixed__btn__panel"},[s("el-button",{staticClass:"normal-btn-width inline-16",attrs:{size:"small"},on:{click:e.onClose}},[e._v("取 消")]),s("duplicateCheck",{attrs:{data:e.form}}),s("el-button",{staticClass:"normal-btn-width",attrs:{size:"small",type:"primary"},on:{click:e.onSave}},[e._v("确 定")])],1)]),e.visibleEnterprise?s("enterprise",{attrs:{visible:e.visibleEnterprise,index:e.index,sa_projectid:e.form.sa_projectid},on:{onEnterprise:e.onEnterprise}}):e._e()],1)},o=[],i=s(20629),r=s(19597),n=s(60651),l={name:"add",components:{enterprise:r.Z,duplicateCheck:n.Z},data(){return{dialogFormVisible:!1,visibleEnterprise:!1,customerShow:!1,checkResults:"",index:"",businessData:[],businessParam:{id:20221208103601,content:{pageNumber:1,pageSize:5,keyword:""}},businessShow:!1,total:0,currentPage:0,form:{sa_customersid:0,parentid:0,sys_enterpriseid:0,enterprisename:"",type:"",source:"",province:"",city:"",county:"",address:"",abbreviation:"",taxno:"",grade:"",industry:[],contact:"",phonenumber:"",customergrade:"",ispublic:0,telephone:"",sa_agentsid:"",erpagentnum:""},value:"",options:{type:[],parentCustomers:[],customerGrade:[],industryData:[],customerClassification:[],distributor:[]},rules:{enterprisename:[{required:!0,message:"输入客户名称",trigger:"change,blur"}],type:[{required:!0,message:"还未选择客户类型",trigger:"change"}]},customerParam:{id:20220920083901,content:{pageNumber:1,pageSize:10,where:{condition:"",type:2,sa_projectid:""}}},customer:{customerData:[],total:0,currentPage:0}}},computed:{...(0,i.Se)({dataToForm:"dataToForm"})},methods:{show(){this.dialogFormVisible=!0,this.typeList(),this.gradeList(),this.industryList(),this.queryCustomerGrade(),this.queryDistributor()},async businessSearch(){this.businessParam.content.keyword=this.form.enterprisename;const e=await this.$api.requested(this.businessParam);console.log(e,"工商查询结果"),this.businessData=e.data,this.total=e.total,this.currentPage=e.pageNumber,this.businessShow=!0},businessSelect(e){console.log("选择的工商信息",e),this.$confirm("是否以查询的工商信息更新客户信息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.businessShow=!1,this.form.enterprisename=e.companyName,this.form.address=e.address,this.form.taxno=e.taxNum,this.value=[e.regProvince,e.regCity,e.regArea],this.form.province=e.regProvince,this.form.city=e.regCity,this.form.county=e.regArea,this.form.contact=e.legalPerson})).catch((()=>{this.$message({type:"info",message:"已取消更新"})}))},duplicateCheck(){this.$refs.form.validate((async e=>{if(!e)return!1;const t=await this.$api.requested({id:20221208172002,content:{sa_customersid:this.form.sa_customersid,enterprisename:this.form.enterprisename,taxno:this.form.taxno,address:this.form.address}});console.log(t,"查重结果"),0!==t.data.length&&console.log("重复"),this.checkResults=t.data.length,this.onSave()}))},onSave(){""===this.checkResults?this.duplicateCheck():0!==this.checkResults?this.$confirm("该客户疑似重复,是否确认创建客户?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.onSubmit()})).catch((()=>{this.$message({type:"info",message:"已取消创建"})})):this.onSubmit()},onSubmit(){console.log(this.form),this.$refs["form"].validate((async e=>{if(!e)return!1;const t=await this.$api.requested({id:20221012163902,content:this.form});this.tool.showMessage(t,(()=>{console.log(this.checkResults,"查重结果"),0===this.checkResults?(this.$emit("onSuccess"),this.$refs["form"].resetFields(),this.form={sa_customersid:0,sys_enterpriseid:0,enterprisename:"",type:"",source:"",parentid:0,superiorenterprisename:"",abbreviation:"",taxno:"",customergrade:"",industry:"",phonenumber:"",province:"",city:"",county:"",address:"",ispublic:0},this.dialogFormVisible=!1,this.checkResults="",this.value=""):this.setTag(t.data.sa_customersid)}))}))},async setTag(e){await this.$api.requested({id:20220929090901,content:{ownertable:"sa_customers",ownerid:e,datatag:["疑似重复"]}});this.$emit("onSuccess"),this.$refs["form"].resetFields(),this.form={},this.dialogFormVisible=!1,this.checkResults="",this.value=""},onClose(){this.$refs["form"].resetFields(),this.form={sa_customersid:0,sys_enterpriseid:0,enterprisename:"",type:"",source:"",parentid:0,superiorenterprisename:"",abbreviation:"",taxno:"",customergrade:"",industry:"",phonenumber:"",province:"",city:"",county:"",address:"",ispublic:0},this.dialogFormVisible=!1,this.checkResults="",this.value="",this.businessShow=!1},async typeList(){const e=JSON.parse(sessionStorage.getItem("active_account")).siteid,t=await this.$api.requested({classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"customertypemx",parameter:{siteid:e}}});this.options.type=t.data},async customerList(){const e=await this.$api.requested(this.customerParam);this.customer.customerData=e.data,this.customer.total=e.total,this.customer.currentPage=e.pageNumber},selectCustomer(){this.customerParam.content.where.condition=this.form.enterprisename,this.customerList()},customerData(e){this.form.parentid=e.sa_customersid,this.form.superiorenterprisename=e.enterprisename,this.customerShow=!1},handleSizeChangeCustomer(e){this.customerParam.content.pageSize=e,this.customerList()},handleCurrentChangeCustomer(e){this.customerParam.content.pageNumber=e,this.customerList()},enterpriseList(){this.visibleEnterprise=!0},onEnterprise(e){this.visibleEnterprise=!1,console.log("企业信息",e),this.form.parentid=e.sa_customersid,this.form.superiorenterprisename=e.enterprisename},cascaderChange(e){if(1===e.length)return this.form=Object.assign({},this.form,{province:e[0],city:"",county:""});this.form=Object.assign({},this.form,{province:e[0],city:e[1],county:e[2]})},async gradeList(){const e=JSON.parse(sessionStorage.getItem("active_account")).siteid,t=await this.$api.requested({classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"customergrade",parameter:{siteid:e}}});console.log("客户等级",t.data),this.options.customerClassification=t.data,console.log("处理后客户等级",this.options.customerClassification)},queryCustomerGrade(){this.$store.dispatch("optiontypeselect","agentgrade").then((e=>{this.options.customerGrade=e.data}))},async industryList(){const e=JSON.parse(sessionStorage.getItem("active_account")).siteid,t=await this.$api.requested({classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"industry",parameter:{siteid:e}}});this.options.industryData=t.data},async queryDistributor(){var e=sessionStorage.getItem("active_account");e=JSON.parse(e);const t=await this.$api.requested({id:20230214162602,content:{hrid:e.hrid,pageNumber:1,pageSize:20,where:{condition:""}}});this.options.distributor=t.data,console.log(this.options.distributor,"经销商")}}},c=l,u=s(43736),m=(0,u.Z)(c,a,o,!1,null,"c342cb84",null),p=m.exports},60651:function(e,t,s){s.d(t,{Z:function(){return c}});var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-button",{staticClass:"inline-16 normal-btn-width",attrs:{size:"small",type:"primary"},on:{click:e.listData}},[e._v("查 重")]),s("el-dialog",{attrs:{title:"重复的客户",visible:e.dialogTableVisible,"append-to-body":""},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[s("el-table",{attrs:{data:e.duplicateData,"header-cell-style":{background:"#EEEEEE",color:"#333"},size:"mini"}},[s("el-table-column",{attrs:{property:"enterprisename",label:"客户名称",width:"150"}}),s("el-table-column",{attrs:{property:"address",label:"客户地址"}}),s("el-table-column",{attrs:{property:"taxno",label:"企业税号",width:"150"}})],1),s("div",{staticClass:"container normal-panel",staticStyle:{"text-align":"right"}},[s("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20],layout:"total,sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{staticClass:"normal-btn-width",attrs:{type:"primary",size:"mini"},on:{click:function(t){e.dialogTableVisible=!1}}},[e._v("确 定")])],1)],1)],1)},o=[],i={name:"duplicateCheck",props:["data"],data(){return{dialogTableVisible:!1,duplicateData:[],total:0,currentPage:0,param:{id:20221208172002,content:{sa_customersid:"",enterprisename:"",taxno:"",address:""}}}},methods:{async listData(){console.log(this.data,"数据"),this.param.content.sa_customersid=this.data.sa_customersid||0,this.param.content.enterprisename=this.data.enterprisename,this.param.content.taxno=this.data.taxno,this.param.content.address=this.data.address;const e=await this.$api.requested(this.param);e.data.length>0?(this.dialogTableVisible=!0,this.duplicateData=e.data,this.total=e.total,this.currentPage=e.pageNumber):this.$message({message:"无重复数据",type:"success"}),this.$emit("checkSuccess",e.data.length)},handleSizeChange(e){this.param.content.pageSize=e,this.listData()},handleCurrentChange(e){this.param.content.pageNumber=e,this.listData()}}},r=i,n=s(43736),l=(0,n.Z)(r,a,o,!1,null,"45e04fd7",null),c=l.exports},19597:function(e,t,s){s.d(t,{Z:function(){return b}});var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-dialog",{attrs:{title:"新 建",visible:e.dialogProjectVisible,"append-to-body":"",width:"900px"},on:{"update:visible":function(t){e.dialogProjectVisible=t},close:e.onColes}},[s("div",{staticStyle:{"font-size":"15px"},attrs:{slot:"title"},slot:"title"},[e._v(" 选择单位 ")]),s("layout_table",{ref:"projectTable",attrs:{layout:e.tablecols,data:e.list,opwidth:200,custom:!1,height:320,checkbox:!0,onRow:e.row},on:{rowClick:e.rowClick,onRow:e.onRow}}),s("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[s("el-pagination",{attrs:{background:"",small:"","current-page":e.currentPage,"page-size":e.params.content.pageSize,layout:"total, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),s("div",{staticClass:"dialog-footer"},[s("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:e.onColes}},[e._v("取 消")]),s("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1)],1)},o=[],i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tables",staticStyle:{width:"100%"},attrs:{"row-class-name":e.tableClassName,"highlight-current-row":"",data:e.data,"header-cell-style":{background:"#EEEEEE",color:"#333"},size:"mini",height:e.height,border:""},on:{"row-click":e.rowClick,select:e.select}},[e.checkbox?s("el-table-column",{attrs:{type:"selection",width:"55"},on:{handleSelectionChange:e.handleSelectionChange}}):e._e(),e._l(e.layout,(function(t){return s("el-table-column",{key:t.tablecolid,attrs:{"show-overflow-tooltip":"来源"==t.title||"地址"==t.title||"备注"==t.title,prop:t.columnname,label:t.title,width:t.width},scopedSlots:e._u([{key:"default",fn:function(a){return[e.custom?e._t("customcol",null,{column:{data:a.row,columnname:t.columnname}}):s("span",[e._v(e._s(a.row[t.columnname]))]),"operation"===t.columnname?e._t("opreation",null,{data:a.row}):e._e()]}}],null,!0)})}))],2)],1)},r=[],n=s(20629),l={props:["layout","data","custom","height","checkbox","onRow"],data(){return{list:[],bill_id:""}},computed:{...(0,n.Se)({loading:"loading"})},methods:{rowClick(e){this.$emit("rowClick",e)},tableClassName({row:e,rowIndex:t}){e.index=t},select(e,t){console.log(t),this.bill_id=t.id,this.$emit("onRow",t),this.$refs.tables.clearSelection(),0!==e.length&&this.$refs.tables.toggleRowSelection(t,!0)},handleSelectionChange(e){e.length>=2&&this.$refs.tables.clearSelection(),this.$emit("checkboxCallBack",e)},isCheck(e,t){},setCurrentRow(e){console.log("执行力"),console.log(e)},toggleRowSelection(e,t){}},mounted(){console.log("初始化输出"),console.log(this.onRow)}},c=l,u=s(43736),m=(0,u.Z)(c,i,r,!1,null,null,null),p=m.exports,d={name:"enterprise",props:["visible","index"],data(){return{dialogProjectVisible:!1,bill_id:"",tablecols:[],list:[],total:0,currentPage:0,row:"",params:{id:20221014101002,content:{pageNumber:1,pageSize:20,where:{condition:""}}}}},components:{layout_table:p},mounted(){console.log(this.visible),this.dialogProjectVisible=!0,console.log(this.index),this.listData()},methods:{async listData(){const e=await this.$api.requested(this.params);this.list=e.data,this.total=e.total,console.log(this.list[0]),""!==this.index&&this.toggleSelection([this.list[this.index]])},handleSizeChange(e){this.params.content.pageSize=e,this.listData()},handleCurrentChange(e){this.params.content.pageNumber=e,this.listData()},onColes(){this.dialogProjectVisible=!1,this.$emit("onEnterprise")},onRow(e){this.row=e},onSubmit(){this.dialogProjectVisible=!1,this.$emit("onEnterprise",this.row)},toggleSelection(e){console.log("保存"),console.log(e),e?e.forEach((e=>{this.$refs.projectTable.$refs.tables.setCurrentRow(e)})):this.$refs.projectTable.$refs.tables.clearSelection()},rowClick(e){console.log("选中"),console.log(e)}},created(){this.tablecols=this.tool.tabelCol(this.$route.name).parentCustomerTable.tablecols}},h=d,g=(0,u.Z)(h,a,o,!1,null,"41fe2796",null),b=g.exports}}]);