webpackJsonp([44],{ALmJ:function(t,a){},Jh9y:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=e("mvHQ"),r=e.n(o),l=(e("ftAF"),{created:function(){var t=this;this.$route.query.id&&this.$http.get({url:"/tableShouyiYaopinxinxi/getOne",data:{id:this.$route.query.id}}).then(function(a){a.success&&(t.formData=a.data)})},data:function(){return{saving:!1,formData:{},rules:{}}},methods:{onSave:function(){var t=this;this.$refs.form.validate(function(a){if(!a)return!1;t.submit()})},submit:function(){var t=this,a=JSON.parse(r()(this.formData));this.$http.post({url:this.formData.id?"/tableShouyiYaopinxinxi/update":"/tableShouyiYaopinxinxi/save",data:a}).then(function(a){a.success?(t.$message.success("成功"),t.$router.go(-1)):t.$message.warning("失败")})}}}),i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("el-form",{ref:"form",staticStyle:{"max-width":"500px"},attrs:{model:t.formData,rules:t.rules,"label-width":"80px","label-position":"right",size:"small"}},[e("el-form-item",{attrs:{prop:"药品编号",label:"药品编号"}},[e("el-input",{model:{value:t.formData.药品编号,callback:function(a){t.$set(t.formData,"药品编号",a)},expression:"formData.药品编号"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"药品名称",label:"药品名称"}},[e("el-input",{model:{value:t.formData.药品名称,callback:function(a){t.$set(t.formData,"药品名称",a)},expression:"formData.药品名称"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"计量单位",label:"计量单位"}},[e("el-input",{model:{value:t.formData.计量单位,callback:function(a){t.$set(t.formData,"计量单位",a)},expression:"formData.计量单位"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"规格",label:"规格"}},[e("el-input",{model:{value:t.formData.规格,callback:function(a){t.$set(t.formData,"规格",a)},expression:"formData.规格"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"主要成分",label:"主要成分"}},[e("el-input",{model:{value:t.formData.主要成分,callback:function(a){t.$set(t.formData,"主要成分",a)},expression:"formData.主要成分"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"有效成分",label:"有效成分"}},[e("el-input",{model:{value:t.formData.有效成分,callback:function(a){t.$set(t.formData,"有效成分",a)},expression:"formData.有效成分"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"单价",label:"单价"}},[e("el-input",{model:{value:t.formData.单价,callback:function(a){t.$set(t.formData,"单价",a)},expression:"formData.单价"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"生产厂家",label:"生产厂家"}},[e("el-input",{model:{value:t.formData.生产厂家,callback:function(a){t.$set(t.formData,"生产厂家",a)},expression:"formData.生产厂家"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"药品制定部门",label:"药品制定部门"}},[e("el-input",{model:{value:t.formData.药品制定部门,callback:function(a){t.$set(t.formData,"药品制定部门",a)},expression:"formData.药品制定部门"}})],1),t._v(" "),e("el-form-item",{attrs:{prop:"flagcolumn",label:"FlagColumn"}},[e("el-input",{model:{value:t.formData.flagcolumn,callback:function(a){t.$set(t.formData,"flagcolumn",a)},expression:"formData.flagcolumn"}})],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{loading:t.$store.state.fetchingData,type:"primary"},on:{click:t.onSave}},[t._v("保存")]),t._v(" "),e("el-button",{on:{click:function(a){t.$router.go(-1)}}},[t._v("取消")])],1)],1)],1)},staticRenderFns:[]};var n=e("VU/8")(l,i,!1,function(t){e("ALmJ")},"data-v-1cba6b46",null);a.default=n.exports}});
//# sourceMappingURL=44.4235e580dce6a1fef43e.js.map