| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[4595],{54595:function(e,t,r){r.r(t),r.d(t,{default:function(){return u}});var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v("新 建")]),r("el-dialog",{attrs:{title:"新 建","append-to-body":"",visible:e.dialogFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[r("div",{staticStyle:{"font-size":"15px"},attrs:{slot:"title"},slot:"title"},[e._v(" 新增账户类型 ")]),r("el-row",{attrs:{gutter:20}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"90px","label-position":"right",size:"mini"}},[r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"账户编号",prop:"accountno"}},[r("el-input",{attrs:{placeholder:"账户编号"},model:{value:e.form.accountno,callback:function(t){e.$set(e.form,"accountno",t)},expression:"form.accountno"}})],1)],1),r("el-col",{attrs:{span:20}},[r("el-form-item",{attrs:{label:"账户名称",prop:"accountname"}},[r("el-input",{attrs:{placeholder:"账户名称"},model:{value:e.form.accountname,callback:function(t){e.$set(e.form,"accountname",t)},expression:"form.accountname"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",[r("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),r("el-col",{attrs:{span:12}},[r("el-form-item",[r("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),r("div",{staticClass:"dialog-footer"},[r("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),r("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1)],1)},a=[],n=r(48534),s=(r(35666),{name:"add",data:function(){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:function(){var e=this;console.log(this.form),this.$refs["form"].validate(function(){var t=(0,n.Z)(regeneratorRuntime.mark((function t(r){var o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return",!1);case 2:return t.next=4,e.$api.requested({id:"20221008134703",version:1,content:e.form});case 4:o=t.sent,e.tool.showMessage(o,(function(){e.$emit("onSuccess"),e.$refs["form"].resetFields(),e.dialogFormVisible=!1}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}}),i=s,l=r(43736),c=(0,l.Z)(i,o,a,!1,null,"73d27251",null),u=c.exports}}]);
|