- 入库数量:
+ *入库数量:
this.mingxiObj.zaikushuliang) {
- // Message({
- // type: 'warning',
- // message: '请填写正确的入库数量'
- // })
- // this.showLoading = false
- // return
- // }
- console.log("123")
+ if(this.mingxiObj.wuzibianma==''||this.mingxiObj.rukushuliang==''){
+ Message({
+ type:'warning',
+ message:'请填写完整数据'
+ })
+ this.showLoading = false
+ return
+ }
if (this.mingxiIndex != '') {
// 比较是否改变了 数据 改变提交到明细
@@ -394,7 +407,10 @@
} else {
this.mingxiList.push(this.mingxiObj)
}
- this.mingxiObj = {}
+ this.mingxiObj = {
+ wuzibianma:'',
+ rukushuliang:''
+ }
this.mingxiObjBefore = {}
this.mingxiIndex = ''
this.isShowMingxi = false
@@ -404,7 +420,10 @@
this.wuziPageIndex = 1
},
mingxiCancel() {
- this.mingxiObj = {}
+ this.mingxiObj = {
+ wuzibianma:'',
+ rukushuliang:''
+ }
this.mingxiObjBefore = {}
this.mingxiIndex = ''
this.isShowMingxi = false
@@ -566,6 +585,7 @@
this.mingxiObj.zichanmingcheng = e.zichanmingcheng
this.mingxiObj.wuzileixing = e.wuzileixing
this.mingxiObj.jiliangdanwei = e.jiliangdanwei
+ this.mingxiObj.fenlei = e.fenlei
if(this.mingxiObj.wuzileixing=='一类一码'){
this.getPici()