| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[4256],{54256:function(e,t,i){i.r(t),i.d(t,{default:function(){return d}});var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-button",{attrs:{size:"mini",type:"text",disabled:!e.tool.checkAuth(e.$route.name,"andEnterpriseManage")||!e.disabled},on:{click:e.onshow}},[e._v("编 辑")]),i("el-drawer",{attrs:{title:"编辑关联客户",visible:e.visible,size:"600px","show-close":!1,direction:"rtl","append-to-body":""},on:{"update:visible":function(t){e.visible=t},close:e.onClose}},[i("div",{staticClass:"drawer__panel"},[i("el-row",{attrs:{gutter:20}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"90px","label-position":"right",size:"mini"}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"企业名称:",prop:"enterprisename"}},[i("el-input",{attrs:{placeholder:"请选择企业"},on:{focus:e.enterpriseList},model:{value:e.form.enterprisename,callback:function(t){e.$set(e.form,"enterprisename",t)},expression:"form.enterprisename"}})],1)],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"备注:"}},[i("el-input",{attrs:{type:"textarea",rows:"5",placeholder:"请输入备注信息"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1)],1)],1)],1),i("div",{staticClass:"fixed__btn__panel"},[i("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:e.onClose}},[e._v("取 消")]),i("el-button",{staticClass:"normal-btn-width",attrs:{size:"small",type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)]),e.visibleEnterprise?i("enterprise",{attrs:{visible:e.visibleEnterprise,index:e.index,sa_projectid:e.form.sa_projectid},on:{onEnterprise:e.onEnterprise}}):e._e()],1)},s=[],l=i(13274),n={name:"edit",props:["data","disabled"],components:{enterprise:l.Z},data(){return{visible:!1,visibleEnterprise:!1,index:"",form:{sa_project_partiesid:0,sa_projectid:"",sys_enterpriseid:"",enterprisename:"",remarks:""},rules:{enterprisename:[{required:!0,message:"请选择企业",trigger:"change"}]}}},methods:{onshow(){console.log("新增企业缔约信息"),console.log(this.data),this.form=this.data,this.visible=!0},onSubmit(){this.form.sa_projectid=this.data.sa_projectid,this.$refs["form"].validate((async e=>{if(!e)return!1;const t=await this.$api.requested({id:20221027143602,content:this.form});this.tool.showMessage(t,(()=>{this.$emit("updateSuccess"),this.onClose()}))}))},onClose(){this.visible=!1,this.$refs.form.resetFields(),this.form={sa_project_partiesid:0,sa_projectid:"",sys_enterpriseid:"",enterprisename:"",remarks:""}},enterpriseList(){this.visibleEnterprise=!0},onEnterprise(e){this.visibleEnterprise=!1,console.log("企业信息",e),this.form.sys_enterpriseid=e.sys_enterpriseid,this.form.enterprisename=e.enterprisename}},mounted(){}},a=n,r=i(43736),c=(0,r.Z)(a,o,s,!1,null,"1f1f68d8",null),d=c.exports},13274:function(e,t,i){i.d(t,{Z:function(){return g}});var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{title:"新 建",visible:e.dialogProjectVisible,"append-to-body":"",width:"900px"},on:{"update:visible":function(t){e.dialogProjectVisible=t},close:e.onColes}},[i("div",{staticStyle:{"font-size":"15px"},attrs:{slot:"title"},slot:"title"},[e._v(" 选择客户 ")]),i("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}}),i("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[i("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),i("div",{staticClass:"dialog-footer"},[i("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:e.onColes}},[e._v("取 消")]),i("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1)],1)},s=[],l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("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?i("el-table-column",{attrs:{type:"selection",width:"55"},on:{handleSelectionChange:e.handleSelectionChange}}):e._e(),e._l(e.layout,(function(t){return i("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(o){return[e.custom?e._t("customcol",null,{column:{data:o.row,columnname:t.columnname}}):e._e(),"province"===t.columnname?e._t("province",(function(){return[i("p",[e._v(e._s(o.row[t.columnname]+"-"+o.row.city+"-"+o.row.county))])]}),{data:o.row}):i("span",[e._v(e._s(o.row[t.columnname]))]),"operation"===t.columnname?e._t("opreation",null,{data:o.row}):e._e()]}}],null,!0)})}))],2)],1)},n=[],a=i(20629),r={props:["layout","data","custom","height","checkbox","onRow"],data(){return{list:[],bill_id:""}},computed:{...(0,a.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=r,d=i(43736),h=(0,d.Z)(c,l,n,!1,null,null,null),p=h.exports,m={name:"enterprise",props:["visible","index"],data(){return{dialogProjectVisible:!1,bill_id:"",tablecols:[],list:[],total:0,currentPage:0,row:"",params:{id:20220920083901,content:{pageNumber:1,pageSize:20,where:{condition:"",type:2,sa_projectid:""}}}}},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).enterpriseTable.tablecols}},u=m,b=(0,d.Z)(u,o,s,!1,null,"68d0a8c6",null),g=b.exports}}]);
|