4595.0a3c3f9e.js 2.8 KB

1
  1. "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[4595],{54595:function(e,t,o){o.r(t),o.d(t,{default:function(){return c}});var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v("新 建")]),o("el-dialog",{attrs:{title:"新 建","append-to-body":"",visible:e.dialogFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[o("div",{staticStyle:{"font-size":"15px"},attrs:{slot:"title"},slot:"title"},[e._v(" 新增账户类型 ")]),o("el-row",{attrs:{gutter:20}},[o("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"90px","label-position":"right",size:"mini"}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{label:"账户编号",prop:"accountno"}},[o("el-input",{attrs:{placeholder:"账户编号"},model:{value:e.form.accountno,callback:function(t){e.$set(e.form,"accountno",t)},expression:"form.accountno"}})],1)],1),o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{label:"账户名称",prop:"accountname"}},[o("el-input",{attrs:{placeholder:"账户名称"},model:{value:e.form.accountname,callback:function(t){e.$set(e.form,"accountname",t)},expression:"form.accountname"}})],1)],1),o("el-col",{attrs:{span:12}},[o("el-form-item",[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:"checked"},model:{value:e.form.isorder,callback:function(t){e.$set(e.form,"isorder",t)},expression:"form.isorder"}},[e._v("允许订货")])],1)],1),o("el-col",{attrs:{span:12}},[o("el-form-item",[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,checked:"checked"},model:{value:e.form.isused,callback:function(t){e.$set(e.form,"isused",t)},expression:"form.isused"}},[e._v("是否启用")])],1)],1)],1)],1),o("div",{staticClass:"dialog-footer"},[o("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),o("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1)],1)},l=[],a={name:"add",data(){return{dialogFormVisible:!1,isordercheck:!0,isusedcheck:!1,form:{sa_accountclassid:0,accountno:"",accountname:"",isorder:"",isused:0},rules:{accountno:[{required:!0,message:"输入账户编号",trigger:"blur"}],accountname:[{required:!0,message:"输入账户名称",trigger:"blur"}]}}},methods:{onSubmit(){console.log(this.form),this.$refs["form"].validate((async e=>{if(!e)return!1;const t=await this.$api.requested({id:"20221008134703",version:1,content:this.form});this.tool.showMessage(t,(()=>{this.$emit("onSuccess"),this.$refs["form"].resetFields(),this.dialogFormVisible=!1}))}))}}},i=a,r=o(43736),n=(0,r.Z)(i,s,l,!1,null,"73d27251",null),c=n.exports}}]);