| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[8366],{58366:function(e,t,s){s.r(t),s.d(t,{default:function(){return m}});var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v("新 建")]),s("el-dialog",{attrs:{title:"新 建",visible:e.dialogFormVisible,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[s("div",{staticStyle:{"font-size":"15px"},attrs:{slot:"title"},slot:"title"},[e._v(" 关联缔约企业 ")]),s("el-row",{attrs:{gutter:20}},[s("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"120px","label-position":"right",size:"mini"}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"企业名称",prop:"sys_enterpriseid"}},[s("el-select",{attrs:{placeholder:"请选择关联的企业",clearable:"",size:"small"},on:{clear:function(t){e.form.sys_enterpriseid=""}},model:{value:e.form.sys_enterpriseid,callback:function(t){e.$set(e.form,"sys_enterpriseid",t)},expression:"form.sys_enterpriseid"}},e._l(e.basicData.data().enterpriseList,(function(e){return s("el-option",{key:e.sys_enterpriseid,attrs:{label:e.enterprisename,value:e.sys_enterpriseid}})})),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[s("el-input",{attrs:{type:"textarea",placeholder:"请输入备注"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1)],1)],1),s("div",{staticClass:"dialog-footer"},[s("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(t){e.dialogFormVisible=!1}}},[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)},i=[],a={name:"add",components:{},data(){return{dialogFormVisible:!1,projectAddress:[],form:{sa_project_partiesid:0,sa_projectid:"",sys_enterpriseid:"",remarks:""},rules:{sys_enterpriseid:[{required:!0,message:"请选择企业",trigger:"blur"}]}}},created(){console.log(this.basicData.data().enterpriseList)},methods:{onSubmit(){console.log(this.form),this.$refs["form"].validate((async e=>{if(!e)return!1;this.form.sa_projectid=this.$route.query.id;const t=await this.$api.requested({id:"20221027143602",version:1,content:this.form});this.tool.showMessage(t,(()=>{this.$emit("onSuccess"),this.$refs["form"].resetFields(),this.dialogFormVisible=!1}))}))}}},l=a,o=s(43736),n=(0,o.Z)(l,r,i,!1,null,"a552694a",null),m=n.exports}}]);
|