|
|
|
@ -848,6 +848,9 @@ export default {
|
|
|
|
|
case '1': |
|
|
|
|
let a = this.optionsName.find(i => i.id == row); |
|
|
|
|
console.log('aaaa>>', a); |
|
|
|
|
if(!a){ |
|
|
|
|
this.formInline.materialId=null |
|
|
|
|
} |
|
|
|
|
if (!!a) { |
|
|
|
|
this.formInline.materialCode = a.productCode; |
|
|
|
|
this.formInline.cargoUnit = a.logpmUnit; |
|
|
|
@ -856,6 +859,7 @@ export default {
|
|
|
|
|
this.formInline.packageNum = a.packageNum; |
|
|
|
|
this.formInline.descriptionGoods = a.descriptionGoods; |
|
|
|
|
this.formInline.sku = a.sku; |
|
|
|
|
this.formInline.materialId=a.id; |
|
|
|
|
this.unpackFormDisable = this.formInline; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
@ -1014,6 +1018,8 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
//拆包提交 |
|
|
|
|
handleSubmit() { |
|
|
|
|
console.log(this.stockList,'this.stockList'); |
|
|
|
|
|
|
|
|
|
// if(this.selectionListDismantle.length < 1){ |
|
|
|
|
// this.$message.warning("请选择一条数据!!!"); |
|
|
|
|
// return ; |
|
|
|
@ -1041,15 +1047,18 @@ export default {
|
|
|
|
|
|
|
|
|
|
this.formInline.storeNum = parseInt(numbers[0]) * parseInt(this.formInline.unpackingQuantity); |
|
|
|
|
} |
|
|
|
|
// this.formInline.id =this.stockList.id; |
|
|
|
|
this.formInline.materialId = this.stockList.materialId; |
|
|
|
|
this.formInline.id =this.stockList.id; |
|
|
|
|
// this.formInline.materialId = this.stockList.materialId; |
|
|
|
|
this.formInline.marketId = this.stockList.marketId; |
|
|
|
|
this.formInline.storeId = |
|
|
|
|
!!this.stockList.storeId && this.stockList.storeId != '-1' |
|
|
|
|
? this.stockList.storeId |
|
|
|
|
: null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.formInline.descriptionGoods = this.formInline.materialIdName; |
|
|
|
|
if(!this.formInline.materialId){ |
|
|
|
|
delete this.formInline.materialId; |
|
|
|
|
} |
|
|
|
|
addParcels(this.formInline).then(() => { |
|
|
|
|
this.formInline = {}; |
|
|
|
|
this.unpackFormDisable={} |
|
|
|
|