| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[7178],{7178:function(e,r,t){t.r(r),t.d(r,{default:function(){return m}});var s=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(r){e.dialogFormVisible=!0}}},[e._v("新 增")]),t("el-drawer",{attrs:{title:" 新建银行卡信息",visible:e.dialogFormVisible,size:"600px",direction:"rtl","show-close":!1,"append-to-body":""},on:{"update:visible":function(r){e.dialogFormVisible=r},close:e.onClose}},[t("div",{staticClass:"drawer__panel"},[t("el-row",{attrs:{gutter:20}},[t("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,size:"mini","label-position":"right","label-width":"85px"}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"银行名称:",prop:"bank"}},[t("el-input",{attrs:{placeholder:"请输入银行名称"},model:{value:e.form.bank,callback:function(r){e.$set(e.form,"bank",r)},expression:"form.bank"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"卡号:",prop:"bankcardno"}},[t("el-input",{attrs:{placeholder:"请输入卡号"},model:{value:e.form.bankcardno,callback:function(r){e.$set(e.form,"bankcardno",r)},expression:"form.bankcardno"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"开户人:",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入开户人"},model:{value:e.form.name,callback:function(r){e.$set(e.form,"name",r)},expression:"form.name"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"手机号码:",prop:"phonenumber"}},[t("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:e.form.phonenumber,callback:function(r){e.$set(e.form,"phonenumber",r)},expression:"form.phonenumber"}})],1)],1)],1)],1)],1),t("div",{staticClass:"fixed__btn__panel"},[t("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:e.onClose}},[e._v("取 消")]),t("el-button",{staticClass:"normal-btn-width",attrs:{size:"small",type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)])],1)},a=[],l={name:"add",props:["data"],data(){return{dialogFormVisible:!1,form:{sys_enterprise_bankid:0,bank:"",bankcardno:"",name:"",phonenumber:"",sys_enterpriseid:1},rules:{bank:[{required:!0,message:"银行名称不能为空",trigger:"blur"}],bankcardno:[{required:!0,message:"卡号不嫩为空",trigger:"blur"}],name:[{required:!0,message:"开户人不能为空",trigger:"blur"}]}}},methods:{onClose(){this.dialogFormVisible=!1,this.$refs.form.resetFields()},onSubmit(){this.$refs.form.validate((async e=>{if(!e)return!1;this.form.sys_enterpriseid=this.data.sys_enterpriseid;const r=await this.$api.requested({id:20221022165703,content:this.form});this.tool.showMessage(r,(()=>{this.dialogFormVisible=!1,this.$refs.form.resetFields(),this.$emit("addSuccess")}))}))}}},o=l,i=t(43736),n=(0,i.Z)(o,s,a,!1,null,"6250738e",null),m=n.exports}}]);
|