Commit 406d6d9c authored by zhengke's avatar zhengke

s

parent aa3251ee
......@@ -161,7 +161,7 @@
</div>
<div class="btnformItem">
<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>
</el-form>
</el-dialog>
......@@ -293,14 +293,27 @@ export default {
},
addSupplier(){
this.addMsg={
Id:0,
Name:''
}
this.addMsg.Id=0;
this.dialogtitle="新增物料档案";
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) { //上传
if(file.file.size > 1024 * 1024 * 10) {
this.$message.warning("文件大小不能超过10M!")
......@@ -341,7 +354,7 @@ export default {
this.getList();
this.Success(res.data.message)
this.dialogState=false;
this.initMsg();
} else {
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