|
@@ -369,14 +369,14 @@ export default {
|
|
|
this.goodsInventoryAddForm.product_list.push(res);
|
|
|
} else {
|
|
|
this.index = indexs;
|
|
|
- this.goodsInventoryAddForm.product_list[this.index].num += 1
|
|
|
}
|
|
|
if (res.product_vo.have_sn) {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.sn_input.focus();
|
|
|
});
|
|
|
} else {
|
|
|
-
|
|
|
+ this.goodsInventoryAddForm.product_list[this.index].inventory_num += 1
|
|
|
+ console.log( this.goodsInventoryAddForm.product_list[this.index].inventory_num)
|
|
|
/* this.scanDialogVisible = false; */
|
|
|
}
|
|
|
});
|
|
@@ -514,8 +514,8 @@ export default {
|
|
|
}
|
|
|
return query
|
|
|
})
|
|
|
- if ( this.id) {
|
|
|
- API_GoodsInventory.editgoodsInventoryAdd( this.id, params).then(response => {
|
|
|
+ if (this.id) {
|
|
|
+ API_GoodsInventory.editgoodsInventoryAdd(this.id, params).then(response => {
|
|
|
this.$message.success('修改成功!')
|
|
|
const { callback } = this.$route.params
|
|
|
if (typeof callback === 'function') callback()
|