Commit 9d6cbf63 authored by zhengke's avatar zhengke

s

parent f9797a77
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<el-dialog <el-dialog
:title="dialogtitle" :title="dialogtitle"
:visible.sync="dialogState" :visible.sync="dialogState"
:before-close="closeChangeMachie"
top="3%" top="3%"
width="850px"> width="850px">
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0"> <el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0">
...@@ -103,7 +104,7 @@ ...@@ -103,7 +104,7 @@
</el-form-item> </el-form-item>
<el-form-item class="treeItem" style="float:left;"> <el-form-item class="treeItem" style="float:left;">
<span class="label">分类</span> <span class="label">分类</span>
<treeselect style="height:32px" class='w200 fl' :options="treedata" v-model="addMsg.CategoryId" placeholder="不限" <treeselect style="height:32px" :options="treedata" v-model="addMsg.CategoryId" placeholder="不限"
:normalizer="normalizer" @select='treeClick' /> :normalizer="normalizer" @select='treeClick' />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -348,7 +349,7 @@ export default { ...@@ -348,7 +349,7 @@ export default {
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.apiJavaPost("/api/Supplies/SetWareHouseInfo",this.addMsg, this.apiJavaPost("/api/Supplies/SetMaterialInfo",this.addMsg,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.getList();
...@@ -376,7 +377,6 @@ export default { ...@@ -376,7 +377,6 @@ export default {
res => { res => {
this.loading=false; this.loading=false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
console.log("res",res);
this.tableData=res.data.data.pageData; this.tableData=res.data.data.pageData;
this.total=res.data.data.count; this.total=res.data.data.count;
} else { } else {
...@@ -435,8 +435,11 @@ export default { ...@@ -435,8 +435,11 @@ export default {
}, },
null null
); );
} },
closeChangeMachie() {
this.dialogState=false;
this.initMsg();
}
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment