Commit 406d6d9c authored by zhengke's avatar zhengke

s

parent aa3251ee
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
</div> </div>
<div class="btnformItem"> <div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span> <span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
<span class="exitBtn" @click="dialogState=false">取消</span> <span class="exitBtn" @click="dialogState=false,linitMsg()">取消</span>
</div> </div>
</el-form> </el-form>
</el-dialog> </el-dialog>
...@@ -293,14 +293,27 @@ export default { ...@@ -293,14 +293,27 @@ export default {
}, },
addSupplier(){ addSupplier(){
this.addMsg={ this.addMsg.Id=0;
Id:0,
Name:''
}
this.dialogtitle="新增物料档案"; this.dialogtitle="新增物料档案";
this.dialogState=true; this.dialogState=true;
}, },
//重置
initMsg(){
this.addMsg.Id=0;
this.addMsg.Name='';
this.addMsg.SuppliesNum='';
this.addMsg.BrandName='';
this.addMsg.CategoryId=null;
this.addMsg.SupplierName='';
this.addMsg.SafetyStock='';
this.addMsg.ReservedStock='';
this.addMsg.SuppliesModel='';
this.addMsg.Units='';
this.addMsg.Money='';
this.addMsg.Barcode='';
this.addMsg.Remark='';
this.addMsg.ImageList='';
},
uploadFileBtn(file) { //上传 uploadFileBtn(file) { //上传
if(file.file.size > 1024 * 1024 * 10) { if(file.file.size > 1024 * 1024 * 10) {
this.$message.warning("文件大小不能超过10M!") this.$message.warning("文件大小不能超过10M!")
...@@ -341,7 +354,7 @@ export default { ...@@ -341,7 +354,7 @@ export default {
this.getList(); this.getList();
this.Success(res.data.message) this.Success(res.data.message)
this.dialogState=false; this.dialogState=false;
this.initMsg();
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
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